more polish
This commit is contained in:
@ -16,4 +16,8 @@ textarea, .navbar-brand {
|
||||
|
||||
#live-mode-status {
|
||||
display: none;
|
||||
font-size: 13px;
|
||||
text-align: right;
|
||||
padding: 4px 10px 0;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
@ -13,23 +13,17 @@
|
||||
.toggleClass('btn-success text-white', isLive)
|
||||
.attr('href', isLive ? '#' : '#live');
|
||||
|
||||
if (isLive) {
|
||||
$liveModeStatus.fadeIn();
|
||||
} else {
|
||||
$liveModeStatus.fadeOut();
|
||||
}
|
||||
|
||||
|
||||
isLive ? $liveModeStatus.fadeIn() : $liveModeStatus.fadeOut();
|
||||
};
|
||||
|
||||
let isTeacher = window.location.hash === '#teacher';
|
||||
|
||||
isLiveMode();
|
||||
|
||||
$(window).on('hashchange', isLiveMode);
|
||||
|
||||
var connection = new signalR.HubConnectionBuilder().withUrl("/codeHub").build();
|
||||
|
||||
let isTeacher = window.location.hash === '#4ELQcUq7UnFGghAZCVr4Chr9JmtncigfkGu5WSf9';
|
||||
|
||||
if (isTeacher) {
|
||||
//window.location.hash = '#';
|
||||
$liveModeLink.hide();
|
||||
@ -71,6 +65,4 @@
|
||||
}).catch(function (err) {
|
||||
return console.error(err.toString());
|
||||
});
|
||||
|
||||
|
||||
});
|
Reference in New Issue
Block a user