mirror of
https://github.com/neocities/neocities.git
synced 2025-05-14 08:27:19 +02:00
Commit of new front page
This commit is contained in:
parent
f6724e3757
commit
e7689a09df
49 changed files with 3406 additions and 2 deletions
26
public/assets/scripts/app.js
Normal file
26
public/assets/scripts/app.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
$(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');
|
||||
})
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue