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

Line 74: Line 74:
 
         isAllowNextPage = false;
 
         isAllowNextPage = false;
 
         fkpage.goToSlide($(this).attr('data-value'));
 
         fkpage.goToSlide($(this).attr('data-value'));
         $('#' + pageList[$(this).attr('data-value') - 1]).visibility('refresh');
+
         initTopBar(pageList[$(this).attr('data-value') - 1]);
        console.log(pageList[$(this).attr('data-value') - 1]);
+
 
     }
 
     }
 
});
 
});

Revision as of 16:39, 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