1let Runtime = { 2 currentrun: {time: 0, runString:''}, 3 runDays: 0, 4 runHours: 0, 5 runMinutes: 0, 6 runSeconds: 0, 7 runMilliseconds: 0, 8 timeDivisions: {runDays:86400, runHours:3600, runMinutes:60, runSeconds:1}, 9 oldnow: {value:0, set:false}, 10 now: {value:0}, 11 12 onload(){ 13 console.log('Data for runtime.js not found, changing to default values. If you have just prestiged, ignore this message.') 14 this.currentrun.time = 0 15 this.oldnow.set = false 16 }, 17 18 updateRun(newvalue, run){ 19 let value = newvalue 20 this[String(run)].time = value 21 22 for (const [key,seconds] of Object.entries(this.timeDivisions)){ 23 if (this[String(run)].time > seconds){ 24 this[String(key)] = Math.floor(value / seconds) 25 value %= seconds 26 } 27 } 28 29 this.runMilliseconds = (Math.floor(value*10)) 30 31 if (run == 'currentrun'){ 32 document.getElementById(String(run)).innerHTML = this[String(run)].runString + this.runDays + ':' + this.runHours + ':' + this.runMinutes + ':' + this.runSeconds + '.' + this.runMilliseconds 33 } 34 this.runDays = 0 35 this.runHours = 0 36 this.runMinutes = 0 37 this.runSeconds = 0 38 this.runMilliseconds = 0 39 }, 40 41 saveTime(){ 42 this.oldnow.value = new Date() 43 this.oldnow.set = true 44 this.now.value = 0 45 }, 46 47 getTimeDiff(){ 48 if (this.oldnow.set == true){ 49 this.now.value = new Date(); 50 timeDiff = this.now.value - this.oldnow.value 51 this.oldnow.value = 0 52 timeDiff /= 100 53 timeDiff = Math.floor(timeDiff) 54 timeDiff /= 10 55 this.currentrun.time += timeDiff 56 Clicks.setNbrOwned(Clicks.nbrOwned + (Autoclickers.Cpots*timeDiff*10)) 57 } 58 } 59}
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.