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
<!-- DNS Prefetch in Chrome, Fx, IE 9/10 | |
s. http://calendar.perfplanet.com/2012/speed-up-your-site-using-prefetching/ & | |
http://www.buyog.com/code/post/improve-web-perf-with-dns-prefetch | |
mobile especially --> | |
<link href="//my.domain.com" rel="dns-prefetch" /> | |
<link href="http://my.domain.com/" rel="prefetch" /> <!-- IE9 only --> |
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
// Original code from http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ | |
var metas = document.getElementsByTagName('meta'); | |
var i; | |
if (navigator.userAgent.match(/iPhone/i)) { | |
for (i=0; i<metas.length; i++) { | |
if (metas[i].name == "viewport") { | |
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; | |
} | |
} |
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
template.ellipsis { | |
-ms-text-overflow: ellipsis; | |
-o-text-overflow: ellipsis; | |
text-overflow: ellipsis; | |
/*-moz-binding: url('/stylesheets/xml/ellipsis.xml#ellipsis');*/ | |
white-space: nowrap; | |
overflow: hidden; | |
} |
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 echo get_permalink(icl_object_id(1, 'page', true)); ?> |
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
[placeholder]:focus::-webkit-input-placeholder { | |
color: transparent; | |
} |
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
<script> | |
/** | |
* Remove borders on iFrames foremost in IE @DOCTYPE HTML5 | |
s. http://stackoverflow.com/a/8979062/1696030 | |
*/ | |
if (window.document.getElementsByTagName("iframe")) { | |
var iFrameElements = window.document.getElementsByTagName("iframe"); | |
for (var i = 0; i < iFrameElements.length; i++) { | |
iFrameElements[i].frameBorder="0"; // For other browsers. |
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 only screen | |
and (-webkit-min-device-pixel-ratio: 1.3), | |
only screen | |
and (min--moz-device-pixel-ratio: 1.3), | |
only screen | |
and (-o-min-device-pixel-ratio: 2.6/2), /* returns 1.3, see also Dev.Opera */ | |
only screen | |
and (min-device-pixel-ratio: 1.3), | |
only screen | |
and (min-resolution: 160dpi), /* alternatively 124.8dpi, see http://www.brettjankord.com/2012/11/28/cross-browser-retinahigh-resolution-media-queries/ */ |
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
ga('set', 'anonymizeIp', true); |
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
Capture Image: <input type="file" accept="image/*" id="capture" capture="camera" /> | |
Capture Audio: <input type="file" accept="audio/*" id="capture" capture="microphone" /> | |
Capture Video: <input type="file" accept="video/*" id="capture" capture="camcorder" /> |
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
$color: '#FFF'; | |
.selector { | |
background: unquote($color) url('/img/file.png'); | |
} |
OlderNewer