If you want to redirect your site's mobile visitors to the mobile version of the casino, here's what you can do.
- Insert this code into your site:
- Add this code to your mob.js script:
<script type='text/javascript'>var mob_btag = '<YOUR BTAG GOES HERE>;mob_name = '<ADVERTISING MESSAGE GOES HERE>';</script><script type='text/javascript' src='http://<YOUR JAVASCRIPT'S STORAGE URL GOES HERE>/mob.js'></script>
(function (){
var message = mob_name;
var btag=mob_btag;
var isMobile = {
LandingPage: '<URL generated by MyCasinoPartners for any banner you selected>',
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() {
return navigator.userAgent.match(/Opera Mini/i);
},
Windows: function() {
return navigator.userAgent.match(/IEMobile/i);
},
any: function() {
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
},
compatible: function() {
return (isMobile.Android() || isMobile.iOS());
},
runPopup: function(message){
if(confirm(message)){window.location=isMobile.LandingPage;}
}
};
setTimeout(function(){
if(isMobile.any())
{
isMobile.runPopup(message);
}
},500);
}(window));