diff --git a/TP3.html b/TP3.html index 65f8250..551367f 100644 --- a/TP3.html +++ b/TP3.html @@ -13,7 +13,7 @@ Home Page Projets A propos de moi - Surprise :) + Vibe check Blog Perso + + +
+

+ Lieutenant Champignon - Super explorateur des Enfers - DeluXe + Black Edition VS Dark Roger Featuring "No One" from the serie My + Little Pony +

+ +

+ Lieutenant Champignon is a Captain Toad clone made in 5 days in + Unity for a Game Making course +

+ + source code +
+ + + + diff --git a/projects/pokemonkreteed.html b/projects/pokemonkreteed.html index c4e3a8e..798739c 100644 --- a/projects/pokemonkreteed.html +++ b/projects/pokemonkreteed.html @@ -1,7 +1,7 @@ - Crazy Space + Pokemon Kreye @@ -9,14 +9,6 @@ rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" /> -
@@ -24,7 +16,7 @@ Home Page Projets A propos de moi - Surprise :) + Vibe check Blog Perso +
+ +
+

Left player: z to go up and s to go down

+
+ + + + diff --git a/projects/pycord.html b/projects/pycord.html index a6cea03..b3eae5a 100644 --- a/projects/pycord.html +++ b/projects/pycord.html @@ -1,7 +1,7 @@ - Crazy Space + Pycord @@ -16,7 +16,7 @@ Home Page Projets A propos de moi - Surprise :) + Vibe check Blog Perso + + +
+

Super Space Invader : Turbo Apocalypse DELUXE VS. GOD

+ + Super space invader : tadbvs is a space invader clone made in C++ + and mingl as a graphic library +

+
+ It has a two sets of sprites and features God, He break the + fourth wall and sends aliens straight at you. +

+ + + source code +
+ + + + diff --git a/projects/truthinquiry.html b/projects/truthinquiry.html deleted file mode 100644 index e69de29..0000000 diff --git a/quizz.html b/quizz.html new file mode 100644 index 0000000..eba05c8 --- /dev/null +++ b/quizz.html @@ -0,0 +1,102 @@ + + + + Quizz + + + + + + +
+ + +
+ +
+

Vibe Check

+
+

First you need to introduce yourself

+ +
+ +
+ +
+ +
+ +
+

Now, answer thoses questions

+ + +
+

Who created Minecraft ?

+ +
+ +
+ +
+ + +
+
+
+
+
+ +

+ Calculate it here +
+ +
+ +
+
+ + + + diff --git a/static/CV 2025.pdf b/static/CV 2025.pdf new file mode 100644 index 0000000..1afe0c1 Binary files /dev/null and b/static/CV 2025.pdf differ diff --git a/static/assets/images/Map.png b/static/assets/images/Map.png new file mode 100644 index 0000000..5eba286 Binary files /dev/null and b/static/assets/images/Map.png differ diff --git a/static/assets/images/gameplay.png b/static/assets/images/gameplay.png new file mode 100644 index 0000000..66b2f08 Binary files /dev/null and b/static/assets/images/gameplay.png differ diff --git a/static/assets/images/lcsededbevdrfnoftsmlp.png b/static/assets/images/lcsededbevdrfnoftsmlp.png new file mode 100644 index 0000000..b53b935 Binary files /dev/null and b/static/assets/images/lcsededbevdrfnoftsmlp.png differ diff --git a/static/assets/images/mainMenu.png b/static/assets/images/mainMenu.png new file mode 100644 index 0000000..7abd01b Binary files /dev/null and b/static/assets/images/mainMenu.png differ diff --git a/static/assets/images/pycord menu.png b/static/assets/images/pycord menu.png new file mode 100644 index 0000000..d41c5c7 Binary files /dev/null and b/static/assets/images/pycord menu.png differ diff --git a/static/assets/images/ssitadvg.png b/static/assets/images/ssitadvg.png new file mode 100644 index 0000000..cea4ad4 Binary files /dev/null and b/static/assets/images/ssitadvg.png differ diff --git a/static/js/TP6.js b/static/js/TP6.js index d8d27e6..5870de9 100644 --- a/static/js/TP6.js +++ b/static/js/TP6.js @@ -149,6 +149,7 @@ function processSpin() { delete qualifyingNumbers[number]; } } + console.log(spinArray[currentSpin]); console.log(potentialQualifyingNumbers); console.log(qualifyingNumbers); console.log(winingNumbers); @@ -183,7 +184,10 @@ function showReport() { gains += number[1]; }); - document.getElementById("winrate").textContent = winrate; - document.getElementById("winpercentage").textContent = winpercentage; + document.getElementById("nbq").textContent = + "Number of qualifying numbers : " + numberOfQualifying; + document.getElementById("winrate").textContent = "wirate : " + winrate; + document.getElementById("winpercentage").textContent = + "win percentage : " + winpercentage; document.getElementById("gains").textContent = gains; } diff --git a/static/js/utils.js b/static/js/utils.js index 65158f4..d6f6036 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -13,3 +13,66 @@ function toggle_all_header_links() { ? "▲" : "▼"; } + +function validate() { + let fname = document.getElementById("fname").value.trim(); + let lname = document.getElementById("lname").value.trim(); + let birth = document.getElementById("birth").value.trim(); + let email = document.getElementById("email").value.trim(); + let phone = document.getElementById("phone").value.trim(); + let mcCreator = document.querySelector("input[name='mc_creator']:checked"); + let worth = document.getElementById("worth").value.trim(); + + let emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; + let phonePattern = /^\+?[0-9]{7,15}$/; + let birthPattern = /^(\d{4})-(\d{2})-(\d{2})$/; // Format YYYY-MM-DD + + if (fname === "" || lname === "") { + alert("First name and last name are required."); + return; + } + + if (!birthPattern.test(birth)) { + alert("Please enter a valid birthdate in YYYY-MM-DD format."); + return; + } + + if (!emailPattern.test(email)) { + alert("Please enter a valid email address."); + return; + } + + if (!phonePattern.test(phone)) { + alert("Please enter a valid phone number."); + return; + } + + if (!mcCreator) { + alert("Please select the creator of Minecraft."); + return; + } + + if (worth === "" || isNaN(worth) || worth < 0) { + alert("Please enter a valid worth in euros."); + return; + } + calculateScore(); +} +function calculateScore() { + let score = 0; + let os = document.getElementById("os-select").value; + let mcCreator = document.querySelector( + "input[name='mc_creator']:checked", + ).value; + let voca = document.getElementById("voca").value.trim().toLowerCase(); + let worth = parseFloat(document.getElementById("worth").value); + let sns = document.getElementById("sns-select").value; + + if (os === "linux") score += 1; + if (mcCreator === "miku") score += 1; + if (voca === "electric angel") score += 1; + if (worth > 5000000) score += 1; + if (sns === "Twitter") score += 1; + + alert("Your score is: " + score + "/5"); +} diff --git a/static/rapport.pdf b/static/rapport.pdf new file mode 100644 index 0000000..94b316a Binary files /dev/null and b/static/rapport.pdf differ diff --git a/static/style.css b/static/style.css index fa5afb3..9f79f7f 100644 --- a/static/style.css +++ b/static/style.css @@ -38,6 +38,14 @@ ul { } } +hr { + margin: 1rem 0; + border: none; + border-top: solid 1px var(--color-text); + min-width: 80px; + width: 80%; +} + body { color: var(--color-text); display: flex;