Changeset 29787 for other-projects/nz-flag-design/trunk/main-form
- Timestamp:
- 2015-03-17T00:27:22+13:00 (9 years ago)
- 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 74 74 $.getJSON( "../similarity-2d/flag-aspect-ratios-json.jsp", function( data ) { 75 75 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); 77 85 78 86 var items = []; … … 131 139 p--; 132 140 } 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 */144 141 145 142 $.each(nz_prioritized_flags, function(index, flag_filename) { … … 174 171 175 172 $('#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 176 180 }); 177 181 }); … … 202 206 <h2>Canvas Size</h2> 203 207 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"> 205 209 <br><br> 206 210 <h2>Please choose from the following aspect ratios.</h2> … … 257 261 } 258 262 } 263 264 259 265 </script> 260 266 … … 264 270 265 271 </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 --> 266 278 267 279 </div><!-- /page --> -
other-projects/nz-flag-design/trunk/main-form/choose-palette.html
r29781 r29787 35 35 <span class="left story-icon research" ></span> 36 36 <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;"> 39 40 Click on a palette circle to select it, and change its colour using the colour picker to the right 40 </h3> 41 41 </h2> 42 42 <a style="font-size: medium; padding-left: 10px;" 43 43 href="http://www.netstate.com/states/symb/flags/flag_design_principles.htm" target="_blank"> … … 98 98 99 99 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"); 100 106 101 107 // init state-keeping variables … … 227 233 return false; 228 234 } 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 }); 229 246 230 247 -
other-projects/nz-flag-design/trunk/main-form/enter-name.html
r29781 r29787 25 25 </div> 26 26 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 --> 28 30 29 31 <div class="story-page"> … … 31 33 <!-- put custom content here --> 32 34 <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> 34 36 <!-- 35 37 <p class="center">- - xx </p> 36 38 --> 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> 42 59 </form> 43 60 </div>
Note:
See TracChangeset
for help on using the changeset viewer.