Source code of the tutorial is available for download.

HTML5
<label><input type="checkbox" id="weekends" checked="checked"> Show weekend</label>
JavaScript
$("#weekends").click(function() {
dp.showWeekend = $("#weekends").is(":checked");
dp.update();
});