From 6de2d6bc245a8b94e272cbcc59b491468b5ff210 Mon Sep 17 00:00:00 2001 From: electropositron Date: Wed, 6 Nov 2024 18:27:00 +0100 Subject: [PATCH] first elements --- app/index.html | 20 ++++++++++++++++++++ app/script.js | 21 +++++++++++++++++++++ app/style.css | 4 ++++ 3 files changed, 45 insertions(+) create mode 100644 app/index.html create mode 100644 app/script.js create mode 100644 app/style.css diff --git a/app/index.html b/app/index.html new file mode 100644 index 0000000..a0093ff --- /dev/null +++ b/app/index.html @@ -0,0 +1,20 @@ + + + + + Pangloss + + + + +
+ + +
+
+ + +
+ + + \ No newline at end of file diff --git a/app/script.js b/app/script.js new file mode 100644 index 0000000..ba8e689 --- /dev/null +++ b/app/script.js @@ -0,0 +1,21 @@ +//définition de l'objet tâche +const Tache = { + //Nom de la tâche - chaîne de caractères + nom: "default", + //Durée en heures - float + duree : 0.0, + //Date de début + date_debut: Date.now(), + //Date de fin + date_fin : Date.now().dateAddDAys(1), + //Tache à faire avant la tâche courante + est_bloque_par: {}, + //Priorité - integer + priorite: 0, +} + +function createtask(){ + let tache = Object.create(Tache); + alert("la tâche s'appelle"); + alert(tache.nom); +} \ No newline at end of file diff --git a/app/style.css b/app/style.css new file mode 100644 index 0000000..2ffe7a8 --- /dev/null +++ b/app/style.css @@ -0,0 +1,4 @@ +body{ + background-image: url(https://t3.ftcdn.net/jpg/09/18/51/88/360_F_918518811_e0Wh732g7nIS9hsyi7ox9wWhguruEEgx.jpg); + background-size: 500px; +} \ No newline at end of file