From d0ab3603aa37d97b48599330ad5bab71e8706091 Mon Sep 17 00:00:00 2001 From: quegzacov Date: Tue, 27 Dec 2022 18:36:02 +0100 Subject: [PATCH] 3.141592653589 (bis) --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index d91408a..c30a630 100755 --- a/script.js +++ b/script.js @@ -10,7 +10,7 @@ function draw_roulette(nb_person, x, y){ new_path.setAttribute('fill', 'green'); new_path.setAttribute('d', "M 200 200 A 50 50 0 0 1 " + coo_arr[0] + " " + coo_arr[1] + " L 250 200 Z"); svg.appendChild(new_path); - document.getElementsByTag('body')[0].appendChild(svg); + document.getElementsByTagNames('body')[0].appendChild(svg); console.log(svg) console.log(new_path.getAttribute('d')); }