MediaWiki:Common.js: Difference between revisions
From Buddha-Nature
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 7: | Line 7: | ||
$('.fp-arrowDown').click(function(){ | $('.fp-arrowDown').click(function(){ | ||
$.fn.fullpage.moveSectionDown(); | $.fn.fullpage.moveSectionDown(); | ||
}); | |||
// Move Discover slide buttons to bottom navigation anchors | |||
$(document).ready(function() { | |||
$('.fp-slidesNav > ul > li:nth-child(1) > a').load('# #SlideOneButton'); | |||
$('.fp-slidesNav > ul > li:nth-child(2) > a').load('# #SlideTwoButton'); | |||
$('.fp-slidesNav > ul > li:nth-child(3) > a').load('# #SlideThreeButton'); | |||
$('.fp-slidesNav > ul > li:nth-child(4) > a').load('# #SlideFourButton'); | |||
$('.fp-slidesNav > ul > li:nth-child(5) > a').load('# #SlideFiveButton'); | |||
$('.fp-slidesNav > ul > li:nth-child(6) > a').load('# #SlideSixButton'); | |||
}); | }); |
Revision as of 15:43, 28 May 2020
// Discover page anchors
$('.fp-arrowUp').click(function(){
$.fn.fullpage.moveSectionUp();
});
$('.fp-arrowDown').click(function(){
$.fn.fullpage.moveSectionDown();
});
// Move Discover slide buttons to bottom navigation anchors
$(document).ready(function() {
$('.fp-slidesNav > ul > li:nth-child(1) > a').load('# #SlideOneButton');
$('.fp-slidesNav > ul > li:nth-child(2) > a').load('# #SlideTwoButton');
$('.fp-slidesNav > ul > li:nth-child(3) > a').load('# #SlideThreeButton');
$('.fp-slidesNav > ul > li:nth-child(4) > a').load('# #SlideFourButton');
$('.fp-slidesNav > ul > li:nth-child(5) > a').load('# #SlideFiveButton');
$('.fp-slidesNav > ul > li:nth-child(6) > a').load('# #SlideSixButton');
});