Changes for page Presentation Test Page
Last modified by Erik Bakker on 2024/07/30 14:39
From version 42.1
edited by Erik Bakker
on 2024/07/30 14:29
on 2024/07/30 14:29
Change comment:
There is no comment for this version
To version 53.1
edited by Erik Bakker
on 2024/07/30 14:39
on 2024/07/30 14:39
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -49,19 +49,19 @@ 49 49 <!-- Full-width images with number and caption text --> 50 50 <div class="mySlides fade"> 51 51 <div class="numbertext">1 / 3</div> 52 - <img src="img 1.jpg" style="width:100%">52 + <img src="/bin/download/Main/Images/General/WebHome/main-background-slide-emagiz.png" style="width:100%"> 53 53 <div class="text">Caption Text</div> 54 54 </div> 55 55 56 56 <div class="mySlides fade"> 57 57 <div class="numbertext">2 / 3</div> 58 - <img src="img 2.jpg" style="width:100%">58 + <img src="/bin/download/Main/Images/General/WebHome/Logo_Vogelbekdier.png" style="width:100%"> 59 59 <div class="text">Caption Two</div> 60 60 </div> 61 61 62 62 <div class="mySlides fade"> 63 63 <div class="numbertext">3 / 3</div> 64 - <img src="img 3.jpg" style="width:100%">64 + <img src="/bin/download/Main/Images/General/WebHome/statuspage.png" style="width:100%"> 65 65 <div class="text">Caption Three</div> 66 66 </div> 67 67
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -1,68 +1,0 @@ 1 -/* Styling the area of the slides */ 2 -#slideshow { 3 - overflow: hidden; 4 - height: 1240px; 5 - width: 860px; 6 - margin: 0 auto; 7 -} 8 - 9 -/* Style each of the sides 10 - with a fixed width and height */ 11 -.slide { 12 - float: left; 13 - height: 1240px; 14 - width: 860px; 15 -} 16 - 17 -/* Add animation to the slides */ 18 -.slide-wrapper { 19 - 20 - /* Calculate the total width on the 21 - basis of number of slides */ 22 - width: calc(860px * 4); 23 - 24 - /* Specify the animation with the 25 - duration and speed */ 26 - animation: slide 10s ease infinite; 27 -} 28 - 29 -/* Set the background color 30 - of each of the slides */ 31 -.slide:nth-child(1) { 32 - background: green; 33 -} 34 - 35 -.slide:nth-child(2) { 36 - background: pink; 37 -} 38 - 39 -.slide:nth-child(3) { 40 - background: red; 41 -} 42 - 43 -.slide:nth-child(4) { 44 - background: yellow; 45 -} 46 - 47 -/* Define the animation 48 - for the slideshow */ 49 -@keyframes slide { 50 - 51 - /* Calculate the margin-left for 52 - each of the slides */ 53 - 20% { 54 - margin-left: 0px; 55 - } 56 - 57 - 40% { 58 - margin-left: calc(-860px * 1); 59 - } 60 - 61 - 60% { 62 - margin-left: calc(-860px * 2); 63 - } 64 - 65 - 80% { 66 - margin-left: calc(-860px * 3); 67 - } 68 -}
- XWiki.JavaScriptExtension[0]
-
- Caching policy
-
... ... @@ -1,0 +1,1 @@ 1 +long - Code
-
... ... @@ -1,0 +1,28 @@ 1 +let slideIndex = 1; 2 +showSlides(slideIndex); 3 + 4 +// Next/previous controls 5 +function plusSlides(n) { 6 + showSlides(slideIndex += n); 7 +} 8 + 9 +// Thumbnail image controls 10 +function currentSlide(n) { 11 + showSlides(slideIndex = n); 12 +} 13 + 14 +function showSlides(n) { 15 + let i; 16 + let slides = document.getElementsByClassName("mySlides"); 17 + let dots = document.getElementsByClassName("dot"); 18 + if (n > slides.length) {slideIndex = 1} 19 + if (n < 1) {slideIndex = slides.length} 20 + for (i = 0; i < slides.length; i++) { 21 + slides[i].style.display = "none"; 22 + } 23 + for (i = 0; i < dots.length; i++) { 24 + dots[i].className = dots[i].className.replace(" active", ""); 25 + } 26 + slides[slideIndex-1].style.display = "block"; 27 + dots[slideIndex-1].className += " active"; 28 +} - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +always - Name
-
... ... @@ -1,0 +1,1 @@ 1 +Javascript Tryout - Parse content
-
... ... @@ -1,0 +1,1 @@ 1 +Yes