mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
26 lines
613 B
JavaScript
26 lines
613 B
JavaScript
$(document).ready(function() {
|
|
|
|
// do scrolly things on scroll
|
|
$(window).bind('scroll', function(){
|
|
if($(this).scrollTop() > 460) {
|
|
$(".header-Nav").addClass('add-Stripe');
|
|
}
|
|
if($(this).scrollTop() < 460) {
|
|
$(".header-Nav").removeClass('add-Stripe');
|
|
}
|
|
|
|
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');
|
|
})
|
|
|
|
});
|