Inizio frasi di caricamento
This commit is contained in:
parent
8db51ad4ea
commit
7570e5c783
21
index.html
21
index.html
@ -26,7 +26,7 @@
|
|||||||
<input type="date" id="date" />
|
<input type="date" id="date" />
|
||||||
<button onclick="trovaSegno()">Trova il tuo segno</button>
|
<button onclick="trovaSegno()">Trova il tuo segno</button>
|
||||||
</div>
|
</div>
|
||||||
<button onclick="Oroscopo()" id="bottone">
|
<button onclick="predizione()" id="bottone">
|
||||||
Chiedi il tuo pronostico
|
Chiedi il tuo pronostico
|
||||||
</button>
|
</button>
|
||||||
<div id="output"></div>
|
<div id="output"></div>
|
||||||
@ -278,8 +278,17 @@
|
|||||||
/*******************************************************************************************************************************************************/
|
/*******************************************************************************************************************************************************/
|
||||||
|
|
||||||
/***********************************************Sezione Content*****************************************************************************************/
|
/***********************************************Sezione Content*****************************************************************************************/
|
||||||
|
let keepGoing = true;
|
||||||
|
|
||||||
|
const arrayFrasiCaricamento = [
|
||||||
|
"frase 1",
|
||||||
|
"frase 2"
|
||||||
|
]
|
||||||
|
function predizione(){
|
||||||
|
frasiCaricamento();
|
||||||
|
Oroscopo();
|
||||||
|
}
|
||||||
async function Oroscopo() {
|
async function Oroscopo() {
|
||||||
//frasiCaricamento();
|
|
||||||
|
|
||||||
document.getElementById("output").innerHTML = "";
|
document.getElementById("output").innerHTML = "";
|
||||||
document.getElementById("bottone").innerHTML =
|
document.getElementById("bottone").innerHTML =
|
||||||
@ -454,6 +463,14 @@
|
|||||||
.forEach((tag) => (tag.style.display = "none"));
|
.forEach((tag) => (tag.style.display = "none"));
|
||||||
campoSegno.disabled = true;
|
campoSegno.disabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function frasiCaricamento(){
|
||||||
|
let i = 0;
|
||||||
|
document.getElementById('output').innerHTML = arrayFrasiCaricamento[i];
|
||||||
|
/*while(keepGoing){
|
||||||
|
if(i%7==0) document.getElementById('output').innerHTML = arrayFrasiCaricamento[i];
|
||||||
|
}*/
|
||||||
|
}
|
||||||
/*******************************************************************************************************************************************************/
|
/*******************************************************************************************************************************************************/
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user