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

Unified 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: Rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/ssl/blocking.html ('k') | chrome/browser/resources/ssl/roadblock.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ssl/blocking.js
diff --git a/chrome/browser/resources/ssl/blocking.js b/chrome/browser/resources/ssl/blocking.js
new file mode 100644
index 0000000000000000000000000000000000000000..6442c386fdbf3a5925166154465570815e7e0b2c
--- /dev/null
+++ b/chrome/browser/resources/ssl/blocking.js
@@ -0,0 +1,25 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function toggleMoreBox() {
+ var helpBoxOuter = $('help-box-outer');
+ helpBoxOuter.classList.toggle('hidden');
+ var moreLessButton = $('more-less-button');
+ if (helpBoxOuter.classList.contains('hidden')) {
+ moreLessButton.innerText = templateData.more;
+ } else {
+ moreLessButton.innerText = templateData.less;
+ }
+}
+
+function reloadPage() {
+ sendCommand(CMD_RELOAD);
+}
+
+function setupEvents() {
+ $('reload-button').addEventListener('click', reloadPage);
+ $('more-less-button').addEventListener('click', toggleMoreBox);
+}
+
+document.addEventListener('DOMContentLoaded', setupEvents);
« no previous file with comments | « chrome/browser/resources/ssl/blocking.html ('k') | chrome/browser/resources/ssl/roadblock.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698