Version - 47

This commit is contained in:
2024-04-18 21:00:29 +02:00
parent e204fd9016
commit 2564dd549e
20 changed files with 1840 additions and 1977 deletions

1031
js/htmls.js Normal file

File diff suppressed because it is too large Load Diff

2
js/jquery.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1,126 +1,45 @@
// Items
let items;
let cs = 0;
let anime = false;
const changeEN = ` Version - 46
Added: Animals - Panthers, Coyotes, Frogs, Bears, Pigs, Seals
New formating of the text and font in Clicking, Shop, Upgrades
Names in the window of the Animals and Upgrades
Lemon Trees finally have an function
Menu (black bar) was changed from 200 ms to 50 ms
After 5 pres. points you will get not 0.5 but 1
New cost (aka not randomised) for lemons
New Design of the tiles in the Shop
Revealed cost of Tokens
Now bugs will have their number :D
const changeEN = ` Version - 47
Added: Forced Dark/Light mode
Forced Language depending on the browser
Shop 3.5!!!
RPG in Settings...
Fixed: Text for buying wombats for clicks (BRB-44)
Fixed: Loading time
Removed: ✨ Nothing ✨`
Removed: Option for changing Language or L/D mode`
const changeCZ = ` Verze - 46
Přidáno: ZVÍŘATA - Panteři, Kojoti, Žáby, Medvědi, Prasata, Tuleni
Nové formátování textu a fontu všude kromě nastavení
Jména zvířat a vylepšení
Citrónovníky mají konečně využití
Rychlost menu změněna z 200 ms na 50
Po 5 pres. bodů získáte ne 0,5 ale 1
Nová cena (už ne random) pro citróny
Nový vzhled dlaždiček v Obchodě
Odkryta cena Lístků
Každý bug bude mít svoje číslo :D
const changeCZ = ` Verze - 47
Přidáno: Automatické vybrání Světlého/Tmavého módu
Automatické vybrání jazyka
Obchod 3.5!!!
RPG v Nastavení...
Upraveno: Text pro nakupování wombatů za kliky (BRB-44)
Upraveno: Načítání obchodu
Smazáno: ✨ Nic ✨`
Smazáno: Možnost výběru změny jazyka a S/T módu`
function load(){
function loadClicking(){
if (localStorage.getItem('items')!=null){
items = JSON.parse(localStorage.getItem('items'));
}
}
window.onload = function(){
items = {
clicks:0,
dogs:0,
cats:0,
foxes:0,
wolfs:0,
hamsters:0,
whales:0,
capybaras:0,
platapuses:0,
porcupines:0,
hippos:0,
snakes:0,
cheetahs:0,
pythons:0,
girrafes:0,
lions:0,
otters:0,
meerkat:0,
raccoon:0,
owl:0,
badger:0,
squirrel:0,
chameleon:0,
chicken:0,
wombat:0,
panther:0,
coyote:0,
frog:0,
bear:0,
pig:0,
seal:0,
lemons:0,
lt3:0,
lang:0,
pres:1,
mode:0,
Mclick:1,
token:0,
joke:0,
}
load();
update();
for(let item in items){
if(!items[item]){
items[item] = 0;
}
}
if(items.joke==0||!items.joke){
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
items.lang = 0;
}else{
items.lang = 1;
}
items.joke = 69;
}
cash();
checklang();
LDmodes();
}
// Update
function update(){
// updateClicking
function updateClicking(){
let i = JSON.stringify(items);
localStorage.setItem('items', i);
if(items.lang == 1){
document.getElementById('disclick').innerHTML=`You have ${fornum(items.clicks)} clicks, and generating ${fornum(cs*items.pres)} c/s!`
}
if(items.lang == 0){
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
document.getElementById('disclick').innerHTML=`Máš ${fornum(items.clicks)} kliků a generuješ ${fornum(cs*items.pres)} k/s!`
}else{
document.getElementById('disclick').innerHTML=`You have ${fornum(items.clicks)} clicks, and generating ${fornum(cs*items.pres)} c/s!`
}
checklang();
}
// Upload
function upload(){update();load();}
// UploadClicking
function uploadClicking(){updateClicking();loadClicking();}
// BRB
function beriba(){
@@ -129,9 +48,31 @@ function beriba(){
anime=true;
}
// Languages
function checklang(){
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
shop.innerHTML = 'Obchod';
upg.innerHTML = 'Vylepšení';
sett.innerHTML = 'Nastavení';
}else{
shop.innerHTML = 'Shop';
upg.innerHTML = 'Upgrades';
sett.innerHTML = 'Settings';
}
}
// šmol change
function change(){
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
alert(changeCZ);
}else{
alert(changeEN);
}
}
function clicking(){
items.clicks += 1*(items.Mclick||1)*items.pres;
update();
updateClicking();
document.getElementById('unpressed').style.visibility='hidden'
document.getElementById('pressed').style.visibility='visible'
@@ -140,60 +81,9 @@ function clicking(){
setTimeout(beriba, 75);
}
function cash(){
setTimeout (function money(){
cs = items.dogs+items.cats*12+items.foxes*18+items.wolfs*100+items.hamsters*130+items.whales*220+items.capybaras*280+items.platapuses*400+items.porcupines*650+items.hippos*950+items.snakes*1000+items.cheetahs*3000+items.pythons*7800+items.girrafes*8400+items.otters*9000+items.meerkat*9800+items.raccoon*14500+items.owl*16000+items.badger*32000+items.squirrel*50000+items.chameleon*70000+items.chicken*120000+items.wombat*280000+items.panther*550000+items.coyote*840000+items.frog*900000+items.bear*950000+items.pig*1150000+(items.seal||0)*1300000;
items.clicks += cs*items.pres;
items.lemons += (items.lt3/100)*items.pres;
update();cash();
},1000)
}
// Languages Cz || Uk
function checklang(){
if(items.lang == 0){ /* CZ */
document.documentElement.setAttribute('lang', 'cz');
document.title = 'BRB - Klikání'
shop.innerHTML = 'Obchod';
upg.innerHTML = 'Vylepšení';
sett.innerHTML = 'Nastavení';
}else if(items.lang == 1){ /* UK */
document.documentElement.setAttribute('lang', 'en');
document.title = 'BRB - Clicking'
shop.innerHTML = 'Shop';
upg.innerHTML = 'Upgrades';
sett.innerHTML = 'Settings';
}
}
// Dark || Light Mode
function LDmodes(){
if((items.mode||0) == 0){// Light Mode
body.style.background = '#fff';
jonathan.style.background = 'radial-gradient(125% 100% at 50% 0%,#9aff9a 20%,#fff 70%)';
disclick.style.color = '#000';
disclick.style.textShadow = "";
}else if(items.mode == 1){// Dark Mode
body.style.background = '#333';
jonathan.style.background = 'radial-gradient(125% 100% at 50% 0%,#5add5a 20%,#333 70%)';
disclick.style.color = '#f5f5f5';
disclick.style.textShadow = "2px 2px 4px #000";
}
upload();
}
// šmol change
function change(){
if(items.lang == 0){ // CZ
alert(changeCZ);
}else{
alert(changeEN);
}
}
// keybinds
addEventListener("keyup", (event) => {
if(event.key == ' ' || event.key == 'Enter'){
if((event.key == ' ' || event.key == 'Enter')&&(document.title === 'BRB - Klikání'||document.title === 'BRB - Clicking')){
clicking();
}
})

View File

@@ -1,16 +1,18 @@
$(document).ready(function(){
$('.button').click(function(){
if($(this).hasClass('expand')){
$('ul').slideUp(function(){
$('.button').removeClass('expand');
$('.fas').removeClass('expand');
})
}else{
$(this).addClass('expand');
setTimeout(function(){
$('.fas').addClass('expand');
$('ul').stop().slideDown();
},50);
}
function menuStart(){
$(document).ready(() => {
$('.button').click(() => {
if($('.button').hasClass('expand')){
$('ul').slideUp(() => {
$('.button').removeClass('expand');
$('.fas').removeClass('expand');
});
}else{
$('.button').addClass('expand');
setTimeout(() => {
$('.fas').addClass('expand');
$('ul').stop().slideDown();
},50);
}
})
})
})
}

View File

@@ -1,132 +1,89 @@
let items
// Update
function update(){
let i = JSON.stringify(items);
localStorage.setItem('items', i);
while(document.title === 'BRB - Nastavení'||document.title === 'BRB - Settings'){
}
// Load
function load(){
function loadSettings(){
items = JSON.parse(localStorage.getItem('items'));
LDmodes();
let Btns = document.querySelectorAll('.change');
if(items.lang == 1){ // EN
document.documentElement.setAttribute('lang', 'en');
document.title = 'BRB - Settings';
shop.innerHTML = 'Shop';
upg.innerHTML = 'Upgrades';
sett.innerHTML = 'Settings';
if(items.mode == 0){ld.innerHTML = 'Do you want to <br> switch to Dark mode?';
}else if(items.mode == 1){ld.innerHTML = 'Do you want to <br> switch to Light mode?';}
lg.innerHTML = 'Do you want to <br> switch to Czech?';
hl.innerHTML = 'Do you want to <br> wantch a video for help?';
rs.innerHTML = 'Do you want to <br> completely reset?';
Btns.forEach((e) => {
e.innerHTML = 'Yes!';
});
sites.innerHTML = 'Other Sites';
}
if(items.lang == 0){ // CZ
document.documentElement.setAttribute('lang', 'cz');
document.title = 'BRB - Nastavení';
shop.innerHTML = 'Obchod';
upg.innerHTML = 'Vylepšení';
sett.innerHTML = 'Nastavení';
if(items.mode == 0){ld.innerHTML = 'Chceš si zapnout <br> Tmavý mód?';
}else if(items.mode == 1){ld.innerHTML = 'Chceš si zapnout <br> Světlý mód?';}
lg.innerHTML = 'Chceš si přepnout <br> jazyk do Angličtiny?';
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
hl.innerHTML = 'Chceš si pustit <br> video pro pomoc?';
rs.innerHTML = 'Chceš kompletně <br> resetovat postup?';
Btns.forEach((e) => {
e.innerHTML = 'Ano!';
});
sites.innerHTML = 'Další stránky';
}
}
load();
// Upload
function upload(){update();load();}
function cash(){
setTimeout (function money(){
let cs = items.dogs+items.cats*12+items.foxes*18+items.wolfs*100+items.hamsters*130+items.whales*220+items.capybaras*280+items.platapuses*400+items.porcupines*650+items.hippos*950+items.snakes*1000+items.cheetahs*3000+items.pythons*7800+items.girrafes*8400+items.otters*9000+items.meerkat*9800+items.raccoon*14500+items.owl*16000+items.badger*32000+items.squirrel*50000+items.chameleon*70000+items.chicken*120000+items.wombat*280000+items.panther*550000+items.coyote*840000+items.frog*900000+items.bear*950000+items.pig*1150000+items.seal*1300000;
items.clicks += cs*items.pres;
items.lemons += (items.lt3/100)*items.pres;
upload();
cash();
},1000);
}
cash();
// Dark || Light Mode
function SLDmodes(){
if(items.mode==0){items.mode=1;upload();}
else if(items.mode==1){items.mode=0;upload();}
LDmodes();
}
function LDmodes(){
let Bimts = document.querySelectorAll('.item');
let Btns = document.querySelectorAll('.change');
let hhh = document.querySelectorAll('h3');
if((items.mode||0) == 0){// Light Mode
body.style.background = '#ddd';
Bimts.forEach((e) => {
e.style.background = '#ffefd5';
});
history.innerHTML = `Historie`
}else{
hl.innerHTML = 'Do you want to <br> wantch a video for help?';
rs.innerHTML = 'Do you want to <br> completely reset?';
Btns.forEach((e) => {
e.style.background = '#8FBC8F';
e.style.color = '#fff';
e.style.textShadow = "";
e.innerHTML = 'Yes!';
});
hhh.forEach((e) => {
e.style.color = '#000';
e.style.textShadow = "";
});
document.getElementById('sites').style.color = '#000';
document.getElementById('sites').style.textShadow = '';
}else if(items.mode == 1){// Dark Mode
body.style.background = '#333';
Bimts.forEach((e) => {
e.style.background = '#666055';
e.style.color = '#000';
});
Btns.forEach((e) => {
e.style.background = '#008B8B';
e.style.color = '#fff';
e.style.textShadow = "2px 2px 4px #000";
});
hhh.forEach((e) => {
e.style.color = '#eee';
e.style.textShadow = "2px 2px 4px #000";
});
document.getElementById('sites').style.color = '#fff';
document.getElementById('sites').style.textShadow = '2px 2px 4px #000';
sites.innerHTML = 'Other Sites';
history.innerHTML = `History`;
}
}
function language(){
if(items.lang == 0){ /* CZ */
items.lang = 1;
}else if(items.lang == 1){ /* UK */
items.lang = 0;
}
upload();
}
// uploadSettings
function uploadSettings(){update();loadSettings();}
// HELP
function help(){
if(items.lang == 1){ /* EN */
window.open('https://youtu.be/G0fP-l-05dM');
}else if(items.lang == 0){ /* CZ */
window.open('https://youtu.be/XhmETe4MSVI');
}
if(navigator.language == 'cs' || navigator.language == 'cs-CZ') window.open('https://youtu.be/XhmETe4MSVI');
else window.open('https://youtu.be/G0fP-l-05dM');
}
// Reset
function reset(){
if((items.lang == 1) && confirm('Do you really want to reset everything?') && confirm('Are you sure?')){
if((navigator.language == 'cs' || navigator.language == 'cs-CZ')){
if(confirm('Vážně chceš všechno resetovat?') && confirm('Seš si jistý?')){
alert('Vše resetováno');
items = {
clicks:0,
dogs:0,
cats:0,
foxes:0,
wolfs:0,
hamsters:0,
whales:0,
capybaras:0,
platapuses:0,
porcupines:0,
hippos:0,
snakes:0,
cheetahs:0,
pythons:0,
girrafes:0,
lions:0,
otters:0,
meerkat:0,
raccoon:0,
owl:0,
badger:0,
squirrel:0,
chameleon:0,
chicken:0,
wombat:0,
panther:0,
coyote:0,
frog:0,
bear:0,
pig:0,
seal:0,
lemons:0,
lt3:0,
pres:1,
Mclick:1,
token:0,
}
}
}else if((navigator.language != 'cs' || navigator.language != 'cs-CZ')){
if(confirm('Do you really want to reset everything?') && confirm('Are you sure?')){
alert('Everything Reseted');
items = {
clicks:0,
@@ -159,59 +116,15 @@ function reset(){
frog:0,
bear:0,
pig:0,
seal:0,
lemons:0,
lt3:0,
lang:items.lang,
pres:1,
mode:items.mode,
Mclick:1,
token:0,
}
}}
}
if((items.lang == 0) && confirm('Vážně chceš všechno resetovat?') && confirm('Seš si jistý?')){
alert('Vše resetováno');
items = {
clicks:0,
dogs:0,
cats:0,
foxes:0,
wolfs:0,
hamsters:0,
whales:0,
capybaras:0,
platapuses:0,
porcupines:0,
hippos:0,
snakes:0,
cheetahs:0,
pythons:0,
girrafes:0,
lions:0,
otters:0,
meerkat:0,
raccoon:0,
owl:0,
badger:0,
squirrel:0,
chameleon:0,
chicken:0,
wombat:0,
panther:0,
coyote:0,
frog:0,
bear:0,
pig:0,
lemons:0,
lt3:0,
lang:items.lang,
pres:1,
mode:items.mode,
Mclick:1,
token:0,
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,18 +1,112 @@
// social
let toggle = document.querySelector('.toggle');
let socmenu = document.querySelector('.socmenu');
toggle.onclick = function(){
socmenu.classList.toggle('active');
};
let items;
let cs;
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
document.title = 'BRB - Hlavní menu'
document.getElementById('tit').innerHTML = 'BRB - HRA';
document.getElementById('heh').innerHTML = 'Zmáčkni tlačítko aby ses dostal do hry!';
document.getElementById('foot').innerHTML = `Vytvořil: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
}else{
document.title = 'BRB - Main Menu';
document.getElementById('tit').innerHTML = 'BRB THE GAME';
document.getElementById('heh').innerHTML = 'Press the button to get to the game!';
document.getElementById('foot').innerHTML = `Made by: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
window.onload = function(){
let socmenu = document.querySelector('.socmenu');
let toggle = document.querySelector('.toggle');
items = {
clicks:0,
dogs:0,
cats:0,
foxes:0,
wolfs:0,
hamsters:0,
whales:0,
capybaras:0,
platapuses:0,
porcupines:0,
hippos:0,
snakes:0,
cheetahs:0,
pythons:0,
girrafes:0,
lions:0,
otters:0,
meerkat:0,
raccoon:0,
owl:0,
badger:0,
squirrel:0,
chameleon:0,
chicken:0,
wombat:0,
panther:0,
coyote:0,
frog:0,
bear:0,
pig:0,
seal:0,
lemons:0,
lt3:0,
pres:1,
Mclick:1,
token:0,
}
load();
update();
for(let item in items){
if(!items[item]){
items[item] = 0;
}
}
cash();
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
document.title = 'BRB - Hlavní menu'
document.querySelector('#tit').innerHTML = 'BRB - HRA';
document.querySelector('#heh').innerHTML = 'Zmáčkni tlačítko aby ses dostal do hry!';
document.querySelector('footer').innerHTML = `Vytvořil: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
}else{
document.title = 'BRB - Main Menu';
document.querySelector('#tit').innerHTML = 'BRB THE GAME';
document.querySelector('#heh').innerHTML = 'Press the button to get to the game!';
document.querySelector('footer').innerHTML = `Made by: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
}
toggle.onclick = () => {
socmenu.classList.toggle('active');
};
}
function click(){
setTimeout(() => {
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
document.querySelector('#imgcli').src = '../img/icons8-clicked.png';
}
},750);
setTimeout(() => {
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
document.querySelector('#imgcli').src = '../img/icons8-rest.svg';
}
},1000);
}
function cash(){
setTimeout (() => {
cs = items.dogs+items.cats*12+items.foxes*18+items.wolfs*100+items.hamsters*130+items.whales*220+items.capybaras*280+items.platapuses*400+items.porcupines*650+items.hippos*950+items.snakes*1000+items.cheetahs*3000+items.pythons*7800+items.girrafes*8400+items.otters*9000+items.meerkat*9800+items.raccoon*14500+items.owl*16000+items.badger*32000+items.squirrel*50000+items.chameleon*70000+items.chicken*120000+items.wombat*280000+items.panther*550000+items.coyote*840000+items.frog*900000+items.bear*950000+items.pig*1150000+(items.seal||0)*1300000;
items.clicks += cs*items.pres;
items.lemons += (items.lt3/100)*items.pres;
update();cash();
if(document.title === 'BRB - Klikání'||document.title === 'BRB - Clicking'){
uploadClicking();
}
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
uploadShop();
click();
}
console.log(`Clicks: ${items.clicks}`);
},1000)
}
function load(){
if (localStorage.getItem('items')!=null){
items = JSON.parse(localStorage.getItem('items'));
}
}
// Update
function update(){
let i = JSON.stringify(items);
localStorage.setItem('items', i);
}

View File

@@ -1,10 +1,8 @@
let items;
let cs;
// Update
function update(){
let i = JSON.stringify(items);
localStorage.setItem('items', i);
function loadUpgrades(){
if (localStorage.getItem('items')!=null){
items = JSON.parse(localStorage.getItem('items'));
prog.max = 1000*items.pres;
}
if(items.token >= 1000*items.pres){
prog.style.display = 'none';
presBT1.style.display = 'none';
@@ -12,79 +10,32 @@ function update(){
progva.style.display = 'none';
ItsTime.style.display = 'block';
}
}
function load(){
if (localStorage.getItem('items')!=null){
items = JSON.parse(localStorage.getItem('items'));
LDmodes()
prog.max = 1000*items.pres;
}
if(items.lang == 0){ // CZ
document.documentElement.setAttribute('lang', 'cz');
document.title = 'BRB - Vylepšení'
shop.innerHTML = 'Obchod';
upg.innerHTML = 'Vylepšení';
sett.innerHTML = 'Nastavení';
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){ // CZ
dislm.innerHTML = `Máš ${fornum(items.lemons)} citrónů!`;
disMcmake.innerHTML = `Každý klik ti dává ${fornum((items.Mclick||1)*items.pres)} kliků!`;
Mc1.innerHTML = `Vylepšení na kliky za <br> ${fornum(10+(items.Mclick||1)*(items.Mclick||1)-1)} citrónů`;
progva.innerHTML = `Máš ${items.token} lístků z ${1000*items.pres}!`
progva.innerHTML = `Máš ${items.token} lístků z ${1000*items.pres}!`;
presBT1.innerHTML = `1 Lístek za<br>${fornum(2000)} Citrónů`
presBT1.innerHTML = `1 Lístek za<br>${fornum(2000)} Citrónů`;
ItsTime.innerHTML = `Pojďme jít!`;
if(items.pres > 1){
got.innerHTML = `Právě máš ${items.pres-1} Prestiž bodů`
}
if(items.pres > 1) got.innerHTML = `Právě máš ${items.pres-1} Prestiž bodů`;
}else if(items.lang == 1){ // En
document.documentElement.setAttribute('lang', 'en');
document.title = 'BRB - Upgrades'
shop.innerHTML = 'Shop';
upg.innerHTML = 'Upgrades';
sett.innerHTML = 'Settings';
dislm.innerHTML = `You've got ${fornum(items.lemons)} lemons!`;
disMcmake.innerHTML = `Every click gives you ${fornum((items.Mclick||1)*items.pres)} clicks!`;
Mc1.innerHTML = `Upgrade for your clicks<br> for ${fornum(10+(items.Mclick||1)*(items.Mclick||1)-1)} lemons`;
progva.innerHTML = `You have ${items.token} tokens out of ${1000*items.pres}!`
presBT1.innerHTML = `1 Ticket for ${fornum(2000)} Lemons`
presBT1.innerHTML = `1 Ticket for ${fornum(2000)} Lemons`;
ItsTime.innerHTML = `Let's do this!`;
if(items.pres > 1){
got.innerHTML = `You have ${items.pres-1} Prestige points`
}
}
}
// Upload
function upload(){update();load();}
function cash(){
setTimeout (function money(){
cs = items.dogs+items.cats*12+items.foxes*18+items.wolfs*100+items.hamsters*130+items.whales*220+items.capybaras*280+items.platapuses*400+items.porcupines*650+items.hippos*950+items.snakes*1000+items.cheetahs*3000+items.pythons*7800+items.girrafes*8400+items.otters*9000+items.meerkat*9800+items.raccoon*14500+items.owl*16000+items.badger*32000+items.squirrel*50000+items.chameleon*70000+items.chicken*120000+items.wombat*280000+items.panther*550000+items.coyote*840000+items.frog*900000+items.bear*950000+items.pig*1150000+(items.seal||0)*1300000;
items.clicks += cs*items.pres;
items.lemons += (items.lt3/100)*items.pres;
upload();cash();
},1000)
}
window.onload = function(){
load();cash();progress();
if((items.token != 0)&&(items.token < 1)){
items.token = 0;
if(items.pres > 1) got.innerHTML = `You have ${items.pres-1} Prestige points`;
}
}
// UploadUpgrades
function uploadUpgrades(){update();loadUpgrades();}
/* U P G R A D E S */
function buyMcc(){
@@ -94,8 +45,7 @@ function buyMcc(){
items.Mclick = 1;
}
items.Mclick += 4;
console.log(items.Mclick);
upload();
uploadUpgrades();
}
}
@@ -105,7 +55,7 @@ function tblb(){ // Token Basic Lemon Buy
items.token++;
}
progress();
upload();
uploadUpgrades();
}
function talb(){ // Token All Lemon Buy
@@ -114,17 +64,17 @@ function talb(){ // Token All Lemon Buy
items.lemons -= amount * 2000;
items.token += amount;
progress();
upload();
uploadUpgrades();
}
function progress(){
prog.value = `${items.token}`
prog.title = `${items.token}/${1000*items.pres}`
upload();
prog.value = `${items.token}`;
prog.title = `${items.token}/${1000*items.pres}`;
uploadUpgrades();
}
function TheThing(){
if(items.lang == 0 && items.token >= (1000*items.pres) && confirm(`Za Prestiže budeš získávat více kliků, ale tvůj postup se vynuluje (až na Prestiž body). Chceš se 'Znovuzrodit'?`)){ // CZ
if(navigator.language == 'cs' || navigator.language == 'cs-CZ' && items.token >= (1000*items.pres) && confirm(`Za Prestiže budeš získávat více kliků, ale tvůj postup se vynuluje (až na Prestiž body). Chceš se 'Znovuzrodit'?`)){ // CZ
if(items.pres>=5){
alert(`Získal jsi 1 prestiže bod!`);
items.pres += 1;
@@ -132,8 +82,8 @@ function TheThing(){
alert(`Získal jsi 0.5 prestiže bodů!`);
items.pres += 0.5;
}
upload();
items = {
uploadUpgrades();
items = {
clicks:0,
dogs:0,
cats:0,
@@ -165,94 +115,64 @@ function TheThing(){
bear:0,
pig:0,
seal:0,
lemons:0,
lt3:0,
lang:items.lang,
pres:items.pres,
mode:items.mode,
Mclick:1,
token:0,
}
location.href = './index.html';
}else if(items.lang == 1 && items.token >= (1000*items.pres) && confirm(`For Prestige You'll earn more clicks, but your progress resets (except prestige points). Do you wish to 'Rebirth'?`)){ // En
if(items.pres>=5){
alert(`You've earn 1 prestige point!`);
items.pres += 1;
}else{
alert(`You've earn 0.5 prestige points!`);
items.pres += 0.5;
}
upload();
items = {
clicks:0,
dogs:0,
cats:0,
foxes:0,
wolfs:0,
hamsters:0,
whales:0,
capybaras:0,
platapuses:0,
porcupines:0,
hippos:0,
snakes:0,
cheetahs:0,
pythons:0,
girrafes:0,
lions:0,
otters:0,
meerkat:0,
raccoon:0,
owl:0,
badger:0,
squirrel:0,
chameleon:0,
chicken:0,
wombat:0,
panther:0,
coyote:0,
frog:0,
bear:0,
pig:0,
seal:0,
lemons:0,
lt3:0,
lang:items.lang,
pres:items.pres,
mode:items.mode,
Mclick:1,
token:0,
toClick();
}else{
if(items.lang == 1 && items.token >= (1000*items.pres) && confirm(`For Prestige You'll earn more clicks, but your progress resets (except prestige points). Do you wish to 'Rebirth'?`)){ // En
if(items.pres>=5){
alert(`You've earn 1 prestige point!`);
items.pres += 1;
}else{
alert(`You've earn 0.5 prestige points!`);
items.pres += 0.5;
}
location.href = './index.html';
uploadUpgrades();
items = {
clicks:0,
dogs:0,
cats:0,
foxes:0,
wolfs:0,
hamsters:0,
whales:0,
capybaras:0,
platapuses:0,
porcupines:0,
hippos:0,
snakes:0,
cheetahs:0,
pythons:0,
girrafes:0,
lions:0,
otters:0,
meerkat:0,
raccoon:0,
owl:0,
badger:0,
squirrel:0,
chameleon:0,
chicken:0,
wombat:0,
panther:0,
coyote:0,
frog:0,
bear:0,
pig:0,
seal:0,
lemons:0,
lt3:0,
pres:items.pres,
Mclick:1,
token:0,
}
toClick();
}
}
// Dark || Light Mode
function LDmodes(){
let Bimts = document.querySelectorAll('.item');
if((items.mode||0) == 0){// Light Mode
body.style.background = '#ddd';
body.style.color = '#000';
Bimts.forEach((e) => {
e.style.background = '#ffefd5';
});
loglm.style.background = '#ffefd5';
loglm.style.filter = 'drop-shadow(10px 8px 6px #222)';
}else if(items.mode == 1){// Dark Mode
body.style.background = '#333';
body.style.color = '#fff';
Bimts.forEach((e) => {
e.style.background = '#666055';
});
loglm.style.background = '#666055'; // effd5f66
loglm.style.filter = 'drop-shadow(10px 8px 6px #222)';
}
}