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

eranga

Circle Member
  • Content Count

    9
  • Joined

  • Last visited

  1. <script> var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { alert(this.responseText); } }; xhttp.open("POST", "TARGET URL", true); xhttp.setRequestHeader("Content-Type", "application/json"); xhttp.setRequestHeader("Authorization", "AUTHORISATION ID); var num = 1; //send a random number xhttp.send('{"number": ' + num + '},{"test": true}'); </script> I managed to figure this out with help. Hope this will help someone. I injected the above code to order confirmation.
  2. I would like to calculate number of trees to be planted per transaction and POST to https://offset.earth/ API. Would also like to show to customers in the order confirmation how many trees they planted for this transaction. would anyone know how to achieve this in squarespace? Thanks in advance
  3. Answer is go to end of a link and press Shift+Enter
  4. Site URL: http://www.hippynut.com I am struggling to add extra links to the footer navigation links other than the 3 provided links per block. When I add another one the space between them is different to others. How do I add another link without having a large space in between? sorry if it's a dumb question.
  5. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/scrollax@1.0.0/scrollax.min.js"></script> <script> $('.has-background').attr('data-scrollax-parent', 'true'); $('.has-background .section-background').attr('data-scrollax', 'properties: { translateY: "30%" }'); $.Scrollax(); </script> <style> .has-background {overflow: hidden;} </style> The above update #2 from https://schwartz-edmisten.com/blog/how-to-add-parallax-to-squarespace-7-1 seems to work fine without messing up the quality of the image
×
×
  • Create New...