This repository was archived by the owner on Dec 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
G #381
Copy link
Copy link
Open
Description
<title>atpcoin - منصة التداول</title>
<style>
body {
font-family: 'Segoe UI', sans-serif;
background-color: #f4f6f9;
margin: 0;
padding: 0;
}
</style>
<script>
let balance = 1500;
function updateBalance() {
document.getElementById("balance").textContent = balance;
}
function logAction(text) {
const item = document.createElement("li");
item.textContent = text;
document.getElementById("log").appendChild(item);
}
function generateCode() {
const name = document.getElementById("codeName").value.trim();
const value = parseFloat(document.getElementById("codeValue").value);
if (!name || isNaN(value) || value <= 0) {
alert("يرجى إدخال اسم كود وقيمة صحيحة");
return;
}
const codes = JSON.parse(localStorage.getItem("codes") || "{}");
codes[name] = value;
localStorage.setItem("codes", JSON.stringify(codes));
logAction("تم توليد كود: " + name + " بقيمة " + value + " USDT");
alert("تم توليد الكود بنجاح");
}
function applyCode() {
const code = document.getElementById("code").value.trim();
const codes = JSON.parse(localStorage.getItem("codes") || "{}");
if (codes[code]) {
balance += codes[code];
updateBalance();
logAction("تم تفعيل كود: " + code + " بقيمة " + codes[code] + " USDT");
alert("تمت إضافة " + codes[code] + " USDT إلى رصيدك");
} else {
alert("الكود غير صالح أو منتهي");
}
}
function deposit() {
const amount = parseFloat(document.getElementById('depositAmount').value);
if (isNaN(amount) || amount <= 0) {
alert("يرجى إدخال كمية صحيحة للإيداع");
return;
}
logAction("طلب إيداع بقيمة " + amount + " USDT");
alert("تم إرسال طلب إيداع بقيمة " + amount + " USDT إلى المحفظة الثابتة.");
}
function withdraw() {
const amount = parseFloat(document.getElementById('withdrawAmount').value);
const wallet = document.getElementById('withdrawWallet').value.trim();
if (!wallet || isNaN(amount) || amount <= 0) {
alert("يرجى إدخال عنوان المحفظة وكمية صحيحة");
return;
}
if (amount > balance) {
alert("لا يوجد رصيد كافي للسحب");
return;
}
balance -= amount;
updateBalance();
logAction("طلب سحب بقيمة " + amount + " USDT إلى " + wallet);
alert("تم إرسال طلب سحب بقيمة " +
.header {
background-color: #1e1e2f;
color: white;
padding: 15px;
text-align: center;
font-size: 18px;
font-weight: bold;
}
.container {
padding: 15px;
max-width: 400px;
margin: auto;
}
.section {
background-color: white;
border-radius: 10px;
padding: 15px;
margin-bottom: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.section h3 {
margin-top: 0;
font-size: 16px;
color: #333;
border-bottom: 1px solid #eee;
padding-bottom: 5px;
}
label {
display: block;
margin-top: 10px;
font-weight: bold;
color: #444;
}
input {
width: 100%;
padding: 10px;
margin-top: 5px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
width: 100%;
padding: 10px;
margin-top: 15px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
}
.rates div {
padding: 5px 0;
border-bottom: 1px solid #eee;
font-size: 14px;
color: #555;
}
.wallet-box {
background-color: #e9ecef;
padding: 10px;
border-radius: 5px;
font-size: 14px;
word-break: break-word;
margin-top: 5px;
}
.log {
font-size: 14px;
color: #555;
padding-left: 15px;
}
.log li {
margin-bottom: 5px;
}
.balance-box {
background-color: #ffffff;
padding: 15px;
text-align: center;
font-size: 16px;
font-weight: bold;
color: #28a745;
border-bottom: 1px solid #ddd;
}
منصة التداول - atpcoin
رصيد المستخدم: 1500 USDT
<!-- واجهة المستخدم -->
<div class="section">
<h3>تفعيل كود الرصيد</h3>
<label for="code">أدخل الكود:</label>
<input type="text" id="code" placeholder="مثال: VIP100">
<button onclick="applyCode()">تفعيل الكود</button>
</div>
<div class="section">
<h3>أسعار العملات الرقمية</h3>
<div class="rates">
<div>BTC: <span id="btc">...</span></div>
<div>ETH: <span id="eth">...</span></div>
<div>USDT: <span id="usdt">...</span></div>
<div>XRP: <span id="xrp">...</span></div>
<div>BNB: <span id="bnb">...</span></div>
<div>DOGE: <span id="doge">...</span></div>
</div>
</div>
<div class="section">
<h3>إيداع عبر المحفظة</h3>
<label>عنوان المحفظة الثابت:</label>
<div class="wallet-box">UQCaqUC6zAWLrUqp-h8Xhrj4_YXoBg52a-D75rzP16zkIfgK</div>
<label for="depositAmount">الكمية المراد إيداعها (USDT):</label>
<input type="number" id="depositAmount" placeholder="مثال: 250">
<button onclick="deposit()">تأكيد الإيداع</button>
</div>
<div class="section">
<h3>طلب سحب</h3>
<label for="withdrawAmount">الكمية المراد سحبها (USDT):</label>
<input type="number" id="withdrawAmount" placeholder="مثال: 100">
<label for="withdrawWallet">عنوان المحفظة المستلمة:</label>
<input type="text" id="withdrawWallet" placeholder="أدخل عنوان المحفظة">
<button onclick="withdraw()">تأكيد السحب</button>
</div>
<!-- لوحة المدير -->
<div class="section">
<h3>لوحة المدير - توليد كود</h3>
<label for="codeName">اسم الكود:</label>
<input type="text" id="codeName" placeholder="مثال: VIP100">
<label for="codeValue">قيمة الكود (USDT):</label>
<input type="number" id="codeValue" placeholder="مثال: 100">
<button onclick="generateCode()">توليد الكود</button>
</div>
<div class="section">
<h3>سجل العمليات</h3>
<ul id="log" class="log"></ul>
</div>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels