added links to different mobile versions
This commit is contained in:
parent
d5065de8bd
commit
7b01c37222
1 changed files with 10 additions and 4 deletions
|
@ -96,14 +96,20 @@ function toggleClass(element, active) {
|
|||
function showText(text) {
|
||||
var messages = {
|
||||
'paused': "<div class='centeredHeader unselectable'>Game Paused</div>",
|
||||
'pausedAndroid': "<div class='centeredHeader unselectable'>Game Paused</div><div class='unselectable centeredSubHeader' style='margin-top:50px;'><a href = 'market://details?id=com.hextris.hextrisadfree' target='_blank'>Don't like ads? Want to support the developer? Tap for the ad-free version.</a></div>",
|
||||
'start': "<div class='centeredHeader unselectable' style='line-height:80px;'>Press enter to start</div>",
|
||||
'pausedAndroid': "<div class='centeredHeader unselectable'>Game Paused</div><div class='unselectable centeredSubHeader' style='position:absolute;margin-left:-150px;left:50%;margin-top:20px;width:300px;font-size:16px;'><a href = 'https://play.google.com/store/apps/details?id=com.hextris.hextrisadfree' target='_blank'Want to support the developers? Don't like ads? Tap for Hextris ad-free!</a></div>",
|
||||
'pausediOS': "<div class='centeredHeader unselectable'>Game Paused</div><div class='unselectable centeredSubHeader' style='position:absolute;margin-left:-150px;left:50%;margin-top:20px;width:300px;font-size:16px;'><a href = 'https://itunes.apple.com/us/app/hextris-ad-free/id912895524?mt=8' target='_blank'>Want to support the developers? Don't like ads? Tap for Hextris ad-free!</a></div>",
|
||||
'pausedOther': "<div class='centeredHeader unselectable'>Game Paused</div><div class='unselectable centeredSubHeader' style='margin-top:10px;position:absolute;left:50%;margin-left:-190px;max-width:380px;font-size:18px;'><a href = 'http://hextris.github.io/' target='_blank'>Want to support the developers? Click here to buy one of the ad-free mobile versions!</a></div>",
|
||||
'start': "<div class='centeredHeader unselectable' style='line-height:80px;'>Press enter to start</div>"
|
||||
};
|
||||
|
||||
if (text == 'paused') {
|
||||
if (settings.os == 'android') {
|
||||
text = 'pausedAndroid';
|
||||
}
|
||||
text = 'pausedAndroid'
|
||||
} else if (settings.os == 'ios') {
|
||||
text = 'pausediOS'
|
||||
} else if (settings.platform == 'nonmobile') {
|
||||
text = 'pausedOther'
|
||||
}
|
||||
}
|
||||
|
||||
if (text == 'gameover') {
|
||||
|
|
Loading…
Reference in a new issue