. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kod Teslimatı</title>
<style>
body {
font-family: 'Arial', sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}
</style>
</head>
<body>
<div>
<label for="codeInput">Kodunuzu girin:</label>
<input type="text" id="codeInput" placeholder="Kodunuzu buraya yazın">
<button onclick="deliverCode()">Kodu Teslim Et</button>
<p id="deliveryStatus"></p>
</div>
<script>
function deliverCode() {
const userCode = document.getElementById('codeInput').value;
if (userCode.trim() !== '') {
// Burada, kullanıcının girdiği kodu bir sunucu tarafı işlemi ile işleyebilirsiniz.
// Örneğin, fetch API kullanarak bir sunucuya gönderme işlemi gerçekleştirebilirsiniz.
// Bu örnek sadece basit bir kullanımı gösterir.
document.getElementById('deliveryStatus').innerText = 'Kod başarıyla teslim edildi.';
} else {
alert('Lütfen bir kod girin.');
}
}
</script>
</body>
</html> Dijital Ürün Teslimatı API
0
●200
- 12-11-2023, 17:24:31