mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
HTML: add Yearly Statistics view to the HTML export
View JSON data of yearly statistics in HTML exports. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5076e431d5
commit
e968d91943
4 changed files with 104 additions and 1 deletions
|
|
@ -34,6 +34,10 @@ function load_scripts()
|
|||
fileref.setAttribute("src", location.pathname + "_files/file.json");
|
||||
document.getElementsByTagName("head")[0].appendChild(fileref);
|
||||
|
||||
fileref=document.createElement('script');
|
||||
fileref.setAttribute("src", location.pathname + "_files/stat.json");
|
||||
document.getElementsByTagName("head")[0].appendChild(fileref);
|
||||
|
||||
fileref=document.createElement('script');
|
||||
fileref.setAttribute("src", location.pathname + "_files/settings.json");
|
||||
document.getElementsByTagName("head")[0].appendChild(fileref);
|
||||
|
|
@ -116,6 +120,7 @@ window.onload=function(){
|
|||
sizeofpage=10;
|
||||
showAllDives();
|
||||
document.getElementById("divePanel").style.display='none';
|
||||
document.getElementById("diveStat").style.display='none';
|
||||
document.body.style.visibility='visible';
|
||||
|
||||
document.onkeydown = switchDives;
|
||||
|
|
@ -155,6 +160,7 @@ function changeAdvSearch(e){
|
|||
<button onClick="expandAll()"> Expand All </button>
|
||||
<button onClick="collapseAll()"> Collapse All </button>
|
||||
<button id="trip_button" onclick="toggleTrips();">trips</button>
|
||||
<button id="stats_button" onclick="toggleStats();">Stats</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="header">
|
||||
|
|
@ -213,5 +219,12 @@ function changeAdvSearch(e){
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="diveStat">
|
||||
<center>
|
||||
<button onClick="toggleStats()">Back to List</button>
|
||||
</center>
|
||||
<div id="diveStatsData">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue