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
| This is a collection of my most used or most useful PHP and JS snippets | |
| **Disclaimer, I didn't write most of these - I just curated them over the years** |
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
| <script> | |
| "use strict"; | |
| OB_ready(OB_doWhenReady); | |
| function OB_doWhenReady() { | |
| // localize everything | |
| var ooohBoi = window.ooohBoi || {}; | |
| // local scope variables | |
| ooohBoi.prev_scroll_pos = window.scrollY || document.body.scrollTop; | |
| ooohBoi.cur_scroll_pos; |
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
| /* be sure to copy-paste to the Image Widget Custom CSS panel */ | |
| selector, | |
| selector .elementor-widget-container, | |
| selector .elementor-image, | |
| selector .elementor-image > a { | |
| height: 100%; | |
| } | |
| selector .elementor-image img { | |
| object-fit: cover; | |
| object-position: 50% 50%; |