Test of learnr + webassemby
Introduction
we have content.
read this.
above here is a webr chunk with include: false. Because the webr stuff is basically just evaluated in a single env for the page, it might be worth having an initial chunk to pre-populate the page with loading the relevant libraries & data etc.
here is something you can play with:
can you guess what the coefficient will be?
What about this one? where is df1 from? the author has made it for you already!
blah blah.
here’s a question.. what is 3+4?
3+?3+4
3+4part 2
hello you made it to part 2 because you correctly calculated 3+4.
if we wanted to link people directly to pages that avoid this incremental reveal, then we just use:
- with incremental reveal: https://uoepsy.github.io/lm/00activetest.html
- without incremental reveal: https://uoepsy.github.io/lm/00activetest.html?displayall
here are some more types of question:
| Question | |
|---|---|
| what was 3+4? | |
| 3 + 4 = 5 |
part 3
and here we are.
part 4
i now want to check if i can make an mcq thing work with incremental reveal
Checkpoint question!
Q: What do you think is worst?
A. this one
B. the first one
C. something other than this or the ones either side
D. none of them. not even this one
# just write either A, B, C or D
answer <- "A"
answer <- "B"
answer <- "C"
answer <- "D"answer <- "D"
get(answer)
answer <- "D"
get(answer)feedback?
How did you find this reading/resource?
1 - “I got to the end! Woohoo!”
2 - “This was boring. i knew it all already”
3 - “This helped. i think i understand things a little better now”
4 - “This just made things more confusing”
Use the numbers above to submit quick feedback (i.e., replace the 1 in submit(1) with the number of your choice, or leave a custom message for us submit("Hello my friends!"))!