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:
@@ -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; }
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user