Changeset 29934 for other-projects

Show
Ignore:
Timestamp:
30.05.2015 10:39:26 (4 years ago)
Author:
davidb
Message:

Addition of facebook 'like' social media plugin. Some refinement of text also.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/main-form/my-design.jsp

    r29930 r29934  
    55    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
    66    <meta name="viewport" content="width=device-width, initial-scale=1"/> 
    7     <title>NZ Flag Design @ The University of Waikato</title> 
     7    <title>NZ Flag Design @ The University of Waikato (<%=request.getParameter("pub-name")%>)</title> 
    88     
    99    <script src="css/source-sans-pro.js"></script> 
     
    1515    <link rel="stylesheet" href="lib-slider/css/jqm-demos.css"/> 
    1616    <link rel="stylesheet" href="lib-slider/css/swipe-page.css"/> 
    17     <link rel="shortcut icon" href="lib-slider/favicon.ico"/>        
     17    <link rel="shortcut icon" href="lib-slider/nzflag-icon64-padded.png"/> 
    1818 
    1919    <script src="lib/jquery-1.8.2.min.js"></script> 
     
    224224 
    225225  <body> 
     226<div id="fb-root"></div> 
     227<script>(function(d, s, id) { 
     228  var js, fjs = d.getElementsByTagName(s)[0]; 
     229  if (d.getElementById(id)) return; 
     230  js = d.createElement(s); js.id = id; 
     231  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3&appId=538218162984944"; 
     232  fjs.parentNode.insertBefore(js, fjs); 
     233}(document, 'script', 'facebook-jssdk'));</script> 
     234 
    226235    <div data-role="page" id="innovation-story-01" class="demo-page"> 
    227236       
     
    235244      <div class="story-title" style="margin-left: 25px;"> 
    236245 
    237         <h1 class="center">My Design @ The University of Waikato</h1> 
    238  
    239         <p class="center" style="margin: 6px;">-- The New Zealand Flag Debate</p> 
     246        <h1 class="center">My Design '<%=request.getParameter("pub-name")%>' @ The University of Waikato</h1> 
     247 
     248        <p class="center" style="margin: 6px;">&mdash; The New Zealand Flag Debate</p> 
    240249         
    241250        <div class="center" style="height: 220px; position: relative;"> 
     
    245254          <div style="height: 200px; font-size: 300%; display: inline-block;" class="vertical-alignXX">VS</div> 
    246255          <div style="display: inline-block; position: relative"> 
    247         <a id="myflag-svg" data-ajax="false" ><img id="myflag-png" height="200" style="border: none;"/></a> 
     256            <div> 
     257          <a id="myflag-svg" data-ajax="false" ><img id="myflag-png" height="200" style="border: none;"/></a> 
     258            </div> 
     259 
     260            <div class="fb-like"  
     261               style="position: absolute; left:10px; width:200px;" 
     262           data-href="http://www.greenstone.org/nz-flag-design/main-form/my-design.jsp?pub-name=<%=request.getParameter("pub-name")%>"  
     263           data-layout="standard" data-action="like" data-show-faces="false" data-share="false"></div> 
     264 
     265            </div> 
    248266          </div> 
     267 
    249268        </div> 
    250269 
    251270 
     271<center> 
    252272 
    253273<script type="text/javascript"> 
     
    258278var desc  = "<%= desc %>"; 
    259279 
    260 document.write("<center>"); 
    261280document.write("  <div style=\"width: 500px; background: #181818; padding: 5px; margin: 10px;\">"); 
    262281document.write("    <p>Designer: " + name + "<p/>"); 
     
    264283document.write("    <p>Description: " + desc + "<p/>"); 
    265284document.write("  </div>"); 
    266 document.write("</center>"); 
    267285 
    268286 
    269287var a2a_config = a2a_config || {}; 
    270 a2a_config.linkname = "NZ Flag Design @ University of Waikato"; 
     288a2a_config.linkname = "NZ Flag Design @ University of Waikato (" + published_id + ")"; 
    271289 
    272290var base_url = location.protocol + '//' + location.host + location.pathname; 
     
    275293 
    276294</script> 
     295 
     296 
     297</center> 
     298 
     299 
     300<div style="clear:both;"></div> 
     301 
     302 
    277303 
    278304<!-- AddToAny BEGIN --> 
    279305<center> 
     306<p> 
     307  Share this design: 
     308</p> 
     309 
    280310<div class="a2a_kit a2a_kit_size_32 a2a_default_style" style="width: 260px;"> 
    281311<a class="a2a_dd" href="https://www.addtoany.com/share_save"></a> 
     
    293323 
    294324 
     325 
    295326    <center> 
    296327    <p style="font-size: 200%;"> 
     
    298329      <a href="../index.html">Interactive Flag Design Website</a> by: 
    299330       <a target="_blank" href="http://cosi.cms.waikato.ac.nz">The Centre for Open Source Innovation</a> 
    300        <a target="_blank" href="http://cosi.cms.waikato.ac.nz">(COSI)</a> at the <a href="http://www.waikato.ac.nz">University of Waikato</a>    
     331       <a target="_blank" href="http://cosi.cms.waikato.ac.nz">(COSI)</a><br />  
     332       at the <a href="http://www.waikato.ac.nz">University of Waikato</a>   
    301333     </i> 
    302334    </p>