diff options
author | Martin Green <martin.speleo@gmail.com> | 2023-06-07 23:44:44 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2023-06-07 23:44:44 +0100 |
commit | 65eec8e91d294d0970baaf0f26046a63ad00e35b (patch) | |
tree | 3af63a11ce6ae8fc3e383d025e75d9c1c175d1ff /templates/cave.html | |
parent | 0b0f2f07e18d67e21285c835476d02fbab55a5cc (diff) | |
download | troggle-65eec8e91d294d0970baaf0f26046a63ad00e35b.tar.gz troggle-65eec8e91d294d0970baaf0f26046a63ad00e35b.tar.bz2 troggle-65eec8e91d294d0970baaf0f26046a63ad00e35b.zip |
attempt to use {% url %} tag to point at 3d file for cave viewer
Diffstat (limited to 'templates/cave.html')
-rw-r--r-- | templates/cave.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/cave.html b/templates/cave.html index 864f021..55634d6 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -17,7 +17,9 @@ // the configuration object specifies the location of CaveView, surveys and terrain files const viewer = new CV2.CaveViewer( 'scene', { home: '/javascript/CaveView/', - surveyDirectory: '/cave/3d/', //surveyDirectory: '/expowebcache/3d/', + //Wookey old code surveyDirectory: '/expowebcache/3d/', + //Martin old code surveyDirectory: '/cave/3d/', + surveyDirectory: '/', terrainDirectory: '/loser/surface/terrain/' // cannot work, apache not handling this url } ); @@ -25,8 +27,9 @@ // 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('{{ cave }}.3d'); + //Wookey old code: ui.loadCave('{{svx3d}}.3d'); + //Martin old code: ui.loadCave('{{ cave }}.3d'); + {% url "cave3d" cave %} } window.onload = onLoad; </script> |