Skip to content

Commit fc5e76a

Browse files
authored
Create viewer.html
Signed-off-by: canvrs <ngde@web.de>
1 parent f0673da commit fc5e76a

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

viewer.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>modcore CRX Viewer</title>
6+
<style>
7+
body {
8+
font-family: Arial, sans-serif;
9+
background-color: #f7f9fc;
10+
margin: 0;
11+
padding: 0;
12+
}
13+
header {
14+
background-color: #0d6efd;
15+
color: white;
16+
padding: 1rem;
17+
text-align: center;
18+
}
19+
.container {
20+
display: flex;
21+
flex-direction: column;
22+
max-width: 1200px;
23+
margin: 2rem auto;
24+
padding: 1rem;
25+
gap: 1rem;
26+
}
27+
input[type="file"] {
28+
padding: 0.5rem;
29+
font-size: 1rem;
30+
}
31+
#fileList {
32+
background: #fff;
33+
border: 1px solid #ccc;
34+
padding: 1rem;
35+
max-height: 400px;
36+
overflow-y: auto;
37+
}
38+
.file-item {
39+
cursor: pointer;
40+
padding: 0.3rem 0.5rem;
41+
border-bottom: 1px solid #eee;
42+
}
43+
.file-item:hover {
44+
background-color: #f0f0f0;
45+
}
46+
#fileContent {
47+
background: #1e1e1e;
48+
color: #d4d4d4;
49+
padding: 1rem;
50+
white-space: pre-wrap;
51+
overflow-x: auto;
52+
max-height: 600px;
53+
}
54+
footer {
55+
text-align: center;
56+
margin: 2rem;
57+
color: #666;
58+
font-size: 0.9rem;
59+
}
60+
</style>
61+
</head>
62+
<body>
63+
<header>
64+
<h1>modcore CRX Viewer</h1>
65+
<p>Upload a CRX file and explore its source code</p>
66+
</header>
67+
<div class="container">
68+
<input type="file" id="crxInput" accept=".crx"/>
69+
<div id="fileList"></div>
70+
<pre id="fileContent">Select a file to view its content...</pre>
71+
</div>
72+
<footer>modcore Extension Manager | GitHub Pages CRX Viewer</footer>
73+
<script src="viewer.js"></script>
74+
</body>
75+
</html>

0 commit comments

Comments
 (0)