-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
318 lines (261 loc) · 11 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="ArcGIS Portal landing page">
<meta name="author" content="Kuba Szostak">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>ArcGIS Portal Landing Page</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
body {
min-height: 100vh;
}
.cover {
object-fit: cover;
width: 50px;
height: 100px;
}
footer a:hover {
text-decoration: none;
}
footer a {
color: unset;
}
.initial-display {
display: none2;
}
.card>.row>a {
box-shadow: 2px 4px 10px 0px rgba(0, 0, 0, 0.1);
}
.card img {
object-fit: cover;
min-height: 100%;
max-height: 13em;
width: 100%;
}
.card .card-body {
max-height: 13em;
padding-right: 1.5em;
padding-left: 1.5em;
}
.navbar-brand {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: break-word;
}
.card-title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: break-word;
}
.card-subtitle {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: break-word;
}
.card-body>a,
.card-body>a:hover {
color: inherit;
text-decoration: none;
}
.card-links {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: break-word;
}
.card-text {
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
line-height: 1.5em;
max-height: 4.5em;
/* 3 x line-height */
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.app-element-display {
display: none;
/* */
}
.app-element-visibility {
visibility: hidden;
/* */
}
</style>
</head>
<body class="d-flex flex-column">
<!-- Splash screen -->
<div id="splashScreenBackdrop" class="modal-backdrop fade show"></div>
<div id="splashScreenModal" class="modal fade show" tabindex="-1" role="dialog" style="display: block"
aria-labelledby="modalTitle" aria-modal="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header" style="display: none">
<h5 class="modal-title" id="modalTitle">Modal title</h5>
</div>
<div class="modal-body">
<div class="progress m-4">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 100%"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Navbar -->
<nav class="navbar navbar-expand navbar-light bg-light shadow-sm">
<div class="container">
<a class="navbar-brand" id="navbarTitleContainer" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="app-element-visibility">
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
<polyline points="9 22 9 12 15 12 15 22"></polyline>
</svg>
<span class=" app-element-visibility">ArcGIS Portal Landing Page</span>
</a>
</div>
</nav>
<!-- Group Info -->
<div id="groupInfoContainer" class="container px-3 py-3 pt-md-5 pb-md-4 mx-auto">
<h1 class="display-4 text-center app-element-display">ArcGIS Portal Landing Page</h1>
<p class="lead text-center app-element-display">Lorem ipsum dolor sit amet consectetuer adipiscing elit.</p>
<p class=" app-element-display">
Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Aenean commodo ligula eget dolor.
Aenean massa <strong>strong</strong>. Cum sociis
natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Donec quam felis, ultricies
nec, pellentesque eu, pretium quis, sem. Nulla consequat
massa quis enim. Donec pede justo, fringilla vel,
aliquet nec, vulputate eget, arcu. In <em>em</em>
enim justo, rhoncus ut, imperdiet a, venenatis vitae,
justo. Nullam <a class="external ext" href="#">link</a>
dictum felis eu pede mollis pretium.
</p>
</div>
<div id="groupItemsContainer" class="container">
<div class="card mb-4 shadow app-element-display">
<div class="row no-gutters">
<a href="#" class="col-sm-4 ">
<!--<img src="img/item.png" alt="Generic placeholder image">-->
</a>
<div class="col-sm-8 card-body d-flex flex-column">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
<p class="card-text">
Some quick example text to build on the card title and make up the bulk of the card's content.
</p>
<div class="mt-auto">
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</div>
</div>
</div>
</div>
<div class="card mb-4 shadow app-element-display">
<div class="row no-gutters">
<a href="#" class="col-sm-4 ">
<!-- <img src="img/item.png" alt="Generic placeholder image" />-->
</a>
<div class="col-sm-8 card-body d-flex flex-column">
<a href="#">
<h5 class="card-title">Card title Card title Card title Card title Card title Card title Card title Card
title Card title Card title </h5>
</a>
<h6 class="card-subtitle mb-2 text-muted">Card subtitle Card subtitle Card subtitle Card subtitle Card
subtitle Card subtitle Card subtitle Card subtitle Card subtitle Card subtitle </h6>
<p class="card-text">
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
</p>
<div class="card-links mt-auto">
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</div>
</div>
</div>
</div>
</div>
<!-- loadMoreItemsButton -->
<div class="container">
<div class="row">
<div class="col text-center">
<button id="loadMoreItemsButton" type="button" class="btn btn-light border px-5" style="display:none">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevrons-down">
<polyline points="7 13 12 18 17 13"></polyline>
<polyline points="7 6 12 11 17 6"></polyline>
</svg>
</button>
<div id="loadMoreItemsProgress" class="progress mt-1 mx-auto" style="display:none; width: 120px; height: 3em;">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 100%"></div>
</div>
</div>
</div>
</div>
<p>
</p>
<div class="container mt-auto">
<footer class="pt-3 border-top">
<div class="row">
<div id="portalDeltailsFooter" class="col-md pb-3">
<!-- <img src="img/map.png" width="24" height="24" class="align-top mr-2 mb-2 app-element-visibility">
<a href="#" class="app-element-visibility">My Portal</a>-->
</div>
<div id="groupDetailsFooter" class="col-md pb-3">
<!-- <img src="img/egb.png" width="24" height="24" class="align-top mr-2 mb-2 rounded-circle app-element-visibility"
alt="">
<a href="#" class="app-element-visibility">ArcGIS Portal Landing Page</a>-->
</div>
<div class="col-md pb-3">
<a target="_blank" href="https://github.com/kubaszostak/agp-landing-page" title="Landing Page for ArcGIS Portal" class="float-md-right font-weight-light"><svg xmlns="http://www.w3.org/2000/svg"
width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1"
stroke-linecap="round" stroke-linejoin="round" class="feather feather-feather">
<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path>
<line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>
</svg>
<span class="d-md-none">Landing Page for ArcGIS Portal</span></a>
</div>
</div>
</footer>
</div>
<script>
// Check browser support
var script = document.createElement("script");
if (!window.fetch || !("noModule" in script)) {
var splashScreenModal = document.getElementById("splashScreenModal");
splashScreenModal.classList.add("text-danger");
splashScreenModal.getElementsByClassName("modal-header").item(0).style.display = "";
splashScreenModal.getElementsByClassName("modal-title").item(0).innerHTML = "Error";
splashScreenModal.getElementsByClassName("modal-body").item(0).innerHTML = 'Your browser is not supported. Upgrade your browser or use one of <a class="text-danger" href="https://choosebrowser.com"><u>modern browsers</u></a>.';
}
</script>
<script type="module">
// ArcGIS Portal config
const portalUrl = ""; // "https://mapy.umgdy.gov.pl/portal", // "https://www.arcgis.com",
const group = ""; // "9227744bd89342429da120fb3bba224a" // "1d1f24e8556642f49448f1c88b5a571b"
// Start application
import {AppView} from './js/1.0.200118/app.js';
let app = new AppView(portalUrl, group);
app.loadAppData();
</script>
</body>
</html>