-
Notifications
You must be signed in to change notification settings - Fork 0
/
privateroomcreate.html
91 lines (91 loc) · 2.59 KB
/
privateroomcreate.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
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
<head>
<title>PHPChat: A no-faff chat room</title>
<meta charset="utf-8" />
<meta name="description" content="PHPChat: A no-faff simple chatroom" />
<link type="text/css" rel="stylesheet" href="/style.css" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#2d89ef">
<meta name="theme-color" content="#ffffff">
<script>
function onClick(){
var rand1 = Math.floor(Math.random() * 10);
var rand2 = Math.floor(Math.random() * 10);
var rand3 = Math.floor(Math.random() * 10);
var rand4 = Math.floor(Math.random() * 10);
let code = rand1.toString() + rand2.toString() + rand3.toString() + rand4.toString()
alert("Your code is " + code + ".")
}
</script>
<style>
.chat1 {
float: left;
margin: 50px;
font-family: TT;
}
.chat2 {
float: right;
margin: 50px;
font-family: TT;
}
.pp {
float: left;
margin: 50px;
font-family: TT;
}
.test {
float: right;
margin: 50px;
font-family: TT;
}
.button {
background-color: #2F02FF;
border: none;
border-radius: 12px;
text-align: center;
cursor: pointer;
transition-duration: 0.4s;
padding: 16px 16px;
color: white;
font-size: 20px;
}
.button:hover {
background-color: white;
color: black;
border: 2px solid #2F02FF;
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.button span:after {
content: '\00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.button:hover span {
padding-right: 25px;
}
.button:hover span:after {
opacity: 1;
right: 0;
}
</style>
</head>
<body>
<img class="logo" src="/logo.png" onclick="location.href='/index.php';">
<h1>Hi</h1>
<button class="button" onclick="onClick()"><span>Click me to generate!</span></button>
</body>
</html>