- 🌐 Awesome Windows 11 - Windows 11 Resources
- 🌐 PC-Optimization-Hub or All About Windows - System Optimization Resources
- ↪️ Gaming Optimization
- ⭐ PowerToys, Sysinternals / Suite or JaxCore - System Tools
- ⭐ CPU-Z, winfetch or GPU-Z - System Information Tools
- ⭐ AutoHotkey, AutoIt / [Resources](https://github.com/J2TE
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 when_external_loaded (callback) { | |
| if (typeof videoOptions === 'undefined') { | |
| setTimeout (function () { | |
| when_external_loaded (callback); | |
| }, 500); // wait 100 ms | |
| } else { callback (); } | |
| } | |
| when_external_loaded (function () { | |
| setTimeout(videoOptions(ads, device, startTime, intervalTime, muteTab), 500); |
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
| $(document).mouseup(function (e){ | |
| var lang = $(".dropdown-lang"); | |
| if (!lang.is(e.target) // if the target of the click isn't the container... | |
| && lang.has(e.target).length === 0) // ... nor a descendant of the container | |
| { | |
| lang.hide(); | |
| } | |
| }); |
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
| $.fn.followTo = function (pos) { | |
| var $this = this, | |
| $window = $(window); | |
| $window.scroll(function (e) { | |
| if ($window.scrollTop() > pos) { | |
| $this.css({ | |
| position: 'absolute', | |
| top: 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
| // Option 1 | |
| var url = "http://mywebsite.com/extractMe/test"; | |
| var extractedText = url.split("/")[3]; | |
| // Option 2 | |
| // If when a trailing slash is present you want to return "test", use this code | |
| var url = "http://mywebsite.com/extractMe/test/"; | |
| var urlAry = url.split("/"); | |
| var extractedText = urlAry[urlAry.length - 2]; |
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
| flowplayer(function (api, root) { | |
| var fsbutton = document.createElement("a"), | |
| anchors = root.getElementsByTagName("a"), | |
| divs = root.getElementsByTagName("div"), | |
| i, elem; | |
| fsbutton.className = "fp-fullscreen"; | |
| for (i = 0; i < anchors.length; i += 1) { |