jquery - Javascript Timeline Issue -


creating timeline scroll left right.. running js in console , returning following error

uncaught referenceerror: select

$('a.next').click(function () { selector.children('.dates-bar').children('a.next').click(function(){                 var actual_scroll = scroll_count;                 var c = selector.children('.dates-bar').children('a:not(.prev, .next, .noevent):visible()').length                 if(scrolled + scroll_count >= c)                     actual_scroll = (c - scrolled)-1                  if(parseint(selector.children('.dates-bar').children('a:not(.prev, .next, .noevent):visible():eq(0)').css('width'))*actual_scroll > selector.children('.dates-bar').width())                     while(parseint(selector.children('.dates-bar').children('a:not(.prev, .next, .noevent):visible():eq(0)').css('width'))*actual_scroll > selector.children('.dates-bar').width() && actual_scroll > 1)                         actual_scroll -= 1;                  var = (-1)*actual_scroll*parseint(selector.children('.dates-bar').children('a:not(.prev, .next, .noevent):visible():eq(0)').css('width'));                 selector.children('.dates-bar').children('a:not(.prev, .next, .noevent):visible():eq(0)').animate({marginleft: '+=' + string(a)+ 'px'}, scroll_time)                 scrolled += actual_scroll;                  current_month = new date(selector.children('.dates-bar').children('a:not(.prev, .next, .noevent):visible():eq(' + string(scrolled) + ')').attr('data-date')).getmonth()                  selector.children('.month-year-bar').children('.month').children('span').text(month[current_month])             }) }); 

any appreciated. thank you.

there 1 error in custom jquery function $.fn.jflattimeline=, forgot call iife(immediately invoked function expression) jquery object it.

more iife ben alman

i have updated code below

(function ($) {    $.fn.jflattimeline = function (options) {      ...    } })(jquery); //calling iife jquery object  

here jsfiddle without error in console.

i hope can go ahead coding.

happy coding :)


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -