-
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.
example studies: binary search in JS for indifference estimation
- Loading branch information
1 parent
58f7e93
commit d818c46
Showing
3 changed files
with
129 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,40 @@ | ||
#lang racket/base | ||
|
||
(require congame/components/study | ||
congame/components/formular | ||
(submod congame/components/formular tools) | ||
koyo/haml) | ||
|
||
(provide | ||
calibration) | ||
|
||
(define (calibration-form) | ||
(page | ||
(haml | ||
(.container | ||
(:h1 "Calibration") | ||
|
||
(formular | ||
(haml | ||
(:div | ||
(:div | ||
(#:wtw | ||
(input-number #:attributes `([data-calibration "calibration" ] | ||
[data-calibrationPrefix "£"]) #:min 0 #:max 4 "WTW" #:step 0.1))) | ||
(:div#confirm-choice | ||
(:span#confirmation-message "") | ||
(:a#reset-button.button ([:href ""])"Reset") | ||
(:button.button.next-button ([:type "submit"]) "Yes, proceed to next step"))))))))) | ||
|
||
(define (end) | ||
(page | ||
(haml | ||
(.container | ||
(:h1 "The End"))))) | ||
|
||
(define calibration | ||
(make-study | ||
"calibration" | ||
(list | ||
(make-step 'calibration calibration-form) | ||
(make-step 'end end)))) |
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
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