[c164f8f] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8">
|
---|
| 5 | <title>Admin Panel</title>
|
---|
| 6 | <style>
|
---|
| 7 | body {
|
---|
| 8 | font-family: Arial, sans-serif;
|
---|
| 9 | background-color: #f0f0f0;
|
---|
| 10 | padding: 20px;
|
---|
| 11 | }
|
---|
| 12 | .container {
|
---|
| 13 | max-width: 600px;
|
---|
| 14 | margin: 0 auto;
|
---|
| 15 | padding: 20px;
|
---|
| 16 | background-color: #fff;
|
---|
| 17 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
---|
| 18 | }
|
---|
| 19 | h1 {
|
---|
| 20 | text-align: center;
|
---|
| 21 | }
|
---|
| 22 | button {
|
---|
| 23 | display: block;
|
---|
| 24 | width: 100%;
|
---|
| 25 | padding: 10px;
|
---|
| 26 | margin: 10px 0;
|
---|
| 27 | background-color: #4CAF50;
|
---|
| 28 | color: #fff;
|
---|
| 29 | border: none;
|
---|
| 30 | cursor: pointer;
|
---|
| 31 | font-size: 16px;
|
---|
| 32 | }
|
---|
| 33 | button:hover {
|
---|
| 34 | background-color: #45a049;
|
---|
| 35 | }
|
---|
| 36 | .info {
|
---|
| 37 | margin: 20px 0;
|
---|
| 38 | }
|
---|
| 39 | #warning {
|
---|
| 40 | display: none;
|
---|
| 41 | position: fixed;
|
---|
| 42 | top: 50%;
|
---|
| 43 | left: 50%;
|
---|
| 44 | transform: translate(-50%, -50%);
|
---|
| 45 | padding: 20px;
|
---|
| 46 | background-color: #fff;
|
---|
| 47 | box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
|
---|
| 48 | z-index: 1000;
|
---|
| 49 | text-align: center;
|
---|
| 50 | }
|
---|
| 51 | #warning h1 {
|
---|
| 52 | color: red;
|
---|
| 53 | margin-bottom: 10px;
|
---|
| 54 | }
|
---|
| 55 | #warning p {
|
---|
| 56 | margin: 10px 0;
|
---|
| 57 | font-weight: bold;
|
---|
| 58 | }
|
---|
| 59 | #confirmDrop {
|
---|
| 60 | background-color: red;
|
---|
| 61 | color: #fff;
|
---|
| 62 | border: none;
|
---|
| 63 | padding: 10px;
|
---|
| 64 | margin: 10px 5px;
|
---|
| 65 | cursor: pointer;
|
---|
| 66 | }
|
---|
| 67 | #cancel {
|
---|
| 68 | background-color: #4CAF50;
|
---|
| 69 | color: #fff;
|
---|
| 70 | border: none;
|
---|
| 71 | padding: 10px;
|
---|
| 72 | margin: 10px 5px;
|
---|
| 73 | cursor: pointer;
|
---|
| 74 | }
|
---|
| 75 | #confirmDrop:hover {
|
---|
| 76 | background-color: darkred;
|
---|
| 77 | }
|
---|
| 78 | #cancel:hover {
|
---|
| 79 | background-color: #45a049;
|
---|
| 80 | }
|
---|
| 81 | </style>
|
---|
| 82 | </head>
|
---|
| 83 | <body>
|
---|
| 84 | <div class="container">
|
---|
| 85 | <h1>Admin Panel</h1>
|
---|
| 86 | <button id="logoutButton">Logout</button>
|
---|
| 87 | <button onclick="window.location.href='index.html'">Go to Website</button>
|
---|
| 88 | <button id="startScraperButton">Update Options</button>
|
---|
| 89 | <div class="info">
|
---|
| 90 | <h2>Update Info</h2>
|
---|
| 91 | <p><strong>Time since last update:</strong> <span id="lastUpdateTime">Calculating...</span></p>
|
---|
| 92 | <p><strong>Current number of options:</strong> <span id="currentOptionsCount">Fetching...</span></p>
|
---|
| 93 | </div>
|
---|
| 94 | <button id="dropOptionsDb" style="background-color: red" onclick="popupConfirm()">DROP OPTION DATABASE</button>
|
---|
| 95 |
|
---|
| 96 | </div>
|
---|
| 97 | <div class="container" id="warning">
|
---|
| 98 | <h1>WARNING</h1>
|
---|
| 99 | <p><strong>This deletes all options stored in the database!</strong></p>
|
---|
| 100 | <p><strong>Are you sure?</strong></p>
|
---|
| 101 | <button id="confirmDrop" onclick="confirmDrop()">DROP DATABASE</button>
|
---|
| 102 | <button id="cancel" onclick="popupClose()">CANCEL</button>
|
---|
| 103 | </div>
|
---|
| 104 | <script src="js/AdminPanel.js"></script>
|
---|
| 105 | </body>
|
---|
| 106 | </html>
|
---|