-
Notifications
You must be signed in to change notification settings - Fork 52
/
dashboard.html
163 lines (157 loc) · 4.04 KB
/
dashboard.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
---
layout: simple
title: <span class="chapter"></span> Dashboard
---
<style>
#dashboard {
clear: after;
margin: 1em 0;
}
#dashboard ul li:before {
display: none;
clear: both;
}
#dashboard ul li {
display: table;
border: 1px solid #888;
width: 30%;
height: 4em;
margin: 3px;
background-color: lime;
text-align: center;
float: left;
}
#dashboard ul li.recent {
background-color: lightgreen;
}
#dashboard ul li.minor {
background-color: yellow;
}
#dashboard ul li.major {
background-color: orange;
}
#dashboard ul li.critical {
background-color: red;
}
#dashboard ul li.never {
background-color: lightgray;
}
#dashboard ul li .title {
display: table-cell;
vertical-align: middle;
padding: 0 5px;
}
#dashboard ul li .occur {
display: table-cell;
font-size: 2em;
background-color: white;
opacity: 0.4;
width: 2em;
vertical-align: middle;
}
</style>
<h2>Workshops</h1>
<div id="dashboard" class="clearfix">
</div>
<small>
The information is automatically generated from <a id="pastlink">past Meetup
events</a> in <span class="chapter"></span>. It uses keyword search in the
event names to determine which workshop material was used; this is, of
course, prone to error.
</small>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.11.0/react.js" type="text/javascript" charset="utf-8"></script>
<script src="/scripts/widgets.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
var meetup = window.location.search.replace(/^\?/, '');
if (!meetup) return;
// split prefix such as "opentechschool-" from meetup
var chapter = meetup.split("-").slice(1).join("-");
$("#pastlink").attr("href",
"https://www.meetup.com/" + meetup + "/events/past/");
$(".chapter").text(chapter.replace(/\w\S*/g, function(t) {
return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase(); }));
React.renderComponent(
OTS.Widgets.EventsCurricula({
params: {
group_urlname: 'opentechschool-' + chapter,
status: 'past,upcoming',
desc: 'true',
},
ages: [
[0, "second", "recent"],
[1, "month", "minor"],
[3, "month", "major"],
[1, "year", "critical"],
],
curricula: {
"Python for beginners": {
url: "python.opentechschool.org/beginners",
matches: [
/intro(duction)? to programming w(\/|ith) python/,
],
},
"Data Processing with Python": {
url: "https://opentechschool.github.io/python-data-intro/",
matches: [
/data processing/,
],
},
"BioPython": {
url: "https://github.com/OpenTechSchool/biopython/tree/material",
},
"Websites with Python Flask": {
url: "https://opentechschool.github.io/python-flask/",
matches: [
/flask/,
],
},
"Web Development with Django": {
url: "https://opentechschool.github.io/django-101/",
matches: [
/django/,
],
},
"Javascript for Absolute Beginners": {
url: "https://js.opentechschool.org/",
matches: [
/javascript/,
],
},
"HTML/CSS for beginners": {
url: "https://opentechschool.github.io/html-css-beginners/",
},
"Social Coding with Git and Github": {
url: "https://opentechschool.github.io/social-coding/",
matches: [
/social coding/,
],
},
"Github from Scratch": {
url: "https://opentechschool.github.io/github-from-scratch/",
},
"Working with SQL databases": {
url: "https://opentechschool.github.io/sql-tutorial/",
matches: [
/sql/,
],
},
"Physical Computing Club": {
url: "http://www.physicalcomputingclub.org/",
},
"Talk & Play": {
},
"Hackership": {
url: "http://hackership.org/",
},
"Organizers Meeting": {
matches: [
/organi[zs]er('?s)? (breakfast|meet(ing|up))/,
/drinks/,
],
},
},
}),
document.getElementById("dashboard"));
});
</script>