diff --git a/index.html b/index.html
index 550c3d1..0849d35 100644
--- a/index.html
+++ b/index.html
@@ -1444,7 +1444,7 @@
📖 How to Use This Calculator as a Sponsor
🧍♂️ Live Demo Mode (for their eyes)
-
When you set the controls and send someone the share link, they see exactly what you configured — gift level, self-fund level, the full plan. They just open it and read. No account needed.
+
Set the gift and self-fund levels, then copy the share link. When they open it, the calculator loads with those exact settings — they see the plan you built for them. No account needed.
🎁 Gifting vs Self-Fund
@@ -1949,7 +1949,22 @@ document.querySelectorAll('.tab-btn').forEach(btn => {
document.getElementById('tab-' + btn.dataset.tab).classList.add('active');
setTimeout(() => { if (chart1) chart1.resize(); if (chart2) chart2.resize(); if (chart3) chart3.resize(); }, 50);
});
-});
+})();
+
+// ─── Load URL params (gift, self) into controls ────────
+(function loadURLParams() {
+ const p = new URLSearchParams(window.location.search);
+ const gift = p.get('gift');
+ const self = p.get('self');
+ if (gift) {
+ const el = document.getElementById('giftLevel');
+ if (el && [...el.options].some(o => o.value === gift)) el.value = gift;
+ }
+ if (self) {
+ const el = document.getElementById('selfFundLevel');
+ if (el && [...el.options].some(o => o.value === self)) el.value = self;
+ }
+})();
updateAll();
@@ -1967,7 +1982,12 @@ function getBaseUrl() {
function getShareUrl(refUser) {
const u = refUser || getRefFromURL() || 'cryptoteambuild';
- return getBaseUrl() + '?ref=' + encodeURIComponent(u);
+ const gift = document.getElementById('giftLevel').value;
+ const self = document.getElementById('selfFundLevel').value;
+ let url = getBaseUrl() + '?ref=' + encodeURIComponent(u);
+ if (gift !== '0') url += '&gift=' + gift;
+ if (self !== '0') url += '&self=' + self;
+ return url;
}
function updateSharedLinkBox() {