jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > 130 && $('#slick_js').hasClass('add_slick') == false) { $('#slick_js').append('<link rel="stylesheet" href="/css/slick.css"><link rel="stylesheet" href="/css/slick-theme.css"><script src="/js/slick.js" type="text/javascript"><\/script>'); $('#slick_js').addClass('add_slick'); } });
Last updated 4 years ago