Ignore:
Timestamp:
05/22/15 02:14:56 (6 years ago)
Author:
davidb
Message:

Support added for entering details about the design, and having them put into the 'published' area

File:
1 edited

Legend:

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

    r29912 r29914  
    4242          }
    4343            </style>
    44         <form style="width: 400px; margin-left:auto; margin-right:auto;">
     44        <form id="publish-data"
     45          action="my-design.jsp" method="get"
     46          style="width: 400px; margin-left:auto; margin-right:auto;"
     47          data-ajax="false"
     48          >
     49          <input type="hidden" name="action" value="publish"/>
     50
     51          <p>
     52        Flag Name:
     53          </p>
     54          <input type="text" autofocus="autofocus" style="color: white;" name="pub-name" />
     55
     56
     57
    4558          <p>
    4659        Your Name:
    4760          </p>
    48           <input type="text" autofocus="autofocus" style="color: white;" name="name" />
     61          <input type="text" style="color: white;" name="name" />
    4962
    5063          <p>
     
    5366          <input type="text" name="email" />
    5467
     68          <p>
     69        Motivation for your flag design:
     70          </p>
     71          <textarea name="desc" style="height: 250px;" >Describe your design ...</textarea>
     72         
    5573
    56           <div style="padding-top: 120px; padding-left: 100px; padding-right: 100px">
     74          <div style="padding-top: 20px; padding-left: 10px; padding-right: 10px">
    5775        <input type="submit" value="Submit Flag Design" />
    5876          </div>
    5977        </form>
    6078
     79        <script>
     80              var jsession_id = $.cookie('JSESSIONID') || new Date().getTime();
     81          $('#publish-data').append('<input type="hidden" name="myid" value="' + jsession_id + '"/>');
     82          //$('#publish-data').append('<input type="hidden" name="png-flag" value="flag-' + jsession_id + '.png"/>');
     83          //$('#publish-data').append('<input type="hidden" name="svg-flag" value="flag-' + jsession_id + '.svg"/>');
    6184
    62 <!-- AddToAny BEGIN -->
    63 <div class="a2a_kit a2a_kit_size_32 a2a_default_style">
    64 <a class="a2a_dd" href="https://www.addtoany.com/share_save"></a>
    65 <a class="a2a_button_email"></a>
    66 <a class="a2a_button_facebook"></a>
    67 <a class="a2a_button_google_plus"></a>
    68 <a class="a2a_button_google_gmail"></a>
    69 <a class="a2a_button_twitter"></a>
    70 <a class="a2a_button_tumblr"></a>
    71 </div>
    72 <script type="text/javascript" src="//static.addtoany.com/menu/page.js"></script>
    73 <!-- AddToAny END -->
     85          //$('#publish-data').append('<img src="../render-3d/images/flag-' + jsession_id + '.png"/>');
     86
     87        </script>
     88
    7489
    7590      </div>
Note: See TracChangeset for help on using the changeset viewer.