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 675 matching lines...) Loading... |
686 * Close the tutorial. | 686 * Close the tutorial. |
687 */ | 687 */ |
688 Panel.onCloseTutorial = function() { | 688 Panel.onCloseTutorial = function() { |
689 $('main').style.display = 'block'; | 689 $('main').style.display = 'block'; |
690 $('tutorial').style.display = 'none'; | 690 $('tutorial').style.display = 'none'; |
691 Panel.closeMenusAndRestoreFocus(); | 691 Panel.closeMenusAndRestoreFocus(); |
692 }; | 692 }; |
693 | 693 |
694 window.addEventListener('load', function() { | 694 window.addEventListener('load', function() { |
695 Panel.init(); | 695 Panel.init(); |
| 696 |
| 697 switch (location.search.slice(1)) { |
| 698 case 'tutorial': |
| 699 Panel.onTutorial(); |
| 700 } |
696 }, false); | 701 }, false); |
697 | 702 |
698 window.addEventListener('hashchange', function() { | 703 window.addEventListener('hashchange', function() { |
699 if (location.hash == '#fullscreen' || location.hash == '#focus') { | 704 if (location.hash == '#fullscreen' || location.hash == '#focus') { |
700 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; | 705 this.originalStickyState_ = cvox.ChromeVox.isStickyPrefOn; |
701 cvox.ChromeVox.isStickyPrefOn = false; | 706 cvox.ChromeVox.isStickyPrefOn = false; |
702 } else { | 707 } else { |
703 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; | 708 cvox.ChromeVox.isStickyPrefOn = this.originalStickyState_; |
704 } | 709 } |
705 }, false); | 710 }, false); |
OLD | NEW |