I hereby claim:
- I am joshje on github.
- I am joshje (https://keybase.io/joshje) on keybase.
- I have a public key whose fingerprint is 3224 62D2 9BFD 69ED 9312 2D02 4A47 F6D0 7BB0 495D
To claim this, I am signing this object:
function supports(prop) { | |
var div = document.createElement('div'), | |
vendors = ['Khtml','Ms','O','Moz','Webkit'], | |
len = vendors.length; | |
if (prop in div.style) return true; | |
var prop = prop.replace(/^[a-z]/, function(val) { | |
return val.toUpperCase(); | |
}); | |
while(len--) { | |
if ( vendors[len] + prop in div.style ) return true; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Base60 Converter</title> | |
</head> | |
<body> | |
<p><label for="n">Number</label><input id="n"> → <label for="s">Base 60</label><input id="s"></p> | |
<script> | |
ni = document.getElementById('n'); |
function async(url) { | |
var a = document.createElement('script'); | |
a.async = true; | |
a.src = url; | |
var b = document.getElementsByTagName('script')[0]; | |
b.parentNode.insertBefore(a, b); | |
} |
// Uncompressed: | |
(function() { | |
var els = document.querySelectorAll('[title]'); | |
for (var i=0,len=els.length;i<len;++i) { | |
var el = els[i]; | |
if (el.title!='') { | |
el.innerHTML+=' <span style="background:#EEE;color:#333;padding:2px;font-weight:normal;font-style:normal">'+el.title+'</span>'; | |
el.removeAttribute('title'); | |
} | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Opentype Test</title> | |
<style> | |
span.opentype-test { | |
font-family: Corbel; | |
font-size: 100px; | |
position: absolute; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script> | |
function async(url) { | |
var a = document.createElement('script'); | |
a.async = true; | |
a.src = url; | |
var b = document.getElementsByTagName('script')[0]; |
(function() { | |
var l = document.querySelectorAll('.prodInfoContainer a'); | |
for (i=0; i<l.length; i++) { | |
s = document.createElement('span'); | |
s.innerHTML = l[i].href.replace(/[^0-9]/,'') + '<br>'; | |
l[i].appendChild(s); | |
} | |
}(); |
(function() { | |
var codeBlocks = document.getElementsByTagName('pre'), | |
codeLines = 0, | |
body = document.getElementsByTagName('body')[0], | |
text = function(el) { | |
if (el.innerText) return el.innerText; | |
return el.textContent; | |
}; | |
var wordCount = text(body).split(' ').length; |
I hereby claim:
To claim this, I am signing this object:
// Make close icons always visible | |
.tab-bar .tab, | |
.tab-bar .tab.active { | |
.title { | |
padding-right: 20px; | |
} | |
.close-icon { | |
transform: scale(1); |