From db8afa101a9bf353595c94b6520f360c3da54a6d Mon Sep 17 00:00:00 2001 From: RandomPerson3465 <50644934+RandomPerson3465@users.noreply.github.com> Date: Sun, 15 Sep 2024 11:08:57 -0700 Subject: [PATCH] 7.2.1 --- livecountsnet/index.js | 111 ----------------------------------------- top50/index.html | 2 +- top50/index.js | 12 +++++ 3 files changed, 13 insertions(+), 112 deletions(-) delete mode 100644 livecountsnet/index.js diff --git a/livecountsnet/index.js b/livecountsnet/index.js deleted file mode 100644 index 8af3d41..0000000 --- a/livecountsnet/index.js +++ /dev/null @@ -1,111 +0,0 @@ -var current = 0; -class LivecountseditInterface { - constructor () { - this.suffixValues = { - 'k': 1e3, - 'm': 1e6, - 'b': 1e9, - 't': 1e12, - 'q': 1e15, - }, - this.openTab = function (e,f) { - var a,b,c; - b = document.getElementsByClassName('tab-content'); - for (a = 0; a < b.length; a++) { - b[a].style.display = 'none'; - } - c = document.getElementsByClassName('tab-link'); - for (a = 0; a < c.length; a++) { - c[a].className = c[a].className.replace(' active', ''); - } - document.getElementById(f).style.display = 'block'; - e.currentTarget.className += ' active' - }, - this.rickroll = function () { - window.location.replace('https://youtu.be/dQw4w9WgXcQ') - }, - this.setTitle = function () { - document.getElementById("channelName").innerHTML = document.getElementById("options.counter.title").value - } - this.setValue = function () { - document.getElementById("channelSubs").innerHTML = parseFloat(document.getElementById("options.counter.value").value) - current = parseFloat(document.getElementById("options.counter.value").value) - } -var rate1 = 0; -var rate2 = 0; -var updatetime; -this.setMin = function () { - rate1 = document.getElementById("options.counter.rates.basicMinimum").value -} -this.setMax = function () { - rate2 = document.getElementById("options.counter.rates.basicMaximum").value -} -this.setRate = function () { - clearInterval(updatetime) - var t = document.getElementById("options.counter.rates.mode.basic.baseUnit").value - var e = document.getElementById("options.counter.rates.mode.basic.units").value - if (e == "") {} - else { - if (t == "1") { - e = e*1000 - updatetime = setInterval(updateManager,e) - } else if (t == "60") { - e = e*60000 - updatetime = setInterval(updateManager,e) - } else if (t == "3600") { - e = e*3.6e+6 - updatetime = setInterval(updateManager,e) - } else if (t == "86400") { - e = e*8.64e+7 - updatetime = setInterval(updateManager,e) - } - } -} -function updateManager() { - var subs = parseFloat(current) - var rate3 = 0; - var rate4 = 0; - if (document.getElementById('options.counter.rates.mode.basic.baseUnit2').value == "1") { - rate3 = parseFloat(rate1) - rate4 = parseFloat(rate2) - } else if (document.getElementById('options.counter.rates.mode.basic.baseUnit2').value == "60") { - rate3 = parseFloat(rate1/60) - rate4 = parseFloat(rate2/60) - } else if (document.getElementById('options.counter.rates.mode.basic.baseUnit2').value == "3600") { - rate3 = parseFloat(rate1/3600) - rate4 = parseFloat(rate2/3600) - } else { - rate3 = parseFloat(rate1/86400) - rate4 = parseFloat(rate2/86400) - } - rate3 = parseFloat(rate3) - rate4 = parseFloat(rate4) - subs += random(rate3, rate4) - if (subs == NaN) { - } else { - current = subs - } - document.getElementById("channelSubs").innerHTML = Math.floor(subs) - if (chart.series[0].points.length == 1500) chart.series[0].data[0].remove(); - chart.series[0].addPoint([Date.now(), Math.floor(subs)]) -} - } -} -const Interface = new LivecountseditInterface() -window.onload = function () { - if (document.getElementById('tabs.0')) document.getElementById('tabs.0').click(); -} -function submit() { - Interface.setValue() -} -document.getElementById("options.counter.title").addEventListener('input', Interface.setTitle) -document.getElementById("options.counter.rates.basicMinimum").addEventListener('input', Interface.setMin) -document.getElementById("options.counter.rates.basicMaximum").addEventListener('input', Interface.setMax) -document.getElementById("options.counter.rates.mode.basic.units").addEventListener('input', Interface.setRate) -document.getElementById("options.counter.rates.mode.basic.baseUnit").addEventListener('change', Interface.setRate) -document.getElementById("options.counter.rates.mode.basic.baseUnit2").addEventListener('change', Interface.setRate) - - -function random(min, max) { - return Math.random() * (max - min) + min - } diff --git a/top50/index.html b/top50/index.html index 91d28dd..83d452d 100644 --- a/top50/index.html +++ b/top50/index.html @@ -189,7 +189,7 @@

Audit Settings


-

Fire Icons

+

Fire Icons (BETA)