-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDynamic_partition_allocation.html
More file actions
106 lines (89 loc) · 3.8 KB
/
Dynamic_partition_allocation.html
File metadata and controls
106 lines (89 loc) · 3.8 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Dynamic partition allocation</title>
<link rel="icon" href="../Resource/memory.png">
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="static/css/style.css">
<link rel="stylesheet" type="text/css" href="static/css/range.css">
<script src="static/js/Form.js"></script>
<script src="static/js/randColor.js"></script>
<script src="static/js/nextAssingment.js"></script>
<script src="static/js/clear.js"></script>
</head>
<body>
<!--项目标题-->
<div class="title" style="padding: 2 px; text-align: center;font-size: 30px;">
<!-- <strong>动态分区分配方式模拟</strong> -->
动态分区分配方式模拟
</div>
<div class="parent">
<div class="left_box">
<!--内存大小显示-->
<div class="memory-size" id="memory-size" style="margin-left: 100px;">
<div style="display: inline-flex;margin-top: 10px;">内存空间大小:
<div id="current-size">640</div>
K
</div>
</div>
<!--模拟内存 -->
<div class="container">
<center>
<div class="memory" id="memory">
</div>
</center>
</div>
<div class="container" style="margin-top: 1%; margin-left: 16%;">
<!--下拉框(选择分区算法) display: flex; -->
<div class="algorithm"">
<div>请选择分区分配算法</div>
<div class=" model-box" style="width:180px; margin-top: 5px;">
<div id="box" class="model-select-text" data-value="首次适应算法">首次适应算法</div>
<ul class="model-select-option">
<li data-option="首次适应算法">首次适应算法</li>
<li data-option="最佳适应算法">最佳适应算法</li>
</ul>
</div>
</div>
<form id="myForm">
<div>请输入作业数量(1~20)</div>
<input type="number" id="ProjNumber" name="ProjNumber" min="1" max="20">
<input type="submit" value="Submit" style="border-radius: 10px;">
</form>
<!--执行下一指令-->
<div class="next-btn" style="margin-top: 30px;">
<button class="btn" onclick="nextAssignment()">
下一步
</button>
</div>
<!--清空内存-->
<div class="clear-btn">
<button class="btn" onclick="clearbtnClick()">
清空内存
</button>
</div>
</div>
</div>
<div class="right_box"style="margin-right:30px; ">
<!--日志信息滚动窗口-->
<div class="container" style="margin-top: 3%;margin-right:20px; ">
<center>
<div style="margin-bottom:20px; ">日志信息</div>
<div id="board" style="height: 400px;width: 400px;border-radius: 70px;background-color:rgb(254,212,149);
overflow:auto; ">
</div>
</center>
</div>
</div>
</div>
<script>
document.getElementById('current-size').innerHTML = "640";
document.getElementById('memory').style.width = "640" + "px";
</script>
</body>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
<script src="static/js/select.js"></script>
</html>