OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview The ChromeVox panel and menus. | 6 * @fileoverview The ChromeVox panel and menus. |
7 */ | 7 */ |
8 | 8 |
9 goog.provide('Panel'); | 9 goog.provide('Panel'); |
10 | 10 |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 * Close the tutorial. | 672 * Close the tutorial. |
673 */ | 673 */ |
674 Panel.onCloseTutorial = function() { | 674 Panel.onCloseTutorial = function() { |
675 $('main').style.display = 'block'; | 675 $('main').style.display = 'block'; |
676 $('tutorial').style.display = 'none'; | 676 $('tutorial').style.display = 'none'; |
677 Panel.closeMenusAndRestoreFocus(); | 677 Panel.closeMenusAndRestoreFocus(); |
678 }; | 678 }; |
679 | 679 |
680 window.addEventListener('load', function() { | 680 window.addEventListener('load', function() { |
681 Panel.init(); | 681 Panel.init(); |
| 682 |
| 683 switch (location.search.slice(1)) { |
| 684 case 'tutorial': |
| 685 Panel.onTutorial(); |
| 686 } |
682 }, false); | 687 }, false); |
683 | 688 |
684 window.addEventListener('hashchange', function() { | 689 window.addEventListener('hashchange', function() { |
685 if (location.hash == '#fullscreen' || location.hash == '#focus') { | 690 if (location.hash == '#fullscreen' || location.hash == '#focus') { |
686 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; | 691 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; |
687 cvox.ChromeVox.isStickyPrefOn = false; | 692 cvox.ChromeVox.isStickyPrefOn = false; |
688 } else { | 693 } else { |
689 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; | 694 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; |
690 } | 695 } |
691 }, false); | 696 }, false); |
OLD | NEW |