1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-25 10:09:47 +02:00

Add support for

- local media file
- add jarvis book
This commit is contained in:
lxsang
2020-09-13 17:14:14 +02:00
parent cc7ae835ad
commit a45b1ef9f0
5 changed files with 48 additions and 11 deletions

View File

@ -1,6 +1,7 @@
<?lua
local tocdata = __main__:get("toc")
local elinks = __main__:get("elinks")
local has_3d = __main__:get("has_3d")
?>
<!DOCTYPE html>
<html>
@ -13,10 +14,14 @@ local elinks = __main__:get("elinks")
rel="stylesheet"
type="text/css"
href="<?=HTTP_ROOT?>/rst/katex/katex.min.css" />
<!--script
type="text/javascript"
src="<?=HTTP_ROOT?>/rst/gscripts/showdown.min.js"
></script-->
<?lua
if has_3d then
?>
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
<?lua
end
?>
<script
src="<?=HTTP_ROOT?>/rst/hljs/highlight.pack.js"
></script>