-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (65 loc) · 2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Omer'in Otomasyon Mesajları!</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
text-align: center;
margin-top: 50px;
}
.message-box {
max-width: 400px;
margin: 20px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: #f9f9f9;
}
.message-box textarea {
width: 100%;
height: 100px;
margin-bottom: 10px;
padding: 8px;
box-sizing: border-box;
}
.message-box button {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.message-box button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<h1>Omer'in Otomasyon Mesajları!</h1>
<div class="message-box">
<h2>Mesaj gönder</h2>
<form onsubmit="return submitMessage(event)">
<label for="message">Mesaj:</label><br>
<textarea id="message" name="message" rows="4" required></textarea><br>
<button type="submit">Gönder</button>
</form>
</div>
<script>
function submitMessage(event) {
event.preventDefault(); // Form submit işlemini engellemek için
var message = document.getElementById('message').value;
// Simülasyon: Mesajı konsola yazdırma
console.log('Message submitted:', message);
// Kullanıcıya geri bildirim ver (alert ile)
alert('Message submitted successfully!');
// Formu temizle
event.target.reset();
}
</script>
</body>
</html>