$(function(){ // Setting the container type based on the width of the screen if($(window).width() <= 768) { $('#theBrand').removeClass('container'); $('#theBrand').addClass('container-fluid'); } else { $('#theBrand').addClass('container'); $('#theBrand').removeClass('container-fluid'); } $(window).on('resize', function() { var win = $(this); if (win.width() <= 768) { $('#theBrand').removeClass('container'); $('#theBrand').addClass('container-fluid'); } else { $('#theBrand').addClass('container'); $('#theBrand').removeClass('container-fluid'); } }); // Setting up how the menu works $('#HomePage').show(); $('#ResearchPage').hide(); $('#TeachingPage').hide(); $('#CVPage').hide(); $('#ContactPage').hide(); $('#Home, #headDivLink, #headDivLink2').click(function(){ $('#HomePage').show(); $('#ResearchPage').hide(); $('#TeachingPage').hide(); $('#CVPage').hide(); $('#ContactPage').hide(); $("#Home").toggleClass("current", true); $("#Research, #ResearchSmall").toggleClass("current", false); $("#Teaching, #TeachingSmall").toggleClass("current", false); $("#CV, #CVSmall").toggleClass("current", false); $("#Contact, #ContactSmall").toggleClass("current", false); }) $('#Research,#ResearchSmall').click(function(){ $('#HomePage').hide(); $('#ResearchPage').show(); $('#TeachingPage').hide(); $('#CVPage').hide(); $('#ContactPage').hide(); $("#Home").toggleClass("current", false); $("#Research, #ResearchSmall").toggleClass("current", true); $("#Teaching, #TeachingSmall").toggleClass("current", false); $("#CV, #CVSmall").toggleClass("current", false); $("#Contact, #ContactSmall").toggleClass("current", false); }) $('#Teaching, #TeachingSmall').click(function(){ $('#HomePage').hide(); $('#ResearchPage').hide(); $('#TeachingPage').show(); $('#CVPage').hide(); $('#ContactPage').hide(); $("#Home").toggleClass("current", false); $("#Research, #ResearchSmall").toggleClass("current", false); $("#Teaching, #TeachingSmall").toggleClass("current", true); $("#CV, #CVSmall").toggleClass("current", false); $("#Contact, #ContactSmall").toggleClass("current", false); }) $('#CV, #CVSmall').click(function(){ $('#HomePage').hide(); $('#ResearchPage').hide(); $('#TeachingPage').hide(); $('#CVPage').show(); $('#ContactPage').hide(); $("#Home").toggleClass("current", false); $("#Research, #ResearchSmall").toggleClass("current", false); $("#Teaching, #TeachingSmall").toggleClass("current", false); $("#CV, #CVSmall").toggleClass("current", true); $("#Contact, #ContactSmall").toggleClass("current", false); // window.open("Vita.pdf", '_blank'); }) $('#Contact, #ContactSmall').click(function(){ $('#HomePage').hide(); $('#ResearchPage').hide(); $('#TeachingPage').hide(); $('#CVPage').hide(); $('#ContactPage').show(); $("#Home").toggleClass("current", false); $("#Research, #ResearchSmall").toggleClass("current", false); $("#Teaching, #TeachingSmall").toggleClass("current", false); $("#CV, #CVSmall").toggleClass("current", false); $("#Contact, #ContactSmall").toggleClass("current", true); }) // Paper Abstrats $('#paper1Abstract').hide(); $('#paper1').click(function(){ $('#paper1Abstract').toggle(); }) $('#paper2Abstract').hide(); $('#paper2').click(function(){ $('#paper2Abstract').toggle(); }) $('#paper3Abstract').hide(); $('#paper3').click(function(){ $('#paper3Abstract').toggle(); }) $('#paper4Abstract').hide(); $('#paper4').click(function(){ $('#paper4Abstract').toggle(); }) $('#paper5Abstract').hide(); $('#paper5').click(function(){ $('#paper5Abstract').toggle(); }) $('#paper6Abstract').hide(); $('#paper6').click(function(){ $('#paper6Abstract').toggle(); }) $('#paper7Abstract').hide(); $('#paper7').click(function(){ $('#paper7Abstract').toggle(); }) $('#paper8Abstract').hide(); $('#paper8').click(function(){ $('#paper8Abstract').toggle(); }) $('#paper9Abstract').hide(); $('#paper9').click(function(){ $('#paper9Abstract').toggle(); }) $('#paper10Abstract').hide(); $('#paper10').click(function(){ $('#paper10Abstract').toggle(); }) $('#course1Description').hide(); $('#course1').click(function(){ $('#course1Description').toggle(); }) $('#course2Description').hide(); $('#course2').click(function(){ $('#course2Description').toggle(); }) $('#course3Description').hide(); $('#course3').click(function(){ $('#course3Description').toggle(); }) $('#course4Description').hide(); $('#course4').click(function(){ $('#course4Description').toggle(); }) $('#course5Description').hide(); $('#course5').click(function(){ $('#course5Description').toggle(); }) $('#course6Description').hide(); $('#course6').click(function(){ $('#course6Description').toggle(); }) $('#course7Description').hide(); $('#course7').click(function(){ $('#course7Description').toggle(); }) });