Code Monkey home page Code Monkey logo

Comments (9)

KevinBatdorf avatar KevinBatdorf commented on July 16, 2024

I purposely did that because I didn't thought would be resource intensive to have the slider keep filtering past the first instance. Especially because most people don't use it in this scenario.

Perhaps you could write out a function that would check if that class exists on that crosslink, then apply it or remove it from the other.

from liquidslider.

skaggscreative avatar skaggscreative commented on July 16, 2024

Hey, thanks for the response. I'm a little confused, and think I may have miscommunicated. I'm using the crosslinks to enable "dots" for slider navigation. The first dot in the list gets the 'activeCrosslink' class applied when I click it. When I click the second dot, the class gets removed from the first dot, but is not applied to the second dot. Does that make sense? I've attached a couple screenshots for reference below.

When clicking the first dot in the list:
screen shot 2013-06-14 at 12 04 31 pm

When clicking the second dot in the list:
screen shot 2013-06-14 at 12 04 47 pm

Of course, if this is correct and I'm just confusing myself, let me know and I'll show myself out.

Thanks again for your help.

from liquidslider.

KevinBatdorf avatar KevinBatdorf commented on July 16, 2024

Ok, yeah I thought you had multiple crosslinks pointing to the same slide.

I'm not sure if this will work, but try putting them all within the same level. As in:

<nav>
   <a href="#1" class="slider square" data-liquidslider-eef="team-slider"></a>
   <a href="#2" class="slider circle" data-liquidslider-eef="team-slider"></a>
</nav>

from liquidslider.

skaggscreative avatar skaggscreative commented on July 16, 2024

No luck :(

from liquidslider.

KevinBatdorf avatar KevinBatdorf commented on July 16, 2024

It should be data-liquidslider-eef not eef

Did you catch my typo? It works in my demo. Id have to see your code if this still doesnt work.

However, the demo also works when its in the <li></li> too.

from liquidslider.

skaggscreative avatar skaggscreative commented on July 16, 2024

Yep, it's data-liquidslider-ref in my code. I can provide a working example based on my code if you'd like to take a look.

from liquidslider.

skaggscreative avatar skaggscreative commented on July 16, 2024

OK, I found the problem. I have multiple crosslinks. Basically, the first slide is a grid of the other slides, clicking them links to the other slides. But there are also dots used for navigating. Is there a solution for this, or should I come up with another approach to this situation?

from liquidslider.

KevinBatdorf avatar KevinBatdorf commented on July 16, 2024

How many sets do you have? If only two, can you use the dots with the dynamic tabs instead?

Another option is to just write your own code:

      var sliderObject = $.data( $('#slider-id')[0], 'liquidSlider');
      console.log(sliderObject);
      console.log(sliderObject.currentTab);

You can use that to detect what the current tab is and go from there

from liquidslider.

KevinBatdorf avatar KevinBatdorf commented on July 16, 2024

This should all be fixed in version 2 :)

from liquidslider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.