set live mode enabled by default

This commit is contained in:
Ryan Peters 2021-07-22 16:31:54 -04:00
parent da4de855d7
commit 70934782df

View File

@ -37,14 +37,15 @@
$('#editor').height(editorHeight - 2); $('#editor').height(editorHeight - 2);
}; };
isLiveMode();
setHeight();
// events // events
$(window).on('hashchange', isLiveMode); $(window).on('hashchange', isLiveMode);
$(window).resize(setHeight); $(window).resize(setHeight);
$('#your-name-text, #your-color-text').doneTyping(sendName); $('#your-name-text, #your-color-text').doneTyping(sendName);
isLiveMode();
setHeight();
window.location.hash = '#live'; // set live mode on by default
let isTeacher = window.location.hash === '#4ELQcUq7UnFGghAZCVr4Chr9JmtncigfkGu5WSf9'; let isTeacher = window.location.hash === '#4ELQcUq7UnFGghAZCVr4Chr9JmtncigfkGu5WSf9';
if (isTeacher) { if (isTeacher) {