Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 558267e262 | |||
| c87de413ec |
@@ -1,15 +1,15 @@
|
|||||||
/* ===============================================
|
/* ===============================================
|
||||||
Hide navbar on scrolldown, show on scrollup.
|
Hide navbar on scrolldown, show on scrollup.
|
||||||
=============================================== */
|
=============================================== */
|
||||||
var prevScrollpos = window.pageYOffset;
|
var PrevScrollPos = window.pageYOffset;
|
||||||
window.onscroll = function() {
|
window.onscroll = function() {
|
||||||
var currentScrollPos = window.pageYOffset;
|
var CurrentScrollPos = window.pageYOffset;
|
||||||
if (prevScrollpos > currentScrollPos) {
|
if (PrevScrollPos > CurrentScrollPos || CurrentScrollPos == 0) {
|
||||||
document.getElementById("navbar").style.top = "0";
|
document.getElementById("navbar").style.top = "0";
|
||||||
} else {
|
} else {
|
||||||
document.getElementById("navbar").style.top = "-322px";
|
document.getElementById("navbar").style.top = "-322px";
|
||||||
}
|
}
|
||||||
prevScrollpos = currentScrollPos;
|
PrevScrollPos = CurrentScrollPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===============================================
|
/* ===============================================
|
||||||
|
|||||||
@@ -7,8 +7,10 @@ my personal website, for if i ever need it. Build on the [skeleton boilerplate](
|
|||||||
I will add a `Clean` folder that will contain skeleton and my modifications for use as a template.
|
I will add a `Clean` folder that will contain skeleton and my modifications for use as a template.
|
||||||
You can find the download in the [releases tab](https://github.com/SEPPDROID/seppjm-com/releases/latest)
|
You can find the download in the [releases tab](https://github.com/SEPPDROID/seppjm-com/releases/latest)
|
||||||
|
|
||||||
|
Or the direct [download link](https://github.com/SEPPDROID/seppjm-com/raw/master/TEMPLATE/CLEAN.zip)
|
||||||
|
|
||||||
## Licensing
|
## Licensing
|
||||||
|
|
||||||
Feel free to use, just make sure to keep all licensing in place.
|
Feel free to use, just make sure to keep all licensing in place.
|
||||||
|
|
||||||
###### old readme: seppdroid.com & seppjm.com "catch" site source code
|
###### old readme: seppdroid.com & seppjm.com "catch" site source code
|
||||||
|
|||||||
BIN
TEMPLATE/CLEAN.zip
Normal file
BIN
TEMPLATE/CLEAN.zip
Normal file
Binary file not shown.
@@ -1,15 +1,15 @@
|
|||||||
/* ===============================================
|
/* ===============================================
|
||||||
Hide navbar on scrolldown, show on scrollup.
|
Hide navbar on scrolldown, show on scrollup.
|
||||||
=============================================== */
|
=============================================== */
|
||||||
var prevScrollpos = window.pageYOffset;
|
var PrevScrollPos = window.pageYOffset;
|
||||||
window.onscroll = function() {
|
window.onscroll = function() {
|
||||||
var currentScrollPos = window.pageYOffset;
|
var CurrentScrollPos = window.pageYOffset;
|
||||||
if (prevScrollpos > currentScrollPos) {
|
if (PrevScrollPos > CurrentScrollPos || CurrentScrollPos == 0) {
|
||||||
document.getElementById("navbar").style.top = "0";
|
document.getElementById("navbar").style.top = "0";
|
||||||
} else {
|
} else {
|
||||||
document.getElementById("navbar").style.top = "-322px";
|
document.getElementById("navbar").style.top = "-322px";
|
||||||
}
|
}
|
||||||
prevScrollpos = currentScrollPos;
|
PrevScrollPos = CurrentScrollPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===============================================
|
/* ===============================================
|
||||||
|
|||||||
Reference in New Issue
Block a user