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 headerHide() { | |
// Hide Header on scroll down | |
var didScroll; | |
var lastScrollTop = 0; | |
var delta = 5; | |
var navbarHeight = $('.header-global').outerHeight(); | |
$(window).scroll(function(event){ | |
didScroll = true; |
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
/** | |
* Wordpress Pagination | |
* http://codex.wordpress.org/Function_Reference/paginate_links | |
*/ | |
<div class="pagination-wrap"> | |
<?php | |
// pagination | |
global $wp_query; | |
$big = 999999999; // need an unlikely integer |
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
// Smooth scroll to content | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') || location.hostname == this.hostname) { | |
var targetH = $(this.hash), | |
target = targetH.length ? targetH : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top - 60 |
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
// Open all external links in new window. | |
$('a').each( function (i, link) { | |
var $link = $(link), | |
href = $link.attr('href'); | |
if (!!href) { | |
href = href.toString(); | |
if (-1 === href.indexOf(window.location.host) || -1 !== href.indexOf('.pdf')) | |
$link.attr('target', '_blank'); | |
} |
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
module.exports = function() { | |
function sendInformation(){ | |
var months = [ | |
'01', | |
'02', | |
'03', | |
'04', | |
'05', | |
'06', |