An attempt at making some live graphs of relevant stats. Needs more thought.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3780 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-01-21 02:53:15 +00:00
parent df0bb102dc
commit 98de9b037a
5 changed files with 1042 additions and 8 deletions

View File

@ -14,6 +14,7 @@
<a href="/">home</a>
<a href="#" onclick="event.preventDefault(); edit()">edit</a>
<a href="#" onclick="event.preventDefault(); trace()">trace</a>
<a href="#" onclick="event.preventDefault(); stats()">stats</a>
<span id="status"></span>
<span id="login"></span>
</div>
@ -42,11 +43,18 @@
</div>
</div>
</div>
<div id="statsPane" class="vbox" style="display: none">
<div class="hbox">
<input type="button" id="closeStats" name="closeStats" value="Close" onclick="closeStats()">
</div>
<canvas id="graph" width="320" height="240"></canvas>
</div>
<div id="viewPane" class="vbox" style="flex: 1 0 50%; overflow: auto">
<iframe id="document" sandbox="allow-forms allow-scripts allow-top-navigation allow-modals" style="width: 100%; height: 100%; border: 0"></iframe>
</div>
</div>
<script src="/static/split.min.js"></script>
<script src="/static/smoothie.js"></script>
<script src="/static/client.js"></script>
</body>
</html>