I hereby claim:
- I am brianmaierjr on github.
- I am brianmaierjr (https://keybase.io/brianmaierjr) on keybase.
- I have a public key ASBSGDLc5uamD1qeMirMmdtAGYa_41kIURvcpgL2Pb1BWwo
To claim this, I am signing this object:
document.addEventListener('focus', function() { | |
console.log('focused: ', document.activeElement) | |
}, true); |
# Strict-Transport-Security | |
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"; | |
# X-Content-Type-Options | |
add_header X-Content-Type-Options "nosniff"; | |
# X-XSS Protection | |
add_header X-XSS-Protection "1; mode=block"; | |
# X-Frame-Options |
<?php | |
// create an empty array | |
$home_faqs = array(); | |
// get list of posts | |
$home_faqs_posts = get_field('relationship_field_name'); | |
if( $home_faqs_posts ) { | |
foreach( $home_faqs_posts as $post) { |
// Setup MixItUp for card filtering | |
var mixer = mixitup('.program-card-container'); | |
if ($('.program-card-container')) { | |
var container = $('.program-card-container') | |
var mixer = mixitup(container, { | |
callbacks: { | |
onMixStart: function(state, futureState) { | |
}, | |
onMixEnd: function() { |
<?php | |
$image = get_field('banner_bg_image'); | |
$medium = $image['sizes'][ 'medium' ]; | |
$large = $image['sizes'][ 'large' ]; | |
$full = $image[ 'url' ]; | |
?> | |
<style> | |
@media screen and (min-width: 1024px) { | |
.banner--interior { | |
background-image: url(<?php echo $full; ?>); |
I hereby claim:
To claim this, I am signing this object:
<meta property="og:title" content="Facebook Open Graph META Tags"/> | |
<meta property="og:image" content="http://davidwalsh.name/wp-content/themes/klass/img/facebooklogo.png"/> | |
<meta property="og:site_name" content="David Walsh Blog"/> | |
<meta property="og:description" content="Facebook's Open Graph protocol allows for web developers to tur |
/* | |
Fix for jQuery conflict | |
*/ | |
function enqueue_scripts() { | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', false, false, false ); | |
wp_enqueue_script( 'jquery' ); | |
} | |
add_action('wp_enqueue_scripts', 'enqueue_scripts'); |
$(function() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |