Ignore:
Timestamp:
2015-05-20T23:25:37+12:00 (9 years ago)
Author:
davidb
Message:

Changes resulting from writing the TPDL submission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/similarity-2d/display-flags.jsp

    r29784 r29906  
    6262   <div id="flagArea"></div>
    6363
     64   <div id="go-to-dl" style="display: none;">
     65     Visit the digital library collection of all the world's flags: <a href="/greenstone3/library/collection/world-flags/browse/CL1" target="dl">more ...</a>
     66   </div>
     67
     68   <div id="go-to-nz-dl" style="display: none;">
     69     Visit the digital library collection of alternative New Zealand flag deisgns: <a href="http://localhost:8383/greenstone3/library/collection/aotearoa/browse/CL1" target="dl">more ...</a>
     70   </div>
     71
    6472
    6573    <script>
     74function getParameterByName(name) {
     75    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
     76    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
     77        results = regex.exec(location.search);
     78    return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
     79}
    6680
     81      //var mode = $.urlParam('mode');
     82      var mode = getParameterByName('mode');
     83
     84      console.log("*** mode = " + mode);
     85      if (mode && mode == "nz") {
     86        document.getElementById('go-to-nz-dl').style.display="block";
     87        //$('#go-to-nz-dl').show();
     88      }
     89      else {
     90        document.getElementById('go-to-dl').style.display="block";
     91        //$('#go-to-dl').show();
     92      }     
    6793
    6894    </script>
Note: See TracChangeset for help on using the changeset viewer.