mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-27 14:52:29 +08:00
Add link to Google Play
This commit is contained in:
+29
-2
@@ -135,8 +135,8 @@
|
|||||||
|
|
||||||
$('<span>')
|
$('<span>')
|
||||||
.addClass('appStore menuBtn')
|
.addClass('appStore menuBtn')
|
||||||
.text(_('app store.'))
|
.text(_('get the app.'))
|
||||||
.click(function() { window.open('https://itunes.apple.com/app/apple-store/id736683061?pt=2073437&ct=adrproper&mt=8'); })
|
.click(Engine.getApp)
|
||||||
.appendTo(menu);
|
.appendTo(menu);
|
||||||
|
|
||||||
$('<span>')
|
$('<span>')
|
||||||
@@ -403,6 +403,33 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getApp: function() {
|
||||||
|
Events.startEvent({
|
||||||
|
title: _('Get the App'),
|
||||||
|
scenes: {
|
||||||
|
start: {
|
||||||
|
text: [_('bring the room with you.')],
|
||||||
|
buttons: {
|
||||||
|
'ios': {
|
||||||
|
text: _('ios'),
|
||||||
|
nextScene: 'end',
|
||||||
|
onChoose: function () {
|
||||||
|
window.open('https://itunes.apple.com/app/apple-store/id736683061?pt=2073437&ct=adrproper&mt=8');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'android': {
|
||||||
|
text: _('android'),
|
||||||
|
nextScene: 'end',
|
||||||
|
onChoose: function() {
|
||||||
|
window.open('https://play.google.com/store/apps/details?id=com.yourcompany.adarkroom');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
share: function() {
|
share: function() {
|
||||||
Events.startEvent({
|
Events.startEvent({
|
||||||
title: _('Share'),
|
title: _('Share'),
|
||||||
|
|||||||
Reference in New Issue
Block a user