tmin_test 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/firefly.sqlite3 +0 -0
- data/lib/tmin/version.rb +1 -1
- data/views/redirect.haml +10 -1
- metadata +1 -1
data/firefly.sqlite3
CHANGED
Binary file
|
data/lib/tmin/version.rb
CHANGED
data/views/redirect.haml
CHANGED
@@ -35,10 +35,19 @@
|
|
35
35
|
match = host.match(regexp);
|
36
36
|
|
37
37
|
if(match) {
|
38
|
+
function simulateClick(elId) {
|
39
|
+
var evt;
|
40
|
+
var el = document.getElementById(elId);
|
41
|
+
if (document.createEvent) {
|
42
|
+
evt = document.createEvent("MouseEvents");
|
43
|
+
evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
44
|
+
}
|
45
|
+
(evt) ? el.dispatchEvent(evt) : (el.click && el.click());
|
46
|
+
}
|
47
|
+
var button = document.getElementById("applink1")
|
38
48
|
simulateClick("applink1");
|
39
49
|
}
|
40
50
|
else {
|
41
|
-
|
42
51
|
document.getElementById("applink1").onclick = applink(appstorefail);
|
43
52
|
var button = document.getElementById("applink1")
|
44
53
|
simulateClick("applink1");
|