-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (53 loc) · 1.92 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
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Node js Anlık Mesajlaşma Örneği</title>
<link rel="stylesheet" href="/css/bootstrap.css">
<style>
.girispaneli {
background: #090a33;
border-radius: 20px;
border: 1px solid #6d6e98;
}
</style>
</head>
<body>
<div class="contanier">
<div class="row text-center mt-5">
<div class="col-xl-2 col-lg-2 col-md-2 col-sm-2 mx-auto mt-3 girispaneli">
<div class="row p-2">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 text-center">
<h3 class="text-white">CHAT GİRİŞ</h3>
</div>
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 mt-1">
<form method="post" action="/chat">
<input id="kuladi" autocomplete="off" class="form-control p-1 mt-2"
placeholder="İSİM GİRİNİZ" name="kulad" />
</div>
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 mt-2">
<button class="btn btn-block btn-warning">GİRİŞ YAP</button>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="/jquery/jquery.min.js"></script>
<script>
$(function () {
/* $('form').submit(function (e) {
e.preventDefault();
if ($('#kuladi').val().length >= 2) {
window.location.assign("/chat?ad="+$('#kuladi').val())
}
else {
alert("En az 2 karakter olmalı")
}
})
*/
})
</script>
</body>
</html>