Nettoyage du code
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="static/css/style.css", filename= 'style.css'>
|
||||
<title>SpotDL Web</title>
|
||||
</head>
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Error 404</h1>
|
||||
<h2>Il semble que vous soyez perdu. Revenez à la page d'accueil</h2>
|
||||
<button class="btn" onclick="window.location.href = '/';">Accueil</button>
|
||||
</div>
|
||||
{% block body %}
|
||||
|
||||
</body>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Error 404</h1>
|
||||
<h2>Il semble que vous soyez perdu. Revenez à la page d'accueil</h2>
|
||||
<button class="btn" onclick="window.location.href = '/';">Accueil</button>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
{% endblock body %}
|
||||
@@ -1,18 +1,18 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="static/css/style.css", filename= 'style.css'>
|
||||
<title>SpotDL Web</title>
|
||||
</head>
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1 class="title"> SpotDL Web </h1>
|
||||
<h2> Veuillez entrer au moins une URL ! </h2>
|
||||
<button class="btn" onclick="window.location.href = '/';">Accueil</button>
|
||||
{% block body %}
|
||||
|
||||
{% if message %}
|
||||
<p>{{ message }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1 class="title"> SpotDL Web </h1>
|
||||
<h2> Veuillez entrer au moins une URL ! </h2>
|
||||
<button class="btn" onclick="window.location.href = '/';">Accueil</button>
|
||||
|
||||
</body>
|
||||
{% if message %}
|
||||
<p>{{ message }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
{% endblock body %}
|
||||
@@ -1,13 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="static/css/style.css", filename= 'style.css'>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>SpotDL Web</title>
|
||||
</head>
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1 class="title">SpotDL Web</h1>
|
||||
<div class="bordered">
|
||||
@@ -40,17 +34,6 @@
|
||||
<button type="submit" class="btn" id="download-button" onclick="startDownload()">Télécharger</button>
|
||||
<button type="reset" class="btn" id="refresh-button" onclick="refreshPage()">Rafraîchir</button>
|
||||
</form>
|
||||
<!-- <button class="btn2" id="refresh-button" onclick="refreshPage()">Rafraîchir</button> -->
|
||||
<!-- <button type="reset" class="btn" id="refresh-button" onclick="refreshPage()">Rafraîchir</button> -->
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function startDownload() {
|
||||
document.getElementById('download-button').innerHTML = 'Téléchargement en cours...';
|
||||
}
|
||||
function refreshPage() {
|
||||
window.location.reload();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html
|
||||
|
||||
{% endblock body %}
|
||||
|
||||
16
templates/layout.html
Normal file
16
templates/layout.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="static/css/style.css", filename= 'style.css'>
|
||||
<script src="/static/js/script.js"></script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>SpotDL Web</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{% block body %}{% endblock body %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
7
templates/modele.html
Normal file
7
templates/modele.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
|
||||
|
||||
{% endblock body %}
|
||||
Reference in New Issue
Block a user