made with requirebin
Last active
August 29, 2015 14:17
-
-
Save spirinvladimir/1c31a8233664d7071b04 to your computer and use it in GitHub Desktop.
requirebin sketch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
platform: 'Android', | |
url: 'https://play.google.com/store/apps/details?id=de.schildbach.oeffi' | |
}, | |
{ | |
platform: 'iPhone', | |
url: 'https://itunes.apple.com/app/id378458261' | |
} | |
].forEach(function (o) { | |
if ((new RegExp(o.platform, 'i')).test(navigator.userAgent)) { | |
document.body.innerHTML = ('App on ' + o.platform + ' market').link(o.url); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{platform:"Android",url:"https://play.google.com/store/apps/details?id=de.schildbach.oeffi"},{platform:"iPhone",url:"https://itunes.apple.com/app/id378458261"}].forEach(function(o){if(new RegExp(o.platform,"i").test(navigator.userAgent)){document.body.innerHTML=("App on "+o.platform+" market").link(o.url)}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "requirebin-sketch", | |
"version": "1.0.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- contents of this file will be placed inside the <body> --> | |
<h1>Check this code on mobile</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- contents of this file will be placed inside the <head> --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment