mirror of
https://github.com/MrEidam/bigredbutton.git
synced 2026-04-17 15:43:31 +00:00
Icons for the menu, fixed the centration for the (i)
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
v48
|
||||||
|
Added: Icons to menu
|
||||||
|
Fixed: (i) centered
|
||||||
|
|
||||||
v47
|
v47
|
||||||
Added: Forced Dark/Light mode
|
Added: Forced Dark/Light mode
|
||||||
Forced Language (depending on the language of the browser)
|
Forced Language (depending on the language of the browser)
|
||||||
|
|||||||
15
css/brb.css
15
css/brb.css
@@ -60,23 +60,22 @@ body{
|
|||||||
/* Šmol change */
|
/* Šmol change */
|
||||||
.changelog{
|
.changelog{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
height: 75px;
|
height: 75px;
|
||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
filter: drop-shadow(0 0 10px #000);
|
filter: drop-shadow(0 0 10px #000);
|
||||||
background: #0098FF;
|
background: #0377c4;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
.changelog svg{
|
.changelog svg{
|
||||||
border-radius: 50%;
|
height: 100%;
|
||||||
height: 99%;
|
aspect-ratio: 1/1;
|
||||||
filter: drop-shadow(0 0 10px #000);
|
/*filter: drop-shadow(0 0 10px #000);*/
|
||||||
color: #fff;
|
color: #fff;
|
||||||
transition: 0.5s;
|
|
||||||
}
|
|
||||||
.changelog:hover svg{
|
|
||||||
color: #a33;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ligt NODE */
|
/* Ligt NODE */
|
||||||
|
|||||||
33
css/menu.css
33
css/menu.css
@@ -28,6 +28,7 @@
|
|||||||
.button.expand{
|
.button.expand{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fas{
|
.fas{
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -47,12 +48,13 @@ ul{
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 65px;
|
top: 65px;
|
||||||
display: block;
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
background: #1b1b1b;
|
background: #1b1b1b;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 5px;
|
border-radius: 10px;
|
||||||
display: none;
|
/*display: none;*/
|
||||||
box-shadow: 0 3px 6px rgba(0,0,0,.3);
|
box-shadow: 0 3px 6px rgba(0,0,0,.3);
|
||||||
padding-inline-start: 0px;
|
padding-inline-start: 0px;
|
||||||
}
|
}
|
||||||
@@ -70,13 +72,14 @@ ul:before{
|
|||||||
ul li{
|
ul li{
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-bottom: 1px solid rgba(255,255,255,.1);
|
border-right: 1px solid rgba(255,255,255,.1);
|
||||||
|
width: 25%;
|
||||||
}
|
}
|
||||||
ul li:hover:first-child{
|
ul li:hover:first-child{
|
||||||
border-radius: 5px 5px 0 0;
|
border-radius: 10px 0 0 10px;
|
||||||
}
|
}
|
||||||
ul li:hover:last-child{
|
ul li:hover:last-child{
|
||||||
border-radius: 0 0 5px 5px;
|
border-radius: 0 10px 10px 0;
|
||||||
}
|
}
|
||||||
ul li:hover{
|
ul li:hover{
|
||||||
box-shadow: inset 0 0 5px #33ff33,
|
box-shadow: inset 0 0 5px #33ff33,
|
||||||
@@ -86,14 +89,20 @@ ul li:last-child{
|
|||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
ul li a{
|
ul li a{
|
||||||
display: block;
|
display: flex;
|
||||||
width: 100%;
|
justify-content: center;
|
||||||
height: 100%;
|
align-items: center;
|
||||||
|
width: 74px;
|
||||||
|
height: 74px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 8px 0;
|
fill: #fff;
|
||||||
font-size: 18px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
ul li:hover a{
|
ul li a svg{
|
||||||
|
width: 50%;
|
||||||
|
height: 50%;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
ul li:hover a svg{
|
||||||
color: #44dd44;
|
color: #44dd44;
|
||||||
}
|
}
|
||||||
1
img/click.svg
Normal file
1
img/click.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="#ffffff" d="M0 55.2L0 426c0 12.2 9.9 22 22 22c6.3 0 12.4-2.7 16.6-7.5L121.2 346l58.1 116.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9L179.8 320l118.1 0c12.2 0 22.1-9.9 22.1-22.1c0-6.3-2.7-12.3-7.4-16.5L38.6 37.9C34.3 34.1 28.9 32 23.2 32C10.4 32 0 42.4 0 55.2z"/></svg>
|
||||||
|
After Width: | Height: | Size: 349 B |
1
img/shop.svg
Normal file
1
img/shop.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="#ffffff" d="M0 24C0 10.7 10.7 0 24 0L69.5 0c22 0 41.5 12.8 50.6 32l411 0c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3l-288.5 0 5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5L488 336c13.3 0 24 10.7 24 24s-10.7 24-24 24l-288.3 0c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5L24 48C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"/></svg>
|
||||||
|
After Width: | Height: | Size: 491 B |
1
img/upgrade.svg
Normal file
1
img/upgrade.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#ffffff" d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM151.2 217.4c-4.6 4.2-7.2 10.1-7.2 16.4c0 12.3 10 22.3 22.3 22.3l41.7 0 0 96c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-96 41.7 0c12.3 0 22.3-10 22.3-22.3c0-6.2-2.6-12.1-7.2-16.4l-91-84c-3.8-3.5-8.7-5.4-13.9-5.4s-10.1 1.9-13.9 5.4l-91 84z"/></svg>
|
||||||
|
After Width: | Height: | Size: 434 B |
20
js/fornum.js
20
js/fornum.js
@@ -1,17 +1,13 @@
|
|||||||
// Function to convert a number into a more readable format
|
//? Function to convert a number into a more readable format
|
||||||
function fornum(num){
|
function fornum(num){
|
||||||
if(num<1000) return Math.floor(num);
|
if(num<1000) return Math.floor(num);
|
||||||
else if(items.lang == 0){
|
else{
|
||||||
const suffixes = ['', ' tis', ' mil', ' mld', ' bil', ' bld', ' tril', ' trild', ' kvad', ' kvadld', ' quint', ' quintld', ' sext', ' sextld', ' sept', ' septld', ' okt', ' oktld', ' non', ' nonld', ' dec', ' decld', ' undec', ' undecld', ' duodec', ' duodecld', ' tredec', ' tredecld', ' kvaddec', ' kvaddecld', ' quintdec', ' quintdecld', ' sextdec', ' sextdecld', ' googol'];
|
const suffixes = ['', ' K', ' M', ' B', ' T',
|
||||||
let i = 0;
|
' aa', ' ab', ' ac', ' ad', ' ae', ' af', ' ag', ' ah', ' ai', ' aj', ' ak', ' al', ' am', ' an', ' ao', ' ap', ' aq', ' ar', ' as', ' at', ' au', ' av', ' aw', ' ax', ' ay', ' az',
|
||||||
while (num >= 1000 && i < suffixes.length - 1) {
|
' ba', ' bb', ' bc', ' bd', ' be', ' bf', ' bg', ' bh', ' bi', ' bj', ' bk', ' bl', ' bm', ' bn', ' bo', ' bp', ' bq', ' br', ' bs', ' bt', ' bu', ' bv', ' bw', ' bx', ' by', ' bz',
|
||||||
num /= 1000;
|
' ca', ' cb', ' cc', ' cd', ' ce', ' cf', ' cg', ' ch', ' ci', ' cj', ' ck', ' cl', ' cm', ' cn', ' co', ' cp', ' cq', ' cr', ' cs', ' ct', ' cu', ' cv', ' cw', ' cx', ' cy', ' cz',
|
||||||
i++;
|
' da', ' db', ' dc', ' dd', ' de', ' df', ' dg', ' dh', ' di', ' dj', ' dk', ' dl', ' dm', ' dn', ' do', ' dp', ' dq', ' dr', ' ds', ' dt', ' du', ' dv', ' dw', ' dx', ' dy', ' dz'];
|
||||||
}
|
|
||||||
num = Math.floor(num * 10) / 10;
|
|
||||||
return num + suffixes[i];
|
|
||||||
}else{
|
|
||||||
const suffixes = ['', ' k', ' mil', ' bil', ' tri', ' quad', ' qui', ' sex', ' sep', ' oct', ' non', ' dec', ' und', ' duo', ' tre', ' qua', ' qui', ' sex', ' sep', ' oct', ' nov', ' vig', ' uvi', ' dvi', ' tvi', ' qvi', ' qv', ' svi', ' spv', ' ov', ' nv', ' cen', ' ucn', ' dcn', ' googol'];
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
while (num >= 1000 && i < suffixes.length - 1) {
|
while (num >= 1000 && i < suffixes.length - 1) {
|
||||||
num /= 1000;
|
num /= 1000;
|
||||||
|
|||||||
86
js/htmls.js
86
js/htmls.js
@@ -1,3 +1,28 @@
|
|||||||
|
const menu = `
|
||||||
|
<!-- Menu -->
|
||||||
|
<div class="menu-container" onclick="">
|
||||||
|
<div class="button">Menu
|
||||||
|
<span class="fas">
|
||||||
|
<svg height="1em" viewBox="0 0 448 512"><style>svg{fill:#ffffff}</style><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>
|
||||||
|
<svg height="1em" viewBox="0 0 384 512"><style>svg{fill:#ffffff}</style><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ul style="display: none">
|
||||||
|
<li><a onclick="toClick()" id="brb">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M0 55.2L0 426c0 12.2 9.9 22 22 22c6.3 0 12.4-2.7 16.6-7.5L121.2 346l58.1 116.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9L179.8 320l118.1 0c12.2 0 22.1-9.9 22.1-22.1c0-6.3-2.7-12.3-7.4-16.5L38.6 37.9C34.3 34.1 28.9 32 23.2 32C10.4 32 0 42.4 0 55.2z"/></svg>
|
||||||
|
</a></li>
|
||||||
|
<li><a onclick="toShop()" id="shop">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M0 24C0 10.7 10.7 0 24 0L69.5 0c22 0 41.5 12.8 50.6 32l411 0c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3l-288.5 0 5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5L488 336c13.3 0 24 10.7 24 24s-10.7 24-24 24l-288.3 0c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5L24 48C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"/></svg>
|
||||||
|
</a></li>
|
||||||
|
<li><a onclick="toUpgrade()" id="upg">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM151.2 217.4c-4.6 4.2-7.2 10.1-7.2 16.4c0 12.3 10 22.3 22.3 22.3l41.7 0 0 96c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-96 41.7 0c12.3 0 22.3-10 22.3-22.3c0-6.2-2.6-12.1-7.2-16.4l-91-84c-3.8-3.5-8.7-5.4-13.9-5.4s-10.1 1.9-13.9 5.4l-91 84z"/></svg>
|
||||||
|
</a></li>
|
||||||
|
<li><a onclick="toSetting()" id="sett">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"/></svg>
|
||||||
|
</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>`;
|
||||||
|
|
||||||
const htmlTitle = `
|
const htmlTitle = `
|
||||||
<header>
|
<header>
|
||||||
<h1 id="tit">BRB THE GAME</h1>
|
<h1 id="tit">BRB THE GAME</h1>
|
||||||
@@ -46,21 +71,7 @@ const htmlClicking = `
|
|||||||
<svg height="1em" viewBox="0 0 512 512"><path d="M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 11-26 26 26 26 0 0126-26zm48 226h-88a16 16 0 010-32h28v-88h-16a16 16 0 010-32h32a16 16 0 0116 16v104h28a16 16 0 010 32z" fill="currentColor"/></svg>
|
<svg height="1em" viewBox="0 0 512 512"><path d="M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 11-26 26 26 26 0 0126-26zm48 226h-88a16 16 0 010-32h28v-88h-16a16 16 0 010-32h32a16 16 0 0116 16v104h28a16 16 0 010 32z" fill="currentColor"/></svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Menu -->
|
${menu}`;
|
||||||
<div class="menu-container" onclick="">
|
|
||||||
<div class="button">Menu
|
|
||||||
<span class="fas">
|
|
||||||
<svg height="1em" viewBox="0 0 448 512"><style>svg{fill:#ffffff}</style><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>
|
|
||||||
<svg height="1em" viewBox="0 0 384 512"><style>svg{fill:#ffffff}</style><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<li><a onclick="toClick()" id="brb">BRB</a></li>
|
|
||||||
<li><a onclick="toShop()" id="shop"></a></li>
|
|
||||||
<li><a onclick="toUpgrade()" id="upg"></a></li>
|
|
||||||
<li><a onclick="toSetting()" id="sett"></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
const htmlShop = `
|
const htmlShop = `
|
||||||
<!-- Clicks -->
|
<!-- Clicks -->
|
||||||
@@ -836,20 +847,7 @@ const htmlShop = `
|
|||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<div class="menu-container">
|
${menu}
|
||||||
<div class="button">Menu
|
|
||||||
<span class="fas">
|
|
||||||
<svg height="1em" viewBox="0 0 448 512"><style>svg{fill:#ffffff}</style><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>
|
|
||||||
<svg height="1em" viewBox="0 0 384 512"><style>svg{fill:#ffffff}</style><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<li><a onclick="toClick()" id="brb">BRB</a></li>
|
|
||||||
<li><a onclick="toShop()" id="shop"></a></li>
|
|
||||||
<li><a onclick="toUpgrade()" id="upg"></a></li>
|
|
||||||
<li><a onclick="toSetting()" id="sett"></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a href="#" class="upwards">
|
<a href="#" class="upwards">
|
||||||
<img src="../img/arrow-up.svg" alt="">
|
<img src="../img/arrow-up.svg" alt="">
|
||||||
@@ -901,20 +899,7 @@ const htmlUpgrade = `
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<div class="menu-container">
|
${menu}`;
|
||||||
<div class="button">Menu
|
|
||||||
<span class="fas">
|
|
||||||
<svg height="1em" viewBox="0 0 448 512"><style>svg{fill:#ffffff}</style><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>
|
|
||||||
<svg height="1em" viewBox="0 0 384 512"><style>svg{fill:#ffffff}</style><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<li><a onclick="toClick()" id="brb">BRB</a></li>
|
|
||||||
<li><a onclick="toShop()" id="shop"></a></li>
|
|
||||||
<li><a onclick="toUpgrade()" id="upg"></a></li>
|
|
||||||
<li><a onclick="toSetting()" id="sett"></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
const htmlSettings = `
|
const htmlSettings = `
|
||||||
<section class="joe" id="jonathan"></section>
|
<section class="joe" id="jonathan"></section>
|
||||||
@@ -945,20 +930,7 @@ const htmlSettings = `
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<div class="menu-container">
|
${menu}`;
|
||||||
<div class="button">Menu
|
|
||||||
<span class="fas">
|
|
||||||
<svg height="1em" viewBox="0 0 448 512"><style>svg{fill:#ffffff}</style><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>
|
|
||||||
<svg height="1em" viewBox="0 0 384 512"><style>svg{fill:#ffffff}</style><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<li><a onclick="toClick()" id="brb">BRB</a></li>
|
|
||||||
<li><a onclick="toShop()" id="shop"></a></li>
|
|
||||||
<li><a onclick="toUpgrade()" id="upg"></a></li>
|
|
||||||
<li><a onclick="toSetting()" id="sett"></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
function toTitle(){
|
function toTitle(){
|
||||||
document.getElementById('link').href = '../css/title.css';
|
document.getElementById('link').href = '../css/title.css';
|
||||||
|
|||||||
@@ -51,13 +51,7 @@ function beriba(){
|
|||||||
// Languages
|
// Languages
|
||||||
function checklang(){
|
function checklang(){
|
||||||
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
||||||
shop.innerHTML = 'Obchod';
|
|
||||||
upg.innerHTML = 'Vylepšení';
|
|
||||||
sett.innerHTML = 'Nastavení';
|
|
||||||
}else{
|
}else{
|
||||||
shop.innerHTML = 'Shop';
|
|
||||||
upg.innerHTML = 'Upgrades';
|
|
||||||
sett.innerHTML = 'Settings';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,11 +16,10 @@ function loadUpgrades(){
|
|||||||
Mc1.innerHTML = `Vylepšení na kliky za <br> ${fornum(10+(items.Mclick||1)*(items.Mclick||1)-1)} citrónů`;
|
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!`;
|
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
|
}else{ // En
|
||||||
dislm.innerHTML = `You've got ${fornum(items.lemons)} lemons!`;
|
dislm.innerHTML = `You've got ${fornum(items.lemons)} lemons!`;
|
||||||
disMcmake.innerHTML = `Every click gives you ${fornum((items.Mclick||1)*items.pres)} clicks!`;
|
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`;
|
Mc1.innerHTML = `Upgrade for your clicks<br> for ${fornum(10+(items.Mclick||1)*(items.Mclick||1)-1)} lemons`;
|
||||||
|
|||||||
Reference in New Issue
Block a user