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
/* Fonts based on CTC Aspire's post, A List of 36 Web Safe fonts: http://www.ctc-aspire.co.uk/blog-post-36-web-safe-fonts-157-34.html */ | |
label em { | |
color: #f00; | |
font-family: "Franklin Gothic Medium", "Courier New", monospace; | |
} | |
label em { | |
color: #f00; | |
font-family: "Myriad Pro", Georgia, serif; |
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
* | |
* * | |
* * | |
* * | |
* 45° * | |
* * | |
* * * * * * * | |
A Fortyfifth Degree Project |
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
<img class="img" src="http://placekitten.com/320/480" alt="" data-big="http://placekitten.com/1024/768" /> |
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
<?php | |
// Code coming soon | |
?> |
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
navigator.__defineGetter__('userAgent', function(){ | |
return 'foo' // customized user agent | |
}); | |
alert(navigator.userAgent); // 'foo' |
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
<head> | |
<style type="text/css"> | |
@media screen and (min-width:321px){ | |
picture source { | |
content: attr({filename}-m.{ext}, url); | |
} | |
} | |
@media screen and (min-width:641px){ |
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
//http://v4.thewatchmakerproject.com/blog/how-to-fix-the-broken-ipad-form-label-click-issue/ | |
$(document).ready(function () { | |
if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/iPad/i)) { | |
$('label[for]').click(function () { | |
var el = $(this).attr('for'); | |
if ($('#' + el + '[type=radio], #' + el + '[type=checkbox]').attr('selected', !$('#' + el).attr('selected'))) { | |
return; | |
} else { | |
$('#' + el)[0].focus(); |
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
.foo { | |
color: black; | |
} | |
.lte-ie8 .foo { | |
color: green; /* IE8 and older */ | |
*color: blue; /* IE7 and older */ | |
_color: red; /* IE6 and older */ | |
} |
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
var ieCheck = document.createElement('div'); | |
ieCheck.innerHTML = '<!--[if lt IE 7]>IE6<![endif]--><!--[if IE 7]>IE7<![endif]--><!--[if IE 8]>IE8<![endif]--><!--[if IE 9]>IE9<![endif]-->'; | |
if (ieCheck.innerHTML === 'IE6') { | |
alert('IE6 or lower'); | |
} else if (ieCheck.innerHTML === 'IE7') { | |
alert('IE7'); | |
} else if (ieCheck.innerHTML === 'IE8') { | |
alert('IE8'); |
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
// retina/high resolution check | |
var retina = function(){ | |
if(window.devicePixelRatio){ | |
if(window.devicePixelRatio >= 2){ | |
return true; | |
} | |
} else if(window.matchMedia){ | |
if (window.matchMedia('(min-resolution: 192dpi)').matches){ | |
return true; |