-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (102 loc) · 4.36 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Site en Construction</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<style>
body {
font-family: Arial, sans-serif;
background-color: #e3e3e3;
text-align: center;
padding: 100px;
}
h1 {
color: #333;
}
p {
color: #555;
}
.todolist {
display: none;
margin-top: 20px;
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin-bottom: 10px;
display: flex;
justify-content: space-between;
}
.task-text {
flex-grow: 1;
}
.task-buttons {
margin-left: 10px;
}
#toggleButton {
width: 300px;
height: auto;
transition: transform 0.3s ease-in-out;
}
#toggleButton:hover {
transform: scale(1.10);
}
.btn-orange {
background-color: #444b66;
border-color: #444b66;
color: #fff;
}
.btn-space {
margin-right: 10px;
}
</style>
</head>
<body>
<h1>Site en Construction depuis 10000 ans ! </h1>
<p>Outer Wilds Ventures travail dur pour améliorer votre expérience. Revenez bientôt !</p>
<p><b>En attendant préparez votre voyage en cliquant sur l'image:</b></p>
<img id="toggleButton" src="https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/31abb4cb-6088-4e93-85bc-744885028b01/dd9h88u-d384c96c-b1e3-44d7-b639-88946a92cb2e.png/v1/fill/w_998,h_801/outer_wilds_logo_by_justagirlcalledlex_dd9h88u-pre.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9ODgwIiwicGF0aCI6IlwvZlwvMzFhYmI0Y2ItNjA4OC00ZTkzLTg1YmMtNzQ0ODg1MDI4YjAxXC9kZDloODh1LWQzODRjOTZjLWIxZTMtNDRkNy1iNjM5LTg4OTQ2YTkyY2IyZS5wbmciLCJ3aWR0aCI6Ijw9MTA5NyJ9XV0sImF1ZCI6WyJ1cm46c2VydmljZTppbWFnZS5vcGVyYXRpb25zIl19.uudThtKhfgqxRpUCpUf-pemKntRfmJUuFo5Y5HQbfNU" alt="Image Outer Wilds">
<div class="todolist" id="todolist">
<h2>Items souhaités pour le voyage:</h2>
<ul id="taskList">
</ul>
<input type="text" id="newTask" placeholder="Ajouter une tache">
<button class="btn btn-primary btn-orange" onclick="addTask()">🚀</button>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script>
function addTask() {
var taskText = document.getElementById('newTask').value;
if (taskText.trim() !== '') {
var taskList = document.getElementById('taskList');
var li = document.createElement('li');
li.innerHTML = '<span class="task-text">' + taskText + '</span>' +
'<span class="task-buttons">' +
'<button class="btn btn-success btn-orange btn-space" onclick="completeTask(this)">Useless</button>' +
'<button class="btn btn-danger btn-orange" onclick="removeTask(this)">🗑️</button>' +
'</span>';
taskList.appendChild(li);
document.getElementById('newTask').value = '';
}
}
function completeTask(button) {
var li = button.parentNode.parentNode;
li.classList.toggle('completed');
}
function removeTask(button) {
var li = button.parentNode.parentNode;
li.parentNode.removeChild(li);
}
document.getElementById('toggleButton').addEventListener('click', function() {
var todolist = document.getElementById('todolist');
todolist.style.display = (todolist.style.display === 'none' || todolist.style.display === '') ? 'block' : 'none';
});
</script>
</body>
</html>