mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Load graphs.js from head
* Also move script into body, to be a valid HTML document
This commit is contained in:
parent
aeb6de9166
commit
3d4323b1d4
1 changed files with 23 additions and 22 deletions
|
@ -4,30 +4,31 @@
|
|||
<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>
|
||||
|
||||
<script>
|
||||
anki.graphs(
|
||||
document.getElementById("main"),
|
||||
[
|
||||
anki.TodayStats,
|
||||
anki.FutureDue,
|
||||
anki.CalendarGraph,
|
||||
anki.ReviewsGraph,
|
||||
anki.CardCounts,
|
||||
anki.IntervalsGraph,
|
||||
anki.EaseGraph,
|
||||
anki.HourGraph,
|
||||
anki.ButtonsGraph,
|
||||
anki.AddedGraph,
|
||||
],
|
||||
{
|
||||
controller: anki.RangeBox,
|
||||
}
|
||||
);
|
||||
</script>
|
||||
</body>
|
||||
<script src="../js/vendor/protobuf.min.js"></script>
|
||||
<script src="graphs.js"></script>
|
||||
<script>
|
||||
anki.graphs(
|
||||
document.getElementById("main"),
|
||||
[
|
||||
anki.TodayStats,
|
||||
anki.FutureDue,
|
||||
anki.CalendarGraph,
|
||||
anki.ReviewsGraph,
|
||||
anki.CardCounts,
|
||||
anki.IntervalsGraph,
|
||||
anki.EaseGraph,
|
||||
anki.HourGraph,
|
||||
anki.ButtonsGraph,
|
||||
anki.AddedGraph,
|
||||
],
|
||||
{
|
||||
controller: anki.RangeBox,
|
||||
}
|
||||
);
|
||||
</script>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue