-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a725fe1
commit 7d0a2af
Showing
2 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#lang conscript | ||
|
||
(provide | ||
tutorial) | ||
|
||
(defstep (description) | ||
@md{ | ||
# The study | ||
|
||
Welcome to our study. In this study, we will ask for | ||
|
||
- your first name | ||
- your age | ||
|
||
@button{Start Survey}}) | ||
|
||
(defstep (age-name-survey) | ||
@md{ | ||
# Survey | ||
|
||
@form{ | ||
@input-text[#:first-name]{What is your first name?} | ||
@input-number[#:age]{What is your age (in years)?} | ||
@submit-button}}) | ||
|
||
(defstep (thank-you) | ||
@md{ | ||
# Thank you @get['first-name] | ||
|
||
Thank you for participating in our survey @get['first-name]!}) | ||
|
||
(defstudy tutorial | ||
[description --> age-name-survey | ||
--> thank-you] | ||
[thank-you --> thank-you]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters