Need help porting jQuery to Magento -


I went to the same issue in the post below, I do not understand why it is not a conflict problem Any sign would be great.

My website

  (function () {$ .fn.infiniteCarousel = function () {function repeat (Str, n) {Back New Array (N + 1) .Joy (ARR);} Please return this refund (function () {var $ wrapper = $ ('& gt; div', this) .css ('overflow', ('' hidden ''), $ Slider = $ coverfind ('' gt; ul '). Width (9999), $ items = $ slider.find (' & gt; li '), $ single = $ items.filter ( ': First') SingleWind = $ single.outerWidth (), Visible = Math.Syl ($ items.innerWidth () / Single Width), Current page = 1, Pages = Math.ceil ($ items.length / visible); if ($ Item .length% visible! = 0) {// pad $ slider.append (Repeat ('& lt; li class = " $ Items.length% visible); $ items = $ slider.find ('& gt; li');} $ items.filter (': first'). ($ Items.slice (-visible) .clone () AddClass ('clone'); $ items.filt er (': last'). After (. $ Items.slice (footage -1) .clone () addClass ('clone ')); $ Items = $ slider.find (' & gt; Li '); $ Wrapper.scrollLeft (single width * visible); Function goto page (page) {var dir = page & lt; current page ? -1: 1, N = Math.bas (Current Page Page), Left = Single Width * dir * Visible * n; $ Wrapper.filter (': (not (: (animated)'). Chetan ({// 'margin-left': '- = 190px' scrollLeft: '+ =' + left}, 500, function () {if ( Page & gt; page) {$ wrapper.scrollLeft (single width * visible); page = 1;} and if (page == 0) {page = page; $ wrapper.scrollLeft (single width = visible * page);} currentPage = Page;});} $ Wrapper.after ('& lt; a href = "home-carousel-loop. Html #" class = "arrow back">   a Href = "Home-Carol-Loop. Html #" Class = "arrow forward">  

The correct answer for the question you've linked is to replace the first line, < / P>

  (with the same entry ($ (note the dollar sign) {  

),

  jQuery .noConflict () (function ($) { 

At the end of your script you have some jQuery code out of the closure, make sure that this is the last line and not any quick:

 }) (jQuery);  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -