Okay
  Public Ticket #1099214
JQuery Conflict
Closed

Comments

  •  1
    Kevin started the conversation


    Looks like you don't have conflict considerations on your JQuery custom.js. I get an error of:

    Uncaught TypeError: el.visible is not a function
        at HTMLDivElement.<anonymous> (customjs.js:2131)
        at Function.each (jquery.js:2)
        at a.fn.init.each (jquery.js:2)
        at thefox_animation (customjs.js:2129)
        at HTMLDocument.<anonymous> (customjs.js:33)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at HTMLDocument.K (jquery.js:2)


    This could be helpful in troubleshooting: 

    Line 2 of your custom.js:

    var j$ = jQuery;
    j$.noConflict()

    isn't 100% correct as the more correct way of doing no conflict, a better example  would be what you have lower down in the script:

    (function (j$) {
            j$.fn.visible = function (partial) {
                var j$t = j$(this),
                    j$w = j$(window),
                    viewTop = j$w.scrollTop(),
                    viewBottom = viewTop + j$w.height(),
                    _top = j$t.offset().top + 100,
                    _bottom = _top + j$t.height(),
                    compareTop = partial === true ? _bottom : _top,
                    compareBottom = partial === true ? _top : _bottom;
                return ((compareBottom <= viewBottom) && (compareTop >= viewTop));
            };
        })(jQuery);
    

     where you have (jQuery); at the end.




  •  895