Code Monkey home page Code Monkey logo

Comments (4)

KevinBatdorf avatar KevinBatdorf commented on August 15, 2024

Try setting hashCrossLinks:true if you want to use it this way. Let me know if it works.

from liquidslider.

t-rex2000 avatar t-rex2000 commented on August 15, 2024

Added the setting hashCrossLinks:true and it works by panel name. Thanks.

However, the other two external links (to #2 and #3) actually link to panels 1 and 2 respectively. The tabbed links work as expected. So now,

<a href="#2" data-liquidslider-ref="slider-id">Panel 2</a> goes to panel 1, shows demo.html#panel-1 in address
<a href="#panel3" data-liquidslider-ref="slider-id">Panel 3</a> works
<a href="#3" data-liquidslider-ref="slider-id">Panel 3</a> goes to panel 2, shows demo.html#panel-2

I don't know if hashNames is intended to work with numbered references, but just for completeness' sake I thought I would post this. So, the following worked for me, just had problems with the numbered, external links:

  $('#slider-id').liquidSlider({
    crossLinks: true,
    hashCrossLinks: true,
    hashLinking: true,
    hashNames: true,
    hashTitleSelector: "h2.title"
    });

from liquidslider.

KevinBatdorf avatar KevinBatdorf commented on August 15, 2024

I'll take a look at when I get some time, but could you just use one or the other (names or numbers)?

from liquidslider.

KevinBatdorf avatar KevinBatdorf commented on August 15, 2024

Most of this is irrelevant to version 2 now so I will close this issue

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.