Skip to content

OOsowii #5

@nguyenkhatvt0101-afk

Description

@nguyenkhatvt0101-afk
<title>Nạp Tiền Game</title> <style> body { font-family: Arial; background: #f4f4f4; display: flex; justify-content: center; align-items: center; height: 100vh; } .box { background: white; padding: 30px; border-radius: 10px; width: 300px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); } input, select, button { width: 100%; padding: 10px; margin-top: 10px; } button { background: #28a745; color: white; border: none; cursor: pointer; } </style>

Nạp Tiền Game

<label>Chọn Game</label>
<select id="game">
    <option value="freefire">Free Fire</option>
    <option value="lienquan">Liên Quân</option>
    <option value="pubg">PUBG</option>
</select>

<label>ID Nhân Vật</label>
<input type="text" id="gameID" placeholder="Nhập ID game">

<label>Số Tiền</label>
<input type="number" id="amount" placeholder="Nhập số tiền">

<button onclick="submitDeposit()">Nạp Ngay</button>
<script> function submitDeposit() { const game = document.getElementById("game").value; const gameID = document.getElementById("gameID").value; const amount = document.getElementById("amount").value; if (!gameID || !amount) { alert("Vui lòng nhập đầy đủ thông tin"); return; } fetch("http://localhost:3000/deposit", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ game, gameID, amount }) }) .then(res => res.json()) .then(data => alert(data.message)) .catch(err => console.log(err)); } </script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions