-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfriends.html
More file actions
212 lines (204 loc) · 17.3 KB
/
friends.html
File metadata and controls
212 lines (204 loc) · 17.3 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE html>
<html>
<head>
<title>Bored – Friends</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css">
<link rel="icon" href="img/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Montserrat:500,700,900,900i" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.3/firebase.js"></script>
<script src="scripts/config.js"></script>
</head>
<body>
<div class="preloader" id="preloader">
<div class="loading-data three-bounce">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
</div>
<a class="hamburger" id="hamburger" href=#>
<span></span>
<span></span>
<span></span>
</a>
<div class="leftbar" id="mobileMenu">
<a href="index.html">
<div class="name">
<svg style="fill:white" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1" x="0px" y="0px" viewBox="0 0 100 125" enable-background="new 0 0 100 100"
xml:space="preserve">
<path
d="M50,89.1C50,89.1,50,89.1,50,89.1c-8,0-15.4-3.7-20.2-10C21.5,68.2,16.4,55.9,16.4,47c0-20.3,14.4-35.7,33.6-35.7 c19.1,0,33.6,15.3,33.6,35.7c0,8.9-5.1,21.2-13.4,32.1C65.4,85.5,58,89.1,50,89.1z M50,16.4c-16.3,0-28.6,13.2-28.6,30.7 c0,7.7,4.8,19.1,12.4,29c3.9,5.1,9.8,8.1,16.2,8.1c6.4,0,12.3-2.9,16.2-8.1c7.5-9.9,12.4-21.3,12.4-29C78.6,29.6,66.3,16.4,50,16.4z M68.5,52c0-1.4-1.1-2.5-2.5-2.5H34c-1.4,0-2.5,1.1-2.5,2.5s1.1,2.5,2.5,2.5h32C67.4,54.5,68.5,53.4,68.5,52z M62.7,29.9 c-3.2,0-5.8,2.6-5.8,5.8c0,3.2,2.6,5.8,5.8,5.8c3.2,0,5.8-2.6,5.8-5.8C68.5,32.5,65.9,29.9,62.7,29.9z M63.7,35.7c-1.1,0-2-0.9-2-2 c0-1.1,0.9-2,2-2c1.1,0,2,0.9,2,2C65.7,34.8,64.8,35.7,63.7,35.7z M37.3,29.9c-3.2,0-5.8,2.6-5.8,5.8c0,3.2,2.6,5.8,5.8,5.8 s5.8-2.6,5.8-5.8C43,32.5,40.5,29.9,37.3,29.9z M38.3,35.7c-1.1,0-2-0.9-2-2c0-1.1,0.9-2,2-2c1.1,0,2,0.9,2,2 C40.3,34.8,39.4,35.7,38.3,35.7z" />
</svg>
<p>BORED</p>
</div>
</a>
<div class="leftbar__menu">
<ul>
<li id="leftbar__dashboard2"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512"
xml:space="preserve">
<g>
<g>
<path
d="M490.449,304.59l-10.766-6.579l10.766-6.622c28.674-17.525,28.737-47.373,0-64.936l-10.766-6.579l10.766-6.622 c28.749-17.57,28.649-59.264,0.036-76.75L279.407,6.676c-14.471-8.843-32.448-8.843-46.918,0 c-0.013,0.008-0.025,0.016-0.039,0.024L21.551,136.48c-28.741,17.565-28.656,59.26-0.039,76.748l10.803,6.647l-10.764,6.578 c-28.638,17.502-28.76,47.358-0.039,64.91l10.803,6.648l-10.764,6.578c-28.749,17.57-28.707,53.388-0.039,70.908l210.977,129.828 c14.315,8.747,32.292,8.938,46.954-0.022l211.006-129.781C519.185,357.961,519.182,322.151,490.449,304.59z M37.23,162.047 L248.168,32.244l-0.006,0.004c4.818-2.927,10.794-2.92,15.568-0.002L474.81,162.072c9.548,5.834,9.605,19.721-0.036,25.613 c-15.493,9.529-204.191,125.589-211.005,129.781c-4.825,2.948-10.816,2.947-15.599,0.024 c-9.422-5.798-202.548-124.64-210.977-129.828C27.643,181.827,27.584,167.942,37.23,162.047z M30.014,258.92 c0.015-0.503,1.337-3.308,7.177-6.877l23.781-14.534L232.49,343.055c14.346,8.766,32.324,8.917,46.953-0.023l171.576-105.529 l23.791,14.539c5.84,3.569,7.162,6.374,7.177,6.876c-0.015,0.506-1.338,3.311-7.214,6.902 c-15.495,9.53-204.19,125.589-211.005,129.781c-4.825,2.948-10.816,2.947-15.599,0.024 c-6.819-4.196-195.329-120.198-210.977-129.828C31.351,262.227,30.029,259.423,30.014,258.92z M474.774,349.953L263.767,479.735 c-4.823,2.948-10.815,2.947-15.599,0.024L37.19,349.931c-9.529-5.822-9.54-13.922,0-19.751l23.782-14.533L232.49,421.192 c14.366,8.778,32.343,8.906,46.953-0.023L451.019,315.64l23.791,14.54c4.562,2.787,7.177,6.386,7.177,9.875 S479.371,347.144,474.774,349.953z" />
</g>
</g>
</svg>
<h3>Dashboard</h3>
</li>
<li class="active" id="leftbar__friends2"><svg version="1.1" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 129 129" xmlns:xlink="http://www.w3.org/1999/xlink">
<g>
<g>
<path
d="m35,49.5h59c2.3,0 4.1-1.8 4.1-4.1s-1.8-4.1-4.1-4.1h-59c-2.3,0-4.1,1.8-4.1,4.1s1.8,4.1 4.1,4.1z" />
<path
d="m35,69.3h59c2.3,0 4.1-1.8 4.1-4.1 0-2.3-1.8-4.1-4.1-4.1h-59c-2.3,0-4.1,1.8-4.1,4.1 0,2.3 1.8,4.1 4.1,4.1z" />
<path
d="m10.5,95.8h13.2v13.5c0,1.6 0.9,3 2.3,3.7 0.6,0.3 1.2,0.4 1.8,0.4 0.9,0 1.8-0.3 2.5-0.8l22-16.7h66.2c2.3,0 4.1-1.8 4.1-4.1v-72.9c0-2.3-1.8-4.1-4.1-4.1h-108c-2.3,0-4.1,1.8-4.1,4.1v72.8c0,2.3 1.9,4.1 4.1,4.1zm4.1-72.8h99.7v64.6h-63.4c-0.9,0-1.8,0.3-2.5,0.8l-16.5,12.6v-9.3c0-2.3-1.8-4.1-4.1-4.1h-13.2v-64.6z" />
</g>
</g>
</svg>
<h3>Friends</h3>
</li>
<li id="leftbar__profile2"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512"
style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<g>
<path d="M437.02,330.98c-27.883-27.882-61.071-48.523-97.281-61.018C378.521,243.251,404,198.548,404,148
C404,66.393,337.607,0,256,0S108,66.393,108,148c0,50.548,25.479,95.251,64.262,121.962
c-36.21,12.495-69.398,33.136-97.281,61.018C26.629,379.333,0,443.62,0,512h40c0-119.103,96.897-216,216-216s216,96.897,216,216
h40C512,443.62,485.371,379.333,437.02,330.98z M256,256c-59.551,0-108-48.448-108-108S196.449,40,256,40
c59.551,0,108,48.448,108,108S315.551,256,256,256z" />
</g>
</g>
</svg>
<h3>Profile</h3>
</li>
</ul>
</div>
<div class="leftbar__user">
<p class="leftbar__username" id="leftbar__username1"></p>
<svg height="512pt" id="leftbar__logout1" viewBox="0 0 512 512" width="512pt"
xmlns="http://www.w3.org/2000/svg">
<path
d="m320.820312 371.792969h39.980469v79.957031c0 33.066406-26.902343 59.964844-59.96875 59.964844h-240.867187c-33.0625 0-59.964844-26.898438-59.964844-59.964844v-391.785156c0-33.0625 26.902344-59.964844 59.964844-59.964844h240.867187c33.066407 0 59.96875 26.902344 59.96875 59.964844v79.957031h-39.980469v-79.957031c0-11.019532-8.964843-19.988282-19.988281-19.988282h-240.867187c-11.019532 0-19.988282 8.96875-19.988282 19.988282v391.785156c0 11.019531 8.96875 19.988281 19.988282 19.988281h240.867187c11.023438 0 19.988281-8.96875 19.988281-19.988281zm96.949219-210.167969-28.269531 28.269531 45.972656 45.976563h-258.570312v39.976562h258.570312l-45.972656 45.972656 28.269531 28.269532 94.230469-94.230469zm0 0" />
</svg>
</div>
</div>
<div class="leftbar">
<a href="index.html">
<div class="name">
<svg style="fill:white" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1" x="0px" y="0px" viewBox="0 0 100 125" enable-background="new 0 0 100 100"
xml:space="preserve">
<path
d="M50,89.1C50,89.1,50,89.1,50,89.1c-8,0-15.4-3.7-20.2-10C21.5,68.2,16.4,55.9,16.4,47c0-20.3,14.4-35.7,33.6-35.7 c19.1,0,33.6,15.3,33.6,35.7c0,8.9-5.1,21.2-13.4,32.1C65.4,85.5,58,89.1,50,89.1z M50,16.4c-16.3,0-28.6,13.2-28.6,30.7 c0,7.7,4.8,19.1,12.4,29c3.9,5.1,9.8,8.1,16.2,8.1c6.4,0,12.3-2.9,16.2-8.1c7.5-9.9,12.4-21.3,12.4-29C78.6,29.6,66.3,16.4,50,16.4z M68.5,52c0-1.4-1.1-2.5-2.5-2.5H34c-1.4,0-2.5,1.1-2.5,2.5s1.1,2.5,2.5,2.5h32C67.4,54.5,68.5,53.4,68.5,52z M62.7,29.9 c-3.2,0-5.8,2.6-5.8,5.8c0,3.2,2.6,5.8,5.8,5.8c3.2,0,5.8-2.6,5.8-5.8C68.5,32.5,65.9,29.9,62.7,29.9z M63.7,35.7c-1.1,0-2-0.9-2-2 c0-1.1,0.9-2,2-2c1.1,0,2,0.9,2,2C65.7,34.8,64.8,35.7,63.7,35.7z M37.3,29.9c-3.2,0-5.8,2.6-5.8,5.8c0,3.2,2.6,5.8,5.8,5.8 s5.8-2.6,5.8-5.8C43,32.5,40.5,29.9,37.3,29.9z M38.3,35.7c-1.1,0-2-0.9-2-2c0-1.1,0.9-2,2-2c1.1,0,2,0.9,2,2 C40.3,34.8,39.4,35.7,38.3,35.7z" />
</svg>
<p>BORED</p>
</div>
</a>
<div class="leftbar__menu">
<ul>
<li id="leftbar__dashboard"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512"
xml:space="preserve">
<g>
<g>
<path
d="M490.449,304.59l-10.766-6.579l10.766-6.622c28.674-17.525,28.737-47.373,0-64.936l-10.766-6.579l10.766-6.622 c28.749-17.57,28.649-59.264,0.036-76.75L279.407,6.676c-14.471-8.843-32.448-8.843-46.918,0 c-0.013,0.008-0.025,0.016-0.039,0.024L21.551,136.48c-28.741,17.565-28.656,59.26-0.039,76.748l10.803,6.647l-10.764,6.578 c-28.638,17.502-28.76,47.358-0.039,64.91l10.803,6.648l-10.764,6.578c-28.749,17.57-28.707,53.388-0.039,70.908l210.977,129.828 c14.315,8.747,32.292,8.938,46.954-0.022l211.006-129.781C519.185,357.961,519.182,322.151,490.449,304.59z M37.23,162.047 L248.168,32.244l-0.006,0.004c4.818-2.927,10.794-2.92,15.568-0.002L474.81,162.072c9.548,5.834,9.605,19.721-0.036,25.613 c-15.493,9.529-204.191,125.589-211.005,129.781c-4.825,2.948-10.816,2.947-15.599,0.024 c-9.422-5.798-202.548-124.64-210.977-129.828C27.643,181.827,27.584,167.942,37.23,162.047z M30.014,258.92 c0.015-0.503,1.337-3.308,7.177-6.877l23.781-14.534L232.49,343.055c14.346,8.766,32.324,8.917,46.953-0.023l171.576-105.529 l23.791,14.539c5.84,3.569,7.162,6.374,7.177,6.876c-0.015,0.506-1.338,3.311-7.214,6.902 c-15.495,9.53-204.19,125.589-211.005,129.781c-4.825,2.948-10.816,2.947-15.599,0.024 c-6.819-4.196-195.329-120.198-210.977-129.828C31.351,262.227,30.029,259.423,30.014,258.92z M474.774,349.953L263.767,479.735 c-4.823,2.948-10.815,2.947-15.599,0.024L37.19,349.931c-9.529-5.822-9.54-13.922,0-19.751l23.782-14.533L232.49,421.192 c14.366,8.778,32.343,8.906,46.953-0.023L451.019,315.64l23.791,14.54c4.562,2.787,7.177,6.386,7.177,9.875 S479.371,347.144,474.774,349.953z" />
</g>
</g>
</svg>
<h3>Dashboard</h3>
</li>
<li class="active" id="leftbar__friends"><svg version="1.1" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 129 129" xmlns:xlink="http://www.w3.org/1999/xlink">
<g>
<g>
<path
d="m35,49.5h59c2.3,0 4.1-1.8 4.1-4.1s-1.8-4.1-4.1-4.1h-59c-2.3,0-4.1,1.8-4.1,4.1s1.8,4.1 4.1,4.1z" />
<path
d="m35,69.3h59c2.3,0 4.1-1.8 4.1-4.1 0-2.3-1.8-4.1-4.1-4.1h-59c-2.3,0-4.1,1.8-4.1,4.1 0,2.3 1.8,4.1 4.1,4.1z" />
<path
d="m10.5,95.8h13.2v13.5c0,1.6 0.9,3 2.3,3.7 0.6,0.3 1.2,0.4 1.8,0.4 0.9,0 1.8-0.3 2.5-0.8l22-16.7h66.2c2.3,0 4.1-1.8 4.1-4.1v-72.9c0-2.3-1.8-4.1-4.1-4.1h-108c-2.3,0-4.1,1.8-4.1,4.1v72.8c0,2.3 1.9,4.1 4.1,4.1zm4.1-72.8h99.7v64.6h-63.4c-0.9,0-1.8,0.3-2.5,0.8l-16.5,12.6v-9.3c0-2.3-1.8-4.1-4.1-4.1h-13.2v-64.6z" />
</g>
</g>
</svg>
<h3>Friends</h3>
</li>
<li id="leftbar__profile"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512"
style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<g>
<path d="M437.02,330.98c-27.883-27.882-61.071-48.523-97.281-61.018C378.521,243.251,404,198.548,404,148
C404,66.393,337.607,0,256,0S108,66.393,108,148c0,50.548,25.479,95.251,64.262,121.962
c-36.21,12.495-69.398,33.136-97.281,61.018C26.629,379.333,0,443.62,0,512h40c0-119.103,96.897-216,216-216s216,96.897,216,216
h40C512,443.62,485.371,379.333,437.02,330.98z M256,256c-59.551,0-108-48.448-108-108S196.449,40,256,40
c59.551,0,108,48.448,108,108S315.551,256,256,256z" />
</g>
</g>
</svg>
<h3>Profile</h3>
</li>
</ul>
</div>
<div class="leftbar__user">
<p class="leftbar__username" id="leftbar__username"></p>
<svg height="512pt" id="leftbar__logout" viewBox="0 0 512 512" width="512pt"
xmlns="http://www.w3.org/2000/svg">
<path
d="m320.820312 371.792969h39.980469v79.957031c0 33.066406-26.902343 59.964844-59.96875 59.964844h-240.867187c-33.0625 0-59.964844-26.898438-59.964844-59.964844v-391.785156c0-33.0625 26.902344-59.964844 59.964844-59.964844h240.867187c33.066407 0 59.96875 26.902344 59.96875 59.964844v79.957031h-39.980469v-79.957031c0-11.019532-8.964843-19.988282-19.988281-19.988282h-240.867187c-11.019532 0-19.988282 8.96875-19.988282 19.988282v391.785156c0 11.019531 8.96875 19.988281 19.988282 19.988281h240.867187c11.023438 0 19.988281-8.96875 19.988281-19.988281zm96.949219-210.167969-28.269531 28.269531 45.972656 45.976563h-258.570312v39.976562h258.570312l-45.972656 45.972656 28.269531 28.269532 94.230469-94.230469zm0 0" />
</svg>
</div>
</div>
<div class="friends" id="friends">
<div class="friends__heading">
<h2>Friends List</h2>
<div class="friends__buttons" id="friends__buttons">
<button id="friends__add" type="button"><svg version="1.1" id="Capa_1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="357px" height="357px" viewBox="0 0 357 357" style="enable-background:new 0 0 357 357;"
xml:space="preserve">
<g>
<g id="add">
<path d="M357,204H204v153h-51V204H0v-51h153V0h51v153h153V204z" />
</g>
</g>
</svg>Add new friends</button>
</div>
</div>
<div class="friends__fullList" id="friends__fullList">
</div>
<div id="requests" class="friends__requests popup">
<div id="requests__list" class="requests__list">
</div>
<div style="display:flex;align-items:center;justify-content:center;">
<button id="requests__cancel" class="cancel" type="button" style="font-weight: 700">Cancel</button>
</div>
</div>
<div id="popup" class="friends__addFriends popup">
<div class="friends__name" style="margin-top:50px">
<label for="friendName">Friend's username:</label>
<input class="friends__searchBar" id="friends__searchBar" type="text" name="friendName">
</div>
<div class="friends__list" id="friends__list">
</div>
<div style="display:flex;align-items:center;justify-content:center;">
<button id="popup__search" type="button" style="font-weight: 700">Search</button>
<button id="popup__cancel" class="cancel" type="button" style="font-weight: 700">Cancel</button>
</div>
</div>
</div>
<div class="bg" id="bg"></div>
<script src="scripts/friends.js"></script>
<script src="scripts/menu.js"></script>
</body>
</html>