1let Redirect = { 2 redirected: false, 3 variablesObject: { 4 one:{variable:'nbrOwned', obj:'clicks'} 5 }, 6 7 onload(){ 8 if ((Load.found == true) && ('redirectdata' in Load.data)){ 9 this.redirected = Load.data.redirectdata.redirected 10 } 11 this.redirected = false //Removing soon 12 if ((this.redirected == false)){ 13 let urlParams = new URLSearchParams(location.search) 14 let param 15 for (const [key, value] of urlParams){ 16 if (key in this.variablesObject){ 17 param = this.variablesObject[key] 18 19 if (param.obj == 'clicks'){ 20 this.updateClicks(param,value) 21 } else if (param.obj == 'runtime'){ 22 this.updateRuntime(param,value) 23 } else if (param.obj == 'animations'){ 24 this.updateAnimations(param,value) 25 } else if (param.obj == 'autoclickers'){ 26 this.updateAutoclickers(param,value) 27 } 28 } 29 } 30 this.redirected = true 31 this.updateScreen() 32 } 33 }, 34 35 updateClicks(param, value){ 36 if (Clicks[param.variable] < value){ 37 Clicks[param.variable] = Number(value) 38 } 39 }, 40 41 updateRuntime(param,value){ 42 if (Runtime[param.variable] < Number(value)){ 43 Runtime[param.variable].time = Number(value) 44 } 45 }, 46 47 updateAnimations(param,value){ 48 Animations[param.variable] = value 49 }, 50 51 updateAutoclickers(param,value){ 52 if (Autoclickers.nbrOwned[param.variable].number < Number(value)){ 53 Autoclickers.nbrOwned[param.variable].number = Number(value) 54 if (Number(value) > 0){ 55 Autoclickers.nbrOwned[param.variable].showing = true 56 } else { 57 Autoclickers.nbrOwned[param.variable].showing = false 58 } 59 } 60 }, 61 62 updateScreen(){ 63 main.update() 64 document.getElementById('mouseupgrades').innerHTML = 'Mouse Rating: '+ (Clicks.mouseUpgrades) 65 document.getElementById('clickbutton').title = 'Click Me! (+' + (1*Clicks.mouseUpgrades) + ')' 66 Autoclickers.updateClicksPerOneTenthSec() 67 Autoclickers.updateClicksPerSec() 68 Runtime.updateRun(Runtime.currentrun.time, 'currentrun') 69 } 70}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.