forked from PeterKDunn/SRM-Textbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UseHTML-bs4.Rmd
executable file
·47 lines (35 loc) · 1.4 KB
/
UseHTML-bs4.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## How to use this online book {-}
* **Navigation**: Navigate between pages depends on the size of your screen.
On wider screens:
- The left-side menu is for navigating between *chapters*.
- The right-side menu is for navigating between the *sections* of the current chapter.
* Words can be searched for using **Search** button on the menu:
```{r echo=FALSE}
knitr::include_graphics("bs4-Search.png")
```
::: {.importantBox .important data-latex="{iconmonstr-warning-8-240.png}"}
The book is optimised for *online viewing*,
and the book may be updated frequently,
so a printed PDF version may not be the most recent version.
:::
In some places, interactive 'quiz' questions are given.
*In the online version*, the background turns from red to green when the answer is correct.
Try it now:
::: {.webex-check .webex-box}
1. What is $1 + 1$?
`r if( knitr::is_html_output() ) {mcq( c(
"One",
answer = "Two",
"Three") )}`
1. What is $1 + 2$?
`r if( knitr::is_html_output() ) {fitb(
answer = c("3", "three"),
ignore_case = TRUE )}`
1. Is $2 + 2 = 4$?
`r if( knitr::is_html_output() ) { torf( TRUE )}`
1. Which one of these is FALSE?
`r if( knitr::is_html_output() ) {
longmcq( c("The inventor of the fairy floss machine was a dentist",
"Barack Obama has won two Grammy awards",
answer = "Once a year all of Wikipedia is printed, and placed in a vault in Norway.") )}`
:::