-
Notifications
You must be signed in to change notification settings - Fork 274
OOsowii #5
Copy link
Copy link
Open
Description
<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>
<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>
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>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels