-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage4.html
217 lines (158 loc) · 6.34 KB
/
page4.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- title -->
<title>CSMA / CA</title>
<!-- linking the css file -->
<link rel="stylesheet" href="src/css/style4.css" />
</head>
<body class="body">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="./homepage.html">CSMA-CA</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="./page1.html">Interfere<span class="sr-only"></span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="./page1a.html">Solution to Interference<span class="sr-only"></span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./page2.html">Back-Off</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./page3.html">Hidden Node Problem</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./page4.html">RTS-CTS</a>
</li>
</ul>
</div>
</nav>
<div class="bs-example">
<a href="#" class="btn btn-danger2" data-bs-toggle="popover" tabindex="0" data-bs-trigger="focus"
title="explanation" data-bs-content="
This is the final module , here we have a complete simulation of CSMA/CA , now try out all the functionalities of the networking technique and guess the k (back off constant) as well
">Click here for explanation</a>
</div>
<center>
<h1>CSMA / CA</h1>
</center>
<br />
<!-- <div style="display:flex; flex-direction: column; margin-right: 30px;"> -->
<br />
<div class="body1">
<div style="margin: 60px;">
<img src="./image.png" alt="">
</div>
<div style="display: flex; flex-direction: column">
<!-- <button type="button" class="btn btn-danger1">Collision ?</button>
<button type="button" class="btn btn-danger" id="status"></button> -->
<div style="flex: 0.8">
<br /><br />
<div style="
display: flex;
flex-direction: column;
justify-content: space-around;
">
<div class="buttons1">
<!-- titles -->
<div class="title1">-Channel Status :</div>
<div class="title1">-Timer :</div>
<div class="title1">-Collision :</div>
<div class="title1">-bot Status :</div>
<br />
</div>
<!-- buttons -->
<div class="buttons1">
<button id="channel1" class="userbuto2"></button>
<button id="ifstime" class="userbuto2"></button>
<button id="status" class="userbuto2"></button>
<button id="dummy" class="userbuto2"></button>
<br />
</div>
<br>
<div class="user" style="width: 450px; display: flex; flex-direction: row; margin-bottom: 20px;">
<!-- functionality buttons -->
<div>
<button class="userbuto1" onclick="channelstatus()">Channel Status</button>
<button class="userbuto1" onclick="waitifs()">IFS Wait</button>
<button class="userbuto1" onclick="sendrts()">Send RTS</button>
<br>
<button class="userbuto1" onclick="waitsifs()">SIFS Wait</button>
<button class="userbuto1" onclick="startbackoff()">Back Off</button>
<button class="userbuto1" onclick="sendframe()">Send Frame</button>
<!-- <button class="userbuto1" onclick="acknowledge()">Acknowledgement</button> -->
</div>
</div>
</div>
</div>
<div style="margin-bottom: 20px;">
<!-- k value check -->
<input type="number" class="userbuto1" placeholder="Enter K-Value" id="message" value="">
<button id="myButton" class="userbuto1" type="button">Check K-value</button>
</div>
</div>
<div style="padding-left: 30px;">
<!-- history log -->
<div style="
display: flex;
flex-direction: column solid #ccc;
overflow: auto;
margin-left: 100px;
">
<a href="page4.html">
<button
style="border-radius: 5px; height: 30px; background-color: rgb(240, 240, 142); border-color:rgb(82, 4, 251);"
type="button" onclick="clear()">
Clear History
<!-- <br> -->
</button>
</a>
<button
style="border-radius: 5px; height: 30px; background-color: rgb(251, 251, 131); border-color:rgb(82, 4, 251);"
type="button" onclick="startbot()">
Start Bot
<!-- <br> -->
</button>
<br>
<center>
<h6> <br><br> Time > <span id="time"> </span></h6>
</center>
</div>
<div style="
flex: 0.5;
height: 500px;
width: 400px;
background-color: rgb(237, 237, 112);
border-color:rgb(82, 4, 251);
border-width: 3px;
border-radius: 10px;
padding: 10px;
overflow-y: scroll;
" id="histo"></div>
</div>
</div>
<!-- </div> -->
<!-- linking the javascript file -->
<script src="src/js/main4.js"></script>
<a href="./page3.html">
<button class="previous">Previous</button>
</a>
</body>
</html>