Last active
September 7, 2019 09:41
-
-
Save fleimisch/7a53653e721c219dc93ba12f9149240d to your computer and use it in GitHub Desktop.
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
javascript shorthand list: https://www.sitepoint.com/shorthand-javascript-techniques/ | |
SCE function to get and check element // will avoid "of unexpected.." error: | |
let a = x0(".MobileSearchWrapperHelper"); | |
a ? a.style.display = "block" : void 0; | |
$(element).is(':visible') | |
element.offsetWidth > 0 && element.offsetHeight > 0; | |
window on load: | |
window.addEventListener('load', function() { | |
console.log('All assets are loaded') | |
}); | |
for each: | |
arr.forEach(element => { | |
console.log(element); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment