Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (63 sloc) 2.85 KB
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Libre+Baskerville:400,700,400italic'>
<meta charset="utf-8">
<script type="text/javascript" src="js/tabletop1.3.4.js"></script>
<script type="text/javascript" src='js/sheetsee.js'></script>
<script type="text/javascript" src='js/table.js'></script>
<script type="text/javascript" src='js/leaflet.markercluster.js'></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<script defer="" src="https://sabe.io/js/javascript.73.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Bonus NodeSchool stylesheet option! -->
<!-- <link rel="stylesheet" type="text/css" href="css/nodeschool.css"> -->
</head>
<body>
<div class="column">
<h1 class="title">Community Calendar</h1>
</div>
<div id='filter'>
<p><small>Refresh if the page doesn't load!</small>
<br><strong>Categories</strong></p>
<button class='button' id=''>Show all</button>
<button class='button' id="briefing">Briefings</button>
<button class='button' id="HASS">HASS</button>
<button class='button' id="CDC">CDC</button>
<button class='button' id='ASD'>ASD</button>
<button class='button' id='EPD'>EPD</button>
<button class='button' id='ESD'>ESD</button>
<button class='button' id='ISTD'>ISTD</button>
<button class='button' id='fifth-row'>Fifth Rows</button>
<button class='button' id='LSL'>LSL</button>
</div>
<br>
<div id="calendar-goes-here"></div>
<p class="has-text-centered">
To minimise anxiety levels, the exams timetable is kept here instead
<a href="https://calendar.google.com/calendar/embed?src=smu.edu.sg_j6t7pmeq7214nqb72lf2j3vs7s@group.calendar.google.com&ctz=Asia/Singapore&mode=month&wkst=1&pli=1" target="_blank"><i class="fa fa-calendar" aria-hidden="true"></i></a>
<br>
<small>Collaborate with us here</small>
<br>
<a class="icon" href="http://www.github.com/opensutd/community-calendar"><i class="fa fa-github fa-lg"></i></a>
</p>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var URL = "1naumfgP-UrnW0Ypt_IDZq8di0NvmbDZweSAXRzLD30c"
Tabletop.init( { key: URL, callback: generateCalendar, simpleSheet: true } )
})
</script>
<script>
$("#filter button").each(function() {
$(this).on("click", function(){
var filtertag = $(this).attr('id');
console.log(filtertag);
$('.event').show();
$('.event:not(.' + filtertag + ')').hide();
});
});
</script>
</body>
</html>
You can’t perform that action at this time.