|
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
5 | 6 | <title>Game Loader | Jet Yeh's</title> |
| 7 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"> |
| 8 | + <link rel="stylesheet" href="/css/style.css"> |
| 9 | + <link rel="stylesheet" href="/css/index.css"> |
| 10 | + <link rel='icon' href="/img/favicon-32x32.png"> |
6 | 11 | <script src="/js/disguise.js"></script> |
7 | 12 | <style> |
8 | | - *, *::before, *::after { |
| 13 | + * { |
| 14 | + margin: 0; |
| 15 | + padding: 0; |
9 | 16 | box-sizing: border-box; |
10 | 17 | } |
| 18 | + |
11 | 19 | html, body { |
12 | | - margin: 0; |
13 | | - padding: 0; |
14 | | - width: 100%; |
15 | 20 | height: 100%; |
16 | 21 | overflow: hidden; |
| 22 | + font-family: sans-serif; |
17 | 23 | background: black; |
18 | 24 | } |
| 25 | + |
| 26 | + .wrapper { |
| 27 | + display: flex; |
| 28 | + height: 100vh; |
| 29 | + width: 100vw; |
| 30 | + } |
| 31 | + |
| 32 | + .sidebar { |
| 33 | + width: 200px; |
| 34 | + background: rgba(24, 24, 24, 0.9); |
| 35 | + color: white; |
| 36 | + display: flex; |
| 37 | + flex-direction: column; |
| 38 | + justify-content: space-between; |
| 39 | + } |
| 40 | + |
| 41 | + .sidebar h2 { |
| 42 | + text-align: center; |
| 43 | + padding: 20px 10px; |
| 44 | + font-size: 20px; |
| 45 | + border-bottom: 1px solid #444; |
| 46 | + } |
| 47 | + |
| 48 | + .sidebar ul { |
| 49 | + list-style: none; |
| 50 | + padding: 0; |
| 51 | + margin: 0; |
| 52 | + } |
| 53 | + |
| 54 | + .sidebar ul a { |
| 55 | + text-decoration: none; |
| 56 | + color: white; |
| 57 | + } |
| 58 | + |
| 59 | + .sidebar ul li { |
| 60 | + padding: 12px 20px; |
| 61 | + border-bottom: 1px solid #333; |
| 62 | + cursor: pointer; |
| 63 | + } |
| 64 | + |
| 65 | + .sidebar ul li:hover { |
| 66 | + background-color: #333; |
| 67 | + } |
| 68 | + |
| 69 | + .left-col { |
| 70 | + padding: 10px; |
| 71 | + text-align: center; |
| 72 | + } |
| 73 | + |
| 74 | + .main_content { |
| 75 | + flex: 1; |
| 76 | + display: flex; |
| 77 | + flex-direction: column; |
| 78 | + height: 100%; |
| 79 | + background: black; |
| 80 | + } |
| 81 | + |
19 | 82 | iframe { |
20 | | - position: absolute; |
21 | | - top: 0; |
22 | | - left: 0; |
| 83 | + flex: 1; |
23 | 84 | width: 100%; |
24 | | - height: 100%; |
25 | 85 | border: none; |
26 | 86 | display: block; |
27 | 87 | } |
28 | 88 | </style> |
29 | 89 | </head> |
30 | 90 | <body> |
31 | | - <iframe id="game-frame" src="" allowfullscreen></iframe> |
| 91 | + <div class="wrapper"> |
| 92 | + <div class="sidebar"> |
| 93 | + <div> |
| 94 | + <h2>Jet Yeh's</h2> |
| 95 | + <ul> |
| 96 | + <a href="/index.html"><li><i class="fa-solid fa-house"></i> Home</li></a> |
| 97 | + <a href="https://github.com/dngaa/dngaa.github.io/issues/new?labels=bug&title=Bug%20Report"><li><i class="fa-solid fa-bug"></i> Bug Report</li></a> |
| 98 | + <a href="https://github.com/dngaa/dngaa.github.io/issues/new?labels=game%20request&title=Game%20Request"><li><i class="fa-solid fa-ghost"></i> Game Request</li></a> |
| 99 | + <a href="pages/settings.html"><li><i class="fa-solid fa-gear"></i> Settings</li></a> |
| 100 | + <a><li id="go-to-top-button"><i class="fa-solid fa-up-long"></i> Top</li></a> |
| 101 | + </ul> |
| 102 | + </div> |
| 103 | + <div class="left-col"> |
| 104 | + <img title="icon" src="/img/icon.png" width="160px"> |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + |
| 108 | + <div class="main_content"> |
| 109 | + <iframe id="game-frame" src="" allowfullscreen></iframe> |
| 110 | + </div> |
| 111 | + </div> |
32 | 112 |
|
33 | 113 | <script> |
34 | 114 | const params = new URLSearchParams(window.location.search); |
|
37 | 117 | if (gameUrl) { |
38 | 118 | document.getElementById("game-frame").src = decodeURIComponent(gameUrl); |
39 | 119 | } else { |
40 | | - document.body.innerHTML = "<h1 style='color:white;text-align:center;margin-top:20%;'>No game selected.</h1>"; |
| 120 | + document.querySelector(".main_content").innerHTML = "<h1 style='color:white;text-align:center;margin-top:20%;'>No game selected.</h1>"; |
41 | 121 | } |
42 | 122 | </script> |
43 | 123 | </body> |
|
0 commit comments