You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v3/js/opt-frontend.js
+46-15Lines changed: 46 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,9 @@ var manualSharedSession = false; // XXX: this is uber-unreliable since
71
71
// it's not set on page reload unless
72
72
// there's a special url hash
73
73
74
+
varhelpQueueSize=0;
75
+
vartutorAvailable=false;
76
+
74
77
// TODO: consider deferred initialization later: "TogetherJS starts up
75
78
// automatically as soon as it can, especially when continuing a
76
79
// session. Sometimes this is problematic, like an application that
@@ -82,7 +85,7 @@ var manualSharedSession = false; // XXX: this is uber-unreliable since
82
85
varorigDocURL=document.URL;// capture this ASAP before TogetherJS munges the URL
83
86
84
87
vartutorWaitText='Please wait for the next available tutor.';
85
-
varinformedConsentText='<p/>During shared sessions, chat logs and code may be recorded and published for<br/>educational purposes. Please do not reveal any private or confidential information.';
88
+
varinformedConsentText='<p>During shared sessions, chat logs and code may be recorded and published for<br/>educational purposes. Do not reveal any private or confidential information.</p>';
86
89
87
90
// nasty globals
88
91
varupdateOutputSignalFromRemote=false;
@@ -125,26 +128,47 @@ function syncAppState(appState) {
125
128
}
126
129
}
127
130
128
-
varTogetherJSConfig_getUserName=function(){
131
+
/*
132
+
var TogetherJSConfig_getUserName = function() {
129
133
if (isTutor) {
130
134
return 'Tutor';
131
135
}
132
136
else {
133
137
return 'Learner';
134
138
}
135
139
}
140
+
*/
136
141
137
142
138
143
functiongetTutor(){
139
144
manualSharedSession=false;// icky global!
145
+
146
+
$("#togetherjsStatus").html('<div style="font-size: 11pt;">Please wait for the next available tutor. <span id="helpQueueText"></span></div>');
0 commit comments