sliding top menu
This commit is contained in:
parent
057a63d15e
commit
7dcbe77c2d
24 changed files with 918 additions and 123 deletions
34
js/custom.js
34
js/custom.js
|
|
@ -1,20 +1,28 @@
|
|||
var scrolling = false;
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var currentEvent = "038";
|
||||
$(function(){
|
||||
$.scrollIt();
|
||||
});
|
||||
|
||||
$('.event-'+currentEvent).show();
|
||||
|
||||
$('.event-selector li').on("mouseover",function(){
|
||||
$(this).attr("text-size","40px");
|
||||
});
|
||||
|
||||
$('.event-selector li').on("click",function(){
|
||||
var number = $(this).text();
|
||||
console.log(number);
|
||||
});
|
||||
|
||||
function loadEvent(eventNumber){
|
||||
|
||||
$(".navigator-toggle").click(function() {
|
||||
if (!scrolling){
|
||||
scrolling = true;
|
||||
$(".navigator").slideDown( "slow", function() {
|
||||
scrolling = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(".navbar").mouseover(function() {
|
||||
if (!scrolling){
|
||||
scrolling = true;
|
||||
$('.navigator').slideUp( "slow", function() {
|
||||
scrolling = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue