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
render.+['"].*partial-name |
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($){ | |
$.fn.rand = function(){ | |
return this.eq(Math.floor(Math.random()*this.length)); | |
}; | |
})(jQuery); |
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
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] |
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
// Toggle Required Attributed based on Checkbox | |
(function(){ | |
var checkBox = $('input#acceptTextMessages'); | |
var input = $('input#cellPhoneNumber'); | |
function addRequired () { | |
$(input).attr({required: true}).after('<span class="required">*</span>'); | |
} | |
function removeRequired () { |
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(){ | |
// code | |
})(); |
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
// Add Asterisks to Required form elements | |
$('form').find('input:required, select:required, textarea:required').after('<span class="required">*</span>'); |
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( $ ){ | |
$.fn.toggleButtons = function() { | |
this.on('click', function(e) { | |
e.preventDefault(); | |
var targetID = $(this).data('id'); | |
if( $(targetID).hasClass('hide') ) { | |
$(targetID).toggleClass('hide'); | |
} else { | |
$(targetID).toggle(); |
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
/* | |
Loop over all items in a selection | |
Set tallest item to maxHeight variable | |
Set height of all elements to maxHeight variable | |
*/ | |
(function( $ ){ | |
$.fn.equalizeHeights = function() { | |
var maxHeight = 0; | |
var el = $(this); |
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
// Scroll Effects | |
$(window).scroll(function(){ | |
var scrollVar = $(window).scrollTop(); | |
var element = $('section#main'); | |
$(homeContent).css({'bottom': scrollVar }); // scrolls element off page | |
$(homeContent).css({'opacity': (100 - scrollVar) / 100 }); // fades element out on scroll | |
}); |
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
// Animate ScrollTo InPage Navigation | |
$(function(){ | |
$("a.inpage").bind("click", function (event) { | |
event.preventDefault(); | |
var target = $(this).attr("href"); | |
var headerHeight = $('body > header').height(); | |
$("html, body").stop().animate({ | |
scrollTop: $(target).offset().top - headerHeight | |
}, 1200); | |
}); |