diff options
author | Martin Green <martin.speleo@gmail.com> | 2023-06-07 23:25:25 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2023-06-07 23:25:25 +0100 |
commit | 0b0f2f07e18d67e21285c835476d02fbab55a5cc (patch) | |
tree | 4a6a41d084afba22929a27a4571e1be083179ab7 | |
parent | ee34f87563705f42fdf9e8f2ab011a40237196fe (diff) | |
download | troggle-0b0f2f07e18d67e21285c835476d02fbab55a5cc.tar.gz troggle-0b0f2f07e18d67e21285c835476d02fbab55a5cc.tar.bz2 troggle-0b0f2f07e18d67e21285c835476d02fbab55a5cc.zip |
Try having caveviewer using same url as download link again
-rw-r--r-- | templates/cave.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/cave.html b/templates/cave.html index 862bdbe..864f021 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -17,7 +17,7 @@ // the configuration object specifies the location of CaveView, surveys and terrain files const viewer = new CV2.CaveViewer( 'scene', { home: '/javascript/CaveView/', - surveyDirectory: '/expowebcache/3d/', + surveyDirectory: '/cave/3d/', //surveyDirectory: '/expowebcache/3d/', terrainDirectory: '/loser/surface/terrain/' // cannot work, apache not handling this url } ); @@ -25,8 +25,8 @@ // Note the special code in views.caves.py to do this. The appropriate .svx/.3d file may not be simply the cave name +.3d const ui = new CV2.CaveViewUI( viewer ); - ui.loadCave('{{svx3d}}.3d'); - //ui.loadCave('{% url "cave3d" cave %}'); + //ui.loadCave('{{svx3d}}.3d'); + ui.loadCave('{{ cave }}.3d'); } window.onload = onLoad; </script> |