8,236
edits
Line 3: | Line 3: | ||
/* "SmartBanner" dialog box for Android */ | /* "SmartBanner" dialog box for Android */ | ||
if (navigator.userAgent.toLowerCase().indexOf("android") > -1) { | if (navigator.userAgent.toLowerCase().indexOf("android") > -1) { | ||
if ($.cookie("smartBanner")) { | |||
} else { | |||
if (confirm("Install Kiwix on your device?")) { | if (confirm("Install Kiwix on your device?")) { | ||
window.location.href= "market://details?id=org.kiwix.kiwixmobile"; | window.location.href= "market://details?id=org.kiwix.kiwixmobile"; | ||
} | } | ||
$.cookie("smartBanner", true, { expires : 60 }); | $.cookie("smartBanner", true, { expires : 60 }); | ||
} | |||
} | } |
edits