-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphone.js
123 lines (91 loc) · 2.55 KB
/
phone.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
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
var display_value = "";
var dialer = function(){
$("#content_dialer").show();
$("#content_list").hide();
$("#content_form").hide();
$("#button_dialer").css("background", "white");
$("#button_list").css("background", "");
$("#button_form").css("background", "");
}
$(document).ready(dialer);
$("#button_dialer").click(dialer);
$("#button_list").click(function(){
$("#content_dialer").hide();
$("#content_list").show();
$("#content_form").hide();
$("#button_list").css("background", "white");
$("#button_dialer").css("background", "");
$("#button_form").css("background", "");
});
var form = function(){
$("#content_dialer").hide();
$("#content_list").hide();
$("#content_form").show();
$("#button_form").css("background", "white");
$("#button_dialer").css("background", "");
$("#button_list").css("background", "");
}
$("#button_form").click(form);
$("#btn_1").click(function(){
display_value = display_value.concat("1");
$("#value").val(display_value);
});
$("#btn_2").click(function(){
display_value = display_value.concat("2");
$("#value").val(display_value);
});
$("#btn_3").click(function(){
display_value = display_value.concat("3")
$("#value").val(display_value);
});
$("#btn_4").click(function(){
display_value = display_value.concat("4")
$("#value").val(display_value);
});
$("#btn_5").click(function(){
display_value = display_value.concat("5")
$("#value").val(display_value);
});
$("#btn_6").click(function(){
display_value = display_value.concat("6")
$("#value").val(display_value);
});
$("#btn_7").click(function(){
display_value = display_value.concat("7")
$("#value").val(display_value);
});
$("#btn_8").click(function(){
display_value = display_value.concat("8")
$("#value").val(display_value);
});
$("#btn_9").click(function(){
display_value = display_value.concat("9")
$("#value").val(display_value);
});
$("#btn_0").click(function(){
display_value = display_value.concat("0")
$("#value").val(display_value);
});
$("#btn_ast").click(function(){
display_value = display_value.concat("*")
$("#value").val(display_value);
});
$("#btn_hash").click(function(){
display_value = display_value.concat("*")
$("#value").val(display_value);
});
$("#btn_clr").click(function(){
$("#value").val("");
display_value = "";
});
$("#btn_dial").click(function(){
alert("Sorry the functionality is not supported at this time.")
});
$("#btn_clear").click(function(){
$("#name").val("");
$("#phone").val("");
$("#email").val("");
});
$("#btn_add").click(function(){
alert("Sorry the functionality is not supported at this time.")
});