From 588c4ceb78fae443ca8f9446d256f5474a3bf66a Mon Sep 17 00:00:00 2001 From: Debulois Date: Sat, 7 May 2022 12:23:11 +0200 Subject: Ré-écriture du JS pour le rendre CSP compliant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Static/Js/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Static/Js/index.js') diff --git a/Static/Js/index.js b/Static/Js/index.js index 393cafc..f06d0fd 100644 --- a/Static/Js/index.js +++ b/Static/Js/index.js @@ -5,14 +5,15 @@ // # # // ############################################################################ +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters + // **************************************************************************** // SLIDESHOW // **************************************************************************** -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters function slideshow_start() { let slideNumber = 1; - let images = [ + let images = [ "/Media/Images/slide0.jpg", "/Media/Images/slide1.jpg", "/Media/Images/slide2.jpg" @@ -37,3 +38,6 @@ function slideshow_start() { } , 3000); } + +// Activation du slider +slideshow_start(); -- cgit v1.2.3