Skip to content

Commit c9c7144

Browse files
committed
jquery: Add the js class, remove the no-js one
This used to be done by Modernizr until its removal in 08f27c1. Some sites apply different styling for JS-disabled environments; one such example is the jQuery UI Download Builder which expands all Themeroller knobs sections in the no-JS mode.
1 parent b12072b commit c9c7144

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

themes/jquery/js/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* All sites
33
*/
44
$(function() {
5+
// Some CSS depends on the `js` class.
6+
$( "html" ).addClass( "js" ).removeClass( "no-js" );
7+
58
// copyable auto-select-all
69
$( ".copyable" ).on( "click", function() {
710
if ( typeof this.select === "function" ) {

0 commit comments

Comments
 (0)