-
Notifications
You must be signed in to change notification settings - Fork 1
/
schedule.js
45 lines (34 loc) · 1.69 KB
/
schedule.js
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
let p1 = document.querySelector("#p1"); //배열형태로 가져옴
const p1_value = p1.querySelectorAll("input");
const p2 = document.querySelector("#p2");
const p2_value = p2.querySelectorAll("input");
const p3 = document.querySelector("#p3");
const p3_value = p3.querySelectorAll("input");
const btn_FCFS = document.querySelector("#btn_FCFS");
const btn_SJF = document.querySelector("#btn_SJF");
const btn_Priority = document.querySelector("#btn_Priority");
const btn_RR = document.querySelector("#btn_RR");
let textResult = document.getElementById("textResult");
//result function part
const p1_arrive = document.getElementById("P1_arrive");
const p2_arrive = document.getElementById("P2_arrive");
const p3_arrive = document.getElementById("P3_arrive");
const p1_burst = document.getElementById("P1_burst");
const p2_burst = document.getElementById("P2_burst");
const p3_burst = document.getElementById("P3_burst");
const p1_wait = document.getElementById("P1_wait");
const p2_wait = document.getElementById("P2_wait");
const p3_wait = document.getElementById("P3_wait");
const totalBurst = document.getElementById("burstTime");
const totalWait = document.getElementById("waitTime");
const avgWait = document.getElementById("avgWait");
const form = document.getElementById("form_result");
const div = document.createElement("div");
form.style.display = "flex";
let rrCount = document.getElementById("RRCount");
const btn_up = document.getElementById("btn_up");
const btn_down = document.getElementById("btn_down");
const chart = document.querySelector(".chart");
const time = document.querySelector(".result");
const table_tr = document.querySelectorAll("tr");
const div_result = document.querySelector("tbody");