source: other-projects/nz-flag-design/trunk/similarity-2d/display-flags.jsp@ 29784

Last change on this file since 29784 was 29784, checked in by davidb, 9 years ago

Changes resulting from developing the aspect-ration JSON JSP script

File size: 1.6 KB
RevLine 
[29766]1<%@ page contentType="text/html; charset=UTF-8" %>
[29600]2<!DOCTYPE html>
3<html>
4 <head>
5 <meta charset="utf-8"/>
[29622]6
[29624]7 <link rel="stylesheet" href="../js/jquery-ui-1.11.2.smoothness/jquery-ui.min.css" />
[29622]8 <link rel="stylesheet" href="style.css" />
9
[29624]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>
[29622]12
[29626]13 <script src="js-lib/Colour.js"></script>
[29622]14 <script src="flag-processing.js"></script>
15
16 <script>
17 $(function() {
18 $( "#progressBar" ).progressbar({
19 value: progressVal
20 });
[29766]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
[29622]29 });
30 </script>
31
32
33 <title>Display Flags</title>
34
[29600]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;
[29784]47 var img_list = [ "import/nz.gif" ];
[29600]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
[29625]57 <div id="progressArea" style="display: none;">
[29622]58 <span id="loadingLabel">Loading: </span>
59 <div id="progressBar"></div>
60 </div>
[29600]61
[29622]62 <div id="flagArea"></div>
[29621]63
64
[29622]65 <script>
[29621]66
[29600]67
68 </script>
69
70 </body>
71
72</html>
Note: See TracBrowser for help on using the repository browser.