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
$(window).resize(function() { | |
var width = $(window).width(); | |
if (width < 960) { | |
// Do Something | |
} | |
else { | |
//Do Something Else | |
} | |
}); |
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
<!-- iPhone 2G, 3G, 3GS Portrait --> | |
@media only screen and (device-width: 320px) and (orientation: portrait) and not (-webkit-min-device-pixel-ratio: 2) { | |
/* CSS3 Rules for iPhone in Portrait Orientation */ | |
} | |
<!-- iPhone 2G, 3G, 3GS Landscape --> | |
@media only screen and (device-width: 480px) and (orientation: landscape) and not (-webkit-min-device-pixel-ratio: 2) { | |
/* CSS3 Rules for iPhone in Landscape Orientation */ | |
} |
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
[if {!} browser] | |
[if {!} browser version] | |
[if {!} condition browser version] | |
! - indicates negation of the statement (i.e. NOT) - optional | |
browser - states which browser the statement targets | |
'IE' - Internet Explorer | |
'Gecko' - Gecko based browsers (Firefox, Camino etc) | |
'Webkit' - Webkit based browsers (Safari, Chrome, Shiira etc) |
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
@-moz-document url-prefix() { | |
// css goes here | |
} |
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
/* iPads 1 & 2 (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 768px) | |
and (max-device-width : 1024px) { | |
/* css goes here */ | |
} | |
/* iPads 1 & 2 (landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 768px) |
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
<?php | |
/** | |
* Template Name: Sitemap | |
*/ | |
?> | |
<h2 id="authors">Authors</h2> | |
<ul> | |
<?php | |
wp_list_authors( |
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
@media \0screen {img { width: auto }} |
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 init() { | |
$('#general').on('submit', function(e) { | |
pass = true; | |
$('input, textarea', this).removeClass('error'); | |
$('input, textarea', this).each(function() { | |
if ($(this).val() === '') { | |
$(this).addClass('error'); | |
pass = false; | |
} |
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 isSafari() { | |
if (BrowserDetect.browser === 'Safari' && BrowserDetect.version < 6){ //detects safari versions less than 6 | |
// JS goes here | |
if(window.devicePixelRatio){ | |
} |
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
img { | |
-moz-transform: scaleX(-1); | |
-o-transform: scaleX(-1); | |
-webkit-transform: scaleX(-1); | |
transform: scaleX(-1); | |
filter: FlipH; | |
-ms-filter: "FlipH"; | |
} |
OlderNewer