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

Last change on this file since 29693 was 29626, checked in by davidb, 10 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
RevLine 
[29600]1<!DOCTYPE html>
2<html>
3 <head>
4 <meta charset="utf-8"/>
[29622]5
[29624]6 <link rel="stylesheet" href="../js/jquery-ui-1.11.2.smoothness/jquery-ui.min.css" />
[29622]7 <link rel="stylesheet" href="style.css" />
8
[29624]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>
[29622]11
[29626]12 <script src="js-lib/Colour.js"></script>
[29622]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
[29600]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
[29625]48 <div id="progressArea" style="display: none;">
[29622]49 <span id="loadingLabel">Loading: </span>
50 <div id="progressBar"></div>
51 </div>
[29600]52
[29622]53 <div id="flagArea"></div>
[29621]54
55
[29622]56 <script>
[29621]57
[29622]58 if (!is_jsp_active) {
[29625]59 var mess = "<div>Web server is not JSP active. Unable to run flag comparison</div>";
[29622]60 $('#flagArea').append(mess);
[29600]61 }
[29622]62
63 displayFlags(img_list,$('#flagArea'),$('#progressArea'),$('#progressBar'));
[29600]64
65 </script>
66
67 </body>
68
69</html>
Note: See TracBrowser for help on using the repository browser.