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
{{ message }}
Repository navigation
Commit 1ce19e1
Browse filesBrowse the repository at this point in the historyBrowse files
varinformedConsentText='<div style="font-size: 8pt; color: #666;">Your chat logs and code may be recorded, anonymized, and published for research purposes.</div>';
106
-
107
-
108
105
functionrequestSync(){
109
106
if(TogetherJS.running){
110
107
togetherjsSyncRequested=true;
@@ -373,14 +370,13 @@ function initTogetherJS() {
373
370
374
371
$("#sharedSessionBtn").click(startSharedSession);
375
372
$("#stopTogetherJSBtn").click(TogetherJS);// toggles off
376
-
$("#syncBtn").click(requestSync);
377
373
378
374
// fired when TogetherJS is activated. might fire on page load if there's
379
375
// already an open session from a prior page load in the recent past.
380
376
TogetherJS.on("ready",function(){
381
377
console.log("TogetherJS ready");
382
378
383
-
$("#stopTogetherJSBtn,#syncBtn").show();
379
+
$("#sharedSessionDisplayDiv").show();
384
380
$("#sharedSessionBtn").hide();
385
381
386
382
requestSync();// immediately try to sync upon startup so that if
@@ -398,7 +394,7 @@ function initTogetherJS() {
398
394
console.log("TogetherJS close");
399
395
400
396
$("#togetherjsStatus").html('');// clear it
401
-
$("#stopTogetherJSBtn,#syncBtn").hide();
397
+
$("#sharedSessionDisplayDiv").hide();
402
398
$("#sharedSessionBtn").show();
403
399
404
400
TogetherjsCloseHandler();// needs to be defined in each frontend
@@ -425,13 +421,16 @@ function populateTogetherJsShareUrl() {
0 commit comments