-
Notifications
You must be signed in to change notification settings - Fork 0
/
challanges.html
131 lines (97 loc) · 3.65 KB
/
challanges.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Dive Book - Home</title>
<meta name="description" content="The place Divers go to meet"/>
<meta name="author" content="up730418"/>
<link rel="stylesheet" href="main.css"/>
</head>
<body>
<div id = "topbar">
<!--<img src="logo.jpg" >-->
<input type="text" name="test" placeholder="Search" onkeyup="pageSearch(this.value)">
<button onclick="window.location='home.html';"> Home </button>
<button onclick="window.location='diveLogs.html';"> Logs</button>
<button onclick="window.location='sites.html';"> Dive Sites</button>
<button onclick="window.location='kit.html';"> Kit</button>
<button onclick="window.location='challanges.html';"> Challenges </button>
<button onclick="logOut()"> Logout</button>
</div>
<div id="addChallange">
<form id="inputs" onsubmit="">
<div id="uploadBox">
<p> Drag files onto this page to upload them</p>
</div>
<div id="message"> </div>
<div id="imgUpload"> </div>
<input type="file" name="image" placeholder="Image" onchange="loadFile(event,5)">
<p> Challange Name: <input type="text" name="name" placeholder="Name" required> </p>
<p> Start Date:<input type="date" name="date" placeholder="Date Started" required> </p>
<p> Challange Description: <textarea type="text" name="description" placeholder="Description" cols="40" rows="5" required> </textarea> </p>
<input type="button" value="Submit" onclick="addChallange()" >
</form>
</div>
<h3> My Challenges </h3>
<div id="myChallanges">
<table id="myChallangesTable">
<tr>
<th>Name</th>
<th>Date Added</th>
<th>Description</th>
<th>images</th>
</tr>
<tr>
<td>Loding....</td>
<td>Loding....</td>
<td>Loding....</td>
<td> Loding....</td>
<td> Loding....</td>
</tr>
</table>
</div>
<h3> Popular Challenges </h3>
<div id="PopularChallanges">
<table id="PopularChallangesTable">
<tr>
<th>Name</th>
<th>Date Added</th>
<th>Description</th>
<th>images</th>
<th>like</th>
</tr>
<tr>
<td>Loding....</td>
<td>Loding....</td>
<td>Loding....</td>
<td> Loding....</td>
<td> Loding....</td>
</tr>
</table>
</div>
<h3> Completed Challenges </h3>
<div id="CompletedChallanges">
<table id="CompletedChallangesTable">
<tr>
<th>Name</th>
<th>Date Added</th>
<th>Description</th>
<th>images</th>
<th>like</th>
</tr>
<tr>
<td>Loding....</td>
<td>Loding....</td>
<td>Loding....</td>
<td> Loding....</td>
<td> Loding....</td>
</tr>
</table>
</div>
</body>
<script src="js/checkLogin.js"> </script>
<script src="js/fileUpload.js"> </script>
<script src="js/getData.js"> </script>
<script src="js/addData.js"> </script>
<script src="js/challanges.js"> </script>
</html>