-
Notifications
You must be signed in to change notification settings - Fork 0
/
calendar.html
executable file
·78 lines (73 loc) · 3.78 KB
/
calendar.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
---
title: MakerHQ Sacramento - Event Calendar
layout: default
description: MakerHQ events calendar shows what meetups, classes, builds, and community events will take place at the space. Check event descriptions for more details on individual events!
---
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
<script src="{{ site.baseurl }}/js/moment.min.js"></script>
<script src="{{ site.baseurl }}/js/fullcalendar.min.js"></script>
<script src="{{ site.baseurl }}/js/gcal.js"></script>
<script src="{{ site.baseurl }}/js/lang-all.js"></script>
<script src="{{ site.baseurl }}/js/linkify.min.js"></script>
<script src="{{ site.baseurl }}/js/linkify-html.min.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/jquery-ui.min.js" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/cupertino/jquery-ui.css" />
<link rel="stylesheet" href="{{ site.baseurl }}/css/fullcalendar.min.css" />
<script type="text/javascript">
$(document).ready(function() {
$('#calendar').fullCalendar({
googleCalendarApiKey: 'AIzaSyAHG5F-oSGcWljW7hQxarCV89b8ItAaW5Q',
events: {
googleCalendarId: '[email protected]'
},
eventClick: function(event, jsEvent, view) {
//set the values and open the modal
$("#eventInfo").html(linkifyHtml(textToHTML(event.description)));
$("#eventLink").attr('href', event.url);
$("#eventContent").dialog({ modal: true, title: event.title, minWidth: 800, minHeight: 400 });
return false;
}
});
});
function textToHTML(text) {
return ((text || "") + "") // make sure it is a string;
.replace(/&/g, "&")
.replace(/</g, "<")
.replace(/>/g, ">")
.replace(/\t/g, " ")
.replace(/ /g, "​ ​")
.replace(/\r\n|\r|\n/g, "<br />");
}
</script>
<!-- Main -->
<section id="main" class="wrapper style1">
<header class="major">
<h2>Our Calendar</h2>
<p>Learn what's going on at our space.</p>
</header>
<div class="container">
<div class="row">
<div class="8u">
<section>
<h2>Events and Classes Calendar</h2>
<div id="calendar"></div>
<div id="eventContent" title="Event Details" style="display: none;">
<div id="eventInfo"></div>
<p style="margin-top: 15px;"><strong><a id="eventLink" target="_blank">Read More</a></strong></p>
</div>
</section>
</div>
<div class="4u">
<section>
<h3>Events at Maker<span id="hq">HQ</span> are 100% Open to the Public!</h3>
<p>While some classes may carry a fee to attend, all of the events on this calendar are open and accessible to the public! </p>
<p> All we ask is that you register to attend when possible, as our space is often limited!</p>
</section>
<hr />
<section>
<h3>Interested in teaching at Maker<span id="hq">HQ</span>??</h3>
<p>We're always on the lookout for good teachers in the Maker arts. <a href="/contact-us">Contact us</a> about teaching at our space and we'll be glad to discuss the opportunities and availability of classes at MakerHQ!</p>
<p>Have feedback on our classes? As always, we'd <a href="/contact-us">love to hear from you!</a></p>
</section>
<hr />
</section>