OK, 내가 제대로 here 설명하지 않았다 이전 질문에서 새로운 각도를 .load슬라이더
http://allblacks.01dev.co.nz/index.cfm?layout=dnaHome
그러나, 우리는 단지 라이브 사이트를 넣었습니다 그리고 여기 작동하지 않습니다 :
http://www.allblacks.com/index.cfm?layout=dnaHome
다음 코드 부분에 문제가 발생했습니다. 경고는 01dev 사이트에서 발생하지만 라이브 사이트에서는 발생하지 않습니다.
$(window).load(function() {
$('.wraplines a, .wraplines .wrapspan').wraplines().addClass('wrapped clearfix');
alert('here');
$('.carousel').each(function() {
$(this).Waterfall({
autoStart: $(this).data('autostart'),
startAt: $(this).data('startat'),
infiniteScroll: $(this).data('infinitescroll'),
hasPager: $(this).data('haspager')
});
});
});
누군가 나를 이해하도록 도와 줄 수 있습니까?
편집 : 이미 $ (문서)있다 .ready ... 이전에, 아래 :
는(function ($) {
"use strict";
$(document).ready(function() {
var html = $('html'),
body = $('body'),
header = $('.header'),
searchTrigger = $('.search'),
searchPane = $('.search-pane');
html.removeClass('no-js');
$(window).load(function() {
$('.wraplines a, .wraplines .wrapspan').wraplines().addClass('wrapped clearfix');
alert('here');
$('.carousel').each(function() {
$(this).Waterfall({
autoStart: $(this).data('autostart'),
startAt: $(this).data('startat'),
infiniteScroll: $(this).data('infinitescroll'),
hasPager: $(this).data('haspager')
});
});
});
감사합니다. 내 편집을 참조하십시오 OP – user460114
아, 모든 것을 바꿉니다. 위의 대답은이 경우 정확합니다. –