Skip to content

Commit

Permalink
Updated pilot implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kartkand committed Jan 11, 2024
1 parent de2623f commit e0802f6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 328 deletions.
12 changes: 6 additions & 6 deletions followup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@
</div>
<div class="columns is-centered">
<div class="column is-8 has-text-centered">
<div id="submit-error" class="hidden error-message">
File submission unsuccessful. Please try again.
</div>
<button id="submitButton" class="button is-link" disabled>Submit</button>
</div>
</div>
Expand All @@ -183,18 +186,15 @@
<div class="columns is-centered">
<div class="column is-8">
<p>
Thank you for joining this study. Your participation in this phase is now complete. If you
are
selected to participate in the next phase of the study, we will invite you on Prolific. You
may
close this webpage.
Thank you for joining this study. Your participation is now complete. You may close this
webpage.
</p>
</div>
</div>
</div>
</div>
</section>
<script src="../resources/js/followup.js"></script>
<script src="../resources/js/landingPage.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion initial/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
</div>
</div>
</section>
<script src="../resources/js/initial.js"></script>
<script src="../resources/js/landingPage.js"></script>
</body>

</html>
319 changes: 0 additions & 319 deletions resources/js/initial.js

This file was deleted.

10 changes: 8 additions & 2 deletions resources/js/followup.js → resources/js/landingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@ document.getElementById('submitButton').onclick = async (event) => {
document.getElementById('formSection').style.display = 'none';
document.getElementById('thankYouSection').style.display = 'block';

// Update with redirect completion for followup task in Prolific
window.open("TODO", '_blank');
const studyPhase = document.querySelector('meta[name="studyPhase"]').getAttribute('data-value');

if(studyPhase == "initial") {
window.open("https://app.prolific.com/submissions/complete?cc=CYX953F7", '_blank');
} else {
// Update with redirect completion for followup task in Prolific
window.open("https://app.prolific.com/submissions/complete?cc=CIZ8YPGD", '_blank');
}
} else {
throw new Error();
}
Expand Down

0 comments on commit e0802f6

Please sign in to comment.