Shreygupta (Talk | contribs) |
Shreygupta (Talk | contribs) |
||
Line 28: | Line 28: | ||
changeHash: true | changeHash: true | ||
}); | }); | ||
+ | var height = $('#headerImg').height(); | ||
+ | window.onscroll = function() {myFunction()}; | ||
+ | |||
+ | function myFunction() { | ||
+ | if (document.body.scrollTop > height || document.documentElement.scrollTop > height) { | ||
+ | $("#inPageNav").fadeIn(200); | ||
+ | } else { | ||
+ | $("#inPageNav").fadeOut(200); | ||
+ | } | ||
+ | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 21:06, 1 November 2017