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
| function isSafari() { | |
| if (BrowserDetect.browser === 'Safari' && BrowserDetect.version < 6){ //detects safari versions less than 6 | |
| // JS goes here | |
| if(window.devicePixelRatio){ | |
| } |
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
| 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 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
| @media \0screen {img { width: auto }} |
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
| function cc_mime_types( $mimes ){ | |
| $mimes['svg'] = 'image/svg+xml'; | |
| return $mimes; | |
| } | |
| add_filter( 'upload_mimes', 'cc_mime_types' ); |
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 | |
| /** | |
| * Template Name: Sitemap | |
| */ | |
| ?> | |
| <h2 id="authors">Authors</h2> | |
| <ul> | |
| <?php | |
| wp_list_authors( |
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
| Calling Link: | |
| <a href="tel:1-408-555-5555">1-408-555-5555</a> | |
| Texting Link: | |
| <a href="sms:1-408-555-1212">New SMS Message</a> |
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
| /* 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 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
| @-moz-document url-prefix() { | |
| // css goes here | |
| } |
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
| [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 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
| <!-- 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 */ | |
| } |