Delete templates/admin.html
Browse files- templates/admin.html +0 -83
templates/admin.html
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
<meta charset="UTF-8">
|
5 |
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
-
<title>Add Data</title>
|
8 |
-
<style>
|
9 |
-
body {
|
10 |
-
background-color: black;
|
11 |
-
color: white;
|
12 |
-
font-family: Arial, sans-serif;
|
13 |
-
padding: 20px;
|
14 |
-
}
|
15 |
-
|
16 |
-
h1 {
|
17 |
-
text-align: center;
|
18 |
-
}
|
19 |
-
|
20 |
-
form {
|
21 |
-
margin: 0 auto;
|
22 |
-
max-width: 400px;
|
23 |
-
padding: 20px;
|
24 |
-
background-color: #333;
|
25 |
-
border-radius: 10px;
|
26 |
-
}
|
27 |
-
|
28 |
-
input[type="submit"] {
|
29 |
-
background-color: #4CAF50;
|
30 |
-
color: white;
|
31 |
-
padding: 10px 20px;
|
32 |
-
border: none;
|
33 |
-
border-radius: 5px;
|
34 |
-
cursor: pointer;
|
35 |
-
margin-top: 10px;
|
36 |
-
}
|
37 |
-
|
38 |
-
input[type="text"], input[type="password"] {
|
39 |
-
width: 100%;
|
40 |
-
padding: 10px;
|
41 |
-
margin: 5px 0;
|
42 |
-
display: inline-block;
|
43 |
-
border: none;
|
44 |
-
border-bottom: 1px solid white;
|
45 |
-
background: transparent;
|
46 |
-
color: white;
|
47 |
-
}
|
48 |
-
|
49 |
-
#error-message {
|
50 |
-
color: red;
|
51 |
-
display: none;
|
52 |
-
text-align: center;
|
53 |
-
margin-top: 10px;
|
54 |
-
}
|
55 |
-
</style>
|
56 |
-
</head>
|
57 |
-
<body>
|
58 |
-
<h1>Add Data</h1>
|
59 |
-
<form method="post" onsubmit="return validatePassword()">
|
60 |
-
Password: <input type="password" name="password"><br><br>
|
61 |
-
Date: <input type="text" name="date"><br>
|
62 |
-
Open Price: <input type="text" name="open_price"><br>
|
63 |
-
High Price: <input type="text" name="high_price"><br>
|
64 |
-
Low Price: <input type="text" name="low_price"><br>
|
65 |
-
Close Price: <input type="text" name="close_price"><br>
|
66 |
-
Adj Close: <input type="text" name="adj_close"><br>
|
67 |
-
Volume: <input type="text" name="volume"><br>
|
68 |
-
<input type="submit" value="Submit">
|
69 |
-
<p id="error-message">Incorrect password. Please try again.</p>
|
70 |
-
</form>
|
71 |
-
|
72 |
-
<script>
|
73 |
-
function validatePassword() {
|
74 |
-
var password = document.querySelector('input[name="password"]').value;
|
75 |
-
if (password !== "oo") {
|
76 |
-
document.getElementById('error-message').style.display = 'block';
|
77 |
-
return false;
|
78 |
-
}
|
79 |
-
return true;
|
80 |
-
}
|
81 |
-
</script>
|
82 |
-
</body>
|
83 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|