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

Line 46: Line 46:
 
         'Acknowledgement'],
 
         'Acknowledgement'],
 
}
 
}
 +
  
 
// main menu navigator
 
// main menu navigator
Line 73: Line 74:
 
         isAllowNextPage = false;
 
         isAllowNextPage = false;
 
         fkpage.goToSlide($(this).attr('data-value'));
 
         fkpage.goToSlide($(this).attr('data-value'));
         console.log(pages[$(this).attr('data-value')]);
+
         console.log(pageList[$(this).attr('data-value')]);
 
     }
 
     }
 
});
 
});

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