OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 var iframeUpdateIntervalID; | 5 var iframeUpdateIntervalID; |
6 | 6 |
7 function selectExample(el) { | 7 function selectExample(el) { |
8 setIframeSrc(el.dataset.href); | 8 setIframeSrc(el.dataset.href); |
9 deselectAllNavItems(); | 9 deselectAllNavItems(); |
10 selectNavItem(el); | 10 selectNavItem(el); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 }, false); | 63 }, false); |
64 | 64 |
65 var closeButtonEl = document.querySelector('.close-button'); | 65 var closeButtonEl = document.querySelector('.close-button'); |
66 closeButtonEl.addEventListener('click', function () { | 66 closeButtonEl.addEventListener('click', function () { |
67 window.close(); | 67 window.close(); |
68 }); | 68 }); |
69 | 69 |
70 // select the first example. | 70 // select the first example. |
71 selectExample(document.querySelector('.nav-item')); | 71 selectExample(document.querySelector('.nav-item')); |
72 }); | 72 }); |
OLD | NEW |