| 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 |
height: 'auto', |
| 24 |
events: [ |
| 25 |
{ |
| 26 |
title: 'All Day Event', |
| 27 |
start: '2014-06-01' |
| 28 |
}, |
| 29 |
{ |
| 30 |
title: 'Long Event', |
| 31 |
start: '2014-06-07', |
| 32 |
end: '2014-06-10' |
| 33 |
}, |
| 34 |
{ |
| 35 |
groupId: 999, |
| 36 |
title: 'Repeating Event', |
| 37 |
start: '2014-06-09T16:00:00' |
| 38 |
}, |
| 39 |
{ |
| 40 |
groupId: 999, |
| 41 |
title: 'Repeating Event', |
| 42 |
start: '2014-06-16T16:00:00' |
| 43 |
}, |
| 44 |
{ |
| 45 |
title: 'Meeting', |
| 46 |
start: '2014-06-12T10:30:00', |
| 47 |
end: '2014-06-12T12:30:00' |
| 48 |
}, |
| 49 |
{ |
| 50 |
title: 'Lunch', |
| 51 |
start: '2014-06-12T12:00:00' |
| 52 |
}, |
| 53 |
{ |
| 54 |
title: 'Birthday Party', |
| 55 |
start: '2014-06-13T07:00:00' |
| 56 |
}, |
| 57 |
{ |
| 58 |
title: 'Click for Google', |
| 59 |
url: 'http://google.com/', |
| 60 |
start: '2014-06-28' |
| 61 |
} |
| 62 |
] |
| 63 |
}); |
| 64 |
|
| 65 |
}); |
| 66 |
|
| 67 |
</script> |
| 68 |
<style> |
| 69 |
|
| 70 |
body { |
| 71 |
margin: 0; |
| 72 |
padding: 0; |
| 73 |
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif; |
| 74 |
font-size: 13px; |
| 75 |
} |
| 76 |
|
| 77 |
#calendar { |
| 78 |
width: 900px; |
| 79 |
margin: 40px auto; |
| 80 |
} |
| 81 |
|
| 82 |
</style> |
| 83 |
</head> |
| 84 |
<body> |
| 85 |
|
| 86 |
<p> |
| 87 |
Make sure there is limited vertical space so the window scrolls.<br /> |
| 88 |
Then touch and hold on an event and begin scrolling. Hold down for 3+ seconds.<br /> |
| 89 |
If the event becomes selected and draggable, the test has <strong>FAILED</strong>. |
| 90 |
</p> |
| 91 |
|
| 92 |
<div id='calendar'></div> |
| 93 |
|
| 94 |
</body> |
| 95 |
</html> |