-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·287 lines (270 loc) · 9.93 KB
/
index.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
<!DOCTYPE html>
<!-- TEST -->
<html lang="en">
<head>
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:image"
content="/Images/perl_on_phone_1024.jpg"
/>
<meta name="twitter:site" content="@purduepm" />
<meta name="twitter:site" content="@jacobydave" />
<meta name="twitter:title" content="Purdue Perl Mongers" />
<meta
name="twitter:description"
content="Site for Purdue Perl Mongers, Indiana's oldest Perl User Group."
/>
<meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Kip Hampton" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Douglas Adams" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Jon Postel" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Dennis Ritchie" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Harlan Ellison" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Gary Gygax" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Jeff Goff" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Rick Westerman" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Brian Sloan" />
<meta http-equiv="X-Clacks-Overhead" content="GNU David Adler" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Vernor Vinge" />
<meta http-equiv="X-Clacks-Overhead" content="GNU Google Pages" />
<meta http-equiv="date" content="2021-08-05 22:26:24" />
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=yes"
/>
<title>Purdue Perl Mongers</title>
<!-- CSS -->
<link href="./css/bootstrap.css" rel="stylesheet" />
<link href="./css/sticky-footer.css" rel="stylesheet" />
<link href="./css/purduepm.css" rel="stylesheet" />
<link href="./css/events.css" rel="stylesheet" />
<!-- CSS -->
<!--
##
### ### # ## ## # ## ## ### # ## #### ### ##
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ## ## ## ## ## ###
## ## ## ## ## ## ## ## ## ##### ## ## ## ###
## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
### ### ## ## ## ## ## ## #### ## ## ## ### ##
This is automated with Vue, munging a copy of the Meetup Event JSON
-->
</head>
<body>
<!-- HEADER -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button
type="button"
class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#navbar"
aria-expanded="false"
aria-controls="navbar"
>
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./">
<img
id="logo"
alt="Purdue Perl Mongers"
src="/Images/perl_logo.white.png"
/>
</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li>
<a href="#about"> About </a>
</li>
<li>
<a href="#events"> Events </a>
</li>
<li>
<a href="#contact"> Contact </a>
</li>
<li>
<a target="_blank" href="https://www.meetup.com/hacklafayette/">
Meetup
</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</nav>
<!-- HEADER -->
<div id="image" class="spacer"> </div>
<a name="home"> </a>
<div class="container main">
<h1>Purdue Perl Mongers</h1>
<p>
This is the home page for the
<a href="http://www.purdue.edu">Purdue University</a>
chapter of
<a href="http://pm.org">Perl Mongers</a>, which has been active since
2006. Since 2015, we've co-organized as the Perl SIG of
<a href="http://www.meetup.com/hacklafayette/">Hack Lafayette</a>. We
meet monthly, with presentations primarily but not exclusively about
<a href="http://perl.org">Perl</a>.
</p>
<p>
Membership in our Perl Users Group is free and open to anyone. People at
all levels of programmming experience are welcome and encouraged to
attend.
</p>
</div>
<!-- WILL AUGMENT THIS BY GRABBING EVENTS FROM MEETUP.COM. EVENTUALLY. -->
<div id="events" class="spacer"> </div>
<div class="container main">
<a name="events"> </a>
<h2>Events</h2>
<p>
We have meetings once a month on the second Wednesday of the month,
usually involving a presentation dealing with technical topics. In the
past, we've covered topics relating to Javascript, HTML Mail, Selenium,
and Go, as well as Perl.
<br />
</p>
<!-- THIS IS VUE -->
<ul class="event-list" id="app">
<li v-for="event in data">
<time datetime="{{event.year}}-{{event.month0}}-{{event.date}}">
<span class="day"> {{ event.dom }} </span>
<span class="month"> {{ event.monthStr }} </span>
<span class="year"> {{ event.year }} </span>
<span class="time"> {{ event.timeStr }} </span>
</time>
<div class="info">
<h2 class="title">
<a v-bind:href="event.link" target="_blank"> {{ event.name }} </a>
</h2>
<p class="desc">
{{ event.description }}
<br />
<br />
{{ event.timeStr }} in {{ event.venue.name }}
</p>
</div>
</li>
</ul>
<!-- THIS IS VUE -->
<br />
</div>
<div id="contact" class="spacer"> </div>
<div class="container main">
<a name="contact"> </a>
<h2>Contact Us</h2>
<p class="center">
<a target="blank" href="https://meetup.com/hacklafayette">
<img class="socmed" alt="Meetup" src="./Icons/Meetup.png" />
</a>
<a target="blank" href="https://twitter.com/PurduePM">
<img class="socmed" alt="Twitter" src="./Icons/Twitter.png" />
</a>
<a target="blank" href="https://github.com/Purdue-Perl-Mongers">
<img class="socmed" alt="Github" src="./Icons/Github.png" />
</a>
</p>
<p>
Sign up for the
<a href="http://mail.pm.org/mailman/listinfo/purdue-pm">mailing list</a>
to be kept informed of upcoming events.
</p>
<p>
If you have questions about the organization or about this page, contact
<a href="https://web.ics.purdue.edu/~djacoby/" target="_blank"
>Dave Jacoby</a
>.
</p>
</div>
<!-- FOOTER -->
<div id="footer-top"></div>
<footer class="footer">
<div class="container">
<div class="text-muted">© 2024 Purdue Perl Mongers</div>
</div>
</footer>
<!-- FOOTER -->
<!-- Javascript -->
</body>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
<script>
const app = new Vue({
el: "#app",
data: {
months: [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
],
data: [
{
name: "Javascript Seems To Be Unavailable",
description: "Or you have it turned off",
link: "https://meetup.com/hacklafayette",
},
],
},
created() {
console.log("THIS FAR 1");
fetch("./hacklafayette.json")
.then((response) => response.json())
.then((json) => {
this.data = json;
console.log("THIS FAR 2");
console.dir(this.data);
// this.data.length = 4;
// for (let i = 0; i < this.data.length; i++) {
// this.data[i].description = this.data[i].description.replace(
// /<\/?p>/g,
// ""
// );
// this.data[i].description = this.data[i].description.replace(
// /\&/g,
// "&"
// );
// let time = this.data[i].time;
// time /= 1000;
// let date = new Date(0);
// date.setUTCSeconds(time);
// this.data[i].dateObj = date;
// this.data[i].dateString = date.toDateString();
// this.data[i].year = date.getFullYear();
// this.data[i].monthStr = this.months[date.getMonth()];
// this.data[i].month = date.getMonth();
// this.data[i].month0 = date.getMonth().toString().padStart(2, "0");
// this.data[i].dom = date.getDate();
// let realHour = date.getHours();
// let hour = date.getHours() % 12;
// if (hour === 0) {
// hour = 12;
// }
// let ampm = "pm";
// if (realHour > 0 && realHour < 13) {
// ampm = "am";
// }
// let minutes = date.getMinutes().toString().padStart(2, "0");
// this.data[i].timeStr = [hour, ":", minutes, ampm].join("");
// }
});
},
});
</script>
</html>