Difference between revisions of "Template:SYSU-Software/statics/js/index.js"

(Created page with "let fkpage; $(document).ready(function () { fkpage = $('.myfkpage').FKPageTransitions({ mode: 35, mouseWheel: false }); fkpage.goToNextSlide(); (function () {...")
 
Line 1: Line 1:
 
let fkpage;
 
let fkpage;
 
$(document).ready(function () {
 
$(document).ready(function () {
 +
$('#content').addClass('CORADOverride');
 
   fkpage = $('.myfkpage').FKPageTransitions({
 
   fkpage = $('.myfkpage').FKPageTransitions({
 
     mode: 35,
 
     mode: 35,

Revision as of 18:19, 9 October 2018

let fkpage; $(document).ready(function () { $('#content').addClass('CORADOverride');

 fkpage = $('.myfkpage').FKPageTransitions({
   mode: 35,
   mouseWheel: false
 });
 fkpage.goToNextSlide();
 (function () {
   let pageHeight = document.documentElement.scrollHeight || document.body.scrollHeight;
   $('.myfkpage').css('height', pageHeight + 'px');
 })();

});

$('.myfkpage').children('li').each(function (index, ele) {

 $(this).addClass('test');

});

$('.dropdown').dropdown({

 action: 'select'

}); $('.ui.dropdown.link.item').on('mouseenter', function () {

 $('.ui.dropdown.link.item').not($(this)).dropdown('hide');
 $(this).dropdown('show');

});

$('.ui.sticky')

 .sticky()
 ;