| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset='utf-8' /> |
| 5 |
<link href='../../dist/fullcalendar.css' rel='stylesheet' /> |
| 6 |
<link href='../../dist/fullcalendar.print.css' rel='stylesheet' media='print' /> |
| 7 |
<script src='../../node_modules/moment/moment.js'></script> |
| 8 |
<script src='../../node_modules/jquery/dist/jquery.js'></script> |
| 9 |
<script src='../../dist/fullcalendar.js'></script> |
| 10 |
<script> |
| 11 |
|
| 12 |
$(document).ready(function() { |
| 13 |
|
| 14 |
$('#calendar').fullCalendar({ |
| 15 |
headerToolbar: { |
| 16 |
left: 'prev,next today', |
| 17 |
center: 'title', |
| 18 |
right: 'month,week,day' |
| 19 |
}, |
| 20 |
initialDate: '2014-06-12', |
| 21 |
initialView: 'week', |
| 22 |
editable: true, |
| 23 |
dayClick: function() { |
| 24 |
alert('dayClick'); |
| 25 |
} |
| 26 |
}); |
| 27 |
|
| 28 |
}); |
| 29 |
|
| 30 |
</script> |
| 31 |
<style> |
| 32 |
|
| 33 |
body { |
| 34 |
margin: 0; |
| 35 |
padding: 0; |
| 36 |
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif; |
| 37 |
font-size: 13px; |
| 38 |
} |
| 39 |
|
| 40 |
#calendar { |
| 41 |
width: 900px; |
| 42 |
margin: 40px auto; |
| 43 |
} |
| 44 |
|
| 45 |
</style> |
| 46 |
</head> |
| 47 |
<body> |
| 48 |
|
| 49 |
<p> |
| 50 |
On a touch device, begin to scroll on the timeslots.<br /> |
| 51 |
If <em>dayClick</em> pops up, the test has <strong>FAILED</strong>. |
| 52 |
</p> |
| 53 |
|
| 54 |
<div id='calendar'></div> |
| 55 |
|
| 56 |
</body> |
| 57 |
</html> |