-
Notifications
You must be signed in to change notification settings - Fork 0
/
phone.html
85 lines (78 loc) · 3.42 KB
/
phone.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Phone</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="phone-styles.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="phone.js"></script>
<style>
.row {
outline: none;
}
.col-sm-4 {
outline: none;
}
</style>
</head>
<body>
<!--Main menu navbar-->
<script src="nav-bar.js"></script>
<div id="nav-bar"></div>
<br>
<!--Start of phone-->
<div class = "container main-menu">
<button class="exit-button">
</button>
<div id="callArea">
<h1 style="text-align:center">Enter the phone number you'd like to call:</h1>
<center><input type="text" id="numberBox" style="width:50%;"></center>
<br>
<div class="row phoneRow">
<button id="1" class="number-button" onclick="appendDigit('1');">1</button>
<button id="2" class="number-button" onclick="appendDigit('2');">2</button>
<button id="3" class="number-button" onclick="appendDigit('3');">3</button>
</div>
<div class="row phoneRow">
<button id="4" class="number-button" onclick="appendDigit('4');">4</button>
<button id="5" class="number-button" onclick="appendDigit('5');">5</button>
<button id="6" class="number-button" onclick="appendDigit('6');">6</button>
</div>
<div class="row phoneRow">
<button id="7" class="number-button" onclick="appendDigit('7');">7</button>
<button id="8" class="number-button" onclick="appendDigit('8');">8</button>
<button id="9" class="number-button" onclick="appendDigit('9');">9</button>
</div>
<div class="row phoneRow">
<button id="*" class="number-button" onclick="appendDigit('*');">*</button>
<button id="0" class="number-button" onclick="appendDigit('0');">0</button>
<button id="#" class="number-button" onclick="appendDigit('#');">#</button>
</div>
<div class="row phoneRow">
<button id="B" class="number-button" style="width:50%;" onclick="deleteDigit();">Backspace</button>
<button id="C" class="number-button" style="width:50%;" onclick="clearNumber();">Clear</button>
</div>
<div class="row phoneRow">
<button id="Call" class="number-button" style="width:50%;" onclick="makeCall();">
Call
<img src="https://ps.w.org/wp-call-button/assets/icon-256x256.png?rev=2133457" alt="call button" width="100" height="100">
</button>
</div>
</div>
<div id="currentlyInCall" style="display:none;">
<p id="callingText"></p>
<div class="row" style="align-content: center;">
<button id="EndCall" class="number-button" style="width:50%;" onclick="window.location.href='index.html'">
End Call
<img src="https://images.cdn2.stockunlimited.net/clipart/end-call-icon_1945744.jpg" alt="end call button" width="100" height="100">
</button>
</div>
</div>
</div>
</body>
</html>