Comments (11)
Hey, what if you send someone to http://www.example.com/#second_slider_name ? Do you want it to do something then?
If not, then this might be what you are looking for.
from liquidslider.
About the documentation, I'm waiting until I can test out some more bugs. Actually, I found (and fixed) one this morning. It wasn't properly applying the current class. You might want to grab the latest code.
from liquidslider.
If I do send someone a link like this "http://www.example.com/#second_slider_name" then of course, I would want it to go to the specific slide.
However when I just send them the link "http://www.example.com/", I prefer for the url not to automatically transform into "http://www.example.com/#first_panel_name".
from liquidslider.
I guess either way, that tutorial solves your concern :) Email me if you get stuck.
from liquidslider.
I'm looking for a fix to this same issue. I want the initial page load to not append the hashtag, because I'm using a scroll to hashtags on the page, and it automatically sends them to that area on page load instead of at the top. The old resolution links no longer work.
from liquidslider.
I do it on this page here with the following code:
<a href="#" class="enable-hash">Enable Hash Linking</a>
$('#slider-4').liquidSlider({
//hashLinking:true,
});
var api2 = $.data( $('#slider-4')[0], 'liquidSlider');
$('.enable-hash').on('click', function(e){
e.preventDefault();
api2.options.hashLinking = true;
api2.buildHashTags();
});
That works for clicking on a button. You could probably put that code in the final callback and get your desired result.
callback: function() {
this.options.hashLinking = true;
this.buildHashTags();
}
from liquidslider.
How would that look to add to the callback? I've not used them before.
from liquidslider.
Click the link I shared above and check the next section. It explains it there.
from liquidslider.
So, I put it here:
$('#main-slider').liquidSlider({
continuous:false,
crossLinks:true,
dynamicTabs: true,
hashLinking: true,
dynamicArrows: false,
slideEaseFunction:'animate.css',
slideEaseDuration:500,
heightEaseDuration:500,
animateIn:"fadeInDown",
animateOut:"fadeOutDown",
callback: function() {
this.options.hashLinking = true;
this.buildHashTags();
}
});
var api2 = $.data( $('#main-slider')[0], 'liquidSlider');
But that doesn't appear to be working. Any suggestions?
from liquidslider.
Ah, realized I left hashlinking set to true. But that doesn't allow me to link to that specific section from another page directly if I want to, since it sets hashlinking only after page load.
from liquidslider.
I think what you want is to disable your script that does the scrolling, at least in the beginning. Maybe you could initialize that script within the Liquid Slider callback function?
from liquidslider.
Related Issues (20)
- Hidden Panel?
- Not autoSliding
- issue on Windows Google Chrome HOT 3
- Tab Link problem in iphone
- continuous:false is not working simply HOT 2
- 100% width slider - Weird margin on left side (Chrome) HOT 3
- Font became bigger on iphone 5 and 5s HOT 1
- Prevent double-click from advancing slider twice. HOT 2
- How to set width to 100% HOT 5
- slider not working with apache web server HOT 2
- Slide tabs from top to bottom HOT 1
- How to link to slides from extern per #id HOT 3
- Slides not growing 100% when i am resizing HOT 1
- RLT Support HOT 7
- Need help trying to load 2 slides from 1 anchor HOT 2
- Change Content / Destroy / Reinitialize HOT 1
- Tab action for external link HOT 11
- Apple Animation Issue HOT 12
- Accessibility Advice? HOT 1
- keyboardNavigation: true is breaking tabbing of global navigation if more than one level deep in Dropdown Menu HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liquidslider.