Code source wiki de Code test
Masquer les derniers auteurs
author | version | line-number | content |
---|---|---|---|
![]() |
18.1 | 1 | |
![]() |
1.1 | 2 | {{html clean="false"}} |
![]() |
5.1 | 3 | |
![]() |
18.1 | 4 | <div style="height:310px; width:300px; padding-left:1em; float:right"> |
5 | <div id="slideshow1" class="slide" style=""><div><img src="/xwiki/bin/download/Main/WebHome/compa-mur.jpg?"></div></div> | ||
6 | <div id="slideshow2" class="slide" style="display: none"><div><img src="/xwiki/download/Main/WebHome/tim visage.jpeg?"></div></div> | ||
7 | <div id="slideshow3" class="slide" style="display: none"><div><img src="/xwiki/download/Main/WebHome/quentin visage.JPG?"></div></div> | ||
8 | <div id="slideshow4" class="slide" style="display: none"><div><img src="/xwiki/download/Main/WebHome/julien visage.JPG?"></div></div> | ||
9 | <div id="slideshow5" class="slide" style="display: none"><div><img src="/xwiki/download/Rouges/WebHome/compa tente.jpg?"></div></div> | ||
![]() |
5.1 | 10 | |
![]() |
18.1 | 11 | </div> |
![]() |
5.1 | 12 | |
![]() |
18.1 | 13 | |
14 | |||
![]() |
1.1 | 15 | <script type="text/javascript"> |
16 | |||
17 | start_slideshow(1, 6, 3000); | ||
18 | |||
19 | function start_slideshow(start_frame, end_frame, delay) { | ||
20 | setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay); | ||
21 | } | ||
22 | |||
23 | function switch_slides(frame, start_frame, end_frame, delay) { | ||
24 | return (function() { | ||
25 | Effect.Fade('slideshow' + frame); | ||
26 | frame = Math.floor(Math.random()*(end_frame-start_frame+1))+start_frame; | ||
27 | //if(console) console.log("Next photo: " + frame); | ||
28 | setTimeout("Effect.Appear('slideshow" + frame + "');", 850); | ||
29 | setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 850); | ||
30 | }) | ||
31 | } | ||
32 | |||
![]() |
18.1 | 33 | var isGood = document.location.href.startsWith("https://"); |
34 | var isWrong = document.location.href.startsWith("http://"); | ||
35 | console.log("Insisting? " + isGood + " " + isWrong); | ||
36 | if(!isGood && isWrong) { | ||
37 | if(console && console.log) console.log("Redirecting to the https side."); | ||
38 | document.location.replace("https://" + document.location.href.substring("http://".length)); | ||
39 | } | ||
40 | |||
![]() |
1.1 | 41 | </script> |
42 | {{/html}} |