searchViz 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module SearchViz
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -56,6 +56,8 @@ HashDataLoad = function(path, hashData, pageId, q, opt) {
56
56
  }
57
57
  };
58
58
 
59
+
60
+ // Solution From: OrganicPanda, Link: http://stackoverflow.com/a/4218074
59
61
  hashUrlParse = function(args) {
60
62
  var i, key, output;
61
63
  output = {};
@@ -135,3 +137,21 @@ AjaxGet = function(id, callback) {
135
137
  }
136
138
  });
137
139
  };
140
+
141
+
142
+ // Solution From: Luca Matteis, Link: http://stackoverflow.com/a/523287
143
+
144
+ var urlParam;
145
+
146
+ urlParam = function(name) {
147
+ var regex, regexS, results;
148
+ name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
149
+ regexS = "[\\?&]" + name + "=([^&#]*)";
150
+ regex = new RegExp(regexS);
151
+ results = regex.exec(window.location.href);
152
+ if (results == null) {
153
+ return "";
154
+ } else {
155
+ return results[1];
156
+ }
157
+ };
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchViz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-25 00:00:00.000000000 Z
12
+ date: 2013-01-31 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Write a gem description
15
15
  email: