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

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

Next phase of developing focusing on colour histogram similarity. C# code by JoJo now ported to JavaScript using colour/get-pixel example developed by Dave Nichols.

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