Modifications pour le document Verts - Compagnons
sur 2021/11/23 09:20
sur 2021/11/23 09:18
Résumé
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -1,11 +1,11 @@ 1 1 {{html clean="false"}} 2 2 3 3 <div style="height:100px; width:300px; padding-left:1em; float:right"> 4 - <div id="slideshow1" class="slide" style=""><div><img src="https://scouts.forbach.fr/download/Verts/WebHome/compa%20mur.jpg?height :150px"></div></div>4 + <div id="slideshow1" class="slide" style=""><div><img src="https://scouts.forbach.fr/download/Verts/WebHome/compa%20mur.jpg?height = 150px"></div></div> 5 5 <div id="slideshow2" class="slide" style="display: none"><div><img src="/xwiki/download/Main/WebHome/tim visage.jpg?height = 150px"></div></div> 6 - <div id="slideshow3" class="slide" style="display: none"><div><img src="https://scouts.forbach.fr/download/Verts/WebHome/quentin%20visage.jpg?height :150px"></div></div>7 - <div id="slideshow4" class="slide" style="display: none"><div><img src="https://scouts.forbach.fr/download/Verts/WebHome/julien%20visage.jpg?height :150px"></div></div>8 - <div id="slideshow5" class="slide" style="display: none"><div><img src="https://scouts.forbach.fr/download/Verts/WebHome/compa%20tente.jpg?height :150px"></div></div>6 + <div id="slideshow3" class="slide" style="display: none"><div><img src="https://scouts.forbach.fr/download/Verts/WebHome/quentin%20visage.jpg?height = 150px"></div></div> 7 + <div id="slideshow4" class="slide" style="display: none"><div><img src="https://scouts.forbach.fr/download/Verts/WebHome/julien%20visage.jpg?height = 150px"></div></div> 8 + <div id="slideshow5" class="slide" style="display: none"><div><img src="https://scouts.forbach.fr/download/Verts/WebHome/compa%20tente.jpg?height = 150px"></div></div> 9 9 10 10 </div> 11 11 ... ... @@ -40,6 +40,71 @@ 40 40 </script> 41 41 {{/html}} 42 42 43 +(% style="height:100px; width:300px; padding-left:1em; float:right" %) 44 +((( 45 +(% class="slide" id="slideshow1" %) 46 +((( 47 +((( 48 +[[image:https://scouts.forbach.fr/download/Verts/WebHome/compa%20mur.jpg?height = 150px||height="380" width="191"]] 49 +))) 50 + 51 + 52 +))) 53 + 54 +(% class="slide" id="slideshow2" style="display: none" %) 55 +((( 56 +((( 57 +[[image:/xwiki/download/Main/WebHome/tim visage.jpg?height = 150px]] 58 +))) 59 +))) 60 + 61 +(% class="slide" id="slideshow3" style="display: none" %) 62 +((( 63 +((( 64 +[[image:https://scouts.forbach.fr/download/Verts/WebHome/quentin%20visage.jpg?height = 150px]] 65 +))) 66 +))) 67 + 68 +(% class="slide" id="slideshow4" style="display: none" %) 69 +((( 70 +((( 71 +[[image:https://scouts.forbach.fr/download/Verts/WebHome/julien%20visage.jpg?height = 150px]] 72 +))) 73 +))) 74 + 75 +(% class="slide" id="slideshow5" style="display: none" %) 76 +((( 77 +((( 78 +[[image:https://scouts.forbach.fr/download/Verts/WebHome/compa%20tente.jpg?height = 150px]] 79 +))) 80 +))) 81 +))) 82 + 83 +/~*~*/ 84 +\\ 85 + start_slideshow(1, 6, 3000); 86 + 87 + function start_slideshow(start_frame, end_frame, delay) { 88 + setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay); 89 + } 90 + 91 + function switch_slides(frame, start_frame, end_frame, delay) { 92 + return (function() { 93 + Effect.Fade('slideshow' + frame); 94 + frame = Math.floor(Math.random()*(end_frame-start_frame+1))+start_frame; 95 + ~/~/if(console) console.log("Next photo: " + frame); 96 + setTimeout("Effect.Appear('slideshow" + frame + "');", 850); 97 + setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 850); 98 + }) 99 + } 100 +\\ var isGood = document.location.href.startsWith("https:~/~/"); 101 + var isWrong = document.location.href.startsWith("http:~/~/"); 102 + console.log("Insisting? " + isGood + " " + isWrong); 103 + if(!isGood && isWrong) { 104 + if(console && console.log) console.log("Redirecting to the https side."); 105 + document.location.replace("https:~/~/" + document.location.href.substring("http:~/~/".length)); 106 + } 107 +\\ 43 43 /~*~*/== [[image:compa.PNG||height="73" width="478"]] == 44 44 45 45