- if first visit (session start) show top bar and set session cookie, if not (cookie found), don't open it

This commit is contained in:
Kiritan Flux 2015-04-02 21:24:32 +02:00
parent aa51cfd4b1
commit b80acb62b3
3 changed files with 123 additions and 2 deletions

View file

@ -91,8 +91,11 @@ $(document).ready(function() {
}
});
setTimeout( function() {
if ( $.cookie('firstVisit') != 'yes' ) {
setTimeout( function() {
openTopMenu();
}, 2000 );
}, 2000 );
$.cookie('firstVisit', 'yes');
}
});