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 qs = (function(a) { | |
if (a == "") return {}; | |
var b = {}; | |
for (var i = 0; i < a.length; ++i) | |
{ | |
var p=a[i].split('=', 2); | |
if (p.length == 1) | |
b[p[0]] = ""; | |
else | |
b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " ")); |
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 cssStyleDeclaration = window.getComputedStyle(document.body, null), |
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
if( !Function.prototype.bind ){ | |
Function.prototype.bind = function( obj ){ | |
var args =[], that = this; | |
if( arguments.length > 1){ | |
args = [].slice.call(arguments , 2); | |
} | |
return function (arg){ | |
return that.apply( obj , args.cancat([].slice.call.arg)); | |
} |