diff --git a/index.html b/index.html index 6ce10b8..0fd8ab1 100644 --- a/index.html +++ b/index.html @@ -59,8 +59,8 @@

Link to Task:
 
Clicking the link below will open the task in a new tab.
-Please click the link only once and do not close the tab until you finish and see a message saying 
"Thank you for your patience."
-You will be automatically redirected from the task to the survey once you have completed the task. Once you complete the survey, you will be redirected back to Prolific.
+Please click the link only once and do not close the tab until you finish both the task and the survey and are redirected back to Prolific.
+You will be automatically redirected from the task to the survey once you have completed the task. Once you complete the survey, you will be redirected back to Prolific.
If you have technical issues, please try a different browser! Some participants say Firefox has worked best.
  @@ -81,7 +81,25 @@

Link to Task:
+ +
+ @@ -140,6 +158,18 @@

Link to Task:
var linkURL = $(linkElem).attr('href'); $(linkElem).attr('href', linkURL + phash); } +} +function appendIDsToSuveyURL(linkElem, workerIDName) { + var url = window.location.href; + var workerName = 'workerId'; + var workerRegex = new RegExp("[?&]" + workerName + "(=([^&#]*)|&|#|$)"); + var workerResults = workerRegex.exec(url); + if (workerResults && workerResults[2]) { + var workerID = decodeURIComponent(workerResults[2].replace(/\+/g, " ")); + var phash = cyrb53(workerResults[2]); + var linkURL = $(linkElem).attr('href'); + $(linkElem).attr('href', linkURL + phash + '&bonuscode=zzzzz'); + } } $(document).ready(function() { // Instructions expand/collapse @@ -168,6 +198,9 @@

Link to Task:
document.getElementById('Links').style.display = "none"; document.getElementById('Goodbye').style.display = "block"; } +function noSurveyFunction() { + document.getElementById('SurveyLink').style.display = "block"; +}