summaryrefslogtreecommitdiff
path: root/Static/Js/index.js
diff options
context:
space:
mode:
authorDebulois <quentin@debulois.fr>2022-05-07 12:23:11 +0200
committerDebulois <quentin@debulois.fr>2022-05-07 12:23:11 +0200
commit588c4ceb78fae443ca8f9446d256f5474a3bf66a (patch)
tree224c5e5aa643012ac030af4410e935fffcefbe8f /Static/Js/index.js
parent0048d676a2bed3addadea670fa5d802a314af473 (diff)
Ré-écriture du JS pour le rendre CSP compliant
Diffstat (limited to 'Static/Js/index.js')
-rw-r--r--Static/Js/index.js8
1 files changed, 6 insertions, 2 deletions
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();