manual_teachbooks/book/features/HTML_javascript.md
Tom van Woudenberg 80af14875b replaced with iframes
Co-Authored-By: Dennis den Ouden-van der Horst <49307154+douden@users.noreply.github.com>
2025-02-20 12:47:43 +01:00

29 lines
No EOL
827 B
Markdown

# Interactive HTML/JavaScript elements
```{admonition} User types
:class: tip
This section is useful for user type 5.
```
{bdg-danger}`iframe`
In this section, we will discuss how to [create](creating_basic_HTML_elements.md) and [embed](adding_HTML_elements.md) interactive HTML/Javascript elements created in HTML/JavaScript in a TeachBook. These HTML/Javascript element work very fluently and don't require a python kernel running in the background.
This could be for example interactive 3d figures:
```{iframe} ../_static/element_render_box.html
:width: 600
:height: 400
```
Or other interactive graphs:
```{iframe} ../_static/element_pdf_and_cdf.html
:width: 600
:height: 300
```
```{iframe} https://openla.ewi.tudelft.nl/applet/lines_and_planes/normal_equation_plane_origin?iframe=true
:width: 600
:height: 500
```