Menu
Home
About
Our Role
Goals
The Team
Roadmap
Tokenomics
How To Buy
Knowledge Base
Contacts
Sitemap & Links
A.I.
Chart
Shop
IMMORTALITY
🏠
⬇️
Off-Chain Public Service Swaps
New name
B
I
U
S
link
image
code
HTML
list
Show page
Syntax
{html} <style> .swap_container { font-family: Arial, sans-serif; background: #fff; padding: 2rem; text-align: center; } .swap_container .swap_form { background: #fff; padding: 2rem; max-width: 90%; margin: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .swap_container input, .swap_container select, .swap_container button { width: 100%; padding: 0.75rem; margin-top: 0.75rem; border-radius: 4px; border: 1px solid #ccc; } .swap_container button { background: #007bff; color: white; border: none; cursor: pointer; } .swap_container button:hover { background: #0056b3; } .swap_container .send-address { background: #eef; padding: 0.75rem; border-radius: 4px; margin-top: 1rem; font-weight: bold; } </style> <div class="swap_container"> <form action="submit.php" method="POST" class="swap_form"> <h3>You send your coin, we send Immortality Coin (IMT)</h3> <label for="coin">Select coin you will send:</label> <select name="coin" id="coin" required> <option value="XMR">Monero (XMR)</option> <option value="ZEC">Zcash (ZEC)</option> <option value="BTC">Bitcoin (BTC)</option> <option value="ETH">Ethereum (ETH)</option> <option value="BNB">Binance Coin (BNB)</option> </select> <div class="send-address" id="sendTo"> <span id="sendText">Send Monero to this address:</span><br> <span id="address" style="font-size: 16px; word-break: break-all; overflow-wrap: break-word; font-family: monospace;">42WrVEPfDFhdMY93D65nLajJYtd2xA9Dbea6y4dAs8MJELfHCWsfr9AGfc6P52u91XNeCm5m5QkU5NWzKcXS5BXJGDdcKZG</span> </div> <label for="amount">Amount (in selected coin):</label> <input type="number" name="amount" id="amount" min="0" step="0.01" value="1.00" required> <label for="equivalent">You get in IMT:</label> <input type="text" name="equivalent" id="equivalent" value="100.00 IMT" readonly> <label for="return_address">Return Address, where should we send your IMT (BEP20):</label> <input type="text" name="return_address" id="return_address" placeholder="0x90ADd8453D8Cd3F1c3FF336F9C07de6a63C0E979" required> <button type="submit">Submit Swap Request</button> </form> <small>***Fees: All fees are third party fees, gas, miners of the respective coins only. No additional fees. <br>***Rates are approximates from 2025 <br>***48 hours turnaround time </small> <!-- Include Ethers.js for ETH/BNB wallet URI formatting --> <script src="https://cdn.jsdelivr.net/npm/ethers@5/dist/ethers.umd.min.js"></script> <script> const rates = { BTC: 103077778404, ETH: 57432099870, XMR: 9422984756, ZEC: 1324748634, BNB: 21224535719 }; const addresses = { XMR: "42WrVEPfDFhdMY93D65nLajJYtd2xA9Dbea6y4dAs8MJELfHCWsfr9AGfc6P52u91XNeCm5m5QkU5NWzKcXS5BXJGDdcKZG", ZEC: "u1euehvjpyj3qt9rvee6u4fjqy80c0xg4test8ypprpgk3nhste550jzurlxcaxjsqv0k4plkk7tunfx55guxag7vdv2lquapcn915pdkzy56kcaljqsg7ypfqc4fesfzh32tw0cv6kjcd5h2efc3lukjr9vaa2xn99hqjtwg5c304qh2jcsfkdpnkx2gxvlayn3f35mqs9dpxjtj7st5", BTC: "1BP42g2tQnAmGguea9kjfQuiJrcphDoGPr", ETH: "0x7e7Ca71BDD4d3c67bB73E9b2AAaf7be165cDFBfa", BNB: "0x90ADd8453D8Cd3F1c3FF336F9C07de6a63C0E979" }; const coinNames = { XMR: "Monero", ZEC: "Zcash", BTC: "Bitcoin", ETH: "Ethereum", BNB: "Binance Coin" }; const coinSelect = document.getElementById('coin'); const amountInput = document.getElementById('amount'); const equivalentField = document.getElementById('equivalent'); const addressSpan = document.getElementById('address'); const sendText = document.getElementById('sendText'); const form = document.querySelector('.swap_form'); function updateView() { const coin = coinSelect.value; const amt = parseFloat(amountInput.value || 0); const rate = rates[coin] || 1; const imtEquivalent = (amt * rate).toFixed(0); equivalentField.value = imtEquivalent + " IMT"; addressSpan.innerText = addresses[coin] || "—"; sendText.innerText = "Send " + (coinNames[coin] || coin) + " to this address:"; } coinSelect.addEventListener('change', updateView); amountInput.addEventListener('input', updateView); window.addEventListener('DOMContentLoaded', updateView); form.addEventListener('submit', e => { e.preventDefault(); // stop normal form submit const coin = coinSelect.value; const addr = addresses[coin]; const amt = amountInput.value; let uri = ""; switch (coin) { case "BTC": uri = `bitcoin:${addr}?amount=${amt}`; break; case "XMR": uri = `monero:${addr}?tx_amount=${amt}`; break; case "ZEC": uri = `zcash:${addr}?amount=${amt}`; break; case "ETH": case "BNB": const wei = ethers.utils.parseUnits(amt, "ether").toString(); uri = `ethereum:${addr}?value=${wei}`; break; default: alert("Send " + coinNames[coin] + " to: " + addr); break; } if (uri) { window.location.href = uri; } setTimeout(() => form.submit(), 2000); }); </script> </div> {/html}
Password
Summary of changes
📜
⏱️
⬆️