-
Notifications
You must be signed in to change notification settings - Fork 6
/
widget.test.html
26 lines (26 loc) · 982 Bytes
/
widget.test.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
<html>
<head>
<meta charset="utf-8">
<title>Weekly Schedule DOM</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<!-- <script src="jquery.weekly-schedule-plugin.min.js"></script> -->
<script type="text/javascript" src="jquery.weekly-schedule-plugin.js"></script>
</head>
<body>
<div class="container" style="margin: auto; width: 50%; height: 100%; display: flex; flex-direction: row; justify-content: center;">
<div id="target">
</div>
</div>
<script>
var settings = {
triggerMethod: "click-click",
}
$('#target').weekly_schedule(settings);
$('.schedule').on('selectionmade', function() {
console.log("Selection Made");
}).on('selectionremoved', function() {
console.log("Selection Removed");
});
</script>
</body>
</html>