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: v5-unity/js/opt-shared-sessions.ts
+47-16Lines changed: 47 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -243,6 +243,7 @@ var liveHelpSurvey = {
243
243
*/
244
244
245
245
// 2018-03-17: minor tweaks on version 4's wording to make it sound a bit more optional and casual
246
+
/*
246
247
var liveHelpSurvey = {
247
248
requestHelp: [ {prompt: 'You are now on the help queue. Please wait for help to arrive.\n\n[OPTIONAL] Support our research by letting us know:\nWhy did you decide to ask for help at this time?',
248
249
v: 'r4a'},
@@ -255,14 +256,32 @@ var liveHelpSurvey = {
255
256
v: 'h4b'},
256
257
]
257
258
};
259
+
*/
258
260
261
+
// 2018-06-24: version 5 is nearly identical to version 4, except that I turned
262
+
// on noRepeats=true so we don't ask users the same question more than once
263
+
varliveHelpSurvey={
264
+
requestHelp: [{prompt: 'You are now on the help queue. Please wait for help to arrive.\n\nSupport our research by letting us know:\nWhy did you decide to ask for help at this time?',
265
+
v: 'r5a'},
266
+
{prompt: 'You are now on the help queue. Please wait for help to arrive.\n\nSupport our research by letting us know:\nWhy did you ask for help anonymously on this website rather than getting help from someone you know?',
267
+
v: 'r5b'},
268
+
],
269
+
volunteerHelp: [{prompt: "Thanks for volunteering! You are about to join a live chat.\n\nSupport our research by letting us know:\nWhy did you decide to volunteer at this time? What motivated you to click on this particular help link?",
270
+
v: 'h5a'},
271
+
{prompt: "Thanks for volunteering! You are about to join a live chat.\n\nSupport our research by letting us know:\nWhat is your current job or profession?",
272
+
v: 'h5b'},
273
+
]
274
+
};
259
275
260
276
261
277
262
278
// randomly picks a survey item from liveHelpSurvey and mutates
263
279
// localStorage to record that this has been randomly picked, so it won't
264
280
// be picked again during the next call
265
-
functionrandomlyPickSurveyItem(key){
281
+
//
282
+
// 2018-06-24: if noRepeats is true, then don't ask this user repeated
283
+
// questions; simply return null if all questions have already been asked
this.iMadeAPublicHelpRequest=true;// this will always be true even if you shut the door later and don't let people in (i.e., make this into a private session)
0 commit comments