Line 6: | Line 6: | ||
'Techniques', | 'Techniques', | ||
'Validation', | 'Validation', | ||
− | 'Demo'], | + | 'Demo', |
+ | "Contribution", | ||
+ | 'Improve', | ||
+ | 'Demostrate'], | ||
'Modeling': [ | 'Modeling': [ | ||
'Overview', | 'Overview', | ||
− | ' | + | 'Recommendation System', |
'Simulation for Circuits', | 'Simulation for Circuits', | ||
'Directed Evolution Algorithm', | 'Directed Evolution Algorithm', | ||
Line 21: | Line 24: | ||
'Collaboration': [ | 'Collaboration': [ | ||
'XMU-China', | 'XMU-China', | ||
− | 'SCUT- | + | 'SCUT-ChinaA', |
'WHU-China', | 'WHU-China', | ||
'SYSU-China'], | 'SYSU-China'], | ||
Line 29: | Line 32: | ||
'Material and Methods', | 'Material and Methods', | ||
'Results'], | 'Results'], | ||
+ | "Safety": [ | ||
+ | "Wet Lab Safety", | ||
+ | "Dry Lab Safety" | ||
+ | ], | ||
'Medal': [ | 'Medal': [ | ||
'Overview', | 'Overview', | ||
Line 66: | Line 73: | ||
} | } | ||
− | $('.item').on('click', function () { | + | function backToTop(page) { |
+ | $("#" + page).scrollTop(0); | ||
+ | } | ||
+ | |||
+ | $('.menu .item').on('click', function () { | ||
if ($(this).attr('data-value') != undefined) { | if ($(this).attr('data-value') != undefined) { | ||
− | $(".next-page"). | + | $(".next-page").hide(); |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
fkpage.goToSlide($(this).attr('data-value')); | fkpage.goToSlide($(this).attr('data-value')); | ||
initTopBar(pageList[$(this).attr('data-value') - 1]); | initTopBar(pageList[$(this).attr('data-value') - 1]); | ||
+ | backToTop(pageList[$(this).attr('data-value') - 1]); | ||
} | } | ||
}); | }); |
Revision as of 19:56, 14 October 2018
let data = {
'Project': [ 'Description', 'Design', 'Feature', 'Techniques', 'Validation', 'Demo', "Contribution", 'Improve', 'Demostrate'], 'Modeling': [ 'Overview', 'Recommendation System', 'Simulation for Circuits', 'Directed Evolution Algorithm', 'Reference'], 'HumanPractice': [ 'Overview', 'Silver', 'Gold', 'Integrated Human Practice', 'Public Engagement'], 'Collaboration': [ 'XMU-China', 'SCUT-ChinaA', 'WHU-China', 'SYSU-China'], 'Interlab': [ 'Overview', 'Experiment Design', 'Material and Methods', 'Results'], "Safety": [ "Wet Lab Safety", "Dry Lab Safety" ], '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