From 5ed9f722305b88b5b7ad772520f285202123a6d2 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Sun, 23 Feb 2025 14:56:54 +0100 Subject: [PATCH] chore: update HTML links to use absolute paths for consistency and reliability feat: add new project pages for Crazy Space, Pokemon Kreye edition, Pycord, and others fix: update project descriptions for clarity and accuracy style: format JavaScript code for better readability and consistency --- CV.html | 10 ++-- TP3.html | 12 ++--- TP4.html | 12 ++--- TP5.html | 12 ++--- TP6.html | 12 ++--- blocs.html | 10 ++-- index.html | 10 ++-- projects.html | 62 +++++++++++++++++----- projects/clipsync.html | 0 projects/crazyspace.html | 91 +++++++++++++++++++++++++++++++++ projects/httpserver.html | 0 projects/pokemonkreteed.html | 79 ++++++++++++++++++++++++++++ projects/pycord.html | 48 +++++++++++++++++ projects/retrodb.html | 0 projects/superspaceinvader.html | 0 projects/truthinquiry.html | 0 static/js/TP4.js | 32 ++++++------ 17 files changed, 322 insertions(+), 68 deletions(-) create mode 100644 projects/clipsync.html create mode 100644 projects/crazyspace.html create mode 100644 projects/httpserver.html create mode 100644 projects/pokemonkreteed.html create mode 100644 projects/pycord.html create mode 100644 projects/retrodb.html create mode 100644 projects/superspaceinvader.html create mode 100644 projects/truthinquiry.html diff --git a/CV.html b/CV.html index bdc3bb8..b878ca8 100644 --- a/CV.html +++ b/CV.html @@ -3,16 +3,16 @@ CV - - + +
+
+ +
+

Crazy space

+

+ Crazy space is a space shooter game made in scratch for a + programing contest named Jeux Fabrique. +
+ In Crazy space you play E-404, a space ship fighting asteroids + comming stright to Earth and the mysterious entiries causing + them to fall down to Earth. +

+
+ +
+

+ The final version is now lost to time but a old demo can still + be played +

+ +
+ + + + diff --git a/projects/httpserver.html b/projects/httpserver.html new file mode 100644 index 0000000..e69de29 diff --git a/projects/pokemonkreteed.html b/projects/pokemonkreteed.html new file mode 100644 index 0000000..c4e3a8e --- /dev/null +++ b/projects/pokemonkreteed.html @@ -0,0 +1,79 @@ + + + + Crazy Space + + + + + + + +
+ + +
+ +
+

Pokemon : Kreye edition

+

+ Pokemon Kreye edtion is a Pokemon Fire Red rom hack made for my + friend nicknamed "Kreye". +
+ The game is unfinished but we had a lot of fun making this game. +
+ It is only shown for the technical prowess of making a rom hack. +

+

+ WARNING THIS GAME WAS MADE BY A TEENAGER AT THE TIME, THE HUMOR + IS GROSS +

+ +
+ + + + diff --git a/projects/pycord.html b/projects/pycord.html new file mode 100644 index 0000000..a6cea03 --- /dev/null +++ b/projects/pycord.html @@ -0,0 +1,48 @@ + + + + Crazy Space + + + + + + +
+ + +
+ +
+

Pycord

+

+ Pycord is Termunal UI a discord clone made in python. +
+ It uses npyscreen as a tui library and Mysql as a database. +

+ source code +
+ + + + diff --git a/projects/retrodb.html b/projects/retrodb.html new file mode 100644 index 0000000..e69de29 diff --git a/projects/superspaceinvader.html b/projects/superspaceinvader.html new file mode 100644 index 0000000..e69de29 diff --git a/projects/truthinquiry.html b/projects/truthinquiry.html new file mode 100644 index 0000000..e69de29 diff --git a/static/js/TP4.js b/static/js/TP4.js index 3eac259..05833a0 100644 --- a/static/js/TP4.js +++ b/static/js/TP4.js @@ -1,38 +1,38 @@ -var pokemons = [6,26,260,282,297,380] +var pokemons = [6, 26, 260, 282, 297, 380]; -function chose_random_pokemon(){ +function chose_random_pokemon() { let randnum = Math.floor(Math.random() * pokemons.length); - let imageToDisplay = "static/assets/images/pokemons/"+pokemons[randnum]+".png" + let imageToDisplay = + "/static/assets/images/pokemons/" + pokemons[randnum] + ".png"; get_name(pokemons[randnum]); get_desc(pokemons[randnum]); document.getElementById("pokemon_frame").src = imageToDisplay; } - -function get_name(number){ - fetch("https://pokeapi.co/api/v2/pokemon/"+number) - .then(function(response) { +function get_name(number) { + fetch("https://pokeapi.co/api/v2/pokemon/" + number) + .then(function (response) { return response.json(); }) - .then(function(pokemon_data) { + .then(function (pokemon_data) { let name = pokemon_data.name; document.getElementById("pokemon_name").textContent = name; }) - .catch(function(err) { - console.log('Fetch Error :-S', err); + .catch(function (err) { + console.log("Fetch Error :-S", err); }); } -function get_desc(number){ - fetch("https://pokeapi.co/api/v2/pokemon-species/"+number) - .then(function(response) { +function get_desc(number) { + fetch("https://pokeapi.co/api/v2/pokemon-species/" + number) + .then(function (response) { return response.json(); }) - .then(function(pokemon_data) { + .then(function (pokemon_data) { let desc = pokemon_data.flavor_text_entries[0].flavor_text; document.getElementById("pokemon_desc").textContent = desc; }) - .catch(function(err) { - console.log('Fetch Error :-S', err); + .catch(function (err) { + console.log("Fetch Error :-S", err); }); }