This commit is contained in:
Martin Green 2023-06-07 23:49:19 +01:00
parent e4112431be
commit c7494fe379

View File

@ -18,8 +18,7 @@
const viewer = new CV2.CaveViewer( 'scene', { const viewer = new CV2.CaveViewer( 'scene', {
home: '/javascript/CaveView/', home: '/javascript/CaveView/',
//Wookey old code surveyDirectory: '/expowebcache/3d/', //Wookey old code surveyDirectory: '/expowebcache/3d/',
//Martin old code surveyDirectory: '/cave/3d/', surveyDirectory: '/cave/3d/',
surveyDirectory: '/',
terrainDirectory: '/loser/surface/terrain/' // cannot work, apache not handling this url terrainDirectory: '/loser/surface/terrain/' // cannot work, apache not handling this url
} ); } );
@ -28,8 +27,7 @@
const ui = new CV2.CaveViewUI( viewer ); const ui = new CV2.CaveViewUI( viewer );
//Wookey old code: ui.loadCave('{{svx3d}}.3d'); //Wookey old code: ui.loadCave('{{svx3d}}.3d');
//Martin old code: ui.loadCave('{{ cave }}.3d'); ui.loadCave('{{ cave }}.3d');
ui.loadCave('{% url "cave3d" cave %}');
} }
window.onload = onLoad; window.onload = onLoad;
</script> </script>