forked from Esri/workflowmanager-viewer-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (113 loc) · 4.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- IE to use latest doc mode -->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>ArcGIS Workflow Manager</title>
<link rel="stylesheet" href="//js.arcgis.com/3.15/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css">
</head>
<body class="bootstrap">
<div id="processing-outer">
<div id="processing-outer-overlay"></div>
<div id="processing-inner">
<h2>Processing...</h2>
<div class="progress progress-striped active">
<div class="bar" style="width: 100%;"></div>
</div>
</div>
</div>
<!-- loading message -->
<div id="loading-outer">
<div id="loading-outer-overlay"></div>
<div id="loading-inner">
<div id="loadingAppLogo"><span><img src="js/app/WorkflowManager/images/EsriGlobeWhite.png" height="70" alt="Logo" /></span></div>
<h1 id="loadingAppTitle">ArcGIS Workflow Manager</h1>
<h2 id="loadingAppSubTitle">Web Edition</h2>
<h3 id="loadingMessage">loading...</h3>
<ul id="loadingImage">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div id="loginContainer"></div>
<!--
<div class="progress progress-striped active">
<div class="bar bar-success" style="width: 100%;"></div>
</div>
-->
</div>
</div>
</body>
<script type="text/javascript">
var path = location.pathname.replace(/[^\/]+$/, '');
var djConfig = {
async: true,
parseOnLoad: false,
tlmSiblingOfDojo: 0,
//locale: "es",
//locale: "it",
//locale: "ru",
//locale: "tr",
//locale: "zh-cn",
//isDebug: true,
packages: [
{
name: "widget",
location: path + "js/widget"
},
{
name: "app",
location: path + "js/app"
},
{
name: "utils",
location: path + "js/utils"
},
{
name: "workflowmanager",
location: path + "js/app/WorkflowManager/libs/workflowmanager"
}
]
};
</script>
<script type="text/javascript" src="//js.arcgis.com/3.15/"></script>
<script type="text/javascript">
if (window.attachEvent && !window.addEventListener) {
// unsupported browsers (IE8 or older)
var loadingMsgElem = document.getElementById("loadingMessage");
loadingMsgElem.innerHTML = "Unsupported Browser" + "<br>" +
"The browser you are using is not supported by ArcGIS Workflow Manager. Please download the latest version of Internet Explorer.";
loadingMsgElem.className = "loading-error";
}
</script>
<script type="text/javascript">
require([
"app/WorkflowManager",
"dojo/parser"
],
function(Controller, parser) {
parser.parse();
// Use Windows authenticated user to log into the application. Select the user with or without
// domain authentication depending on how your Workflow Manager repository is set up.
// (Use only when windows authentication is enabled through IIS)
//var user = "<%= User.Identity.Name.Replace("MyDomain\","") %>"; // user without domain authentication
//var user = "<%= User.Identity.Name.Replace("\","*") %>"; // user with domain authentication
//Controller.startup( {user: user} );
// Windows authetication not used
Controller.startup();
//Uncomment out the following lines for testing purposes only.
//Use this to determine the organization's domain when using windows authentication.
//var windowsUser = "<%= User.Identity.Name %>"; // get the username from Windows
//var loadingMsgElem = document.getElementById("loadingMessage");
//loadingMsgElem.innerHTML = "windowsUser = " + windowsUser;
});
</script>
</html>