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
jQuery | |
------------ | |
$('.hover').hover(function(){ | |
$(this).addClass('flip'); | |
},function(){ | |
$(this).removeClass('flip'); | |
}); | |
----------- |
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
//global.js | |
Shadowbox.init(); | |
$('.photo-image a').live('click', function (e) { | |
Shadowbox.setup(jQuery('.photo-image a')); | |
Shadowbox.open(this); |
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
HTML | |
<blockquote class="testimonial">Jerewall's the best, he's the greatest web developer to ever live! | |
<span>- Gary Raymond</span></blockquote> | |
CSS | |
blockquote.testimonial { | |
border: 0px; | |
padding: 60px 40px 50px; | |
position: relative; | |
width: 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
<div class="searchbox"> | |
<form role="search" method="get" id="searchform" class="searchform" action="/"> | |
<input type="text" value="" name="s" id="s" /> | |
<input type="submit" id="searchsubmit" value="Search" /> | |
</form> | |
</div> |
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
/* Sticky navigation bar - Make the navigation area float after scrolling past it */ | |
var aboveHeight = $('#primary-navigation').offset().top; | |
jQuery(window).scroll(function () { | |
if ($(window).scrollTop() > aboveHeight && $(window).width() > 780) { | |
$('.header').css({ | |
'position': 'fixed', | |
'top': -90, |
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
<div class="form"> | |
<form role="search" method="get" id="searchform" class="searchform" action="/"> | |
<input type="text" value="" name="s" id="s" placeholder="Search" /> | |
</form> | |
</div> |
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
//ex on signals defense | |
var header = $(".header"); | |
$(window).scroll(function() { | |
var scroll = $(window).scrollTop(); | |
if (scroll >= 1) { | |
header.addClass('small'); |
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
=== GLOBAL.JS INFORMATION === | |
$('.close').click(function(e){ | |
e.preventDefault(); | |
$(".overlay").fadeOut(500); | |
}); | |
$('.pop').click(function(e){ | |
e.preventDefault(); | |
$(".overlay").fadeIn(500); |
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
$(window).on('load resize', function () { | |
if ($(window).width() > 780) { | |
var tallest = 0; | |
$(".webcom-cta .widget-textarea").each(function(){ | |
if($(this).outerHeight() > tallest) tallest = $(this).outerHeight(); | |
}).css('height', tallest); | |
} | |
}).resize(); |
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
//Sticky navigation bar - Make the navigation area float after scrolling past it// | |
var aboveHeight = $('#primary-navigation').offset().top; | |
jQuery(window).scroll(function() { | |
if ($(window).scrollTop() > aboveHeight) { | |
$('.header').css({ | |
position: 'fixed', | |
top: 0, | |
'z-index': 9999, | |
'max-width': 1200, |
NewerOlder