got rid of pop up
This commit is contained in:
parent
e2d9458e66
commit
c47db6b306
2 changed files with 1 additions and 38 deletions
|
@ -138,43 +138,7 @@ function hideText() {
|
|||
}
|
||||
|
||||
function gameOverDisplay() {
|
||||
if(Cookies.get("visited") == null){
|
||||
settings.ending_block=true;
|
||||
if(settings.os == "android"){
|
||||
sweetAlert({
|
||||
title: "Hey we'll only bother you once ",
|
||||
text:"We do have an Android app!",
|
||||
showCancelButton: true,
|
||||
closeOnCancel: true ,
|
||||
confirmButtonText: "Take me to it!",
|
||||
},function(isConfirm){
|
||||
if(isConfirm){
|
||||
window.location.href="https://play.google.com/store/apps/details?id=com.hextris.hextris"
|
||||
}
|
||||
else{
|
||||
settings.end_block=false;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
if(settings.os == "ios"){
|
||||
sweetAlert({
|
||||
title: "Hey we'll only bother you once ",
|
||||
text:"We do have an IOS app!",
|
||||
showCancelButton: true,
|
||||
closeOnCancel: true ,
|
||||
confirmButtonText: "Take me to it!",
|
||||
},function(isConfirm){
|
||||
if(isConfirm){
|
||||
window.location.href="https://itunes.apple.com/us/app/hextris/id903769553?mt=8";
|
||||
}
|
||||
else{
|
||||
settings.end_block=false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
settings.ending_block=false;
|
||||
Cookies.set("visited",true);
|
||||
var c = document.getElementById("canvas");
|
||||
|
|
1
vendor/sweet-alert.css
vendored
1
vendor/sweet-alert.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue