-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
175 lines (167 loc) · 8.85 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M8WWLJG495"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-M8WWLJG495');
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices-->
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Neotoma Explorer</title>
<link rel="stylesheet" href="./js/dojo/1.9.3/dijit/themes/claro/claro.css"/>
<link rel="stylesheet" href="./js/v6.6.1-dist/ol.css">
<link rel="stylesheet" type="text/css" href="./js/dojo/1.9.3/dojox/widget/Toaster/Toaster.css" >
<link rel="stylesheet" type="text/css" href="css/app.css" >
<link rel="stylesheet" type="text/css" href="css/showtime.css" >
<link rel="stylesheet" type="text/css" href="js/dojo/dgrid-1.1.0/css/dgrid.css"/>
<link rel="stylesheet" type="text/css" href="css/stratigraphic.css" >
<script type="text/javascript" src="./js/v6.6.1-dist/main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.6.0/d3.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-queue/3.0.3/d3-queue.min.js"></script>
<script src="https://d3js.org/d3-request.v1.min.js"></script>
<script>
var appFolder = "/explorer/";
var apiRoot = "https://api.neotomadb.org/";
dojoConfig = {
isDebug: 1,
async: 1,
packages: [
{ name: 'dgrid1', location: '/explorer/js/dojo/dgrid-1.1.0' },
{ name: 'dstore', location: '/explorer/js/dojo/dstore-1.1.1' },
{ name: 'dgrid', location: '/explorer/js/dojo/dgrid' },
{ name: 'xstyle', location: '/explorer/js/dojo/xstyle' },
{ name: 'put-selector', location: '/explorer/js/dojo/put-selector' },
{ name: 'neotoma', location: appFolder + 'neotoma' },
{ name: 'amagimap', location: appFolder + 'amagimap' }
],
appServicesLocation: apiRoot + "v1.5/apps",
dbServicesLocation: apiRoot + "v1.5/dbtables",
dataServicesLocation: apiRoot + "v1.5/data",
dataServicesLocationV2: apiRoot + "v2.0/data",
faunalRangesEndPoint: apiRoot + "v2.0/data/spatial/faunal?",
iceRangesEndPoint: apiRoot + "v2.0/data/spatial/icesheet?age=",
map: null,
localDbConfig: {
version: 3,
stores: {
tokens: {
id: {}
}
}
},
app: {
wmProj: new ol.proj.Projection("EPSG:3857"),
llProj: new ol.proj.Projection("EPSG:4326"),
allSearchResults: null,
userSearches: null,
forms: {
searchProperties: null,
datasetsTray: null,
sitePopup: null
},
searchColors: {
//colors: {
// 0: "#FF0000",
// 1: "#32CD32",
// 2: "#0000FF",
// 3: "#FFFF00"
//},
colors: {
0: "#6a3d9a", // purple
1: "#006d2c", // green
2: "#08519c", // blue
3: "#f768a1", // pink
4: "#e6ab02", // gold
5: "#666666" // grey
},
currentIndex: 0,
maxIndex: 5
},
layersSelectControl: null,
navControl: null,
iconStore: null,
saveProxyPath: "/files/save.ashx",
gaveChromeMapBugMessage: false,
user: {
spatialSearchType: "mapExtent"
}
}
};
</script>
<script src="./js/dojo/1.9.3/dojo/dojo.js"></script>
<script>
try {
require(["dojo/parser", "dojo/request/script", "neotoma/app/app" ,"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/layout/AccordionContainer", "dijit/layout/StackContainer", "dijit/form/CheckBox", "dijit/form/Button", "dijit/form/TextBox", "dijit/Toolbar", "dijit/ToolbarSeparator", "dijit/TitlePane", "neotoma/widget/Dialog", "dijit/form/Select", "dojox/widget/Standby", "dijit/layout/StackContainer", "dijit/layout/StackController", "dijit/RadioMenuItem", "dijit/form/ComboButton", "dijit/DropDownMenu", "dojox/widget/Toaster", "neotoma/form/Toolbar", "neotoma/widget/MapPane", "neotoma/form/Tables","neotoma/form/Tables2", "dijit/form/FilteringSelect", "neotoma/widget/SearchResultsGrid", "dojo/domReady!"],
function (parser, script, appUtil) {
parser.parse().then(
function () {
try {
// use toaster for alerts
appUtil.toasterAlert();
} catch (e) {
alert("Error in parsing function in index.html: " + e.message)
}
}
);
}
); // end of require
} catch (e) {
alert("error in js in index.html: " + e.message);
}
function googleLoaded() {
require(["neotoma/app/app"],
function (appUtil) {
//call pageReady
appUtil.pageReady();
}
);
}
</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=&callback=googleLoaded"
type="text/javascript"></script>
</head>
<body class="claro">
<div id="loader">
<div id="loadingContent">Explorer loading <img alt="..." src="resources/images/blue-loading.gif" /></div>
</div>
<div id="content" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline', gutters:false, liveSplitters:false">
<div id="topPane" data-dojo-id="topPane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'">
<a href="index.html"><img id="logo" src="resources/images/explorerlogo.png" title="Reload application" /></a>
<div id="mainToolbar" data-dojo-type="neotoma/form/Toolbar" data-dojo-id="mainToolbar"></div>
</div>
<div data-dojo-type="dijit/layout/StackContainer" id="mapTableStack" data-dojo-props="region:'center'">
<div id="mapPane" data-dojo-type="neotoma/widget/MapPane" style="overflow:hidden;" ></div>
<!--<div id="table" data-dojo-type="neotoma/form/Tables"></div>-->
<div id="table" data-dojo-type="neotoma/form/Tables2"></div>
<!--<div id="table" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="onShow:showGrid">
<div>
<label style="float:left;margin-right:5px;padding-top:3px">Results table</label>
<select id="tableSearches" data-dojo-type="dijit/form/FilteringSelect" data-dojo-props="required:false, searchAttr:'name', placeHolder:'Select a search', onChange:searchChanged" style="width:270px;"></select>
</div>
<div id="resultsGrid" data-dojo-id="searchResultsGrid" data-dojo-type="neotoma/widget/SearchResultsGrid"></div>
</div>-->
</div>
</div>
<div id="aboutView" data-dojo-type="neotoma/widget/Dialog" class="myDialogs nonModal" data-dojo-props="href:'about.html', visible:true" style="width:475px;"></div>
<div id="toasterAuto" data-dojo-type="dojox/widget/Toaster" data-dojo-props="positionDirection:'tr-left', duration:4000"></div>
</body>
<!--
<script async="" defer="" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBhUbPnLRPsx2tE42_9VDquWq2KGA8eVkg&callback=googleLoaded" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1212792-20']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
-->
</html>