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
let buttons = document.querySelectorAll("button"); | |
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of | |
// http://kangax.github.io/compat-table/es6/#for..of_loops | |
for (const button of buttons) { | |
button.addEventListener('click', () => { | |
console.log("for of worked"); | |
}); | |
} |
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 rchv_projects_link() { ?> | |
<a class="grid_item-link gallery_item-link" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1"> | |
<?php $imgPlaceholder = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk2A8AAMUAwUPJ2C4AAAAASUVORK5CYII="; ?> | |
<figure class="grid_item-figure gallery_item-figure"> | |
<?php if( !empty(get_the_post_thumbnail()) ) { | |
the_post_thumbnail( 'post-thumbnail', array( | |
'alt' => the_title_attribute( array( | |
'echo' => false, | |
) ), | |
'src' => $imgPlaceholder, |
OlderNewer