squarespace

What causes an array, in a Squarespace site, initialized as = [] ,to be populated with objects prior to the first reference to it?

China☆狼群 提交于 2019-12-11 17:20:00
问题 I wrote some JavaScript to intercept form data on a submit event, and to build an array of objects from the several <select> fields, processing one field per iteration of a loop that grabs the field value and pushes it into an array. Each iteration should construct and push() one object into the array unitl all form fields have been processed. Instead, on this test page on my website, I get the complete array of all the objects from all the form fields on the first iteration prior to the

Is it safe to re-execute an inserted <script> node?

送分小仙女□ 提交于 2019-12-11 08:20:05
问题 This is a spin-off from the comments here. I'm using SquareSpace to build my site, and for some things I like to use their HTML code blocks directly within the page, and include some JavaScript within that (in a <script></script> ) block. The problem is that SquareSpace's AJAX loading inserts that script node as innerHTML to the code div, so the script doesn't get executed. So I've added some site-wide code that detects newly inserted SquareSpace code blocks, looks for a <script> node within

Password reset not working in active club solutions in squarespace website

北城余情 提交于 2019-12-11 08:02:13
问题 I am using active club solutions in my squarespace website for customer's membership. I implemented the User registration, login, manage account by following this & this documentation. But when i clicked on forgot password link. It sends me a mail that contains link to forgot password, after clicking on link, it is showing me below error, look at image: I want to solve this error and after resetting a password, user sees a message. 来源: https://stackoverflow.com/questions/53809620/password

How to track UTM data in Squarespace form submissions

喜夏-厌秋 提交于 2019-12-11 07:28:35
问题 I've seen a lot of questions about the easiest way to change the value of a parameter, but nothing about how to change the parameter itself. For example: example.com/?utm_campaign=1&utm_source=2 would become: example.com/?SQF_CAMPAIGN=1&SQF_SOURCE=2 I've tried modifying this previous solution but I don't really understand how it works: <script> var url = $('.mylink').attr('href') url = url.replace('utm_', 'sqf_') $('.mylink').attr('href', url) </script> If you're curious about why I'm doing

How can i overcome 'Error: Zone already loaded' conflicts with Angular?

岁酱吖の 提交于 2019-12-11 04:56:57
问题 I have developed a simple Angular app built using Angular CLI that is designed to be embedded within third party websites. It works fine on a demo site in production mode. However, when the app is included within a website running on Squarespace i get the following error: Uncaught d {__zone_symbol__error: Error: Zone already loaded. at d (https://static1.squarespace.com/static/5804a95d5016e1b3e34d642…} I have ensured that my packaged Angular app script is only being included once. I can only

Squarespace - How to display description/custom text on index thumbnail on hover

强颜欢笑 提交于 2019-12-08 13:35:21
问题 Basically, I want to be able to show title and some text on hover on all my index thumbnail like this website. http://www.timboelaars.nl/ However, in the current squarespace template that I am using (I believe it's called York), the markup is only grabbing the page title and therefore displaying the page title on hover. (See the below code block, you can see the page title in there, that's the only thing that the template displays on Hover) <div class="index-item-text-wrapper"> <h2 class=

Positioning of Search Bar

我与影子孤独终老i 提交于 2019-12-08 12:18:09
问题 I have inserted a search bar by using my websites code injection points and now trying to re position it below my site tag line. Below in an screenshot of what I am trying to accomplish. My website is www.jobspark.ca <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $("#banner-area").prepend("<div id='banner-tagline'>Your British Columbia and Alberta Job Search</div>"); }); <

Integrating Angular CLI with Squarespace

大城市里の小女人 提交于 2019-12-07 12:52:03
问题 I am interested to know if anyone has been able to successfully use Angular CLI in a Squarespace site. I have been searching for answers to this problem but can't find a solution. I know that you can add custom scripts to a Squarespace site and/or add scripts via CDN but Angular CLI apps are usually deployed using a different method. Any help is appreciated. Thanks! NOTE: I know that this is not a best practice and devs should deploy their Angular CLI app via AWS or with a similar platform.

Integrating Angular CLI with Squarespace

你说的曾经没有我的故事 提交于 2019-12-06 02:00:23
I am interested to know if anyone has been able to successfully use Angular CLI in a Squarespace site. I have been searching for answers to this problem but can't find a solution. I know that you can add custom scripts to a Squarespace site and/or add scripts via CDN but Angular CLI apps are usually deployed using a different method. Any help is appreciated. Thanks! NOTE: I know that this is not a best practice and devs should deploy their Angular CLI app via AWS or with a similar platform. I'm surprised no one has answered this. Yes, there's no reason why you couldn't use AngularJS or any

If Statement not working with And (&&) Operator

好久不见. 提交于 2019-12-05 22:26:34
I'm having a hard time writing up what seems should be a simple if statement! I need it to say if mod does not equal a, b, or c - then do this. Here is what I was trying but have been unsuccessful: var mod = CURRENT_MODULE_ID; if (mod != "5827289" && mod != "5195103" && mod != "5181422") { doSomething(); } When I type this into my editor it says there is an error, specifically that "The entity name must immediately follow the '&' in the entity reference." .. and is not working when I go to test. Any help is appreciated!! UPDATE: The url: esber.squarespace.com The full script: <script type=