Commit 70f3d086 authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

update files

parent 57f09071
Pipeline #10376 passed with stages
in 27 seconds
*.nii.gz filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
......@@ -16,6 +16,9 @@
oxford-mm-0_T1_brain.nii.gz
</h1>
</section>
<section style="margin-left: 20px;">
<button onclick="toggleSliceType()">2D/3D</button>
</section>
<section>
<div id="demo1" style="width:90%; height:400px; margin:20px;">
<canvas id="gl1" height=480 width=640>
......@@ -23,7 +26,6 @@
</div>
</section>
<script src="https://unpkg.com/@niivue/niivue@0.2.4/dist/niivue.js"></script>
</script>
<script>
......@@ -44,7 +46,17 @@
var nv1 = new niivue.Niivue()
nv1.attachTo('gl1')
nv1.loadVolumes(volumeList)
nv1.setSliceType(nv1.sliceTypeMultiplanar)
nv1.setSliceType(nv1.sliceTypeRender)
</script>
<script>
function toggleSliceType() {
console.log('test')
if (nv1.sliceType === nv1.sliceTypeRender) {
nv1.setSliceType(nv1.sliceTypeMultiplanar)
} else {
nv1.setSliceType(nv1.sliceTypeRender)
}
}
</script>
</body>
</html>
File added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment