-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteam_mobile.html
263 lines (228 loc) · 7.3 KB
/
team_mobile.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
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>ACHSRobotics</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<style>
img {
width:100%;
border-radius:0px;
transition: 0.25s;
}
img:hover{
transition: border-radius ease 0.25s;
border-radius:0px;
transform: scale(1.0);
}
body{height:100%;
width:100%;
background-image:url(idk);
background-repeat:no-repeat;
background-size:cover;
}
div.pcontainer{
margin-bottom:5%;
width:100%;
height:1px;
float:left;
text-align: center;
padding: 10px 20px;
font-size:200%;}
div.person {
font-family:Lucida Sans Unicode, Lucida Grande, sans-serif;
width: 46%;
background-color: #eee;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
margin:2%;
float: left;
transition: 0.25s;
text-decoration: none;
color: rgb(0, 41, 55);
}
div.person:hover{
background-color: #192020;
color:#fff;
transform:scale(1.1);
}
div.name {
text-align: center;
padding: 10px 20px;
font-size:200%;
}
div.about {
text-align: center;
padding: 10px 20px;
font-size:100%;
}
div.team {
text-align: center;
padding: 10px 20px;
font-size:150%;
}
div.popup{
width:30%;
position:fixed;
left:35%;
background-color:#fff;
color:#192020;
overflow-y: scroll;
max-height: 100%;
display:none;
}
div.grayout{
top:-10%;
width:1000%;
position:fixed;
left:-10%;
display:none;
}
</style>
</head>
<body>
<div class=grayout id=grayout>
<img src="team/tl80.png">
</div>
<div class=popup id=maincard>
<div class=name></div>
<img src=''>
<div class=team></div>
<div class=about></div>
</div>
<div class=pcontainer>Faculty and Mentors</div><!-- pcontainer is what I use for heading the different sections-->
<!-- you need an empty pcontainer div every 5 people so that if their text was different lengths the pcontainer makes all 5 of the next people start at the same height.-->
<div class=person onclick="show(this)"><img src="team/jjackson.JPG">
<div class=name>Jeff Jackson</div>
<div class=about>I teach computer science and robotics and like surfing.</div>
</div>
<div class=pcontainer>Current Members</div>
<div class=person onclick="show(this)"><img src="team/Huy.jpg">
<div class=name>Huy Nguyen</div>
<div class=team>Programming</div>
<div class=about>I am a senior, and am the co-president of the club. This is my third year on the team.</div>
</div>
<div class=person onclick="show(this)"><img src="team/Trev.JPG">
<div class=name>Trevor Lopez</div>
<div class=team>Programming</div>
<div class=about>I am a senior, and am the co-president of the club. This is my third year on the team.</div>
</div>
<div class=pcontainer></div>
<div class=person onclick="show(this)"><img src="team/dak.jpg">
<div class=name>Dakota Frost</div>
<div class=team>Mechanical, Electrical</div>
<div class=about>I am a senior, and am co-leading the mechanical team with Freddy. This is my third year on the team. I am also vice president.</div>
</div>
<div class=person onclick="show(this)"><img src="team/freddy3.jpg">
<div class=name>Freddy Stacy</div>
<div class=team>Mechanical, Fundraising</div>
<div class=about>I am a senior, and am co-leading the mechanical team with Freddy. This is my third year on the team. I am also treasurer.</div>
</div>
<div class=pcontainer></div>
<div class=person onclick="show(this)"><img src="team/Ewang.JPG">
<div class=name>Edward Wang</div>
<div class=team>Programming</div>
<div class=about>Calcy, take it!</div>
</div>
<div class=person onclick="show(this)"><img src="team/katelynr.jpg">
<div class=name>Katelyn Raney</div>
<div class=team>Scouting</div>
<div class=about>I joined Robotics because I wanted a fun last two years of high school and to learn more about the math and engineering behind making robots!</div>
</div>
<div class=pcontainer></div>
<div class=person onclick="show(this)"><img src="team/PHOTO.jpg">
<div class=name>Name</div>
<div class=team>Teams</div>
<div class=about>about</div>
</div>
<div class=person onclick="show(this)"><img src="team/PHOTO.jpg">
<div class=name>Name</div>
<div class=team>Teams</div>
<div class=about>about</div>
</div>
<div class=pcontainer></div>
<div class=person onclick="show(this)"><img src="team/PHOTO.jpg">
<div class=name>Name</div>
<div class=team>Teams</div>
<div class=about>about</div>
</div>
<div class=person onclick="show(this)"><img src="team/PHOTO.jpg">
<div class=name>Name</div>
<div class=team>Teams</div>
<div class=about>about</div>
</div>
<div class=pcontainer></div>
<div class=pcontainer>Graduates</div>
<div class=person onclick="show(this)"><img src="team/PHOTO.jpg">
<div class=name>Name McName</div>
<div class=about>Joined 2017<br />Graduated 2019</div>
</div>
<script>
if( !(navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i)
)){location.href="team.html"}
let gray=document.getElementById('grayout');
let card=document.getElementById('maincard');
let c_img,c_name,c_team,c_about;
let card_visible=false;
card_c = card.children;
for(var i = 0; i < card_c.length; i++) {
if(card_c[i].tagName=='IMG'){
c_img=card_c[i];
}
if(card_c[i].className == 'name') {
c_name=card_c[i];
}
if(card_c[i].className == 'team') {
c_team=card_c[i];
}
if(card_c[i].className == 'about') {
c_about=card_c[i];
}
}
function show(div){
div.style.zIndex=-1;
c = div.children;
gray.style.display='block'
card.style.display='block';
card_visible=true;
c_name.innerHTML='';
c_team.innerHTML='';
c_img.src='';
c_about.innerHTML='';
for(var i = 0; i < c.length; i++) {
if(c[i].tagName=='IMG'){
c_img.src=c[i].src.replace('team/','team/in/');
}
if(c[i].className == 'name') {
c_name.innerHTML=c[i].innerHTML;
}
if(c[i].className == 'team') {
c_team.innerHTML=c[i].innerHTML;
}
if(c[i].className == 'about') {
c_about.innerHTML=c[i].innerHTML;
}
}
}
gray.onclick = function(e){
if (card_visible && e.target != card){
gray.style.display='none';
card.style.display='none';
}
}
document.onkeydown = function(e) {
if(e.key === "Escape") {
gray.style.display='none';
card.style.display='none';
}
}
</script>
</body>
<!-- this code is Dakota™ certified to be at least 90% spaghetti.-->
</html>