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
// Added this js to give the HTML tag IE detection (e.g. ie7). | |
if($.browser.msie) | |
{ | |
$('html').addClass('ie' + ($.browser.version).slice(0,1)); | |
} |
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
// creates classes for these selector behaviors | |
$(":first-child").addClass('first-child'); | |
$(":last-child").addClass('last-child'); | |
// keep this in mind if you need to remove one | |
// of the previous classes from an element | |
$('.Email').removeClass('first-child') |
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
// adds ios class to html tag | |
jQuery(document).ready(function($){ | |
var deviceAgent = navigator.userAgent.toLowerCase(); | |
var agentID = deviceAgent.match(/(iphone|ipod|ipad)/); | |
if (agentID) { | |
$('html').addClass('ios'); | |
} | |
}); |
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
// Used to style ol li items when applied by a WYSIWYG editor. | |
$("#content ol li").each(function(){ | |
$(this).contents().wrap("<span>"); | |
}); |
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
// adds mobile browser class to html tag | |
var ua = navigator.userAgent.toLowerCase(); | |
function removeSpaces(ua) { | |
return ua.split(' ').join(''); | |
} | |
ua = removeSpaces(ua); | |
var iOS = ua.match(/(iphone|ipod|ipad)/); | |
if(iOS) { | |
$('html').addClass('ios'); | |
} |
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
.slideshow img { | |
background: transparent; | |
-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */ | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); /* IE6 & 7 */ | |
zoom: 1; | |
} |
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
# Will rewrite a dynamic URL to a static URL | |
RewriteRule /thing.*/stuff.html /new/location [R=301,L] |
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
.android #content >* { | |
background-image: url('http://d1xt3jhdg1opoa.cloudfront.net/transizr.gif'); | |
} |
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 { -webkit-text-size-adjust: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
/* This is magic, makes the slide look beautiful in ie8 */ | |
.ie8 slideshow-wrapper slide { | |
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=99)"; | |
} |
OlderNewer