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

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

Finessing of when to show progress bar

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