File tree Expand file tree Collapse file tree 1 file changed +75
-0
lines changed
Expand file tree Collapse file tree 1 file changed +75
-0
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments