-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
174 lines (134 loc) · 2.83 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<style>
@import url(http://fonts.googleapis.com/css?family=Exo:100,200,400);
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:700,400,300);
.body{
position: fixed;
width: 100%;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-color: black;
background-image: url(https://github.com/sabiradavletshina/sushi_diner/blob/master/log.jpg?raw=true);
background-size: cover;
}
.header{
position: absolute;
top: calc(50% - 170px);
left: calc(48%);
}
.header div{
float: left;
color: #fff;
font-family: 'Exo', sans-serif;
font-size: 60px;
font-weight: 200;
}
.header div span{
color: #F29E20 !important;
}
.login{
position: absolute;
top: calc(50% - 75px);
left: calc(50% - 50px);
height: 150px;
width: 350px;
padding: 10px;
}
.login input[type=text]{
width: 250px;
height: 30px;
background: transparent;
border: 1px solid rgba(255,255,255,0.6);
border-radius: 2px;
color: #fff;
font-family: 'Exo', sans-serif;
font-size: 16px;
font-weight: 400;
padding: 4px;
}
.login input[type=password]{
width: 250px;
height: 30px;
background: transparent;
border: 1px solid rgba(255,255,255,0.6);
border-radius: 2px;
color: #fff;
font-family: 'Exo', sans-serif;
font-size: 16px;
font-weight: 400;
padding: 4px;
margin-top: 10px;
}
.login input[type=button]{
width: 260px;
height: 35px;
background: #fff;
border: 1px solid #fff;
cursor: pointer;
border-radius: 2px;
color: #a18d6c;
font-family: 'Exo', sans-serif;
font-size: 16px;
font-weight: 400;
padding: 6px;
margin-top: 10px;
}
.login input[type=button]:hover{
opacity: 0.8;
}
.login input[type=button]:active{
opacity: 0.6;
}
.login input[type=text]:focus{
outline: none;
border: 1px solid rgba(255,255,255,0.9);
}
.login input[type=password]:focus{
outline: none;
border: 1px solid rgba(255,255,255,0.9);
}
.login input[type=button]:focus{
outline: none;
}
::-webkit-input-placeholder{
color: rgba(255,255,255,0.6);
}
::-moz-input-placeholder{
color: rgba(255,255,255,0.6);
}
</style>
</head>
<body oncontextmenu="return false" onload="credentials()">
<div class="body"></div>
<div class="grad"></div>
<div class="header">
<div><span>Samurai</span></div>
</div>
<br>
<form name="login">
<div class="login">
<input type="text" placeholder="samurai" name="userid"><br>
<input type="password" placeholder="best" name="pswrd"><br>
<input type="button" onclick="check(this.form)" value="Login"/>
</div>
</form>
<script language="javascript">
function check(form)
{
if(form.userid.value == "samurai" && form.pswrd.value == "best")
{
window.open("https://samnar2017.github.io/takeaway-web-application/mainpg.html","_self");
}
else
{
alert("Wrong name or password. Please try again")
}
}
</script>
</body>
</html>