-
Notifications
You must be signed in to change notification settings - Fork 0
/
requestService.html
167 lines (131 loc) · 7.2 KB
/
requestService.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
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
165
166
167
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/style2.css" />
</head>
<body>
<!-- Menu -->
<div class="topnav">
<img src="images/help_35x35_light.png">
<a href="index.html">Home</a>
<a href="#">About Us</a>
<a href="#">Contact</a>
<a href="requestService.html" id="reqServ"> Request service </a>
<div id="userProfile"><a href="userProfile.html">Profile</a></div>
<div style="padding-left:16px">
<button id="loginBtnMain" onclick="document.getElementById('id01').style.display='block'" style="width:auto;">Login</button>
<button id="signUpBtn" onclick="document.getElementById('id02').style.display='block'" style="width:auto;">Sign Up</button>
<button id="signOutBtn" style="width:auto;">Sign Out</button>
<!-- Sign in form -->
<div id="id01" class="modal">
<span onclick="document.getElementById('id01').style.display='none'" class="close" title="Close Modal">×</span>
<!-- <form class="modal-content animate"> -->
<div class="modal-content animate">
<div class="form_container">
<h1> Sign in </h1>
<p id="loginError"> </p>
<label><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="email" id="loginEmail" required>
<label><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" id="loginPassword" required>
<div class="clearfix">
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
<span class="psw">Forgot <a href="resetPassword.html">password?</a></span>
<button class="signupbtn" id="loginBtn">Sign In</button>
</div>
</div>
</div>
<!-- </form> -->
</div>
<!-- End Sign in form -->
<!-- Sign up form -->
<div id="id02" class="modal">
<span onclick="document.getElementById('id02').style.display='none'" class="close" title="Close Modal">×</span>
<!-- <form class="modal-content animate"> -->
<div class="modal-content animate">
<div class="form_container">
<h1> Sign up </h1>
<p id="loginError"> </p>
<label><b>Email</b></label> <br/>
<input type="text" placeholder="Enter Email" name="email" id="signUpEmail" required> <br/>
<label><b>Password</b></label> <br/>
<input type="password" placeholder="Enter Password" name="psw" id="signUpPassword" required> <br/>
<div class="clearfix">
<button type="button" onclick="document.getElementById('id02').style.display='none'" class="cancelbtn">Cancel</button>
<button id="registerBtn">Sign Up</button>
</div>
</div>
</div>
<!-- </form> -->
</div>
<!-- End Sign up form -->
</div>
</div>
<!-- End Menu -->
<!-- body -->
<div class="main_container">
<div class="square_container">
<table width="100%">
<tr>
<td><img src="images/groceries.png" onmouseover="setGroceries()" onclick="document.getElementById('request-form').style.display='block'" style="width:auto;" /> <div class="square_container_text">Do groceries</div></td>
<td><img src="images/laundry.png" onmouseover="setLaundry()" onclick="document.getElementById('request-form').style.display='block'" style="width:auto;" /> <div class="square_container_text">Do laundry</div></td>
</tr>
<tr>
<td><img src="images/hospital.png" onmouseover="setHospital()" onclick="document.getElementById('request-form').style.display='block'" style="width:auto;" /><div class="square_container_text">Pick up to the Hospital</div></td>
<td><img src="images/walk_dog.png" onmouseover="setWalkDog()" onclick="document.getElementById('request-form').style.display='block'" style="width:auto;" /><div class="square_container_text">Walk dog</div></td>
</tr>
<tr>
<td colspan="2"><img src="images/special_request.png" onmouseover="setSpecialRequest()" onclick="document.getElementById('request-form').style.display='block'" style="width:auto;" /><div class="square_container_text">Custimized requests</div></td>
</tr>
</table>
</div>
</div>
<!-- Request form -->
<div id="request-form" class="modal">
<span onclick="document.getElementById('request-form').style.display='none'" class="close" title="Close Modal">×</span>
<!-- <form class="modal-content animate"> -->
<div class="modal-content animate">
<div class="form_container">
<h3> New request </h3>
<p id="groceriesError"> </p>
<label><b>Title</b></label> <br/>
<input type="text" placeholder="Enter title" maxlength="50" id="requestTitle" required> <br/>
<label><b>Type</b></label> <br/>
<input type="text" id="requestType" disabled="disabled" required> <br/>
<label><b>Description</b></label> <br/>
<textarea rows="10" cols="32" id="requestDescription" maxlength="2000" required></textarea> <br/>
<label><b>Price</b></label> <br/>
<input type="text" placeholder="Enter price in $ US" id="requestPrice" maxlength="12" required> <br/>
<div class="clearfix">
<button type="button" onclick="document.getElementById('request-form').style.display='none'" class="cancelbtn">Cancel</button> <br/>
<button id="requestBtn">Post</button>
</div>
</div>
</div>
</div>
<!-- End request form -->
<!-- end body -->
</body>
<!-- Firebase initialization -->
<script src="https://www.gstatic.com/firebasejs/4.7.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyCfHexNzqqcTaEOawoBU1x0qRTKspzcAlM",
authDomain: "yesreadydb.firebaseapp.com",
databaseURL: "https://yesreadydb.firebaseio.com",
projectId: "yesreadydb",
storageBucket: "yesreadydb.appspot.com",
messagingSenderId: "402368660468"
};
firebase.initializeApp(config);
console.log(firebase);
</script>
<!-- jQuery link -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- External JavaScript link -->
<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript" src="js/global2.js"></script>
<script type="text/javascript" src="js/global3.js"></script>
</html>