Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Search the Community

Showing results for tags 'javascript'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Forum
    • News and Announcements
    • Getting Started With Squarespace
    • Coding and Customization
    • Commerce
    • Selling & Scheduling Your Services
    • Feedback on Your Site
    • Images and Videos
    • Pages and Content
    • SEO and Marketing
    • Site Design and Styles
  • Colorado Designers's Topics
  • Squarespace Forum Club Guidelines's Topics
  • Austin, TX Designers's Club Discussion
  • New York City Designers's Club Discussion
  • Berlin Designers's Club Discussion
  • SEO Experts's Club Discussion
  • Photographers's Club Discussion
  • Graphic Designers's Topics
  • London Designers's Topics
  • Podcasters's Club Discussion
  • Custom Coding Help's Club Discussion
  • Atlanta, GA Designers's Topics
  • Seattle, WA Designers's Topics
  • San Diego, CA Designers's Topics
  • Dallas, TX Designers's Topics
  • Australia Designers's Club Discussion
  • Minnesota Designers's Topics
  • Minnesota Designers's Topics
  • Copywriters's Topics
  • France Designers 🇫🇷's Topics
  • France Designers 🇫🇷's Topics
  • Portland, OR Designers's Topics
  • Canadian Website Designers's Club Discussion
  • Los Angeles Designers & Devs's Club Discussion
  • South African Designers's Club Discussion
  • Brazil Designers's Club Discussion
  • Developers's Club Discussion

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Website


Location


Badges


