-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyjs
More file actions
164 lines (130 loc) · 6.14 KB
/
Copy pathmyjs
File metadata and controls
164 lines (130 loc) · 6.14 KB
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
// var howManyHour = document.getElementById("howManyHour").value
// for(var i = 0; i < howManyHour.length; i++){
// var thevalueof = 0
// if(howManyHour[i] === "9"){
// thevalueof = 1500
// }
// else{
// thevalueof = howManyHour[i] * 200;
// }
// console.log(thevalueof)
// }
// var howManyHour1 = document.getElementById("howManyHour1").value
// for(var i = 0; i < howManyHour1.length; i++){
// var thevalueof1 = 0
// if(howManyHour1[i] === "9"){
// thevalueof1 = 1500
// }
// else{
// thevalueof1 = howManyHour1[i] * 200;
// }
// console.log(thevalueof1)
// }
// var howManyHour2 = document.getElementById("howManyHour2").value
// for(var i = 0; i < howManyHour2.length; i++){
// var thevalueof2 = 0
// if(howManyHour2[i] === "9"){
// thevalueof2 = 1500
// }
// else{
// thevalueof2 = howManyHour2[i] * 200;
// }
// console.log(thevalueof2)
// }
// var howManyHour3 = document.getElementById("howManyHour3").value
// for(var i = 0; i < howManyHour3.length; i++){
// var thevalueof3 = 0
// if(howManyHour3[i] === "9"){
// thevalueof3 = 1500
// }
// else{
// thevalueof3 = howManyHour3[i] * 200;
// }
// console.log(thevalueof3)
// }
// var howManyHour4 = document.getElementById("howManyHour4").value
// for(var i = 0; i < howManyHour4.length; i++){
// var thevalueof4 = 0
// if(howManyHour4[i] === "9"){
// thevalueof4 = 1500
// }
// else{
// thevalueof4 = howManyHour4[i] * 200;
// }
// console.log(thevalueof4)
// }
// var totalAmount = thevalueof + thevalueof1 + thevalueof2 + thevalueof3 + thevalueof4
// console.log(totalAmount)
// check.addEventListener("click", function(){
// var check = document.getElementById("check");
// var result = document.getElementById("result");
// var confirm_box = document.getElementById("confirm_box")
// // displaying the pop up box on confirm click
// confirm_box.style.display = "block";
// // loop through to know the selected time.
// for(var i = 0; i < document.querySelectorAll('input[type=checkbox]').length; i++){
// var price = 1500
// // function to add up the price
// function addprice(price, i){
// return (i * price) + price;
// }
// // display the amount to pay after calculating the price
// var cxh = document.getElementById("cxhbox");
// cxh.innerHTML += (document.querySelectorAll('input[type=checkbox][name=resumeTime]:checked')[i].value) + " ";
// document.getElementById('getprice').innerHTML = "You are to Pay " + " " + addprice(1500, i) + " " + "To Secure The place";
// }
// })
// closing the pop up box when the cancel button is click
// function closeDiv(){
// // var check = document.getElementById("check");
// // var result = document.getElementById("result");
// var confirm_box = document.getElementById("confirm_box");
// if(confirm_box.style.display === "block"){
// confirm_box.style.display = "none"
// // clear the selected element on cancel click
// document.getElementById('getprice').innerHTML = " ";
// document.getElementById("cxhbox").innerHTML = " ";
// }
// }
// Allow user to select only one checked box
// $(document).ready(function(){
// $('.check').click(function() {
// $('.check').not(this).prop('checked', false);
// });
// });
// booking section js
// function checkOption(){
// var seeSelect = document.querySelector('.make_option');
// var haveValue = seeSelect.value;
// console.log(haveValue);
// if(haveValue === "Hours"){
// document.getElementById("hourlyChoices").style.display = "block";
// }else{
// document.getElementById("hourlyChoices").style.display = "none";
// }
// if(haveValue === "Daily"){
// document.getElementById("choosedays").style.display = "block";
// }else{
// document.getElementById("choosedays").style.display = "none";
// }
// if(haveValue === "Weekly"){
// document.getElementById("chooseweekly").style.display = "block";
// }else{
// document.getElementById("chooseweekly").style.display = "none";
// }
// if(haveValue === "Monthly"){
// document.getElementById("choosemonthly").style.display = "block";
// }else{
// document.getElementById("choosemonthly").style.display = "none";
// }
// }
// var numberOfDays = document.querySelectorAll(".calender").length;
// for(var i = 0; i < numberOfDays; i++){
// var receive = document.getElementById("receive");
// document.querySelectorAll(".calender")[i].addEventListener('click', function(){
// this.style.backgroundColor = "blue"
// var amClick = this.value;
// receive.value += amClick + " ";
// console.log(amClick)
// })
// }