Hi everybody!
I am trying to solve some errors of an online printing company website and I´m stuck in a couple of them. I do not find solution. Both are jQuery errors that can be seen by going to
https://www.imprentaonline24.es and you pressing examine and you going to the console tab.
Error 1:
Uncaught TypeError: $(...).scroll is not a function
at www.imprentaonline24.es/:216
Error 2:
Uncaught TypeError: Cannot read property 'top' of undefined
at HTMLDocument.<anonymous> (www.imprentaonline24.es/:184)
at c (jquery-1.9.1.min.js:3)
at Object.fireWith [as resolveWith] (jquery-1.9.1.min.js:3)
at Function.ready (jquery-1.9.1.min.js:3)
at HTMLDocument.H (jquery-1.9.1.min.js:3)
I am not an expert in jQuery but before it worked the following script and now it has stopped working:
<script type="text/javascript">
$(document).scroll(function() {
if ($(this).scrollTop() < 180) {
$("#barra-flotante").slideUp(200);
} else {
$("#barra-flotante").slideDown(300);
}
});
</script>
Any ideas? I need to solve this because I want to insert more elements that move when scrolling and none works for me.
Thank you very much!!!!
P.D. Sorry for my english languaje