This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function intersectionCallback() { | |
| console.log('target is visible!'); | |
| } | |
| window.addEventListener('load', function(){ | |
| var wrapper = document.querySelector('#wrapper'); | |
| var options = { | |
| root: null, | |
| rootMargin: '0px', | |
| threshold: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{ENV:HTTPS} !=on | |
| RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // You can filter the title of most widgets and change the markup. The name of the filter is 'widget_title' and the third parameter tells you the type of the filtered widget. | |
| add_filter( 'widget_title', 'wpse_52108_nav_widget_title_link', 30, 3 ); | |
| /** | |
| * Changes the title for the nav menu widget. | |
| * | |
| * @param string $title | |
| * @param string $instance | |
| * @param string $id_base |