-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPasSec.html
214 lines (177 loc) · 3.98 KB
/
PasSec.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html>
<head>
<title>www.PassWord/THINK.com</title>
<style>
.h1 {
padding: 50px;
text-align: center;
font-size: 110%;
background-color: #00008B;
color: white;
}
body{
background-image: url("thinkLOGO.png");
background-position: top;
background-repeat: no-repeat;
border: black solid 10px;
}
label {
display: block;
font: .9rem 'Fira Sans', sans-serif;
}
input[type='submit'],
label {
margin-top: 1rem;
text-align: middle;
}
note{
color: red;
font: .6rem 'Fira Sans', sans-serif;
}
html1{
height:150px;
width: 300px;
}
.button {
border: black 4px;
outline: 0;
display: inline-block;
padding: 8px;
color: white;
background-color: #00cc96;
width: 130px;
}
.navbar {
overflow: hidden;
background-color: #ff531a;
position: sticky;
right: 0;
width: 100%;
}
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.navbar a:hover {
float: left;
display: block;
background-color: #333;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.footer {
left: 0;
width:100%;
height:150px;
bottom: 0;
width: 100%;
background-color: darkgray;
color: white;
text-align: center;
}
.cen {
align: center;
}
-start of thigh-
/* Clear floats after rows */
.row:after {
content: "";
display: table;
clear: both;
}
/* Content */
.content {
background-color: #f2f2f2;
padding: 10px;
}
.column {
width: 250px;
height: 100%;
}
-end of thing-
</style>
</head>
<script>
function myFunction() {
var str = "Click here to go to our charts";
var result = str.link("Home2.html");
document.getElementById("demo").innerHTML = result;
}
//The function to hide the text if the password is not correct
function hideText() {
alert("Your Password or Username is Incorrect")
var str = "Check Your Password Or Username";
document.getElementById("demo").innerHTML = str;
}
//Checking the password function
function checkPassword(){
var pass=document.getElementById("passW").value;
var user=document.getElementById("userN").value;
if(pass === "A" && user === "A"){
alert("Welcome!");
myFunction();
}
else{
hideText();
}
}
checkPassword();
////////////////
function getCookie(name) {
var nameEQ = name + "=";
//alert(document.cookie);
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1);
if (c.indexOf(nameEQ) != -1) return c.substring(nameEQ.length,c.length);
}
return null;
}
</script>
<body style="align: center;">
<div class="h1">
<h1>Please go, this is a resrited page</h1>
</div>
<div class="navbar">
<a href="SignUp.html">Make an acount for free!</a>
<a href="Home.html">Sign In As a Guest</a>
</div>
<!-- document.getElementById('id01').style.display='block' -->
<br><br>
<div class="solid">
<div class="row">
<div class="column">
<div class="content">
<div>
<br>
<p><center><img style="width: 70px; height: 70px; border-radius: 100%; " src="un.png" alt="Avatar"></center></p>
<p style="color: red; font-size:13px; text-align: center;">Use the Password and username to see our companys charts.</p>
<label for="u"><b>Username:</b></label>
<input type="text" id="userN" name="username" />
</div>
<br><br>
<div>
<label for="p"><b>Password:</b></label>
<input type="password" id="passW" name="password" maxlenth="20" required minlength="4" />
</div>
<br>
<input class="button" type="submit" value="ENTER" onClick="checkPassword()">
<p id="demo"></p>
<br><br><br><br><br><br><br><br><br><br><br>
</div>
</div>
</div>
</div>
<img style="align: right;" href="thinkLOGO.png"></img>
<!-- <note> <br/>Please note that this website is made form<b> pure scratch<br/> by these coding languahs: Html and CSS and javascript<br/></b> coding. Fun fact, html is <i>coding</i> not programing</note> -->
</body>
</html>