searchViz 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/searchViz/version.rb +1 -1
- data/vendor/assets/javascripts/searchViz.js +20 -0
- metadata +2 -2
data/lib/searchViz/version.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2013-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Write a gem description
|
15
15
|
email:
|