forked from saadeghi/daisyui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 26 additions & 3 deletions
29
src/docs/src/routes/(docs)/store/checkout/[email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,39 @@ | ||
<svelte:head> | ||
<title>Loading…</title> | ||
<title>Loading...</title> | ||
<meta name="robots" content="noindex"> | ||
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> | ||
<script> | ||
const urlParams = new URLSearchParams(window.location.search) | ||
const productId = urlParams.get("product"); | ||
const desc = urlParams.get("desc") === "0" ? "&desc=0" : ""; | ||
const baseUrl = `https://daisyui.lemonsqueezy.com/checkout/buy/${productId}`; | ||
window.lemonSqueezyAffiliateConfig = { | ||
store: "daisyui", | ||
onTrack: (e) => { | ||
const desc = urlParams.get("desc") === "0" ? "&desc=0" : ""; | ||
window.location.href = `https://daisyui.lemonsqueezy.com/checkout/buy/${urlParams.get("product")}?aff_ref=${e.click}${desc}`; | ||
window.location.href = `${baseUrl}?aff_ref=${e.click}${desc}`; | ||
}, | ||
} | ||
setTimeout(() => { | ||
if (typeof window.createLemonSqueezyAffiliate === 'undefined') { | ||
console.log('script not loaded. refreshing...'); | ||
window.location.reload(); | ||
} | ||
}, 10000); | ||
</script> | ||
<script src="https://lmsqueezy.com/affiliate.js" defer></script> | ||
<style> | ||
html,body { | ||
color-scheme: light dark; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
</style> | ||
</svelte:head> | ||
<div style="display: grid; place-items: center; height: 100vh; font-family: sans-serif;"> | ||
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> | ||
<circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="2" opacity="0.2"/> | ||
<path d="M12 2a10 10 0 0 1 10 10" fill="none" stroke="currentColor" stroke-width="2"> | ||
<animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="1s" repeatCount="indefinite"/> | ||
</path> | ||
</svg> | ||
</div> |