-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
126 lines (122 loc) · 4.12 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>ROMedit - A Javascript HEX Editor - FedeKrum</title>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container mt-5">
<div class="row">
<div class="col-md-6 mx-auto">
<div
id="dropzone"
class="border rounded p-1"
ondragover="handleDragOver(event);"
ondrop="handleFileSelect(event);"
>
<p class="text-center">Drag and drop a ROM file to edit</p>
<div class="text-center">
<label for="fileInput" class="btn btn-primary">
or Select a file</label
>
<input
type="file"
id="fileInput"
onchange="handleFileSelect(event);"
style="display: none"
/>
<small class="form-text text-muted"
>file name: <span id="filename"></span> | file size:
<span id="filelength"></span> bytes
</small>
<small class="form-text text-muted"
>md5:
<span id="md5"></span>
</small>
</div>
</div>
<div id="offset-group" class="form-group mt-4" hidden>
<label for="offset"
><small class="form-text"
>Offset: (in hex notation) | current decimal value:
<span id="offsetDEC"></span></small
></label>
<input
type="text"
class="form-control"
id="offset"
name="offset"
value="0"
/>
</div>
<div id="csv" class="form-group mt-4" hidden>
<label for="values"
><small class="form-text"
>Values: (address,byte : both in hex notation) | changes:
<span id="changes"></span></small
></label>
<div class="form-row">
<div class="col col-3">
<textarea
id="valuesStatus"
name="valuesStatus"
class="form-control"
rows="5"
readonly
></textarea>
</div>
<div class="col col-9">
<textarea
id="values"
name="values"
class="form-control"
rows="5"
></textarea>
</div>
<div class="col col-10"></div>
</div>
<small class="form-text text-muted"
>✅ Ok 🚫<strong>R</strong> No change. Out of
range 🚫<strong>S</strong> No change. Syntax
error</small
>
<a
id="download_link"
download=""
href="””"
class="btn btn-primary mt-3"
hidden
>Download edited file</a
>
<small id="md5HashView" class="form-text text-muted" hidden
>md5:
<span id="md5Hash"></span>
</small>
</div>
<small>
<div id="file-content"></div>
</small>
</div>
</div>
</div>
<script type="text/javascript" src="js/hexview.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/md5.min.js"></script>
<a href="http://www.freevisitorcounters.com">free visitor counters</a>
<script
type="text/javascript"
src="https://www.freevisitorcounters.com/auth.php?id=cf7b4731e570f656f78aadc19d56304bf428694b"
></script>
<script
type="text/javascript"
src="https://www.freevisitorcounters.com/en/home/counter/1038479/t/4"
></script>
</body>
</html>