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

(Created page with "let data = { 'Project': [ 'Description', 'Design', 'Feature', 'Techniques', 'Validation', 'Demo'], 'Modeling': [...")
 
Line 67: Line 67:
 
$('.item').on('click', function () {
 
$('.item').on('click', function () {
 
     if ($(this).attr('data-value') != undefined) {
 
     if ($(this).attr('data-value') != undefined) {
 +
        $(".next-page").animate({
 +
            'opacity': '0'
 +
        }, 0);
 +
        onNextPageShow = false;
 +
        isAllowNextPage = false;
 
         fkpage.goToSlide($(this).attr('data-value'));
 
         fkpage.goToSlide($(this).attr('data-value'));
 +
        console.log(pages[$(this).attr('data-value')]);
 
     }
 
     }
 
});
 
});

Revision as of 16:07, 10 October 2018

let data = {

   'Project': [
       'Description',
       'Design',
       'Feature',
       'Techniques',
       'Validation',
       'Demo'],
   'Modeling': [
       'Overview',
       'Searching  Engine',
       'Simulation for Circuits',
       'Directed Evolution Algorithm',
       'Reference'],
   'HumanPractice': [
       'Overview',
       'Silver',
       'Gold',
       'Integrated Human Practice',
       'Public Engagement'],
   'Collaboration': [
       'XMU-China',
       'SCUT-China',
       'WHU-China',
       'SYSU-China'],
   'Interlab': [
       'Overview',
       'Experiment Design',
       'Material and Methods',
       'Results'],
   'Medal': [
       'Overview',
       'Bronze',
       'Silver',
       'Gold'],
   'Team': [
       'Overview',
       'Team Members',
       'Advisors',
       'Instructors',
       'Notebook'],
   'Attributions': [
       'Overview',
       'Group Structure',
       'Attribution in Project',
       'Acknowledgement'],

}

// main menu navigator let index = 2; for (ele in data) {

   let html;
   if (ele == 'HumanPractice') {
html = `
Human Practice