Commit 57f09071 authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

add simple webpage and update ci

parent f6eb5087
Pipeline #10370 passed with stages
......@@ -4,6 +4,9 @@ pages:
tags:
- docker
script:
- apk add --no-cache build-base git git-lfs
- git lfs install
- git lfs pull
- mkdir public
- mv index.html public/
- mv Oxford-MM-0 public/
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>oxford-mm-templates</title>
</head>
<body style="font-family: sans-serif;">
<noscript>
<strong>niivue doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<section>
<h1 style="margin: 20px;">
oxford-mm-0_T1_brain.nii.gz
</h1>
</section>
<section>
<div id="demo1" style="width:90%; height:400px; margin:20px;">
<canvas id="gl1" height=480 width=640>
</canvas>
</div>
</section>
<script src="https://unpkg.com/@niivue/niivue@0.2.4/dist/niivue.js"></script>
</script>
<script>
var volumeList = [
// first item is brackground image
{
url: "./Oxford-MM-0/oxford-mm-0_T1_brain.nii.gz",//"./images/RAS.nii.gz", "./images/spm152.nii.gz",
volume: {hdr: null, img: null},
name: "mni152",
intensityMin: 0, // not used yet
intensityMax: 100, // not used yet
intensityRange:[0, 100], // not used yet
colorMap: "gray",
opacity: 100,
visible: true,
},
]
var nv1 = new niivue.Niivue()
nv1.attachTo('gl1')
nv1.loadVolumes(volumeList)
nv1.setSliceType(nv1.sliceTypeMultiplanar)
</script>
</body>
</html>
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