-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (79 loc) · 4.02 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
<!-- PE & PG Parser made by Roman Koifman (c) 2018 -->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/style.css">
<title>PE & PG parser</title>
<!-- jQuery v3.3.1 Lib -->
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<!-- jCanvas v20.1.4 Lib -->
<script type="text/javascript" src="js/jcanvas.min.js"></script>
<!-- BigInteger Lib -->
<script type="text/javascript" src="js/BigInteger.min.js"></script>
<!-- Program logics -->
<script type="text/javascript" src="js/logics.js"></script>
</head>
<body>
<h1>Virtual Memory & Paging parser</h1>
<hr/>
<div class="grid-container"><!-- settings div container -->
<div class="grid-item">
<h2>Choose cpu type:</h2>
<form action="" style="padding-left:30px;" id="cpuset">
<input type="radio" name="cpu" id="x32" checked>x86_32<br>
<input type="radio" name="cpu" id="x64">x86_64<br>
</form>
</div>
<div class="grid-item">
<h2>Choose Mode:</h2>
<div style="text-align:center;"></div>
<form action="" style="padding-left:30px;" id="modeset">
<input type="radio" name="mode" value="cm" disabled>Compability Mode<br>
<input type="radio" name="mode" value="lm" disabled>Long Mode<br>
<input type="radio" name="mode" value="smm" disabled>System Managment Mode (SMM)<br>
</form>
</div>
<div class="grid-item">
<h2><input type="checkbox" id="pg" checked>Enable Paging</h2>
<div style="padding-left:20px;">
<u>Paging size:</u>
<form action="" style="padding-left:20px;padding-top:10px;" id="pgsize">
<input type="radio" name="pgSize" id="k4" disabled checked>4K paging<br>
<input type="radio" name="pgSize" id="m2" disabled>2M paging<br>
<input type="radio" name="pgSize" id="g1" disabled>1G paging<br>
</form>
</div>
</div>
</div><!-- settings div container -->
<hr/>
<div class="grid-item">
Linear Address:
<input type="text" style="width: 400px;margin-left:20px;" id="linearAddressTextBox">
<input type="radio" name="linearAddress" id="linearAddrrHex" checked>Hex
<input type="radio" name="linearAddress" id="linearAddrrDec">Decimal
<input type="radio" name="linearAddress" id="linearAddrrBin">Binary
<button id="linClear" style="margin-left:10px;">Clear</button>
</div>
<div class="grid-item">
Physical Address:
<input type="text" style="width: 400px;margin-left:3px;" id="physicalAddressTextBox">
<input type="radio" name="physicalAddress" id="physicalAddrrHex" checked>Hex
<input type="radio" name="physicalAddress" id="physicalAddrrDec">Decimal
<input type="radio" name="physicalAddress" id="physicalAddrrBin">Binary
<button id="phyClear" style="margin-left:10px;">Clear</button>
</div>
<button class="btn" style="display: block; margin: 0 auto;" id="clearAll">Clear All</button>
<hr/>
<div class="tooltip" style="margin-left:50px;">
<div style="font-size:18px; color:red;" id="hover">
<b>➢ How did I calculate?</b> (hover me)</div>
<span class="tooltiptext">
<div style="font-size:14px;" id="calcData"></div>
</span>
</div>
<canvas width="1200px" height="400px" style="border: 1px solid black; display: block; margin: 0 auto;"></canvas>
<hr/>
<div id="data"></div>
<div class="footer">All Rights Reserved © 2018 Roman Koifman.</div>
</body>
</html>