Load graphs.js from head

* Also move script into body, to be a valid HTML document
This commit is contained in:
Henrik Giesel 2021-02-22 14:17:56 +01:00
parent aeb6de9166
commit 3d4323b1d4

View file

@ -4,12 +4,12 @@
<meta charset="utf-8" />
<meta name="viewport" id="viewport" content="width=device-width" />
<link href="graphs.css" rel="stylesheet" />
<script src="../js/vendor/protobuf.min.js"></script>
<script src="graphs.js"></script>
</head>
<body>
<div id="main"></div>
</body>
<script src="../js/vendor/protobuf.min.js"></script>
<script src="graphs.js"></script>
<script>
anki.graphs(
document.getElementById("main"),
@ -30,4 +30,5 @@
}
);
</script>
</body>
</html>