From f61c2fbdc29588c207d52d851b37fe4d69424f4a Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Thu, 6 Jul 2023 15:00:02 +0200 Subject: [PATCH] H5p cookbook --- book/_toc.yml | 2 +- book/cookbook/h5p.md | 31 ++++++++++ book/images/Truss1.svg | 135 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 167 insertions(+), 1 deletion(-) create mode 100644 book/cookbook/h5p.md create mode 100644 book/images/Truss1.svg diff --git a/book/_toc.yml b/book/_toc.yml index f04c1ac..abe8715 100644 --- a/book/_toc.yml +++ b/book/_toc.yml @@ -26,4 +26,4 @@ parts: sections: - file: cookbook/jupyterlite/configuration - file: cookbook/jupyterlite/including-jupyterlite - + - file: cookbook/h5p.md diff --git a/book/cookbook/h5p.md b/book/cookbook/h5p.md new file mode 100644 index 0000000..234252e --- /dev/null +++ b/book/cookbook/h5p.md @@ -0,0 +1,31 @@ +# adding interactive h5p elements + +## Instruction +H5p elements are interactive HTML-blocks which can be imbeded in a Jupyter Book using an iframe. H5p element can be created in the [TU Delft portal on the H5p website](https://tudelft.h5p.com/content) (sign in via Brightspace to H5p required first). The iframe code can be copied at Edit - Publish - Public - Embed code. This html code can be directly added to your markdown file: + +```html + +``` + +A full list of all available interactive elements is available on the website of [H5p](https://h5p.org/content-types-and-applications), these include among others: +- Multiple choice questions +- Fill in the blanks +- Drag and drop +- Interactive video +- Image hotspot + +More information on H5p: [Teaching Support - Educational Tools - H5P](https://www.tudelft.nl/teaching-support/educational-tools/h5p) + +## Example +Truss structures are modelled as rigid bars (so elements which cannot deform) connected by hinges (so elements can rotate with respect to one each other). In our model, hinges are indicate with a circle, and bars with a line. For example, the structure you've seen in the second example (with two diagonal bars removed) is modelled as follows: + +```{figure} ../images/Truss1.svg +:name: truss structure + +Bars and hinges in truss structure +``` + +Now that you've been introduced to truss structures, answer the following question: + + + \ No newline at end of file diff --git a/book/images/Truss1.svg b/book/images/Truss1.svg new file mode 100644 index 0000000..e9b2179 --- /dev/null +++ b/book/images/Truss1.svg @@ -0,0 +1,135 @@ + + + + + + + + + + Pagina-1 + + + Vakwerk, 1 pt.16 + + + + Vakwerk, 1 pt.17 + + + + Vakwerk, 1 pt.18 + + + + Vakwerk, 1 pt.19 + + + + Vakwerk, 1 pt.20 + + + + Vakwerk, 1 pt.14 + + + + Vakwerk, 1 pt.15 + + + + Vakwerk, 1 pt.12 + + + + Vakwerk, 1 pt.13 + + + + Vakwerk, 1 pt + + + + Vakwerk, 1 pt.2 + + + + Scharnier + + + + Scharnier.4 + + + + Scharnier.5 + + + + Scharnier.6 + + + + Scharnier.7 + + + + Scharnier.8 + + + + Scharnier.9 + + + + Scharnier.10 + + + + Blad.21 + + + + Blad.22 + + + + Blad.23 + + + + Blad.24 + + + + Blad.25 + hinges + + + + hinges + + Blad.26 + bars + + + + bars + +