1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-23 22:52:51 +02:00

Hide JS only elements with disabled JavaScript

This commit is contained in:
Jakub Vrana
2011-03-18 15:03:41 +01:00
parent 10bb2b1526
commit 266d83215d
6 changed files with 6 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ code { background: #eee; }
tr:hover td, tr:hover th { background: #ddf; }
pre { margin: 1em 0 0; }
.version { color: #777; font-size: 67%; }
.js .hidden { display: none; }
.js .hidden, .nojs .jsonly { display: none; }
.nowrap td, .nowrap th, td.nowrap { white-space: pre; }
.wrap td { white-space: normal; }
.error { color: red; background: #fee; }

View File

@@ -1,5 +1,5 @@
// to hide elements displayed by JavaScript
document.body.className += ' js';
document.body.className = document.body.className.replace(/(^|\s)nojs(\s|$)/, '$1js$2');
/** Toggle visibility
* @param string