This file contains 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
/************************** | |
* Movie controls | |
*************************/ | |
if($("#lens-video").length) { | |
var moviecontainer = document.getElementById("lens-video"), | |
movie = moviecontainer.querySelector("video"), | |
controls = moviecontainer.querySelector("span"); | |
movie.removeAttribute("controls"); | |
controls.style.display = "block"; |
This file contains 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
/*================================================ | |
= Anchor tag scroll hijack = | |
================================================*/ | |
// Select all links with hashes | |
$('a[href*="#"]') | |
// Remove links that don't actually link to anything | |
.not('[href="#"]') | |
.not('[href="#0"]') | |
.click(function(event) { | |
// On-page links |
This file contains 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
/*=============================================== | |
= Auto play youtube video = | |
===============================================*/ | |
var videosrc=$("iframe").attr("src")+"&autoplay=1"; | |
$("iframe").attr("src",videosrc); | |
/*===== End of Auto play youtube video ======*/ |
This file contains 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($) { | |
var resizeTimer; // Set resizeTimer to empty so it resets on page load | |
function resizeFunction() { | |
// Add functions here | |
} | |
// On resize, run the function and reset the timeout | |
// 250 is the delay in milliseconds. Change as you see fit. |
This file contains 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
add_filter( 'jpg_quality', 'high_jpg_quality' ); | |
function high_jpg_quality() { | |
return 100; | |
} |
This file contains 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
// Add to footer.php before </body> closing tag | |
<?php if(is_user_logged_in()): | |
?> | |
<!-- | |
DeBugger - breakpoint indicator | |
Inspired by Darin @ Meta13 | |
--> | |
<div class="breakpoint-indicator"></div> | |
<?php endif; ?> |
This file contains 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
// Enqueue the main Stylesheet. | |
$style_ver = filemtime( get_stylesheet_directory() . '/assets/stylesheets/foundation.css' ); | |
wp_enqueue_style( 'main-stylesheet', get_template_directory_uri() . '/assets/stylesheets/foundation.css', array(), $style_ver, 'all' ); |
This file contains 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
<script> | |
$( document ).ready(function() { | |
var distance = 0; | |
if ($(".toggle-menu").css('display') == 'none') { | |
// Hide Header on on scroll down | |
var didScroll; | |
var lastScrollTop = 0; | |
var delta = 5; | |
var navbarHeight = $('#site-header').outerHeight(); |
OlderNewer