Suppression des events JavaScript OnClick

This commit is contained in:
theo@manjaro 2022-06-15 15:48:28 +02:00
parent c4f69f9f5e
commit ac5cda63e0
3 changed files with 5 additions and 4 deletions

View File

@ -175,7 +175,7 @@ dt .details {
font-size: 80%;
}
input[type="submit"], button{
input[type="submit"], button, .button{
background: var(--bg-light);
border-style: solid;
border-width: 1px;
@ -184,9 +184,10 @@ input[type="submit"], button{
border-radius: 10px;
transition: background 0.1s;
color: var(--fg);
text-decoration: none;
}
input[type="submit"]:hover, button:hover {
input[type="submit"]:hover, button:hover, .button:hover {
background: var(--bg-dark);
color: var(--fg);
}

View File

@ -15,7 +15,7 @@
<b>Le {{ date_str }}</b>
{% endif %}
<div class="flex">
<button onClick="location.href='/app/date-select{{change_date_str}}'">Choisir une date</button>
<a class="button" href='/app/date-select{{change_date_str}}'>Choisir une date</a>
</div>
<h1>Disponibles maintenant</h1>
<div class="flex-container">

View File

@ -11,7 +11,7 @@
<main>
<p id="greet">Bienvenue sur UniSquat !</p>
<div class="flex">
<button onClick="location.href='/app'">Démarrer</button>
<a href='/app' class="button">Démarrer</a>
</div>
<h2>Qu'est ce que c'est ?</h2>
<p>