From befaefe3c68c09b0297e33eb0ef05f282a6d5352 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 5 Dec 2025 01:34:26 +0100 Subject: [PATCH] ajout quiz --- Quiz/logo_n2i_color_moon.jpg | 95 ++++++++++++++++++++++++++++++++++++ Quiz/logo_n2i_color_moon.png | 95 ++++++++++++++++++++++++++++++++++++ Quiz/logo_n2i_color_moon.svg | 95 ++++++++++++++++++++++++++++++++++++ Quiz/question.html | 10 ++++ Quiz/quiz.html | 28 +++++++++++ Quiz/test.css | 71 +++++++++++++++++++++++++++ Quiz/test.html | 18 +++++++ Quiz/test.js | 36 ++++++++++++++ Quiz/test.php | 0 9 files changed, 448 insertions(+) create mode 100644 Quiz/logo_n2i_color_moon.jpg create mode 100644 Quiz/logo_n2i_color_moon.png create mode 100644 Quiz/logo_n2i_color_moon.svg create mode 100644 Quiz/question.html create mode 100644 Quiz/quiz.html create mode 100644 Quiz/test.css create mode 100644 Quiz/test.html create mode 100644 Quiz/test.js create mode 100644 Quiz/test.php diff --git a/Quiz/logo_n2i_color_moon.jpg b/Quiz/logo_n2i_color_moon.jpg new file mode 100644 index 0000000..fa6ba86 --- /dev/null +++ b/Quiz/logo_n2i_color_moon.jpg @@ -0,0 +1,95 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/Quiz/logo_n2i_color_moon.png b/Quiz/logo_n2i_color_moon.png new file mode 100644 index 0000000..fa6ba86 --- /dev/null +++ b/Quiz/logo_n2i_color_moon.png @@ -0,0 +1,95 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/Quiz/logo_n2i_color_moon.svg b/Quiz/logo_n2i_color_moon.svg new file mode 100644 index 0000000..fa6ba86 --- /dev/null +++ b/Quiz/logo_n2i_color_moon.svg @@ -0,0 +1,95 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/Quiz/question.html b/Quiz/question.html new file mode 100644 index 0000000..64c1db9 --- /dev/null +++ b/Quiz/question.html @@ -0,0 +1,10 @@ +{% for q in questions %} +
+

{{q.question}}

+ {% for a in q.answer%} +
+ {% endfor %} + +



+
+{% endfor %} \ No newline at end of file diff --git a/Quiz/quiz.html b/Quiz/quiz.html new file mode 100644 index 0000000..23bd702 --- /dev/null +++ b/Quiz/quiz.html @@ -0,0 +1,28 @@ + + + + Nuit de l'info quiz + + + + + + +

page du quiz

+ +
+

Question

+
+
+ +



+
+
+

Question

+
+
+ +



+
+ + diff --git a/Quiz/test.css b/Quiz/test.css new file mode 100644 index 0000000..6393228 --- /dev/null +++ b/Quiz/test.css @@ -0,0 +1,71 @@ +body { + font-family: sans-serif; + background-color: #0f0f20; + text-align: center; +} + +h1 { + color: #ff0000; +} + +img.logo { + background-color: #0f0f20; +} + + + +p { + color: rgb(0, 221, 255); +} + +input::checkmark { + color: #000; +} + +button { + border: 0; + line-height: 2.0; + padding: 0 10px; + font-size: 1rem; + text-align: center; + color: plum; + text-shadow: 1px 1px 1px black; + border-radius: 10px; + background-color: #0f0f20; + background-image: linear-gradient( + to top left, + rgb(0 0 0 / 0.2), + rgb(0 0 0 / 0.2) 30%, + transparent + ); + box-shadow: + inset 2px 2px 3px rgba(255, 255, 255, 0.6), + inset -2px -2px 3px rgb(0 0 0 / 0.6); +} + +button:hover { + background-color: rgb(70, 70, 255); +} + +button:active { + box-shadow: + inset -2px -2px 3px rgb(255 255 255 / 0.6), + inset 2px 2px 3px rgb(0 0 0 / 0.6); +} + +.test { + background-color: #202040; + width: 400px; + /*height: 300px;*/ + margin: auto; + border-radius: 25px; + display: none; +} + + +.ans { + color: #a0a0ff; + margin: 25px; + font-size: 20px; +} + diff --git a/Quiz/test.html b/Quiz/test.html new file mode 100644 index 0000000..451cff5 --- /dev/null +++ b/Quiz/test.html @@ -0,0 +1,18 @@ + + + + Nuit de l'info tkt + + + + + + +

Nuit de l'Info

+

hello world!

+ + + + + + \ No newline at end of file diff --git a/Quiz/test.js b/Quiz/test.js new file mode 100644 index 0000000..009e425 --- /dev/null +++ b/Quiz/test.js @@ -0,0 +1,36 @@ +function test() +{ + document.getElementById("demo").style.color = "red"; + document.getElementById("demo").style.backgroundColor = "yellow"; + document.getElementById("demo").innerHTML = "Title!"; +} +var nextquestion; +function startQuiz() +{ + nextquestion = 1; + document.getElementById("test1").style.display = "block"; + document.getElementById("strt").disabled = "true"; +} + +function tog() +{ + var chk1 = document.getElementById("tgl1"+nextquestion) + var chk2 = document.getElementById("tgl2"+nextquestion) + if (chk1.checked==true && chk2.checked != true) + { + document.getElementById("answer"+nextquestion).innerHTML = "correct"; + document.getElementById("answer"+nextquestion).style.color = "#00ff00"; + } else + { + document.getElementById("answer"+nextquestion).innerHTML = "incorrect"; + document.getElementById("answer"+nextquestion).style.color = "#ff0000"; + } + document.getElementById("answer"+nextquestion).style.display = "block"; + document.getElementById("tgl1"+nextquestion).disabled = "true"; + document.getElementById("tgl2"+nextquestion).disabled = "true"; + document.getElementById("sub1").disabled = "true"; + nextquestion = nextquestion + 1; + document.getElementById("test"+nextquestion).style.display = "block"; + +} + diff --git a/Quiz/test.php b/Quiz/test.php new file mode 100644 index 0000000..e69de29