forked from djcas9/hexdump.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
39 lines (35 loc) · 1.01 KB
/
example.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
<!DOCTYPE HTML>
<html lang="en-EN">
<head>
<meta charset="UTF-8">
<title>Hexdump.js</title>
<script type="text/javascript" src="src/hexdump.js"></script>
</head>
<body>
<pre id="hexdump"></pre>
<script type="text/javascript">
var placeholder = '䉁䅃䍂AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
'䉁䅃䍂䉁䅃䍂䉁䅃䉁䅃䍂AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +
'䉁䅃䍂䉁䅃䍂䉁䅃䉁䅃䍂䉁䅃䍂䉁䅃䉁䅃䍂䉁䅃䍂䍂䉁䅃䍂䉁䅃A';
new Hexdump(placeholder, {
container: 'hexdump'
, base: 'hexadecimal'
, width: 16
, ascii: true
, byteGrouping: 1
, html: true
, lineNumber: true
, style: {
lineNumberLeft: ''
, lineNumberRight: ':'
, stringLeft: '|'
, stringRight: '|'
, hexLeft: ''
, hexRight: ''
, hexNull: '.g'
, stringNull: '.'
}
});
</script>
</body>
</html>