Skip to content

Instantly share code, notes, and snippets.

@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and ( min--moz-device-pixel-ratio: 1.5), only screen and ( -o-min-device-pixel-ratio: 3/2), only screen and ( min-device-pixel-ratio: 1.5), only screen and (min-resolution: 192dpi) {
/* Style Rules */
}
function QueryStringToJSON() {
var pairs = location.search.slice(1).split('&');
var result = {};
pairs.forEach(function(pair) {
pair = pair.split('=');
result[pair[0]] = decodeURIComponent(pair[1] || '');
});
return JSON.parse(JSON.stringify(result));
(function() {
var newScript, load,
firstScriptTag = document.getElementsByTagName('script')[0];
load = function load(url) {
newScript = document.createElement('script');
newScript.async = true;
newScript.src = url;
firstScriptTag.parentNode.insertBefore(newScript, firstScriptTag);