MediaWiki:Centralnotice-template-Ads: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Central Notice |
No edit summary Tag: Central Notice |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<style> | |||
* {box-sizing: border-box;} | |||
body {font-family: Verdana, sans-serif;} | |||
.mySlides {display: none;} | |||
img {vertical-align: middle;} | |||
/* Slideshow container */ | |||
.slideshow-container { | |||
max-width: 1000px; | |||
position: relative; | |||
margin: auto; | |||
float: center; | |||
} | |||
/* Caption text */ | |||
/* Number text (1/3 etc) */ | |||
.numbertext { | |||
color: #f2f2f2; | |||
font-size: 12px; | |||
padding: 8px 12px; | |||
position: absolute; | |||
top: 0; | |||
} | |||
/* The dots/bullets/indicators */ | |||
.dot { | |||
height: 15px; | |||
width: 15px; | |||
margin: 0 2px; | |||
background-color: #bbb; | |||
border-radius: 50%; | |||
display: inline-block; | |||
transition: background-color 0.6s ease; | |||
} | |||
.active { | |||
background-color: #717171; | |||
} | |||
/* Fading animation */ | |||
.fade { | |||
animation-name: fade; | |||
animation-duration: 1.5s; | |||
} | |||
@keyframes fade { | |||
from {opacity: .4} | |||
to {opacity: 1} | |||
} | |||
</style> | |||
</head> | |||
<body> | |||
<div class="slideshow-container"> | |||
<center> | |||
<div class="mySlides fade"> | |||
<div class="adplugg-tag" data-adplugg-access-code="A48222523" data-adplugg-ad="66873"></div> | |||
<script async src="//www.adplugg.com/serve/js/ad.js"></script> | |||
<script>(AdPlugg=window.AdPlugg||[]).push({});</script> | |||
</div> | |||
<div class="mySlides fade"> | |||
<div class="adplugg-tag" data-adplugg-access-code="A48222523" data-adplugg-ad="66804"></div> | |||
<script async src="//www.adplugg.com/serve/js/ad.js"></script> | |||
<script>(AdPlugg=window.AdPlugg||[]).push({});</script> | |||
</div> | |||
<div class="mySlides fade"> | |||
<div class="adplugg-tag" data-adplugg-access-code="A48222523" data-adplugg-ad="66874"></div> | |||
<script async src="//www.adplugg.com/serve/js/ad.js"></script> | |||
<script>(AdPlugg=window.AdPlugg||[]).push({});</script> | |||
</div> | |||
<div class="mySlides fade"> | |||
<div class="adplugg-tag" data-adplugg-access-code="A48222523" data-adplugg-ad="66875"></div> | |||
<script async src="//www.adplugg.com/serve/js/ad.js"></script> | |||
<script>(AdPlugg=window.AdPlugg||[]).push({});</script> | |||
</div> | |||
</center> | |||
</div> | |||
<br> | |||
<div style="text-align:center"> | |||
<span class="dot"></span> | |||
<span class="dot"></span> | |||
<span class="dot"></span> | |||
<span class="dot"></span> | |||
</div> | |||
<script> | |||
let slideIndex = 0; | |||
showSlides(); | |||
function showSlides() { | |||
let i; | |||
let slides = document.getElementsByClassName("mySlides"); | |||
let dots = document.getElementsByClassName("dot"); | |||
for (i = 0; i < slides.length; i++) { | |||
slides[i].style.display = "none"; | |||
} | |||
slideIndex++; | |||
if (slideIndex > slides.length) {slideIndex = 1} | |||
for (i = 0; i < dots.length; i++) { | |||
dots[i].className = dots[i].className.replace(" active", ""); | |||
} | |||
slides[slideIndex-1].style.display = "block"; | |||
dots[slideIndex-1].className += " active"; | |||
setTimeout(showSlides, 10000); // Change image every 10 seconds | |||
} | |||
</script> |
Latest revision as of 10:59, 23 January 2023
<meta name="viewport" content="width=device-width, initial-scale=1"> <style>
- {box-sizing: border-box;}
body {font-family: Verdana, sans-serif;} .mySlides {display: none;} img {vertical-align: middle;}
/* Slideshow container */ .slideshow-container {
max-width: 1000px; position: relative; margin: auto; float: center;
}
/* Caption text */ /* Number text (1/3 etc) */ .numbertext {
color: #f2f2f2; font-size: 12px; padding: 8px 12px; position: absolute; top: 0;
}
/* The dots/bullets/indicators */ .dot {
height: 15px; width: 15px; margin: 0 2px; background-color: #bbb; border-radius: 50%; display: inline-block; transition: background-color 0.6s ease;
}
.active {
background-color: #717171;
}
/* Fading animation */ .fade {
animation-name: fade; animation-duration: 1.5s;
}
@keyframes fade {
from {opacity: .4} to {opacity: 1}
}
</style> </head> <body>
<script> let slideIndex = 0; showSlides();
function showSlides() {
let i; let slides = document.getElementsByClassName("mySlides"); let dots = document.getElementsByClassName("dot"); for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } slideIndex++; if (slideIndex > slides.length) {slideIndex = 1} for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].className.replace(" active", ""); } slides[slideIndex-1].style.display = "block"; dots[slideIndex-1].className += " active"; setTimeout(showSlides, 10000); // Change image every 10 seconds
} </script>