CSS-Tricks / AnythingSlider

A jQuery Slider plugin for anything.
http://css-tricks.github.io/AnythingSlider/
GNU Lesser General Public License v3.0
1.15k stars 380 forks source link

issue with window.location #668

Open pavankorupolu opened 4 years ago

pavankorupolu commented 4 years ago

in our website location the address is like in every page is having #$, #?, #&, #' etc. after hash I am having another character which is getting error to add the slider number, usually we can see only # after the link address but in my scenario it is having other character, so, how can I update the script here to match with my address.

Image2 image1
Mottie commented 4 years ago

Hi @pavankorupolu!

There are a bunch of demos on the home wiki page: https://github.com/CSS-Tricks/AnythingSlider/wiki

These two might be of interest:

Note: a bunch of demos on the home wiki page are set to use jQuery Edge, which breaks the slider. Change the jQuery version to 3.3.1 or earlier to get the demo to work

So, in your case, disable the built-in hashTags and use the onInitialized and onSlideComplete callbacks to modify your window location as desired.