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
<picture> | |
<source type="image/webp" srcset="/i/j/r.webp"> | |
<img src="/i/j/r.jpg" alt=""> | |
</picture> |
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
<li class="gallery__item h-card" | |
data-img="/i/j/r.jpg||y" | |
> | |
<a href="https://twitter.com/rachelandrew"> | |
<b>Rachel Andrew</b> | |
</a> | |
</li> |
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
var foo = document.querySelectorAll('.foo'); |
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
$('.foo').click(function(){ | |
alert('Thanks for clicking me!'); | |
}); |
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
<!--[if gt IE 8]><!--> | |
IE 9+ and all non-IE browsers see this text. | |
<!--<![endif]--> |
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
<!--[if gte IE 7]> | |
Howdy friend, you’re in IE version 7–9! | |
<![endif]--> |
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
if ( window.localStorageAvailable ) | |
{ | |
window.localStorage.removeItem( 'FORM URL GOES HERE' ); | |
} |
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
// Lazy Load Images | |
// Assumes WebP versions exist for all images | |
// | |
// data-img="A|B|C|D|E" | |
// A = source url | |
// B = alt | |
// C = prepend? (y/n) | |
// D = insert into (descendent selector) | |
// E = svg? | |
// |
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
@media (-ms-high-contrast: white-on-black) { | |
/* rule sets for white on black */ | |
} | |
@media (-ms-high-contrast: black-on-white) { | |
/* rule sets for black on white */ | |
} |
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
@media (-ms-high-contrast: active) { | |
/* rule sets for high contrast mode */ | |
} |