$(function() {
var pagetitle = $('#title').val();
$('#selected-pagenav-title').html(pagetitle);
$('#signin-btn').hide();
// handle attendance page clicks
$('.attendancerow').off('click').on('click', function(e) {
var is_checked = $(this).hasClass('active') ? true : false;
$(this).toggleClass('active');
$(this).attr('data-modified', '1');
})
// note use html here instead of text otherwise sections with only iframes are hidden
if ( ! $('.page-card-body').html() ) {
$('.page-card-body').addClass('hidden');
}
});