Compare commits
1 Commits
4358baa1b7
...
feat/css-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a17ce6ad8a |
@@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
<select id="person">
|
<select id="person">
|
||||||
<option selected disabled>Who are you?</option>
|
<option selected disabled>Who are you?</option>
|
||||||
<option>Quentin</option>
|
|
||||||
__OPTIONS__
|
__OPTIONS__
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -71,7 +70,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.getElementById("person").addEventListener("change", (event) => {
|
document.getElementById("person").addEventListener("change", (event) => {
|
||||||
/*const options = {
|
const options = {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({ person: event.target.value }),
|
body: JSON.stringify({ person: event.target.value }),
|
||||||
@@ -86,9 +85,7 @@
|
|||||||
"result"
|
"result"
|
||||||
).textContent = `Your draw: ${text}`;
|
).textContent = `Your draw: ${text}`;
|
||||||
document.getElementById("person").remove();
|
document.getElementById("person").remove();
|
||||||
});*/
|
});
|
||||||
document.getElementById("result").textContent = `Your draw: Virginie`;
|
|
||||||
document.getElementById("person").remove();
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user