1 | <%@ page contentType="text/html; charset=UTF-8" %>
|
---|
2 | <!DOCTYPE html>
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta charset="utf-8"/>
|
---|
6 |
|
---|
7 | <link rel="stylesheet" href="../js/jquery-ui-1.11.2.smoothness/jquery-ui.min.css" />
|
---|
8 | <link rel="stylesheet" href="style.css" />
|
---|
9 |
|
---|
10 | <script src="../js/jquery-1.11.1.min.js"></script>
|
---|
11 | <script src="../js/jquery-ui-1.11.2.smoothness/jquery-ui.js"></script>
|
---|
12 |
|
---|
13 | <script src="js-lib/Colour.js"></script>
|
---|
14 | <script src="flag-processing.js"></script>
|
---|
15 |
|
---|
16 | <script>
|
---|
17 | $(function() {
|
---|
18 | $( "#progressBar" ).progressbar({
|
---|
19 | value: progressVal
|
---|
20 | });
|
---|
21 |
|
---|
22 | if (!is_jsp_active) {
|
---|
23 | var mess = "<div>Web server is not JSP active. Unable to run flag comparison</div>";
|
---|
24 | $('#flagArea').append(mess);
|
---|
25 | }
|
---|
26 |
|
---|
27 | displayFlags(img_list,$('#flagArea'),$('#progressArea'),$('#progressBar'));
|
---|
28 |
|
---|
29 | });
|
---|
30 | </script>
|
---|
31 |
|
---|
32 |
|
---|
33 | <title>Display Flags</title>
|
---|
34 |
|
---|
35 | </head>
|
---|
36 |
|
---|
37 | <body>
|
---|
38 |
|
---|
39 | <div style="display: none;">
|
---|
40 |
|
---|
41 | <!--
|
---|
42 | Set up a fallback position in case this page is accessed outside
|
---|
43 | of a JSP context (i.e., the JSP blocks aren't executed)
|
---|
44 | -->
|
---|
45 | <script>
|
---|
46 | var is_jsp_active = false;
|
---|
47 | var img_list = [ "import/nz.gif" ];
|
---|
48 | </script>
|
---|
49 |
|
---|
50 | <%@include file="flag-functions.jsp" %>
|
---|
51 |
|
---|
52 | <!-- If JSP active, sets 'is_jsp_active' to true -->
|
---|
53 | <%@include file="list-flags.jsp" %>
|
---|
54 |
|
---|
55 | </div>
|
---|
56 |
|
---|
57 | <div id="progressArea" style="display: none;">
|
---|
58 | <span id="loadingLabel">Loading: </span>
|
---|
59 | <div id="progressBar"></div>
|
---|
60 | </div>
|
---|
61 |
|
---|
62 | <div id="flagArea"></div>
|
---|
63 |
|
---|
64 |
|
---|
65 | <script>
|
---|
66 |
|
---|
67 |
|
---|
68 | </script>
|
---|
69 |
|
---|
70 | </body>
|
---|
71 |
|
---|
72 | </html>
|
---|