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

Location:
other-projects/nz-flag-design/trunk/main-form
Files:
3 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 -->
  • other-projects/nz-flag-design/trunk/main-form/choose-palette.html

    r29781 r29787  
    3535      <span class="left story-icon research" ></span>
    3636      <h2>Choose Colour Palette</h2>
    37       <div>
    38         <h3 style="font-size: large; position: relative; display: inline-block;">
     37
     38          <div class="dialog" id="dialog" title="Colour Palette Selection Panel" widthXX="800px">
     39        <h2 style="position: relative; display: inline-block;">
    3940          Click on a palette circle to select it, and change its colour using the colour picker to the right
    40         </h3>
    41        
     41        </h2>       
    4242        <a style="font-size: medium; padding-left: 10px;"
    4343           href="http://www.netstate.com/states/symb/flags/flag_design_principles.htm" target="_blank">
     
    9898
    9999    console.log("ActivateColourPalette()");
     100
     101    // Page not shown yet, so the y-position of <svg> is still 0
     102    // => make height purely a percentage of height
     103        var la_y_dim = $(window).height();
     104        var svg_y_dim = 0.5 * la_y_dim;
     105    $('#svg-palette').css("height",svg_y_dim+"px");
    100106
    101107        // init state-keeping variables
     
    227233      return false;
    228234    }
     235
     236
     237    $(window).resize(function() {
     238        console.log("choose-palette resize()");
     239        console.log("position top = " + $('#svg-palette').position().top);
     240        console.log("offset top = " + $('#svg-palette').offset().top);
     241
     242        var la_y_dim = $(window).height() - $('#svg-palette').offset().top;
     243        var svg_y_dim = 0.65 * la_y_dim;
     244    $('#svg-palette').css("height",svg_y_dim+"px");                   
     245    });
    229246
    230247
  • other-projects/nz-flag-design/trunk/main-form/enter-name.html

    r29781 r29787  
    2525        </div> 
    2626     
    27     <a target="_parent" href="../index.html" class="back-button back-left"></a>   
     27<!--
     28    <a target="_parent" href="../index.html" class="back-button back-left"></a>
     29-->
    2830     
    2931    <div class="story-page">
     
    3133      <!-- put custom content here -->   
    3234      <div class="story-title">
    33         <h1 id="enter-name-header" class="center">Enter Name</h1>
     35        <h1 id="enter-name-header" class="center">Contact Details</h1>
    3436<!--
    3537        <p class="center">- - xx </p>
    3638-->
    37         <p>
    38           Your Name:
    39         </p>
    40         <form>
    41           <input type="text" autofocus="autofocus" style="color: white;" />
     39            <style>
     40          input {
     41            color: white;
     42          }
     43            </style>
     44        <form style="width: 400px; margin-left:auto; margin-right:auto;">
     45          <p>
     46        Your Name:
     47          </p>
     48          <input type="text" autofocus="autofocus" style="color: white;" name="name" />
     49
     50          <p>
     51        Contact email:
     52          </p>
     53          <input type="text" name="email" />
     54
     55
     56          <div style="padding-top: 120px; padding-left: 100px; padding-right: 100px">
     57        <input type="submit" value="Submit Flag Design" />
     58          </div>
    4259        </form>
    4360      </div>
Note: See TracChangeset for help on using the changeset viewer.