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

Side by Side Diff: components/neterror/resources/neterror.js

Issue 1668963002: Componentize IDR_NET_ERROR_HTML for sharing it with iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase & remove jar@chromium.org from components/resources/OWNERS Created 4 years, 10 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
« no previous file with comments | « components/neterror/resources/neterror.html ('k') | components/neterror/resources/offline.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 function toggleHelpBox() { 5 function toggleHelpBox() {
6 var helpBoxOuter = document.getElementById('details'); 6 var helpBoxOuter = document.getElementById('details');
7 helpBoxOuter.classList.toggle('hidden'); 7 helpBoxOuter.classList.toggle('hidden');
8 var detailsButton = document.getElementById('details-button'); 8 var detailsButton = document.getElementById('details-button');
9 if (helpBoxOuter.classList.contains('hidden')) 9 if (helpBoxOuter.classList.contains('hidden'))
10 detailsButton.innerText = detailsButton.detailsText; 10 detailsButton.innerText = detailsButton.detailsText;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Set the secondary button state in the cases of two call to actions. 217 // Set the secondary button state in the cases of two call to actions.
218 if ((reloadButtonVisible || showOfflinePagesButtonVisible || 218 if ((reloadButtonVisible || showOfflinePagesButtonVisible ||
219 showOfflineCopyButton) && 219 showOfflineCopyButton) &&
220 showSavedCopyButtonVisible) { 220 showSavedCopyButtonVisible) {
221 secondaryButton.classList.add('secondary-button'); 221 secondaryButton.classList.add('secondary-button');
222 } 222 }
223 } 223 }
224 } 224 }
225 225
226 document.addEventListener('DOMContentLoaded', onDocumentLoad); 226 document.addEventListener('DOMContentLoaded', onDocumentLoad);
OLDNEW
« no previous file with comments | « components/neterror/resources/neterror.html ('k') | components/neterror/resources/offline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698