mirror of
https://github.com/MrEidam/bigredbutton.git
synced 2026-04-17 15:43:31 +00:00
Lemon scam removed - BRB-45
This commit is contained in:
19
js/shop.js
19
js/shop.js
@@ -1,15 +1,16 @@
|
|||||||
while(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){ //! Shopdope
|
while(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){ //! Shopdope
|
||||||
let upArr = document.querySelector('.upwards');
|
}
|
||||||
window.addEventListener('scroll', () => {
|
|
||||||
if(window.scrollY >= 600){
|
addEventListener('scroll', () => {
|
||||||
upArr.classList.add('active');
|
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
||||||
|
if(window.scrollY >= 460){
|
||||||
|
document.querySelector('.upwards').classList.add('active');
|
||||||
}else{
|
}else{
|
||||||
upArr.classList.remove('active');
|
document.querySelector('.upwards').classList.remove('active');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function loadShop(){
|
function loadShop(){
|
||||||
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
||||||
document.getElementById('disclick').innerHTML=`Máš ${fornum(items.clicks)} kliků a děláš ${fornum(cs*items.pres)} za sekundu!`
|
document.getElementById('disclick').innerHTML=`Máš ${fornum(items.clicks)} kliků a děláš ${fornum(cs*items.pres)} za sekundu!`
|
||||||
@@ -313,7 +314,7 @@ function loadShop(){
|
|||||||
discapName.innerHTML=`Capybaras`
|
discapName.innerHTML=`Capybaras`
|
||||||
displaName.innerHTML=`Platypuses`
|
displaName.innerHTML=`Platypuses`
|
||||||
disporName.innerHTML=`Porcupines`
|
disporName.innerHTML=`Porcupines`
|
||||||
dishipName.innerHTML=`Hippopotamuses`
|
dishipName.innerHTML=`Hippos`
|
||||||
dissnaName.innerHTML=`Snakes`
|
dissnaName.innerHTML=`Snakes`
|
||||||
discheName.innerHTML=`Cheetahs`
|
discheName.innerHTML=`Cheetahs`
|
||||||
dispytName.innerHTML=`Pythons`
|
dispytName.innerHTML=`Pythons`
|
||||||
@@ -683,7 +684,7 @@ function mxfx(){
|
|||||||
uploadShop();
|
uploadShop();
|
||||||
}
|
}
|
||||||
function mxlm(){
|
function mxlm(){
|
||||||
let RanLemCost = Math.floor(Math.random()*100);
|
let RanLemCost = 20;////Math.floor(Math.random()*100);
|
||||||
const amount = Math.floor(items.cats/RanLemCost)
|
const amount = Math.floor(items.cats/RanLemCost)
|
||||||
|
|
||||||
items.cats -= amount*RanLemCost
|
items.cats -= amount*RanLemCost
|
||||||
|
|||||||
Reference in New Issue
Block a user