-
Notifications
You must be signed in to change notification settings - Fork 11
/
members.html
513 lines (412 loc) · 17.5 KB
/
members.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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
<!DOCTYPE html>
<html class="no-js" lang="">
<head>
<!--<style>
body {
background-color: #EDA0BD;
}
</style>-->
<!-- Meta tags. Specify text-encoding, site info, site size -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Mundelein High School Byte Club Website">
<meta name="keywords" content="Mundelein,High,School,Programming,Byte,Club,Farmer,Rouvinov,Cygnus,Palacios">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Site title. Shows up on tab. -->
<title>Byte Club</title>
<!-- Stylesheets. Specify how the content of the site should look and feel, e.g. { color: red; font-family: Comic Sans MS; } -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!--<script src = "js/memberinfo.js"></script>-->
<link rel="stylesheet" href="css/style.css">
<!-- pulls in modernizer -->
<script src="js/vendor/modernizr-2.8.0.min.js"></script>
<!-- tasty jquery goodness -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
</head>
<body>
<div id="" class="container-fluid">
<!-- Border of Binary Code -->
<div class="binary">
</div>
<style>
.binary {
position: fixed;
top: 0px;
left: 0px;
font-size: 8px;
-webkit-transform: translateX(-50%) rotate(-90deg) translateY(50%) translateX(-50%);
-moz-transform: translateX(-50%) rotate(-90deg) translateY(50%) translateX(-50%);
-ms-transform: translateX(-50%) rotate(-90deg) translateY(50%) translateX(-50%);
-o-transform: translateX(-50%) rotate(-90deg) translateY(50%) translateX(-50%);
transform: translateX(-50%) rotate(-90deg) translateY(50%) translateX(-50%);
}
</style>
<script>
var binaryString = "01001001011001100010000001111001011011110111010100100111011100100110010100100000011100100110010101100001011001000110100101101110011001110010000001110100011010000110100101110011001000000100101001001111010010010100111000100000010000100101100101010100010001010010000001000011010011000101010101000010";
for(var i=0; i<binaryString.length; i++) {
var div = document.getElementsByClassName("binary")[0];
div.innerText += binaryString[i];
}
</script>
<!-- Banner! -->
<h1><a href="/"><img src="img/byteclub-banner-teal-low.jpg" alt="Byte Club: Start Right"></a></h1>
<div class="menu-wrap">
<nav class="menu">
<ul class="clearfix">
<li><a href="/members.html">Member Sites<span class="arrow">▼</span></a>
<ul class="sub-menu">
<li><a href="https://mrfarmer777.github.io">Mr Farmer's Site</a></li>
<li><a href="http://theexceptionist.github.io/">Kenny Stepney's Site</a></li>
<li><a href="http://pinkerfish.github.io/">Natalia Ozymko's Site</a></li>
<li><a href="http://montyfish.github.io/">Victoria Ozymko's Site</a></li>
<!--<li><a href="http://zame012.github.io/">Kyle Koeller's Site</a></li>-->
<!--<li><a href="http://bigal65.github.io/">Anuj's Site</a></li>-->
<li><a href="http://angelmontheod.github.io">Angel's Site</a></li>
<!--<li><a href="http://nduncan52.github.io/">Nick Duncan's Site</a></li>
<li><a href="http://seanbobagins.github.io/">Sean Santore's Site</a></li>-->
<li><a href="http://definitelynottyler.github.io/">Tyler's Site</a></li>
<!--<li><a href="http://nyodrax-nyodrax.c9.io/hello-world.html">Nyodrax's Site</a></li>
<li><a href="https://raphaelrk.github.io">Raphael Rouvinov's Site</a></li>
<li><a href="https://salamanderdan.github.io">Daniel Balogh's Site</a></li>-->
</ul>
</li>
<li><a href="/contacts.html">Contacts</a></li>
<li><a href="/Events.html">Events</a></li>
<li><a href="/16-17Ideas.html">16-17 Ideas</a></li>
<!-- We don't need this till next year -->
<!--<li><a href="/match.html">Match</a></li>-->
</ul>
</nav>
</div>
<div style = "text-align:center"><h2>Byte Club Members</h2></div>
<button class = "btn btn-info" onclick = "sortMembersByName(rawMembers,'name')">Sort members by Name</button>
<button class = "btn btn-info" onclick = "sortMembersByRole(rawMembers,'role')">Sort members by Role</button>
<div class = "well" id = 'members-container'>
<!-- Miles Davis sample member card
<div class = 'member-card col-lg-4' id = 'milesdavis'>
<div class = "card-picture"><img class = "img-circle" src = "http://a5.files.biography.com/image/upload/c_fill,cs_srgb,dpr_1.0,g_face,h_300,q_80,w_300/MTE1ODA0OTcxNjAxOTg3MDg1.jpg">
</div>
<div class = "card-name">
Miles Davis
</div>
<div class = "card-role">Active Member
</div>
<hr>
<div class = "card-content">
<div class = "card-stats">
<div class = 'stats-meetings'>
<b>Meetings Attended: </b> 3
</div>
<div class = 'stats-streak'>
<b>Streak:</b> 3
</div>
<div class = 'stats-memberlevel'>
<b>Level:</b> Journeyman
</div>
</div>
<div class = 'card-interests'>
<b>Interests: </b>Jazz, Coolness, Civil Rights, JavaScript
</div>
<br>
<div class = "card-quote">
'Yeah, I bet you didn't know I was in Byte Club. That's cool.'
</div>
<br>
<div class = "card-footer">
<a href = "http://www.google.com" class = "btn btn-info" role = "button" target = "_blank">Member Page</a>
<div class = "clear">
</div>
</div>
</div>
</div> -->
</div>
<!-- Member Card Styling -->
<style>
.member-card{
background-color:white;
text-align:center;
padding:25px;
margin-top:20px;
height:100%;
box-shadow: 2px 2px 10px #444444;
}
.stacked{
top:15%;
width:50%;
}
.card-picture{
padding:5px;
max-width:100%;
}
.card-picture img{
max-width:60%;
}
.card-content{
text-align:left;
padding:5px;
}
.card-role{
text-align:center;
}
.card-name{
font-size:20px;
text-align:center;
}
.card-footer{
text-align:right;
}
</style>
</div>
<script>
//holding raw member data for now//
var rawMembers = [];
//Trying to use some jquery here to get the data.
/**** Called when document finishes loading ****/
$(document).ready(function(){
getMemberData();
console.log('executed getMembers');
});
// called when the document is loaded, downloads the match responses list
// and creates the people array from it
var getMemberData = function() {
$.get( "/memberinfo.csv", function( data ) {
//$( ".data" ).html( data );
var lines = data.split("\n");
for(var i = 1; i < lines.length; i++) {
rawMembers.push(new member(lines[i].split(",")));
}
console.log(rawMembers);
stackCards(rawMembers);
});
};
function member(datastring){
this.name = datastring[3];
this.role = datastring[1];
this.id = datastring[2];
this.streak = 0;
this.level = 0;
this.meetings = 0;
this.interests = "";
this.quote = "";
this.githubID = datastring[4];
this.pictureURL = datastring[25];
this.level = '';
this.quote = 'This is a quote from this member!';
this.interests = 'INTERSTS ARE INTERESTING!';
this.memberURL = 'http://'+this.githubID + '.github.io';
this.fillIn = function(){
if(this.role ===""){
this.role = 'Active Member';
}
if(this.pictureURL === ""){
this.pictureURL = 'tile.png';
}
};
}
//Stacks cards by applying the 'stacked' class
function stackCards(memberslist){
var memberHolder = document.getElementById('members-container');
memberHolder.innerHTML='';
var stackholder = document.createElement('div');
stackholder.setAttribute('class','row stackholder');
var cardList = buildCards(memberslist);
for(var i = 0; i < cardList.length; i++){
var activeCard = cardList[i];
activeCard.setAttribute('class', 'member-card col-md-4 stacked');
stackholder.appendChild(activeCard);
}
memberHolder.appendChild(stackholder);
}
//sorting array by desired method//
function sortMembersByName(memberslist,name){
memberslist.sort(function(a, b){
var keyA=a.name.toLowerCase(), keyB=b.name.toLowerCase();
if (keyA < keyB) //sort string ascending
return -1;
if (keyA > keyB)
return 1;
return 0 //default return value (no sorting)
})
dealCards(memberslist);
};
function sortMembersByRole(memberslist,role){
memberslist.sort(function(a, b){
var keyA=a.role.toLowerCase(), keyB=b.role.toLowerCase();
if (keyA > keyB) //sort string adescending
return -1;
if (keyA < keyB)
return 1;
return 0 //default return value (no sorting)
})
dealCards(memberslist);
};
//builds card holding columns and populates them using the sorted member list
function dealCards(memberslist){
var cardList = buildCards(memberslist);
var memberHolder = document.getElementById('members-container');
memberHolder.innerHTML = "";
var numberOfMembers = memberslist.length+1;
var mainRow = document.createElement('div');
mainRow.setAttribute('class','row');
memberHolder.appendChild(mainRow);
var columns = []; //list to hold each column
//builds 3 columns to hold the member cards
for(var c = 1; c < 4; c++){
var column = document.createElement('div');
column.setAttribute('class', 'member-column col-md-4');
var columnID = 'column' + c;
column.setAttribute('id',columnID);
columns.push(column);
mainRow.appendChild(column);
};
for (var j = 0; j < cardList.length; j++){
var activeCard = cardList[j];
//var activeColumn = columns[i%3];
var columnGetter = 'column' + ((j%3)+1);
//console.log(columnID);
var activeColumn = document.getElementById(columnGetter);
activeColumn.appendChild(activeCard);
activeCard.setAttribute('class', 'member-card col-md-4');
};
}
//creates and populates a member card for each member in the list
function buildCards(memberslist){
var memberCards = [];
for(var i = 0; i < memberslist.length; i ++){
var activeMember = memberslist[i];
activeMember.fillIn(); //fills in missing information with place holders
var card = document.createElement('div'); //builds member card
card.setAttribute('class', 'member-card');
card.setAttribute('id',activeMember.name); //adds the last name as the card id
var pictureDiv = document.createElement('div');
pictureDiv.setAttribute('class','card-picture');
var picture = document.createElement("img");
picture.setAttribute('class','img-circle');
picture.setAttribute('src',activeMember.pictureURL);
var nameDiv = document.createElement('div');
nameDiv.setAttribute('class', 'card-name');
nameDiv.innerHTML = activeMember.name;
var roleDiv = document.createElement('div');
roleDiv.setAttribute('class', 'card-role');
roleDiv.innerHTML = activeMember.role;
var spacer = document.createElement('hr');
var contentDiv = document.createElement('div');
contentDiv.setAttribute('class','card-content');
var statsDiv = document.createElement('div');
statsDiv.setAttribute('class', 'card-stats');
var meetingDiv = document.createElement('div');
meetingDiv.setAttribute('class', 'card-meetings');
meetingDiv.innerHTML = "<b>Meetings Attended:</b> " + activeMember.meetings;
var streakDiv = document.createElement('div');
streakDiv.setAttribute('class', 'card-streak');
streakDiv.innerHTML = "<b>Meeting Streak:</b> " +activeMember.streak;
var levelDiv = document.createElement('div');
levelDiv.setAttribute('class', 'card-meetings');
levelDiv.innerHTML = "<b>Level:</b> " +activeMember.level;
var interestsDiv = document.createElement('div');
interestsDiv.setAttribute('class', 'card-interests');
interestsDiv.innerHTML = "<b>Interests:</b> " +activeMember.interests;
var spacer2 = document.createElement('br');
var quoteDiv = document.createElement('div');
quoteDiv.setAttribute('class', 'card-quote');
quoteDiv.innerHTML = activeMember.quote;
var footerDiv = document.createElement('div');
footerDiv.setAttribute('class', 'card-footer');
var pageButton = document.createElement('a');
pageButton.setAttribute('href', activeMember.memberURL);
pageButton.setAttribute('class', 'btn btn-info');
pageButton.setAttribute('role','button');
pageButton.setAttribute('target','_blank');
pageButton.innerHTML="Member Page";
//builds card footer with button
footerDiv.appendChild(pageButton);
//builds card heading
pictureDiv.appendChild(picture);
card.appendChild(pictureDiv);
card.appendChild(nameDiv);
card.appendChild(roleDiv);
card.appendChild(spacer);
//builds card stats
statsDiv.appendChild(meetingDiv);
statsDiv.appendChild(streakDiv);
statsDiv.appendChild(interestsDiv);
statsDiv.appendChild(spacer2);
statsDiv.appendChild(quoteDiv);
//adds card stats to card
contentDiv.appendChild(statsDiv);
//builds complete card
card.appendChild(contentDiv);
card.appendChild(footerDiv);
memberCards.push(card);
}
return memberCards;
}
</script>
<!-- Old Member Page Content
<h2>Hello Members</h2>
<div class="row">
<div class="col-lg-6">
<iframe src="https://mrfarmer777.github.io"></iframe>
<p><a href="https://mrfarmer777.github.io">Mr.Farmer's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="https://raphaelrk.github.io"></iframe>
<p><a href="https://raphaelrk.github.io">Raphael Rouvinov's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="http://theexceptionist.github.io/"></iframe>
<p><a href="http://theexceptionist.github.io/">Kenny Stepney's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="http://pinkerfish.github.io/"></iframe>
<p><a href="http://pinkerfish.github.io/">Natalia Ozymko's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="http://montyfish.github.io/"></iframe>
<p><a href="http://montyfish.github.io/">Victoria Ozymko's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="https://salamanderdan.github.io"></iframe>
<p><a href="https://salamanderdan.github.io">Daniel Balogh's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="https://abiest19.github.io"></iframe>
<p><a href="https://abiest19.github.io">Alec Biesterfeld's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="http://definitelynottyler.github.io/"></iframe>
<p><a href="http://definitelynottyler.github.io/">Tyler's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="http://nduncan52.github.io/"></iframe>
<p><a href="http://nduncan52.github.io/">Nick Duncan's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="http://seanbobagins.github.io/"></iframe>
<p><a href="http://seanbobagins.github.io/">Sean Santore's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="http://zame012.github.io/"></iframe>
<p><a href="http://zame012.github.io/">Kyle Koeller's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="http://bigal65.github.io/"></iframe>
<p><a href="http://bigal65.github.io/">Anuj's Site</a></p>
</div>
<div class="col-lg-6">
<iframe src="http://angelmontheod.github.io"></iframe>
<p><a href="http://angelmontheod.github.io">Angel's Site</a></p>
</div>
</div>
-->
</div>
</body>
<br>
<hr>
<footer>
<h2>Back to <a href="index.html">Home Page</h2>.</h2>
<h2>Get help by <a href="contacts.html">Contacting Us</a>.</h2>
</footer>
</html>