-
Notifications
You must be signed in to change notification settings - Fork 0
/
Interface_buttons.js
55 lines (52 loc) · 2.21 KB
/
Interface_buttons.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
46
47
48
49
50
51
52
53
54
55
// Rohan Skariah
// Tangia Sun
// Ryan Teoh
// Justin Wong
function tributton() {
document.getElementById("conicinterface").className = "hidden";
document.getElementById("quadinterface").className = "hidden";
document.getElementById("triinterface").className = "visible";
c.clearRect(0, 0, canvas.width, canvas.height);
}
function displayInputScaleneTri() {
document.getElementById("scalenetriinterface").className = "visible";
document.getElementById("equaltriinterface").className = "hidden";
c.clearRect(0, 0, canvas.width, canvas.height);
}
function displayInputEqualTri() {
document.getElementById("scalenetriinterface").className = "hidden";
document.getElementById("equaltriinterface").className = "visible";
c.clearRect(0, 0, canvas.width, canvas.height);
}
function quadbutton() {
document.getElementById("conicinterface").className = "hidden";
document.getElementById("triinterface").className = "hidden";
document.getElementById("quadinterface").className = "visible";
c.clearRect(0, 0, canvas.width, canvas.height);
}
function displayInputSquare() {
document.getElementById("rectinterface").className = "hidden";
document.getElementById("sqinterface").className = "visible";
c.clearRect(0, 0, canvas.width, canvas.height);
}
function displayInputRectangle() {
document.getElementById("sqinterface").className = "hidden";
document.getElementById("rectinterface").className = "visible";
c.clearRect(0, 0, canvas.width, canvas.height);
}
function conicButton() {
document.getElementById("triinterface").className = "hidden";
document.getElementById("quadinterface").className = "hidden";
document.getElementById("conicinterface").className = "visible";
c.clearRect(0, 0, canvas.width, canvas.height);
}
function displayInputCircle() {
document.getElementById("circinterface").className = "visible";
document.getElementById("ellipseinterface").className = "hidden";
c.clearRect(0, 0, canvas.width, canvas.height);
}
function displayInputEllipse() {
document.getElementById("circinterface").className = "hidden";
document.getElementById("ellipseinterface").className = "visible";
c.clearRect(0, 0, canvas.width, canvas.height);
}