Not Solved Hide header on scroll, show on scroll up
#1
Not Solved Question 
Hi folks!

I have found this tutorial:
https://medium.com/@mariusc23/hide-heade...bbaae9a78c

with a working example:
http://jsfiddle.net/mariusc23/s6mLJ/31/

Anyway I have an issue with applying to MyBB, is there anybody who can help me? It is sufficient for MyBB default theme. Thank you!
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#2
Not Solved
Hi,

It bases on the <header> tag. For MyBB standard theme it needs to be adopted to the element id "#header".
So you need to change the JS code to something like this.
getElementByID("header").removeClass(...).addClass(...)

BTW. This simple mod is great but with a loss on flexibility due to fixed position and pixel-based dimensions/padding.

Good luck!

[ExiTuS]
[Image: logo_wernicke_8040.png]
MyBB Forum + innovative full-responsive Theme
Live-Escape-Game-Forum
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)