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

Side by Side Diff: chrome/browser/resources/chromeos/neterror.js

Issue 882973003: Update SSL/malware/net error interstitial design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge updates Created 5 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 | « no previous file | chrome/browser/resources/chromeos/offline_net_load.html » ('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 = $('help-box-outer'); 6 var helpBoxOuter = $('details');
7 helpBoxOuter.classList.toggle('hidden'); 7 helpBoxOuter.classList.toggle('hidden');
8 var detailsButton = $('details-button'); 8 var detailsButton = $('details-button');
9 if (helpBoxOuter.classList.contains('hidden')) { 9 if (helpBoxOuter.classList.contains('hidden')) {
10 detailsButton.innerText = detailsButton.detailsText; 10 detailsButton.innerText = detailsButton.detailsText;
11 } else { 11 } else {
12 detailsButton.innerText = detailsButton.hideDetailsText; 12 detailsButton.innerText = detailsButton.hideDetailsText;
13 } 13 }
14 } 14 }
15 15
16 function diagnoseErrors() { 16 function diagnoseErrors() {
(...skipping 29 matching lines...) Expand all
46 if (oldClass !== undefined) 46 if (oldClass !== undefined)
47 classList.remove(oldClass); 47 classList.remove(oldClass);
48 48
49 classList['last_icon_class'] = newClass; 49 classList['last_icon_class'] = newClass;
50 50
51 if (newClass == 'icon-offline') { 51 if (newClass == 'icon-offline') {
52 document.body.classList.add('offline'); 52 document.body.classList.add('offline');
53 new Runner('.interstitial-wrapper'); 53 new Runner('.interstitial-wrapper');
54 } 54 }
55 } 55 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/offline_net_load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698