Jump to content

Custom Javascript Library

Recommended Posts

Site URL: https://daffodil-grapefruit-9eap.squarespace.com/

Hi Everyone,

I would like to ask for help regarding custom javascript libraries. I have uploaded the .js and .css files using SFTP on the scripts folder but it doesn't somehow work like on this demo https://www.cssscript.com/demo/dolly-push-in-effect-scroll/. I would like to integrate this one on my website. 

The password for my site is test1234.

Thank you!

Edited by CoordinatorDA
Wrong Title
Link to comment
  • CoordinatorDA changed the title to Custom Javascript Library
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

First issue I can see is you have some JavaScript that is not wrapped in a script tag.

const container = document.querySelector('.pushin');

new PushIn(container).start();

I have no experience with pushIn.js so I can only comment on the syntax error I see.

 

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
Quote

I would like to ask if this is the correct way to call a js file?

It looks correct and you can see the URL < https://daffodil-grapefruit-9eap.squarespace.com/scripts/pushin.min.js > is correct as it returns the script.

Apparently PushIn is not defined. Although I can see some pushin stuff has been apparently loaded.

1290017263_ScreenShot2022-08-04at3_39_19PM.png.a7c8d006c2630c9736ef22cfa1b3ab53.png

As I say I don't know anything about this software so I can only relate the errors I'm seeing but not how to correct them.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.