URL: https://weather.cod.edu/chasing/index.php?load=materials
on(e) { function loadPage (page) { var v = Math.floor((Math.random() * 100) + 1); // random num to prevent caching if (page == 'nexlab') { window.location.href = 'https://weather.cod.edu/'; } else if (page == 'home') { $('#content').load('pages/home.php?v='+v, function () { startHomeSlideshow() }); // allows the slideshow to work } else if (page == 'chases') { $('#content').load('pages/chases.php?v='+v, function () { startJoinSlideshow() }); // allows the slideshow to work } else { $('#content').load('pages/'+page+'.php?v='+v); } history.pushState(page,null,"index.php?load="+page); } function openGallery(year) { if (year != '') { $('#galleryViewer').fadeIn(250).load('pages/eluGalleryViewer.php?year='+year, function () { initilizeGallery(); }); } } // initialize page loadPage('materials'); //openGallery(); // fade in content setTimeout(function () { $('#container').fadeIn(500); },500); $(document).on('click', '#navbar a, a.navLink', function (e) { var page = $(this).attr('id'); loadPage(page); e.preventDefault(); }); $(document).on('click','#folder', function () { var year = $(this).parent().children('#label').text(); openGallery(year); }); $(document).on('click','#close', function () { $('#galleryViewer').fadeOut(250).html(''); }); $(document).on('keyup', function (e) { if (e.keyCode == '27') { $('#galleryViewer').fadeOut(250).html(''); } }); });