Files
catc/masks/workshops.html

27 lines
763 B
HTML

<div id="workshops">
<div class="ws_title"><h1>Workshops</h1></div>
<div id="ws_data"><div class="ws_list"></div></div>
</div>
<script type="text/javascript">
oCATC.pageInit = function(asHash, bFirstPage)
{
self.setPageTitle('');
//Workshops list
var $Workshops = $('#workshops').find('.ws_list');
$.each(self.consts.workshops, function(iWsId, asWorkshop){
var $Workshop = $('<div>', {'class':'ws_item clickable transition'})
.data('id', iWsId)
.click(openCourses)
.append($('<span>', {'class':'title'}).text('WS '+iWsId))
.append($('<span>', {'class':'dates'}).text(asWorkshop.dates));
$Workshops.append($Workshop);
});
}
function openCourses() {
oCATC.setHash('workshop', $(this).data('id'));
}
</script>