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
$('li:last-child, th:last-child, td:last-child, tr:last-child').addClass('last-child'); | |
$('li:first-child, th:first-child, td:first-child, tr:first-child').addClass('first-child'); | |
$('input').addClass(function() { return $(this).attr('type'); }); | |
$('input[readonly]').addClass('readonly'); | |
$('th').addClass(function() { return $(this).attr('scope'); }); | |
if($.browser.msie) { | |
try { | |
document.execCommand("BackgroundImageCache", false, true); | |
} catch(err) {} |
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
$.fn.toggleText = function(a, b) { | |
return this.text(a == this.text() ? b : a); | |
}; |
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
$.extend($.support, { | |
borderRadius: function() { | |
var s = document.createElement("div").style; | |
return typeof s.MozBorderRadius == 'string' || | |
typeof s.WebkitBorderRadius == 'string' || | |
typeof s.KhtmlBorderRadius == 'string' || | |
typeof s.borderRadius == 'string'; | |
}() | |
}); |
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
$.fn.corners = function() { | |
return this.each(function() { | |
var self = $(this); | |
self.append($('<span class="corner tl"></span><span class="corner tr"></span><span class="corner bl"></span><span class="corner br"></span>')); | |
if( self.css('position') == 'static' ) { self.addClass('relative'); } | |
}); | |
}; |
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
$.fn.equalHeights = function() { | |
/* Create an array of element heights */ | |
var heights = this.map(function() { | |
return $(this).height(); | |
}).get(); | |
/* Find the tallest */ | |
var max = Math.max.apply(null, heights); | |
/* Set all elements to be equal height */ |
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
$.fn.detectTextResize = function() { | |
return this.each(function() { | |
var el = $(this); | |
var initialSize = el.css('font-size'); | |
setInterval(function(){ | |
var currentSize = el.css('font-size'); | |
if(currentSize != initialSize){ | |
initialSize = currentSize; | |
el.trigger('textResized'); | |
} |
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
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
BrowserMatch chromeframe gcf | |
Header append X-UA-Compatible "chrome=1" env=gcf | |
</IfModule> | |
</IfModule> |
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
// Need to delay external links to allow analytics to fire | |
$('a[href^="http"]').on('click', function(e){ | |
e.preventDefault(); | |
_gaq.push(['_trackEvent', 'Outbound', 'click', this.href]); | |
window.setTimeout(function() { | |
window.location = arguments[0]; | |
}, 200, this.href); | |
}); |
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
.font-size(@sizeValue){ | |
@remValue: @sizeValue / 10; | |
@pxValue: (@sizeValue); | |
font-size: ~"@{pxValue}px"; | |
font-size: ~"@{remValue}rem"; | |
} | |
.line-height(@sizeValue){ | |
@remValue: @sizeValue / 10; | |
@pxValue: (@sizeValue); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.snadden.apacheConfMonitor</string> | |
<key>KeepAlive</key> | |
<true/> | |
<key>RunAtLoad</key> | |
<true/> |
OlderNewer