cleanup of button toggle
This commit is contained in:
@ -6,6 +6,14 @@
|
||||
height: 600px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
textarea, .navbar-brand {
|
||||
font-family: 'Roboto Mono', monospace;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
#live-mode-status {
|
||||
display: none;
|
||||
}
|
||||
|
@ -6,15 +6,20 @@
|
||||
let isLive = false;
|
||||
|
||||
let isLiveMode = function () {
|
||||
|
||||
isLive = window.location.hash === '#live';
|
||||
|
||||
$liveModeLink
|
||||
.toggleClass('btn-success text-white', isLive)
|
||||
.attr('href', isLive ? '#' : '#live');
|
||||
|
||||
$liveModeStatus.html(isLive ? 'Anything the teacher types will show in your editor' : 'You can mess around all you like!');
|
||||
if (isLive) {
|
||||
$liveModeStatus.fadeIn();
|
||||
} else {
|
||||
$liveModeStatus.fadeOut();
|
||||
}
|
||||
|
||||
console.log('live mode: ' + isLive);
|
||||
|
||||
};
|
||||
|
||||
let isTeacher = window.location.hash === '#teacher';
|
||||
@ -29,7 +34,6 @@
|
||||
//window.location.hash = '#';
|
||||
$liveModeLink.hide();
|
||||
$liveModeStatus.hide();
|
||||
console.log('teacher mode active');
|
||||
}
|
||||
|
||||
let $editors = $('.ace_editor');
|
||||
|
Reference in New Issue
Block a user