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

Side by Side Diff: chrome/browser/resources/ssl/blocking.js

Issue 23965003: New SSL blocking screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for comments Created 7 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 function toggleMoreBox() {
Patrick Dubroy 2013/10/21 07:48:51 Can't this also be shared with neterror.js? And do
felt 2013/10/21 13:08:34 neterror's version of toggleMoreBox relies on this
6 var helpBoxOuter = $('help-box-outer');
7 helpBoxOuter.classList.toggle('hidden');
8 var moreLessButton = $('more-less-button');
9 if (helpBoxOuter.classList.contains('hidden')) {
10 moreLessButton.innerText = templateData.more;
11 } else {
12 moreLessButton.innerText = templateData.less;
13 }
14 }
15
16 function reloadPage() {
17 sendCommand(CMD_RELOAD);
18 }
19
20 function setupEvents() {
21 $('reload-button').addEventListener('click', reloadPage);
22 $('more-less-button').addEventListener('click', toggleMoreBox);
23 }
24
25 document.addEventListener('DOMContentLoaded', setupEvents);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698