Changes to be committed:
All checks were successful
continuous-integration/drone/push Build is passing

modified:   static/css/style.css
	modified:   static/js/script.js

Divers modifications du CSS et modification de script.js afin de cacher le bouton inutiliser lors du téléchargement
This commit is contained in:
guillaume 2023-06-06 19:28:44 +02:00
parent b27d8fce7c
commit 65a9ca71b4
2 changed files with 34 additions and 6 deletions

View File

@ -15,8 +15,8 @@ body {
.bordered {
border: 1px solid rgb(24,216,96);
border-radius: 5px;
padding: 20px;
margin-bottom: 20px;
padding: 10px;
margin-bottom: 15px;
}
li {
@ -66,7 +66,7 @@ body {
background-color: rgb(24,216,96);
border: none;
border-radius: 5px;
padding: 10px 20px;
padding: 6px 8px;
color: #131313;
font-weight: bold;
cursor: pointer;
@ -97,4 +97,8 @@ body {
@media (max-width: 600px) {
.container {
padding: 10px;
}
}
input {
touch-action: manipulation;
}
}

View File

@ -1,9 +1,33 @@
function startDownload() {
document.getElementById('download-button').innerHTML = 'Téléchargement en cours...';
var downloadButton = document.getElementById('download-button');
var downloadLocalButton = document.getElementById('downloadlocal-button');
if (downloadButton.style.display !== 'none') {
downloadButton.style.display = 'none';
downloadLocalButton.style.display = 'block';
} else {
downloadButton.style.display = 'block';
downloadLocalButton.style.display = 'none';
}
downloadLocalButton.innerHTML = 'Téléchargement en cours...';
}
function startLocalDownload() {
document.getElementById('downloadlocal-button').innerHTML = 'Téléchargement en cours...';
var downloadButton = document.getElementById('download-button');
var downloadLocalButton = document.getElementById('downloadlocal-button');
if (downloadLocalButton.style.display !== 'none') {
downloadLocalButton.style.display = 'none';
downloadButton.style.display = 'block';
} else {
downloadLocalButton.style.display = 'block';
downloadButton.style.display = 'none';
}
downloadButton.innerHTML = 'Téléchargement en cours...';
}
function refreshPage() {
window.location.reload();
}