-
Notifications
You must be signed in to change notification settings - Fork 3
/
calendar.html
70 lines (63 loc) · 3.06 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
---
layout: default
title: Munich Maker Lab - Calendar
header_image: /static/img/bg_arduino.png
headline: Calendar
sub_headline: This is what is going on at the MuMaLand.
custom_css: |
<!-- Calendar CSS -->
<link href="/static/lib/fullcalendar/fullcalendar.css" rel='stylesheet' />
<link href="/static/lib/fullcalendar/fullcalendar.print.css" rel='stylesheet' media='print' />
custom_js: |
<script src="/static/lib/fullcalendar/lib/moment.min.js"></script>
<script src="/static/lib/fullcalendar/fullcalendar.min.js"></script>
<script src="/static/lib/fullcalendar/gcal.js"></script>
<script src="/static/lib/jquery.ics-0.3.js"></script>
<script>
$(document).ready(function() {
$('#cal_out').fullCalendar({
googleCalendarApiKey: 'AIzaSyDhw2ehOIaDoox7_68SCq2ag7fjNV82Ank',
events: {
//googleCalendarId: 'lbd0aa2rlahecp7juvp35hd0k0@group.calendar.google.com'
url: "https://kreativquartier.munichmakes.de/data/mumalab.json"
},
eventLimit: true, // allow "more" link when too many events
eventClick: function(event) {
// opens events in a popup window
//window.open(event.url, 'event', 'width=700,height=600');
$("#event_title").text(event.title);
var description = event.description.replace(/\n/g,"<br>");
$("#event_text").html(description);
$("#event_location").html("<a href=\"https://maps.google.com/maps?q=" + event.location + "\">" + event.location + "</a>");
$("#event_start").html(event.start.format('MMMM Do YYYY, HH:mm'));
$("#event_info").show();
$("#event_info")[0].scrollIntoView();
//console.log(event);
return false;
},
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
firstDay: 1
});
});
</script>
---
<div class="row">
<div class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1" id="cal_out">
</div>
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1" id="event_info" style="margin-top:20px; display:none;">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title" id="event_title">Panel title</h3>
</div>
<div class="panel-body">
<i><span id="event_start"></span></i><br>
Location: <span id="event_location"></span>
<blockquote id="event_text"></blockquote>
</div>
</div>
</div>
</div>