Ignore:
Timestamp:
2015-03-17T00:27:22+13:00 (9 years ago)
Author:
davidb
Message:

Changes to support storing on the server side of the HSV histogram calculations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/main-form/choose-canvas.html

    r29781 r29787  
    7474        $.getJSON( "../similarity-2d/flag-aspect-ratios-json.jsp", function( data ) {
    7575
    76             var scale_to_y_dim = 130;
     76
     77            //var scale_to_y_dim = 130;
     78
     79            // express scale_to_y_dim to use relative to height of window
     80
     81            var la_y_dim = $(window).height() - $('#aspect-ratio-div').position().top;
     82            var scale_to_y_dim = la_y_dim/4;
     83
     84            //alert("scale_to_y_dim = " + scale_to_y_dim);
    7785
    7886            var items = [];
     
    131139                p--;
    132140              }
    133 /*
    134               var nz_prioritized_flags = ratio_table.flags.sort( function (a, b) {
    135                 var a_title = a.replace(/^.*\//,"").replace(/\.(.*?)$/,"");
    136                 if (a_title == "nz") {
    137                   return -1;
    138                 }
    139                 else {
    140                   return 0;
    141                 }
    142               });
    143 */
    144141
    145142              $.each(nz_prioritized_flags, function(index, flag_filename) {               
     
    174171
    175172          $('#aspect-ratio-div').append("<div class='centredDiv' style='width: 100%'>"+items.join("\n")+"</div>");
     173
     174
     175          // now change the flag tooltip labels into their country names
     176          $.getJSON( "../similarity-2d/iso-3166-keyed-by-alpha-2-countrycodes.json", function( data ) {
     177
     178          });
     179
    176180        });
    177181      });
     
    202206      <h2>Canvas Size</h2>         
    203207     
    204         <div class="dialog" id="dialog" title="Ratio Select Dialog" width="800px">
     208        <div class="dialog" id="dialog" title="Flat Aspect Ratio Selection Panel" widthXX="800px">
    205209            <br><br>
    206210            <h2>Please choose from the following aspect ratios.</h2>
     
    257261            }                               
    258262            }
     263
     264
    259265        </script>
    260266       
     
    264270   
    265271      </div><!-- /content -->
     272
     273<!-- make persistent?
     274      <div data-role="footer" style="width:100%;">
     275    COSI: Centre of Open Source Innovation @ The University of Waikato.
     276      </div>
     277-->
    266278     
    267279    </div><!-- /page -->
Note: See TracChangeset for help on using the changeset viewer.