-
Notifications
You must be signed in to change notification settings - Fork 0
/
fe.html
70 lines (66 loc) · 2.25 KB
/
fe.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
<!DOCTYPE html>
<html data-theme="cupcake">
<head>
<title>Page Replacement Algorithms</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.min.css"
rel="stylesheet"
type="text/css"
/>
<script src="https://cdn.tailwindcss.com"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<h1 class="text-3xl mt-10 font-bold text-center">
Page Replacement Algorithms
</h1>
<div class="p-4 mx-auto gap-4 text-center content-evenly">
<!-- <h5 class="text text-base font-semibold mb-2">Reference String:</h5> -->
<input
id="ref-string"
type="text"
placeholder="1 2 3 ..."
class="input input-bordered input-secondary input-sm w-full max-w-xs"
/>
<select
id="select-algorithm"
class="select select-secondary select-sm w-full max-w-xs"
>
<option disabled selected value="none">Select an algorithm</option>
<option value="FIFO">FIFO</option>
<option value="LRU">LRU</option>
<option value="MRU">MRU</option>
<option value="LFU">LFU</option>
<option value="MFU">MFU</option>
<option value="2ND">Second chance</option>
</select>
<select
id="num-of-frames"
class="select select-secondary select-bordered select-sm w-full max-w-xs"
>
<option disabled selected value="none">Number of frames</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<button
id="visualization"
class="btn btn-sm btn-secondary mx-auto my-5"
>
Visualize
</button>
<!-- <h2 class="text-xl font-semibold mb-2 mt-10"></h2> -->
<div id="visualize" class="overflow-x-auto"></div>
<!-- <h5 class="text text-base font-semibold mb-2">Page Faults:</h5> -->
</div>
<script src="script.js"></script>
</body>
</html>