-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cant get it working #30
Comments
Ive tried redoing the code again to see if maybe I made some kind of simple error, but no luck. I really want to get this one to work because I tried barbajs, but it doesnt react well with my other scripts and im not savy enough to troubleshoot that, I thought this one would be the perfect fit. |
FYI - I have edited your question so the code is displayed correctly, so we can figure this out easier. First thing that caught my eye is that your links LINK_SELECTOR: 'a[href^="/"]:not([data-no-swup]), a[href^="#"]:not([data-no-swup]), a[xlink\\:href]', selects only links where href attribute start with the As you are only trying it out, I would suggest changing the option to select all links for now. LINK_SELECTOR: 'a' You probably know this, but just to be clear, the options mentioned in the documentation are default values for swup, so you do not have to copy/define all of them, only the ones you would like to change. This should be enough for you for now. let options = {
LINK_SELECTOR: 'a',
debugMode: true,
};
var swup = new Swup(options); |
@gmrchk Thankyou, i love simple solutions like that, but feel so dumb when i miss it lol.... new issue, it is showing the animations, but it is not loading the next page. it just animates the object then stops. |
Can you post what the console says? |
@gmrchk I get:
and
|
Right... That's the issue related to the server (you are opening file with the protocol Also, add the |
@gmrchk ok I figured it out, I uploaded it to my host server and it's working beautifully! Thanks a lot for the help! Here is what I did with it: futsoc.co If you think I could do anything better I will gladly accept any opinions. Thanks again! |
I have the same issue but im using wamp. Can you help me? |
I am a beginner at javascript, so I am probably doing something obviously wrong. I have tried trying to set up the swup on a simply test page but I still cant get it working. I would really like to get this one to work. Thanks in advance.
The test page im working with is:
futsoc.co/page1.html
Here is my html:
Here is my css:
and here is my javascript:
The text was updated successfully, but these errors were encountered: