diff --git a/website/include/importerapp.js b/website/include/importerapp.js index 74af5af..4e9b875 100644 --- a/website/include/importerapp.js +++ b/website/include/importerapp.js @@ -267,6 +267,7 @@ ImporterApp.prototype.GenerateMenu = function () } var meshMenuItem = meshesGroup.AddSubItem (mesh.name, { + id : 'meshmenuitem-' + meshIndex.toString (), openCloseButton : { title : 'Show/Hide Details', onOpen : function (contentDiv, mesh) { @@ -626,7 +627,17 @@ ImporterApp.prototype.LoadFilesFromHash = function () return false; } + var fileInput = $('#file'); var hash = window.location.hash; + if (hash == '#testmode') { + fileInput.css ('display', ''); + fileInput.css ('position', 'absolute'); + fileInput.css ('right', '10px'); + fileInput.css ('bottom', '10px'); + return false; + } + + fileInput.css ('display', 'none'); var hash = hash.substr (1, hash.length - 1); var fileList = hash.split (','); this.ProcessFiles (fileList, true); diff --git a/website/testfiles/prism.off b/website/testfiles/prism.off new file mode 100644 index 0000000..0324ea5 --- /dev/null +++ b/website/testfiles/prism.off @@ -0,0 +1,16 @@ +OFF +6 8 0 +0.5 0 -0.5 +-0.25 0.433013 -0.5 +-0.25 -0.433013 -0.5 +0.5 0 0.5 +-0.25 0.433013 0.5 +-0.25 -0.433013 0.5 +3 2 1 0 +3 3 4 5 +3 0 1 4 +3 0 4 3 +3 1 2 5 +3 1 5 4 +3 2 0 3 +3 2 3 5