Changeset 3852 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
- Timestamp:
- 08/24/2016 08:22:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
r3790 r3852 259 259 function header_js() { 260 260 // Output CSS to hide markup with the class 'hide-if-js'. Ensures the markup is visible if JS is not present. 261 echo "<script type=\"text/javascript\">jQuery( '<style>.hide-if-js { display: none; }</style>' ).appendTo( 'head' );</script>\n"; 261 // Add class 'js' to the body element if JavaScript is enabled 262 echo " 263 <script type=\"text/javascript\"> 264 jQuery( '<style>.hide-if-js { display: none; }</style>' ).appendTo( 'head' ); 265 jQuery( function($) { 266 $( 'body' ).addClass('js'); 267 } ); 268 </script>\n"; 262 269 } 263 270
Note: See TracChangeset
for help on using the changeset viewer.