tmin 0.0.5 → 0.0.6
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/Gemfile.lock +1 -1
- data/lib/tmin/server.rb +1 -0
- data/lib/tmin/version.rb +1 -1
- data/tmin-0.0.5.gem +0 -0
- data/views/redirect.haml +17 -22
- metadata +5 -3
data/Gemfile.lock
CHANGED
data/lib/tmin/server.rb
CHANGED
data/lib/tmin/version.rb
CHANGED
data/tmin-0.0.5.gem
ADDED
|
Binary file
|
data/views/redirect.haml
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
%meta{:content => "width=device-width", :name => "viewport"}/
|
|
4
|
-
%body
|
|
5
|
-
%div#applink1 <a href="#{@url.url}">Opening the awesome event now!</a>
|
|
1
|
+
<a id="applink1" href="#{@url.url}">Opening the awesome event now!</a>
|
|
2
|
+
|
|
6
3
|
:javascript
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
var appstorefail = "itms://itunes.apple.com/us/app/facebook/id284882215?mt=8&uo=6";
|
|
5
|
+
function applink(fail){
|
|
6
|
+
return function(){
|
|
7
|
+
var clickedAt = +new Date;
|
|
8
|
+
// During tests on 3g/3gs this timeout fires immediately if less than 500ms.
|
|
9
|
+
setTimeout(function(){
|
|
10
|
+
// To avoid failing on return to MobileSafari, ensure freshness!
|
|
11
|
+
if (+new Date - clickedAt < 2000){
|
|
12
|
+
window.location = fail;
|
|
13
|
+
}
|
|
14
|
+
}, 500);
|
|
18
15
|
};
|
|
19
|
-
|
|
20
|
-
document.getElementById("applink1").
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
$('#applink1').trigger('click');
|
|
24
|
-
});
|
|
16
|
+
}
|
|
17
|
+
document.getElementById("applink1").onclick = applink(appstorefail);
|
|
18
|
+
var button = document.getElementById("applink1")
|
|
19
|
+
button.click()
|
|
25
20
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tmin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.0.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- drobs
|
|
@@ -257,6 +257,8 @@ files:
|
|
|
257
257
|
- tmin-0.0.2.gem
|
|
258
258
|
- tmin-0.0.3.gem
|
|
259
259
|
- tmin-0.0.4.gem
|
|
260
|
+
- tmin-0.0.5.gem
|
|
261
|
+
- tmin-0.0.6.gem
|
|
260
262
|
- tmin.gemspec
|
|
261
263
|
- views/error.haml
|
|
262
264
|
- views/index.haml
|