Tribe__Main::toggle_js_class()
Removes tribe-no-js and replaces with tribe-js when the Javascript of the page is enabled.
Return
(void) This method only prints HTML to the screen no return.
Source
File: src/Tribe/Main.php
public function toggle_js_class() {
?>
<script>
( function ( body ) {
'use strict';
body.className = body.className.replace( /\btribe-no-js\b/, 'tribe-js' );
} )( document.body );
</script>
<?php
}
Changelog
| Version | Description |
|---|---|
| 4.3.4 | Introduced. |