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

Unified Diff: remoting/webapp/util.js

Issue 9586016: Removed unused CSS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/main.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/util.js
diff --git a/remoting/webapp/util.js b/remoting/webapp/util.js
index f6899c3a8029329445b4ffa5b8fc26e460f2740f..31fbfe05528d6fd0a2c705a7bd2abce293e82024 100644
--- a/remoting/webapp/util.js
+++ b/remoting/webapp/util.js
@@ -51,3 +51,12 @@ function getUrlParameters() {
}
return result;
}
+
+// This function can be called from the Javascript console to show all the UI,
+// for example prior to auditing the CSS. It is not useful otherwise.
+function unhideAll() {
+ var hidden = document.querySelectorAll('[hidden]');
+ for (var i in hidden) {
+ hidden[i].hidden = false;
+ }
+}
« no previous file with comments | « remoting/webapp/main.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698