mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
19 lines
443 B
JavaScript
19 lines
443 B
JavaScript
$(document).ready(function() {
|
|
|
|
// do scrolly things on scroll
|
|
$(window).bind('scroll', function(){
|
|
if($(this).scrollTop() > 100) {
|
|
$(".hp-Logo").addClass('in-View');
|
|
$(".constant-Nav").addClass('in-View');
|
|
}
|
|
if($(this).scrollTop() < 100) {
|
|
$(".hp-Logo").removeClass('in-View');
|
|
$(".constant-Nav").removeClass('in-View');
|
|
}
|
|
});
|
|
|
|
$('.small-Nav').click(function(){
|
|
$('.header-Nav').toggleClass('show-Nav');
|
|
})
|
|
|
|
});
|