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
<!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'); |
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 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; |
NewerOlder