diff options
author | Git <git@what.cd> | 2013-07-01 08:01:00 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2013-07-01 08:01:00 +0000 |
commit | a0a084fe342ef72c4903dff1d4cc5c9d35dd3c09 (patch) | |
tree | c950a49c714b2e33e32034961cbf2b67f83fab19 /static/functions/script_start.js | |
parent | 649323668c79e2f40c7faf0f693302c56110c22b (diff) | |
download | Gazelle-a0a084fe342ef72c4903dff1d4cc5c9d35dd3c09.zip Gazelle-a0a084fe342ef72c4903dff1d4cc5c9d35dd3c09.tar.gz Gazelle-a0a084fe342ef72c4903dff1d4cc5c9d35dd3c09.tar.bz2 |
Empty commit
Diffstat (limited to 'static/functions/script_start.js')
-rw-r--r-- | static/functions/script_start.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/static/functions/script_start.js b/static/functions/script_start.js index ddbbe8e..0d27c2c 100644 --- a/static/functions/script_start.js +++ b/static/functions/script_start.js @@ -194,6 +194,22 @@ var util = function (selector, context) { return new util.fn.init(selector, context); } +function URL() { + var path = window.location.pathname.split('/'); + var path = path[path.length - 1].split(".")[0]; + var splitted = window.location.search.substr(1).split("&"); + var query = {}; + for (var i = 0; i < splitted.length; i++) { + var q = splitted[i].split("="); + query[q[0]] = q[1]; + }; + + var response = new Array(); + response['path'] = path; + response['query'] = query; + return response; +} + jQuery.extend(jQuery.prototype, { results: function () { return this.size(); |