MediaWiki:Common.js: Διαφορά μεταξύ των αναθεωρήσεων

Από Trace Project
Χωρίς σύνοψη επεξεργασίας
Χωρίς σύνοψη επεξεργασίας
 
(11 ενδιάμεσες αναθεωρήσεις από τον ίδιο χρήστη δεν εμφανίζεται)
Γραμμή 1: Γραμμή 1:
$(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);
$(document).ready(function () {
 
$('.scroll-control .one').click(function () {
$.scrollify.move('#s-one');
});
$('.scroll-control .two').click(function () {
$.scrollify.move('#s-two');
});
$('.scroll-control .three').click(function () {
$.scrollify.move('#s-three');
});
});
 
function applyScroll() {
$.scrollify({
section: '.scroll',
sectionName: 'section-name',
//standardScrollElements: 'section',
easing: 'easeOutExpo',
scrollSpeed: 1100,
offset: 0,
scrollbars: true,
setHeights: true,
overflowScroll: true,
updateHash: false,
touchScroll: true,
});
}
 
}

Τελευταία αναθεώρηση της 23:54, 15 Φεβρουαρίου 2023


$(document).ready(function () {
	

				$('.scroll-control .one').click(function () {
					$.scrollify.move('#s-one');
				});
				$('.scroll-control .two').click(function () {
					$.scrollify.move('#s-two');
				});
				$('.scroll-control .three').click(function () {
					$.scrollify.move('#s-three');
				});
			});

			
			function applyScroll() {
				$.scrollify({
					section: '.scroll',
					sectionName: 'section-name',
					//standardScrollElements: 'section',
					easing: 'easeOutExpo',
					scrollSpeed: 1100,
					offset: 0,
					scrollbars: true,
					setHeights: true,
					overflowScroll: true,
					updateHash: false,
					touchScroll: true,
				});
			}

			}