From 5679dfd03c9761283e3a36d6d09798aaa334e1e9 Mon Sep 17 00:00:00 2001 From: Denise sur Lya Date: Sun, 14 Jun 2020 23:20:48 +0200 Subject: =?UTF-8?q?Cr=C3=A9ation=20du=20d=C3=A9p=C3=B4t,=20site=20=C3=A0?= =?UTF-8?q?=20peu=20pr=C3=A8s=20fonctionnel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/outilspage.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 static/outilspage.js (limited to 'static/outilspage.js') diff --git a/static/outilspage.js b/static/outilspage.js new file mode 100644 index 0000000..de87963 --- /dev/null +++ b/static/outilspage.js @@ -0,0 +1,25 @@ +// fonctions générales pour la page + +function ajoutelignes() +{ + // va ajouter 3 lignes au tableau de données + var table = document.getElementById("donneespoids") + var nbligne = table.children[0].childElementCount ; + // les données étant numérotées à partir de 0 on pourra commencer à partir de nbligne -1 + // car il faut éliminer la ligne de header. + + var nbajout = 3 ; + for(var i=nbligne-1; i' ; + celldate.innerHTML = '' ; + cellpoids.innerHTML = '' ; + + } + +} -- cgit v1.2.3