Compare commits
No commits in common. "5fd902d612743a62e3a9a0ee790d8f0d0d7efd46" and "d485486b00cee031327cacf1fabf05f9c5caa3ec" have entirely different histories.
5fd902d612
...
d485486b00
@ -41,6 +41,7 @@ body{
|
|||||||
}
|
}
|
||||||
#rechnungen{
|
#rechnungen{
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
justify-content: space-between;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
}
|
}
|
||||||
@ -51,21 +52,9 @@ body{
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
position: fixed;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
#rechnung1{
|
|
||||||
background-color: rgb(0, 225, 255);
|
|
||||||
border-radius: 15px;
|
|
||||||
outline: 8px solid black;
|
|
||||||
left: 15%;
|
|
||||||
}
|
|
||||||
#rechnung2{
|
|
||||||
background-color: red;
|
|
||||||
border-radius: 15px;
|
|
||||||
outline: 8px solid black;
|
|
||||||
right: 15%;
|
|
||||||
}
|
|
||||||
#rechnung1 img, #rechnung2 img {
|
#rechnung1 img, #rechnung2 img {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
|
@ -12,10 +12,12 @@
|
|||||||
<div id="rechnungen" class="flexbox">
|
<div id="rechnungen" class="flexbox">
|
||||||
|
|
||||||
<div id="rechnung1">
|
<div id="rechnung1">
|
||||||
|
<img src="pics/RechenBlockRot.png" alt="">
|
||||||
<div id="rechnung1Text">*5</div>
|
<div id="rechnung1Text">*5</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="rechnung2">
|
<div id="rechnung2">
|
||||||
|
<img src="pics/RechenBlockBlau.png" alt="">
|
||||||
<div id="rechnung2Text">+5</div>
|
<div id="rechnung2Text">+5</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -14,17 +14,17 @@ function rechnungMoven(speed){
|
|||||||
if(nextTop > 800){
|
if(nextTop > 800){
|
||||||
rechnungen.style.top = "1px";
|
rechnungen.style.top = "1px";
|
||||||
rechnungenTop = 1;
|
rechnungenTop = 1;
|
||||||
rechnungenSpawn(100);
|
rechnungenSpawn();
|
||||||
}else{
|
}else{
|
||||||
rechnungenTop = nextTop;
|
rechnungenTop = nextTop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function rechnungenSpawn(maxzahl){
|
function rechnungenSpawn(){
|
||||||
let index = Math.floor(Math.random()*rechenzeichen.length);
|
let index = Math.floor(Math.random()*rechenzeichen.length);
|
||||||
let randomZahl = Math.floor(Math.random()*maxzahl);
|
let randomZahl = Math.floor(Math.random()*20);
|
||||||
rechnung1Text.innerText = rechenzeichen[index] + randomZahl.toString();
|
rechnung1Text.innerText = rechenzeichen[index] + randomZahl.toString();
|
||||||
index = Math.floor(Math.random()*rechenzeichen.length);
|
index = Math.floor(Math.random()*rechenzeichen.length);
|
||||||
randomZahl = Math.floor(Math.random()*maxzahl);
|
randomZahl = Math.floor(Math.random()*20);
|
||||||
rechnung2Text.innerText = rechenzeichen[index] + randomZahl.toString();
|
rechnung2Text.innerText = rechenzeichen[index] + randomZahl.toString();
|
||||||
}
|
}
|
||||||
setInterval(()=>{
|
setInterval(()=>{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user