1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 03:24:01 +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

@@ -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