diff --git a/assets/index-Dfblm97q.css b/assets/index-Dfblm97q.css new file mode 100644 index 0000000..6f503b2 --- /dev/null +++ b/assets/index-Dfblm97q.css @@ -0,0 +1 @@ +html,body{border:0;font:14px Lucida Grande,Helvetica,Arial,sans-serif;margin:0;padding:0}header,main{padding:24px 36px}main{display:block}header{background:#111;color:#eee;font-family:Consolas,monospace}table{border-collapse:collapse}tr:nth-child(2n){background:#eee}th,td{border:1px solid #ddd;padding:8px}td:first-child{text-align:left}.github-corner>svg{color:#151513!important;fill:#fafafa!important;height:64px;width:64px} diff --git a/assets/index-DzmYlhYM.js b/assets/index-DzmYlhYM.js new file mode 100644 index 0000000..8ddab65 --- /dev/null +++ b/assets/index-DzmYlhYM.js @@ -0,0 +1 @@ +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();const m="click",g="button",d={current:0,total:0},h={message:"Upgraded cursor click power.",owned:1,cost:{base:100,next:100,rate:2},output:{base:2,next:2,current:1}},c={generator1:{label:"Generator 1",message:"Purchased Generator 1.",owned:0,delay:10,cost:{base:15,next:15,rate:1.15},output:{base:1,next:1,current:0},interval:{callback(){},set:!1}},generator2:{label:"Generator 2",message:"Purchased Generator 2.",owned:0,delay:1,cost:{base:100,next:100,rate:1.15},output:{base:1,next:1,current:0},interval:{callback(){},set:!1}},generator3:{label:"Generator 3",message:"Purchased Generator 3.",owned:0,delay:1,cost:{base:1100,next:1100,rate:1.15},output:{base:8,next:8,current:0},interval:{callback(){},set:!1}},generator4:{label:"Generator 4",message:"Purchased Generator 4.",owned:0,delay:1,cost:{base:12e3,next:12e3,rate:1.15},output:{base:47,next:47,current:0},interval:{callback(){},set:!1}},generator5:{label:"Generator 5",message:"Purchased Generator 5.",owned:0,delay:1,cost:{base:13e4,next:13e4,rate:1.15},output:{base:260,next:260,current:0},interval:{callback(){},set:!1}},generator6:{label:"Generator 6",message:"Purchased Generator 6.",owned:0,delay:1,cost:{base:14e5,next:14e5,rate:1.15},output:{base:1400,next:1400,current:0},interval:{callback(){},set:!1}},generator7:{label:"Generator 7",message:"Purchased Generator 7.",owned:0,delay:1,cost:{base:2e7,next:2e7,rate:1.15},output:{base:7800,next:7800,current:0},interval:{callback(){},set:!1}},generator8:{label:"Generator 8",message:"Purchased Generator 8.",owned:0,delay:1,cost:{base:33e7,next:33e7,rate:1.15},output:{base:44e3,next:44e3,current:0},interval:{callback(){},set:!1}},generator9:{label:"Generator 9",message:"Purchased Generator 9.",owned:0,delay:1,cost:{base:51e8,next:51e8,rate:1.15},output:{base:26e4,next:26e4,current:0},interval:{callback(){},set:!1}},generator10:{label:"Generator 10",message:"Purchased Generator 10.",owned:0,delay:1,cost:{base:75e9,next:75e9,rate:1.15},output:{base:16e5,next:16e5,current:0},interval:{callback(){},set:!1}},generator11:{label:"Generator 11",message:"Purchased Generator 11.",owned:0,delay:1,cost:{base:1e12,next:1e12,rate:1.15},output:{base:1e7,next:1e7,current:0},interval:{callback(){},set:!1}},generator12:{label:"Generator 12",message:"Purchased Generator 12.",owned:0,delay:1,cost:{base:14e12,next:14e12,rate:1.15},output:{base:65e6,next:65e6,current:0},interval:{callback(){},set:!1}},generator13:{label:"Generator 13",message:"Purchased Generator 13.",owned:0,delay:1,cost:{base:17e13,next:17e13,rate:1.15},output:{base:43e7,next:43e7,current:0},interval:{callback(){},set:!1}},generator14:{label:"Generator 14",message:"Purchased Generator 14.",owned:0,delay:1,cost:{base:21e14,next:21e14,rate:1.15},output:{base:29e8,next:29e8,current:0},interval:{callback(){},set:!1}},generator15:{label:"Generator 15",message:"Purchased Generator 15.",owned:0,delay:1,cost:{base:26e15,next:26e15,rate:1.15},output:{base:21e9,next:21e9,current:0},interval:{callback(){},set:!1}},generator16:{label:"Generator 16",message:"Purchased Generator 16.",owned:0,delay:1,cost:{base:31e16,next:31e16,rate:1.15},output:{base:15e10,next:15e10,current:0},interval:{callback(){},set:!1}}},l={1:"The clicking has commenced...",10:"The button has been clicked ten times.",100:"The button has been clicked one hundred times.",1e3:"The button has been clicked one thousand times.",1e4:"The button has been clicked ten thousand times.",1e5:"The button has been clicked one hundred thousand times.",1e6:"The button has been clicked one million times.",1e7:"The button has been clicked ten million times.",1e8:"The button has been clicked one hundred million times.",1e9:"The button has been clicked one billion times.",1e10:"The button has been clicked ten billion times.",1e12:"The button has been clicked one hundred billion times.",1e13:"The button has been clicked one trillion times.",1e14:"The button has been clicked ten trillion times.",1e15:"The button has been clicked one hundred trillion times.",1e16:"The button has been clicked one quadrillion times.",1e17:"The button has been clicked ten quadrillion times.",1e18:"The button has been clicked one hundred quadrillion times.",1e19:"The button has been clicked one quitillion times.",1e20:"The button has been clicked ten quitillion times.",1e21:"The button has been clicked one hundred quitillion times.",1e22:"The button has been clicked one sextillion times."},i=Object.freeze(Object.defineProperty({__proto__:null,clicks:d,cursor:h,generators:c,messages:l},Symbol.toStringTag,{value:"Module"})),E=window.gtag,f="UA-59233605-5";E("config",f);window[`ga-disable-${f}`]=!1;const x=document.createElement("script");x.async=!0;x.src=`https://www.googletagmanager.com/gtag/js?id=${f}`;document.head.appendChild(x);const k=document.getElementById("cursor"),s={button:document.getElementById("button"),counter:document.getElementById("counter"),cursor:k,cursorButton:k.querySelector(g),message:document.getElementById("message"),store:document.getElementById("store")},T=(t,e,n)=>Math.floor(t*Math.pow(e,n));function p(t){const e=s[t];return e||(s[t]=document.getElementById(t))}const w=(t,e)=>`${t.toLocaleString()} ${t===1?"click":"clicks"} per ${e.toLocaleString()} ${e===1?"second":"seconds"}`;function G(){s.counter.innerText=d.current.toLocaleString()}function v(){const t=s.cursor,{cursor:e}=i;t.querySelector(".owned").innerText=(e.owned-1).toLocaleString(),t.querySelector(".cost").innerText=e.cost.next.toLocaleString(),t.querySelector(".output-current").innerText=`${e.output.current.toLocaleString()} per click`,t.querySelector(".output-next").innerText=`${e.output.next.toLocaleString()} per click`}function P(){Object.keys(c).forEach(t=>{const e=c[t],n=s.cursor.cloneNode(!0);n.id=t;const o=n.querySelector(g);o.title=e.label,o.innerText=e.label,s.store.appendChild(n)})}function S(t){const e=c[t],n=p(t);n.querySelector(".owned").innerText=e.owned.toLocaleString(),n.querySelector(".cost").innerText=e.cost.next.toLocaleString(),n.querySelector(".output-current").innerText=w(e.output.current,e.delay),n.querySelector(".output-next").innerText=w(e.output.next,e.delay)}function q(){Object.keys(c).forEach(t=>{S(t)})}function y(t=""){const{total:e}=d;let n;if(t)n=t;else if(l[e])n=l[e],delete l[e];else for(const o in l){const r=Number(o);e>=r&&(n=l[r],delete l[r]);break}n&&(n=n.toLocaleString(),n!==s.message.innerText&&(s.message.innerText=n))}function b(t,e=!1){const{clicks:n}=i;n.current+=t,e||(n.total+=t,y()),G(),s.cursorButton.disabled=n.current{const u=p(r).querySelector(g);u.disabled=n.current{b(h.output.current)})}function C(){s.cursorButton.addEventListener(m,()=>{if(d.current>=h.cost.next){const{cursor:t}=i;L(t.cost.next),O(),y(t.message)}})}function $(){Object.keys(c).forEach(t=>{const e=c[t];p(t).querySelector(g).addEventListener(m,()=>{d.current>=e.cost.next&&(L(e.cost.next),B(t),e.interval.set?e.interval.callback=()=>{b(e.output.current)}:(e.interval.set=!0,e.interval.callback=()=>{b(e.output.current)},setInterval(e.interval.callback,e.delay*1e3)),e.message&&y(e.message))})})}P();G();v();q();I();C();$(); diff --git a/index.html b/index.html new file mode 100644 index 0000000..1435745 --- /dev/null +++ b/index.html @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + Button Clicker | remarkablegames + + + + + + +
Welcome to Button Clicker.
+
+

Button Clicker

+

0

+

+ +

+ + + + + + + + + + + + + + + + + +
CostCurrent OutputNext Output
+   + +
+
+ + + + + + + + + diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..ac57b50 --- /dev/null +++ b/manifest.json @@ -0,0 +1,9 @@ +{ + "short_name": "Button Clicker", + "name": "Button Clicker", + "icons": [], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +}