MediaWiki:Common.js: Διαφορά μεταξύ των αναθεωρήσεων
Χωρίς σύνοψη επεξεργασίας |
Χωρίς σύνοψη επεξεργασίας |
||
Γραμμή 1: | Γραμμή 1: | ||
$(function reveal() { | $(function reveal() { | ||
var | var body = document.body; | ||
body.className = 'red'; | |||
var slider = new Swiper ('.swiper-container', { | |||
pagination: '.swiper-pagination', | |||
direction: 'vertical', | |||
slidesPerView: 1, | |||
paginationClickable: true, | |||
spaceBetween: 30, | |||
mousewheelControl: true, | |||
onSlideChangeStart: function (swiper) { | |||
var currentSlide = swiper.slides[ swiper.activeIndex ]; | |||
} | body.className = currentSlide.getAttribute( 'data-bg' ); | ||
}, | |||
}); | |||
}()); | }()); | ||
window.addEventListener("scroll", reveal); | window.addEventListener("scroll", reveal); |
Αναθεώρηση της 20:20, 15 Φεβρουαρίου 2023
$(function reveal() { var body = document.body; body.className = 'red'; var slider = new Swiper ('.swiper-container', { pagination: '.swiper-pagination', direction: 'vertical', slidesPerView: 1, paginationClickable: true, spaceBetween: 30, mousewheelControl: true, onSlideChangeStart: function (swiper) { var currentSlide = swiper.slides[ swiper.activeIndex ]; body.className = currentSlide.getAttribute( 'data-bg' ); }, }); }()); window.addEventListener("scroll", reveal);