Fixed Generate Script
This commit is contained in:
@@ -19,7 +19,7 @@ header{
|
||||
}
|
||||
|
||||
.main-container{
|
||||
padding:50px 20px 20px 20px ;
|
||||
padding:50px 20px 50px 20px ;
|
||||
background-color: #363636;
|
||||
width:100vw;
|
||||
height:100vh;
|
||||
@@ -75,7 +75,7 @@ header{
|
||||
margin:5px;
|
||||
background-color: rgba(255, 255, 255, 0.774);
|
||||
color:black;
|
||||
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
|
||||
|
||||
@@ -8,4 +8,22 @@ function show_details(){
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function aggiornaDati() {
|
||||
fetch('/process/ajax-refresh.php')
|
||||
.then(response => response.text())
|
||||
.then(html => {
|
||||
const container = document.getElementById('main-container');
|
||||
if (container) {
|
||||
container.innerHTML = html;
|
||||
|
||||
// Se hai funzioni tipo show_details()
|
||||
if (typeof show_details === "function") {
|
||||
show_details();
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(error => console.error('Errore AJAX:', error));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user