Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: native_client_sdk/src/resources/index.js

Issue 23919004: [NaCl SDK] Create a resources/ directory and move files to it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move httpd.cmd too Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 });
OLDNEW
« no previous file with comments | « native_client_sdk/src/resources/index.css ('k') | native_client_sdk/src/resources/index.html.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698