This repository has been archived by the owner on Oct 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.html
68 lines (68 loc) · 2.74 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>Configurable Map Viewer</title>
<link rel="stylesheet" type="text/css" href="//js.arcgis.com/3.10compact/js/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body class="dbootstrap">
<div class="appHeader">
<div class="headerLogo">
<img alt="logo" src="images/rocket-logo.png" height="54" />
</div>
<div class="headerTitle">
<span id="headerTitleSpan">
Configurable Map Viewer
</span>
<div id="subHeaderTitleSpan" class="subHeaderTitle">
make it your own
</div>
</div>
<div class="search">
<div id='geocodeDijit'>
</div>
</div>
<div class="headerLinks">
<div id="helpDijit">
</div>
</div>
</div>
<script type="text/javascript">
var dojoConfig = {
async: true,
packages: [{
name: 'viewer',
location: location.pathname.replace(/[^\/]+$/, '') + 'js/viewer'
},{
name: 'config',
location: location.pathname.replace(/[^\/]+$/, '') + 'js/config'
},{
name: 'gis',
location: location.pathname.replace(/[^\/]+$/, '') + 'js/gis'
},{
name: 'dbootstrap',
location: location.pathname.replace(/[^\/]+$/, '') + 'js/dbootstrap'
}]
};
</script>
<script type="text/javascript" src="//js.arcgis.com/3.10compact/"></script>
<script type="text/javascript">
// get the config file from the url if present
var file = 'config/viewer', s = window.location.search, q = s.match(/config=([^&]*)/i);
if (q && q.length > 0) {
file = q[1];
if(file.indexOf('/') < 0) {
file = 'config/' + file;
}
}
require(['dbootstrap','viewer/Controller', file], function(dbootstrap, Controller, config){
Controller.startup(config);
});
</script>
</body>
</html>