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 build_query = function (obj, num_prefix, temp_key) { | |
var output_string = [] | |
Object.keys(obj).forEach(function (val) { | |
var key = val; | |
num_prefix && !isNaN(key) ? key = num_prefix + key : '' |
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>Hello</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
Hello World | |
</body> |
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
// public domain, use it for whatever | |
// returns "calc", "-moz-calc", etc | |
// (no -ms because they already support it non-prefixed) | |
function prefixedCalc () { | |
var prefixes = ["","-webkit-","-moz-","-o-"], el | |
for (var i = 0; i < prefixes.length; i++) { | |
el = document.createElement('div') | |
el.style.cssText = "width:" + prefixes[i] + "calc(9px)" | |
if (el.style.length) return prefixes[i] + "calc" |
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
Author: Mathias Bynens <http://mathiasbynens.be/> | |
This code is licensed under the WTFPL. Feel free to relicense as needed. |
NewerOlder