Skip to content

Instantly share code, notes, and snippets.

View avcohen's full-sized avatar

Aaron Cohen avcohen

View GitHub Profile
<!-- Add To Cart Button / Product ID -->
<button id="atc" data-product-id="6985868148818" class="button-olive uppercase text-13 tracking-[0.04em] h-[58px]" title="Save &amp; Add to Bag">
<p> SAVE &amp; ADD TO BAG <span class="px-2"> | </span>$1,779.00</p>
</button>
@avcohen
avcohen / ShareLinks.tsx
Created January 24, 2022 18:39
Social Share
<!-- GTM INIT-->
<script type="text/javascript">
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-K5SMW5F');
function gtag(){dataLayer.push(arguments);};
function track(payload){dataLayer.push(payload);};
@avcohen
avcohen / shopify-checkout.liquid
Created July 2, 2021 17:04
Heed - Shopify Checkout
<!-- GTM INIT-->
<script type="text/javascript">
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-K5SMW5F');
function gtag(){dataLayer.push(arguments);};
function track(payload){dataLayer.push(payload);};
import $ from "jquery";
import { component } from "picoapp";
export default component((node) => {
const links = node.querySelectorAll("a");
const sections = document.querySelectorAll(".js-nav-section");
const rootMargin = `-45% 0px -45% 0px`;
const threshold = 0;
const observer = new IntersectionObserver(onIntersection, {
Verifying my Blockstack ID is secured with the address 1GuqYEHgf1vBzPojo6U6AEFJCC3irxiwUu https://explorer.blockstack.org/address/1GuqYEHgf1vBzPojo6U6AEFJCC3irxiwUu