Changes for page Presentation Test Page

Last modified by Erik Bakker on 2024/07/30 14:39

From version 38.1
edited by Erik Bakker
on 2024/07/30 14:22
Change comment: There is no comment for this version
To version 43.1
edited by Erik Bakker
on 2024/07/30 14:29
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -43,45 +43,40 @@
43 43  == Current slide ==
44 44  
45 45  {{html}}
46 -<html lang="en">
47 - <head>
48 - <meta charset="utf-8">
49 - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
46 +<!-- Slideshow container -->
47 +<div class="slideshow-container">
50 50  
51 - <title>reveal.js</title>
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>
52 52  
53 - <link rel="stylesheet" href="dist/reset.css">
54 - <link rel="stylesheet" href="dist/reveal.css">
55 - <link rel="stylesheet" href="dist/theme/black.css">
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>
56 56  
57 - <!-- Theme used for syntax highlighted code -->
58 - <link rel="stylesheet" href="plugin/highlight/monokai.css">
59 - </head>
60 - <body>
61 - <div class="reveal">
62 - <div class="slides">
63 - <section>Slide 1</section>
64 - <section>Slide 2</section>
65 - </div>
66 - </div>
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 67  
68 - <script src="dist/reveal.js"></script>
69 - <script src="plugin/notes/notes.js"></script>
70 - <script src="plugin/markdown/markdown.js"></script>
71 - <script src="plugin/highlight/highlight.js"></script>
72 - <script>
73 - // More info about initialization & config:
74 - // - https://revealjs.com/initialization/
75 - // - https://revealjs.com/config/
76 - Reveal.initialize({
77 - hash: true,
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>
78 78  
79 - // Learn about plugins: https://revealjs.com/plugins/
80 - plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
81 - });
82 - </script>
83 - </body>
84 -</html>
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>
85 85  
86 86  {{/html}}
87 87  
XWiki.StyleSheetExtension[0]
Code
... ... @@ -1,0 +1,87 @@
1 +* {box-sizing:border-box}
2 +
3 +/* Slideshow container */
4 +.slideshow-container {
5 + max-width: 1000px;
6 + position: relative;
7 + margin: auto;
8 +}
9 +
10 +/* Hide the images by default */
11 +.mySlides {
12 + display: none;
13 +}
14 +
15 +/* Next & previous buttons */
16 +.prev, .next {
17 + cursor: pointer;
18 + position: absolute;
19 + top: 50%;
20 + width: auto;
21 + margin-top: -22px;
22 + padding: 16px;
23 + color: white;
24 + font-weight: bold;
25 + font-size: 18px;
26 + transition: 0.6s ease;
27 + border-radius: 0 3px 3px 0;
28 + user-select: none;
29 +}
30 +
31 +/* Position the "next button" to the right */
32 +.next {
33 + right: 0;
34 + border-radius: 3px 0 0 3px;
35 +}
36 +
37 +/* On hover, add a black background color with a little bit see-through */
38 +.prev:hover, .next:hover {
39 + background-color: rgba(0,0,0,0.8);
40 +}
41 +
42 +/* Caption text */
43 +.text {
44 + color: #f2f2f2;
45 + font-size: 15px;
46 + padding: 8px 12px;
47 + position: absolute;
48 + bottom: 8px;
49 + width: 100%;
50 + text-align: center;
51 +}
52 +
53 +/* Number text (1/3 etc) */
54 +.numbertext {
55 + color: #f2f2f2;
56 + font-size: 12px;
57 + padding: 8px 12px;
58 + position: absolute;
59 + top: 0;
60 +}
61 +
62 +/* The dots/bullets/indicators */
63 +.dot {
64 + cursor: pointer;
65 + height: 15px;
66 + width: 15px;
67 + margin: 0 2px;
68 + background-color: #bbb;
69 + border-radius: 50%;
70 + display: inline-block;
71 + transition: background-color 0.6s ease;
72 +}
73 +
74 +.active, .dot:hover {
75 + background-color: #717171;
76 +}
77 +
78 +/* Fading animation */
79 +.fade {
80 + animation-name: fade;
81 + animation-duration: 1.5s;
82 +}
83 +
84 +@keyframes fade {
85 + from {opacity: .4}
86 + to {opacity: 1}
87 +}