Debian Codegraph @

docs/source/_templates/demo.html

raw
1 <div id="demo-sidebar" class="admonition warning">
2 <p class="demo-title admonition-title" role="heading" aria-level="1">
3 <img src="https://jupyterlite.readthedocs.io/en/latest/_static/icon.svg" width="16" />
4 Try Jupyter Widgets
5 </p>
6
7 <div class="demo-app">
8 <label title="Try Widgets in a multi-document UI">
9 <input
10 type="radio"
11 name="demo-app"
12 autocomplete="off"
13 checked
14 value="{{ pathto('try/lab/index') }}?path=Widget%20List.ipynb"
15 >
16 <i class="fas fa-flask"></i> Lab
17 </label>
18 <label title="Try Widgets in a single-document UI">
19 <input
20 type="radio"
21 name="demo-app"
22 autocomplete="off"
23 value="{{ pathto('try/tree/index') }}?path=Widget%20List.ipynb"
24 >
25 <i class="fas fa-book"></i> Notebook
26 </label>
27 <a
28 href="{{ pathto('try/lab/index') }}?path=Widget%20List.ipynb"
29 class="btn btn-primary"
30 target="_blank"
31 title="Try Jupyter Widgets in your browser."
32 id="demo-button"
33 >
34 <i class="fas fa-play"></i>
35 Try Now
36 </a>
37 </div>
38
39
40 <script>$(function() {
41 $('.demo-app input').on('change', (event) => {
42 $("#demo-button").attr("href", (event.currentTarget.value));
43 });
44 });</script>
45 </div>