- [att^=val] – the “begins with” selector
- [att$=val] – the “ends with” selector
- [att=val]* – the “contains” selector
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
/* Pure CSS Icons (Folder/File) */ | |
body{text-align:center;background:#eff3f6;margin:2em;} | |
i{display:inline-block;position:relative;margin:0 .1em;} | |
i::before{content:"";position:absolute;display:block;} | |
.folder{ | |
width:14px; | |
height:10px; | |
background-image:linear-gradient(#a7c3d9, #709fc2); | |
box-shadow:inset 0 1px 0 #c6d9e7, 0 1px 0 #bbbfc3; |
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
/* <i> Cloud */ | |
html { | |
min-height: 100%; | |
background: linear-gradient(#b4bcbf, #fff); | |
} | |
.cloud { | |
display: inline-block; | |
background-color: #fff; |
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
// addEventListener polyfill 1.0 / Eirik Backer / MIT Licence | |
(function(win, doc){ | |
if(win.addEventListener)return; //No need to polyfill | |
function docHijack(p){var old = doc[p];doc[p] = function(v){return addListen(old(v))}} | |
function addEvent(on, fn, self){ | |
return (self = this).attachEvent('on' + on, function(e){ | |
var e = e || win.event; | |
e.preventDefault = e.preventDefault || function(){e.returnValue = false} | |
e.stopPropagation = e.stopPropagation || function(){e.cancelBubble = 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
yepnope({ | |
test : window.matchMedia("(max-device-width: 640px)").matches, | |
yep : "", | |
nope : "slider.js" | |
}); |
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
<a href=http://github.com>GitHub</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
$(function() { | |
$('a').not('[href*=clientdomain\\.com]').attr('target', '_blank'); | |
}); |
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
<div id="lastest-video" class="hidden"> | |
.... | |
</div> | |
<a href="#lastest-video" class="btn btn-allwidth expand-trigger" data-expand-text="view more latest videos +" data-collapse-text="collapse latest video -"> | |
view more latest videos + | |
</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
var testKey = 'qeTest', storage = window.sessionStorage; | |
try { | |
// Try and catch quota exceeded errors | |
storage.setItem(testKey, '1'); | |
storage.removeItem(testKey); | |
} catch (error) { | |
if (error.code === DOMException.QUOTA_EXCEEDED_ERR && storage.length === 0) | |
alert('Hello, private browser.'); |
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
_.templateSettings = { interpolate : /\{\{(.+?)\}\}/g }; |