Skip to main content
ParityEdge
HTML / Vanilla JS
Integration Guide

HTML Script Tag (Vanilla JS / Webflow / Framer)

Embed the zero-dependency script tag on any website, CMS, or landing page builder. Less than 3 kB gzipped, near-zero layout shift (<0.01 CLS), and instant global edge resolution.

Isolated Shadow DOM Banner Injection

ParityEdge Shadow DOM Injected Banner
Isolated Open Shadow RootZero CSS collisions • Fully Responsive

Basic Script Tag

Paste this script tag before the closing </body> or in the <head> of your website:

<!-- High-Performance Edge Script -->
<script
  src="https://api.parityedge.app/v1/parity.global.js"
  data-project-id="prj_live_YOUR_KEY"
  data-position="bottom-pill"
  data-theme="dark"
  async>
</script>

HTML Attributes Reference

AttributeTarget ElementDescription
data-project-id<script>Your public project authentication key (prj_live_...).
data-position<script>Banner placement: bottom-pill, top-bar, or modal.
data-theme<script>Color theme: dark, light, or glassmorphic.
data-parity-baseAny price elementBase price in USD. Automatically recalculated when a parity discount applies (e.g. 49 → 24.50).
data-parity-currency-symbolAny price elementCurrency symbol prefixed to the discounted price. Defaults to $. Use for non-USD pricing (e.g. € → €24.50).

Automatic Stripe & Lemon Squeezy Promo Code Injection

Any checkout links matching Stripe Payment Links (buy.stripe.com) or Lemon Squeezy (lemonsqueezy.com/checkout) are automatically updated with prefilled discount codes.

<!-- Transformed automatically to: https://buy.stripe.com/abc?prefilled_promo_code=PARITY50 -->
<a href="https://buy.stripe.com/abc">Purchase License</a>