Expert ID

  1. I've got a problem with the recent update to the link editor. I used to have three links in my navigation bar to trigger JavaScripts which connected to LocalizeJS to switch the language on my website. The link was a simple/common script like this: javascript:Localize.setLanguage('en') Before the update to the link editor, I was able to add a link like the one above. But recently, one of the button is not working so I decided to remove it and recreate a new link but when I try to add the javascript bit to the link editor now, it pop up an error message saying "Links must be formatted as
  2. Is there a separate javascript code that I can run to active squarespace analytics and the activity protocol? I need to deactivate the squarespace analytics and the activity protocol cookies until the website visitor accepts the data privacy. I cannot use the build-in cookie banner from squarespace as I need to use a more flexible cookie banner script that allows to suppress other cookies as well. Thus, I have deactivated "squarespace analytics" and "activity protocol" by default to be gdpr compliant. I implemented the manual cookie banner script from cookiebot.com which allows to embed a
  3. Hi, I am writing JavaScript code in the footer and was trying to change css opacity as you scroll down with the onscroll function. I wanted to know how I could access the CSS from there.
  4. First of all I know this question's been asked before, the answer wasn't solving my problem so I'd like to ask it again here: I'm using the code blocks to create more customized slideshows. I need more than one slideshow on my page and the second one stops the first one from working. The slideshow is here but clicking the arrows won't do anything. I slightly understand what the problem is but can't fix it. Here is the link to the page which contains 2 slideshows (the code of each slideshow is working as expected when there's only one slideshow).
  5. Hi All, I have put in a code and it pops up saying 'this block contains embedded scripts. Embedded scripts are disabled while you're logged in and editing your site.' (See screenshot attached) So I have logged out and looked at the website and it shows nothing. The code I have been given is: <script type="text/javascript"> (function (i, s, o, g, r, a, m) { i['SBSyncroBoxParam'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.
  6. Currently using a code block to embed a widget to display reviews via (ReviewsOnMyWebsite). The widget is placed on the bottom of every page. On mobile, when clicking to a page from the navigation menu the widget doesn't appear. It only appears when I refresh the page manually. Even when going back into the navigation menu to click into another page, the widget is hidden again until I refresh. Is there a solution to this mobile bug? Code: <div data-token="Ilh6pzyvcFaj4QxwrrFT2pMKepSJIYGolNn7ZyA5Ix839AkoGa" class="romw-reviews"></div> <script src="https://revi
  7. Hello, I am in developer mode and I am trying to add a background video. I am trying to grab the source that located in the current folder by src="video.mp4" but it is not working. I have included the video in the template folder then when I run the local server I don't see the video. Any ideas or clue as to how to get this to work or if it even works in this way? Thanks!
  8. Hello, I am trying to create a single page website that showcases photos as you scroll down. The entire background would be a video and as you scroll down the video changes to a different one. I wrote custom java script code to achieve this as shown below. What is the best way to integrate this into squarespace? I am new and I have been messing around the site but I am not sure whether to go through developer mode and try to modify or if I can achieve this easier through the standard UI or other methods. Any suggestions would be appreciated! var video = document.getElementById(
  9. Hello! I have basic knowledge of web desing, started one month ago, but ive learnt enough HTML CSS and JavaScript to make my own code with the following function: 1.- There is a play button to reproduce 5 (or any number) tracks simultaneously or pause them simultaneously 2.- There is 5 (or any number equal to the number or tracks of step 1) range sliders controlling the volume, the result is an online mixer of a track divided in drums, guitars, bass, etc... or a soundscape track divided by bass, mids, treble... I just made a trial version on a free website (i dont know if i
  10. Hello! This might be a hard thing to get help with and maybe I should not be asking this question here but I decided to give it a shot anyways. Feel free to answer, all answers are appreciated. I visited a website which had a very cool animation of letters being typed. The website is: https://brusewitzstudios.com/ I wanted to make something similar one my homepage which is https://www.mediaqmarketing.com/ I was wondering if there are any talented coders out here who already have made something similar and could possibly share a code. Thanks a lot! Kind regards Dhruv
  11. I have a password box that is working but the user has to enter the password in twice in order for it to connect to the corresponding page. I'll post the javascript below. I would like for the user to only have to enter the password in once. I have no idea why this is happening. // JavaScript Document /* * Change the passwords and urls here * Make sure the passwords and urls are in the same order */ const passwords = ["7654", "6243", "video", "locked", "house", "road", "crescenthotel", "three", "sudoku", "seven", "book", "pig", "before", "photographs"];
  12. Hi guys, I have a problem with my calendar widget from booking. com. I integrated the widget and it’s working just fine on most of the browsers and mobile but not on safari. I can’t select any dates on safari. I customized the widget with CSS but I cant make it work for safari. I updated my Mac now just in case the problem might be from there if not I don’t know how to fix it. Please help www.camayaan.com the widget is just on home page .bb-calendar-widget input[type="date"] { appearance: none; -webkit-appearance: none; position: relative; cl
  13. hi, Is it possible to alter the behaviour of Forte's slideshow through custom javascript? Right now the slideshow's autoplay doesn't work very well in combination with the arrows: clicking an arrow right before the transition doesn't reset the slideshow's timer, resulting in 2 transition with almost no delay. All of the template's javascript is compressed, which makes it hard to try and 'override' this with custom javascript. kind regards, Staf
  14. Hello, I'm new to squarespace. I'm trying to use the code block feature to run some very simple Javascript, but I'm not able to. The script is like this: <script> alert('hello'); </script> This is supposed to display a popup with 'hello' in it. But it doesn't. Reading the article on code blocks: https://support.squarespace.com/hc/en-us/articles/206543167-Code-Blocks ...tells me that Javascript in code blocks is a premium feature only. This *might* explain why it's not working for me, but I'm also wondering if I'm misunderstanding th
  15. Anyone know how to do an animation like the one in the website header here? https://timtigner.com/
  16. Does anyone know how I could go about adding a input field on the header of the page? I am trying to integrate squarespace with another site for our company, and one of the first steps is this.
  17. Hello, I am attempting to add a custom background to my squarespace site. Specifically a valnajs background that can be found here: https://www.vantajs.com/?effect=net#(backgroundAlpha:1,backgroundColor:13223885,color:7370174,maxDistance:24,points:6,showDots:!t,spacing:17) I can successfully add this javascript and get the resulting image when I use a code block and the following code: <script src="three.r92.min.js"></script> <script src="vanta.net.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/100/three.min.js"
  18. I am using source code (not iframes or scripts) from Jotform to place forms in code blocks on my page, but whenever I do this on Squarespace 7.1 (not a problem in earlier versions), I now see a litany of console errors when I load the page, and I lose the ability to edit the page, forcing me to delete the page to redo my work. It also removes images from the page, though the div remains. I have jQuery placed in the global site header so I have access to its selectors. When I try to use jquery selectors on the console on jotform pages, they also break. Below are the errors I see in console:
  19. Could you share the process of customizing page, the Cart and order page, using JavaScript . Could I write JS scripts on the ORDER and CART pages.
  20. Hello, I would like to edit the following Javascript code to start automatically, when somebody lands on my page. The code is for a simple counter from https://styleddigital.com/blog/2017/5/10/how-to-add-an-animated-counter-in-squarespace. Unfortunately this question has not yet been answered there. Maybe you can help?
  21. I'm trying to add a JavaScript to a button to bring up a BackerKit pre-order store. An example of what I'm trying to do (though I don't think it's a Squarespace site): top right corner of https://lynqme.com/ With the code provided below from BackerKit in a code block I was able to get things to work with clickable "Pre-order Now" text... <script> (function() { var script = document.createElement('script'); script.src = 'https://backerkit.com/assets/preorders.js'; script.async = true; var entry = document.getElementsByTagName('script')[0];
  22. I added a bit of matrix text to my homepage. But, I want to slow it down a little. Does anyone know how to do this?
  23. I have a weird issue whenever I try to use the innerHTML function in an embedded block. The function does not seem to work properly when multiple blocks are embedded on the same page. Multiple blocks all display the same image even if the code is different. I don't believe this is a coding issue on my end because if I replace innerHTML with textContent, the data pulls correctly. Anyone else have this issue? Images have been attached for clarity. This is the exact same JS, but one uses getElementByID('element').textContent, and the other uses getElementByID('element').innerHTML You ca
  24. Does anybody know how to do a header like the one on this website? https://timtigner.com/
  25. I am looking for a blog post counter for my website. The blog on my website focuses on cigar reviews and each new post is a new cigar review. I would visitors to know how many cigars have been reviewed on my website in total using a blog post counter or the likes. Is this possible?
×
×
  • Create New...