v2.021 beta (modified)
Modified to remove http https switching feature for the website to work.
This commit is contained in:
parent
ec72aeb1b4
commit
c133f6bed7
10
js/main.js
10
js/main.js
|
@ -569,7 +569,7 @@ Game.Launch=function()
|
|||
Game.version=VERSION;
|
||||
Game.beta=BETA;
|
||||
if (window.location.href.indexOf('/beta')>-1) Game.beta=1;
|
||||
Game.https=(location.protocol!='https:')?false:true;
|
||||
//Game.https=(location.protocol!='https:')?false:true;
|
||||
Game.mobile=0;
|
||||
Game.touchEvents=0;
|
||||
//if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) Game.mobile=1;
|
||||
|
@ -1160,7 +1160,7 @@ Game.Launch=function()
|
|||
|
||||
Game.SaveTo='CookieClickerGame';
|
||||
if (Game.beta) Game.SaveTo='CookieClickerGameBeta';
|
||||
l('versionNumber').innerHTML='v. '+Game.version+'<div id="httpsSwitch" style="cursor:pointer;display:inline-block;background:url(img/'+(Game.https?'lockOn':'lockOff')+'.png);width:16px;height:16px;position:relative;top:4px;left:0px;margin:0px -2px;"></div>'+(Game.beta?' <span style="color:#ff0;">beta</span>':'');
|
||||
l('versionNumber').innerHTML='v. '+Game.version+(Game.beta?' <span style="color:#ff0;">beta</span>':'');
|
||||
|
||||
if (Game.beta) {var me=l('linkVersionBeta');me.parentNode.removeChild(me);}
|
||||
else if (Game.version==1.0466) {var me=l('linkVersionOld');me.parentNode.removeChild(me);}
|
||||
|
@ -1664,13 +1664,13 @@ Game.Launch=function()
|
|||
}
|
||||
|
||||
|
||||
|
||||
Game.attachTooltip(l('httpsSwitch'),'<div style="padding:8px;width:350px;text-align:center;font-size:11px;">You are currently playing Cookie Clicker on the <b>'+(Game.https?'HTTPS':'HTTP')+'</b> protocol.<br>The <b>'+(Game.https?'HTTP':'HTTPS')+'</b> version uses a different save slot than this one.<br>Click this lock to reload the page and switch to the <b>'+(Game.https?'HTTP':'HTTPS')+'</b> version!</div>','this');
|
||||
//Removed for the website to work.
|
||||
/*Game.attachTooltip(l('httpsSwitch'),'<div style="padding:8px;width:350px;text-align:center;font-size:11px;">You are currently playing Cookie Clicker on the <b>'+(Game.https?'HTTPS':'HTTP')+'</b> protocol.<br>The <b>'+(Game.https?'HTTP':'HTTPS')+'</b> version uses a different save slot than this one.<br>Click this lock to reload the page and switch to the <b>'+(Game.https?'HTTP':'HTTPS')+'</b> version!</div>','this');
|
||||
AddEvent(l('httpsSwitch'),'click',function(){
|
||||
PlaySound('snd/pop'+Math.floor(Math.random()*3+1)+'.mp3',0.75);
|
||||
if (location.protocol=='https:') location.href='http:'+window.location.href.substring(window.location.protocol.length);
|
||||
else if (location.protocol=='http:') location.href='https:'+window.location.href.substring(window.location.protocol.length);
|
||||
});
|
||||
});*/
|
||||
|
||||
Game.attachTooltip(l('topbarOrteil'),'<div style="padding:8px;width:250px;text-align:center;">Back to Orteil\'s subdomain!<br>Lots of other games in there!</div>','this');
|
||||
Game.attachTooltip(l('topbarDashnet'),'<div style="padding:8px;width:250px;text-align:center;">Back to our homepage!</div>','this');
|
||||
|
|
Loading…
Reference in New Issue
Block a user