diff --git src/wp-content/themes/twentyfifteen/functions.php src/wp-content/themes/twentyfifteen/functions.php
index 2c4b59f..753f8c2 100644
|
|
|
function twentyfifteen_fonts_url() { |
| 194 | 194 | endif; |
| 195 | 195 | |
| 196 | 196 | /** |
| | 197 | * JavaScript Detection. |
| | 198 | * |
| | 199 | * Adds a `js` class to the root `<html>` element when JavaScript is detected. |
| | 200 | * |
| | 201 | * @since Twenty Fifteen 1.1 |
| | 202 | */ |
| | 203 | function twentyfifteen_javascript_detection() { |
| | 204 | echo "<script>(function(){document.documentElement.className = document.documentElement.className.replace('no-js','js')})();</script>\n"; |
| | 205 | } |
| | 206 | add_action( 'wp_head', 'twentyfifteen_javascript_detection', 0 ); |
| | 207 | |
| | 208 | /** |
| 197 | 209 | * Enqueue scripts and styles. |
| 198 | 210 | * |
| 199 | 211 | * @since Twenty Fifteen 1.0 |
diff --git src/wp-content/themes/twentyfifteen/header.php src/wp-content/themes/twentyfifteen/header.php
index d8e387f..e415915 100644
|
|
|
|
| 18 | 18 | <!--[if lt IE 9]> |
| 19 | 19 | <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script> |
| 20 | 20 | <![endif]--> |
| 21 | | <script>(function(){document.documentElement.className='js'})();</script> |
| 22 | 21 | <?php wp_head(); ?> |
| 23 | 22 | </head> |
| 24 | 23 | |