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
Change comment: There is no comment for this version
To version 40.1
edited by Erik Bakker
on 2024/07/30 14:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -43,40 +43,41 @@
43 43  == Current slide ==
44 44  
45 45  {{html}}
46 -<!-- Slideshow container -->
47 -<div class="slideshow-container">
46 +<html>
47 +<body>
48 +
49 + <!-- Define the slideshow container -->
50 + <div id="slideshow">
51 + <div class="slide-wrapper">
52 +
53 + <!-- Define each of the slides
54 + and write the content -->
55 +
56 + <div class="slide">
57 + <h1 class="slide-number">
58 + GeeksforGeeks
59 + </h1>
60 + </div>
61 + <div class="slide">
62 + <h1 class="slide-number">
63 + A computer science portal
64 + </h1>
65 + </div>
66 + <div class="slide">
67 + <h1 class="slide-number">
68 + This is an example of
69 + </h1>
70 + </div>
71 + <div class="slide">
72 + <h1 class="slide-number">
73 + Slideshow with HTML and CSS only
74 + </h1>
75 + </div>
76 + </div>
77 + </div>
78 +</body>
79 +
80 +</html>
48 48  
49 - <!-- Full-width images with number and caption text -->
50 - <div class="mySlides fade">
51 - <div class="numbertext">1 / 3</div>
52 - <img src="img1.jpg" style="width:100%">
53 - <div class="text">Caption Text</div>
54 - </div>
55 -
56 - <div class="mySlides fade">
57 - <div class="numbertext">2 / 3</div>
58 - <img src="img2.jpg" style="width:100%">
59 - <div class="text">Caption Two</div>
60 - </div>
61 -
62 - <div class="mySlides fade">
63 - <div class="numbertext">3 / 3</div>
64 - <img src="img3.jpg" style="width:100%">
65 - <div class="text">Caption Three</div>
66 - </div>
67 -
68 - <!-- Next and previous buttons -->
69 - <a class="prev" onclick="plusSlides(-1)">&#10094;</a>
70 - <a class="next" onclick="plusSlides(1)">&#10095;</a>
71 -</div>
72 -<br>
73 -
74 -<!-- The dots/circles -->
75 -<div style="text-align:center">
76 - <span class="dot" onclick="currentSlide(1)"></span>
77 - <span class="dot" onclick="currentSlide(2)"></span>
78 - <span class="dot" onclick="currentSlide(3)"></span>
79 -</div>
80 -
81 81  {{/html}}
82 82  
XWiki.StyleSheetExtension[0]
Code
... ... @@ -1,8 +1,8 @@
1 1  /* Styling the area of the slides */
2 2  #slideshow {
3 3   overflow: hidden;
4 - height: 1240px;
5 - width: 860px;
4 + height: 510px;
5 + width: 728px;
6 6   margin: 0 auto;
7 7  }
8 8  
... ... @@ -10,8 +10,8 @@
10 10   with a fixed width and height */
11 11  .slide {
12 12   float: left;
13 - height: 1240px;
14 - width: 860px;
13 + height: 510px;
14 + width: 728px;
15 15  }
16 16  
17 17  /* Add animation to the slides */
... ... @@ -19,7 +19,7 @@
19 19  
20 20   /* Calculate the total width on the
21 21   basis of number of slides */
22 - width: calc(860px * 4);
22 + width: calc(728px * 4);
23 23  
24 24   /* Specify the animation with the
25 25   duration and speed */
... ... @@ -55,14 +55,14 @@
55 55   }
56 56  
57 57   40% {
58 - margin-left: calc(-860px * 1);
58 + margin-left: calc(-728px * 1);
59 59   }
60 60  
61 61   60% {
62 - margin-left: calc(-860px * 2);
62 + margin-left: calc(-728px * 2);
63 63   }
64 64  
65 65   80% {
66 - margin-left: calc(-860px * 3);
66 + margin-left: calc(-728px * 3);
67 67   }
68 68  }