Skip to content
Snippets Groups Projects
Commit c6f90349 authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

chore: house keeping, adding loading indicator to index.html

parent 78723d8f
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ import { ViewerStateInterface, Property, FETCHED_METADATA } from "../services/st
})
export class AtlasViewerConstantsServices{
/* to be provided by KG in future */
public templateUrls = [
// 'res/json/infant.json',
'res/json/bigbrain.json',
......@@ -17,6 +19,7 @@ export class AtlasViewerConstantsServices{
'res/json/allenMouse.json'
]
/* to be provided by KG in future */
private _mapArray : [string,string[]][] = [
[ 'JuBrain Cytoarchitectonic Atlas' ,
[
......
......@@ -11,10 +11,11 @@
</head>
<body>
<atlas-viewer>
Loading the atlas viewer
<span class = "homeAnimationDots loadingAnimationDots">&bull;</span>
<span class = "homeAnimationDots loadingAnimationDots">&bull;</span>
<span class = "homeAnimationDots loadingAnimationDots">&bull;</span>
<h1 style = "text-align:center;">
<span class = "homeAnimationDots loadingAnimationDots">&bull;</span>
<span class = "homeAnimationDots loadingAnimationDots">&bull;</span>
<span class = "homeAnimationDots loadingAnimationDots">&bull;</span>
</h1>
</atlas-viewer>
</body>
</html>
\ No newline at end of file
......@@ -2,10 +2,14 @@ import 'zone.js'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
import { MainModule } from './main.module';
import { enableProdMode } from '@angular/core';
const requireAll = (r:any) => {r.keys().forEach(r)}
requireAll(require.context('./res/ext', false, /\.json$/))
requireAll(require.context('./res/images', true, /\.jpg|\.png/))
requireAll(require.context('./plugin_examples/jugex', false))
/* aot = production mode */
enableProdMode()
platformBrowserDynamic().bootstrapModule(MainModule)
\ No newline at end of file
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