mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-11-22 07:11:55 +00:00
JS old scripts tidying and documenting
This commit is contained in:
parent
1a5145169a
commit
87deae9859
@ -44,6 +44,13 @@ chase QMs. It is a troggle-generated document at <a href="/prospecting_guide/">e
|
||||
|
||||
<p>QMs all use <a href="../../qm.html">the same QM description conventions</a>.
|
||||
|
||||
<h4 id="QM_helper">js/QM_helper.js</h4>
|
||||
<p>A relic.
|
||||
<p>This is referred to in core/admin.py and appears to help with the userinterface within the
|
||||
Django Admin control panel for manipulating QMs. It is not live as media/js/ is not plumbed in.
|
||||
(Live javascript lives in media/jslib/ which is routed to the URL /javascript/.)
|
||||
|
||||
|
||||
<h4 id="tabqmsqms">tablize-qms.pl</h4>
|
||||
<p>This is a perl script dating from November 2004.
|
||||
|
||||
@ -128,7 +135,7 @@ This will work on all survex *.svx files even those which have not yet been run
|
||||
<p>Phil says (13 April 2020): <em>"The generated files are not meant to be served by the webserver, it’s a tool for people to run locally. Someone could modify it to create HTML output (or post-process the CSV output to do the same), but that is work still to be done."</em>
|
||||
|
||||
<h4>troggle/parsers/survex.py</a></h4>
|
||||
<p>The QMs inside thge survex files are parsed by troggle along with all the other information
|
||||
<p>The QMs inside the survex files are parsed by troggle along with all the other information
|
||||
inside survex files and stored in the database. But the webpages which display this data are rudimentary, e.g. <a href="/getQMs/1623-204">/getQMs/1623-204</a> or <a href="/cave/qms/1623-204">/cave/qms/1623-204</a>.
|
||||
Looking through urls.py and core/view_caves.py we see a lot of code for providing new QM numbers, producing lists of QMs for a given cave and for downloading QM.csv files generated by the database. But none of it appears to be working today (14 May 2020), see below.
|
||||
|
||||
|
@ -1,4 +1,9 @@
|
||||
function filterTable(tablename)
|
||||
// Used by Radost's single HTML page to sort list of all caves
|
||||
// in expoweb/caves-tabular.htm
|
||||
// where the data is all in that html file, having been extracted from
|
||||
// the svx files by an undocumented method. Probably from the .3d file// produced by
|
||||
//survex.
|
||||
{
|
||||
table = document.getElementById(tablename);
|
||||
|
||||
|
@ -4,9 +4,12 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>Caves of loser plateau</title>
|
||||
</head>
|
||||
|
||||
<!-- Radost's single HTML page to sort list of all caves
|
||||
where the data is all in that html file, having been extracted from
|
||||
the svx files by an undocumented method. Probably from the .3d file// produced by
|
||||
survex. -->
|
||||
<body id="homepage">
|
||||
<link rel="stylesheet" type="text/css" href="./css/cavetables.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/cavetables.css">
|
||||
|
||||
<h2>Caves of Löserplateau (locations according to all.3d)</h2>
|
||||
{written by Radost, 2019 - uses JS to sort table. Table is not updated. }
|
||||
@ -4258,7 +4261,7 @@ Click on column headers to sort/reverse sort<br><br><br>
|
||||
</table>
|
||||
|
||||
|
||||
<script type="text/javascript" src="scripts/TableSort.js"></script>
|
||||
<script type="text/javascript" src="../scripts/TableSort.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user