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
// Initialize any carousels | |
$('.carousel-horizontal').carouselify({ | |
outerWrapperSelector: '.carousel-container', | |
innerWrapperSelector: '.carousel-list', | |
itemSelector: '.carousel-list > li', | |
previousSelector: '.carousel-prev', | |
nextSelector: '.carousel-next' | |
}); |
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
// Collapse any sub tab nav down to select menus | |
$('.tab-list, tabs-subnav').collapsify(); |
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 toggleSpeakerBio(target) { | |
closeTransientElementsExcept('speaker'); | |
if (target.hasClass('active')) { | |
target.removeClass('active'); | |
} else { | |
$('.speaker-block').removeClass('active'); | |
target.addClass('active'); | |
} | |
} |
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
$('body').on('click', '.speaker-block > a', function(e){ | |
e.preventDefault(); | |
e.stopPropagation(); | |
toggleSpeakerBio($(this).closest('.speaker-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
(function (d, w, activeClass) { | |
if (('ontouchstart' in w) || w.DocumentTouch && d instanceof DocumentTouch) { | |
var activeElement = null, | |
clearActive = function() { | |
if (activeElement) { | |
activeElement.classList.remove(activeClass); | |
activeElement = false; | |
} | |
}, | |
setActive = function(e) { |
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> | |
<head></head> | |
<body> | |
<!-- All your kewl content goes here --> | |
<!-- Append javascript programatically so we don't make needless http requests --> | |
<script> | |
(function(){ | |
var goodBrowser = function() { |
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
#################### | |
# GZIP COMPRESSION # | |
#################### | |
SetOutputFilter DEFLATE | |
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html | |
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip |
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
##### CACHING STUFF ##### | |
# 1 YEAR | |
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"> | |
Header set Cache-Control "max-age=31536000, public" | |
</FilesMatch> | |
# 1 WEEK | |
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$"> |
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
/* I didn't write this snippet but I can't remeber where I found it. PLMK if you know who the original author is :) */ | |
(function($) { | |
$.fn.uncomment = function(recurse) { | |
$(this).contents().each(function() { | |
if (this.hasChildNodes()) { | |
$(this).uncomment(recurse); | |
} else if (this.nodeType == 8) { | |
// Need to "evaluate" the HTML content, | |
// otherwise simple text won't replace |
NewerOlder