Ignore:
Timestamp:
2023-03-12T17:47:25+13:00 (14 months ago)
Author:
davidb
Message:

Control bar now slides out from left

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/tabletop-dl/trunk/tabletop.html

    r37466 r37467  
    3535
    3636    <div class="box">
    37       <div id="gs-header" class="row header" style="display: none;">
     37      <div id="gs-control-bar_ORIG" class="row header" style="display: none;">
    3838    <div style="padding-top: 0.6em;">Greenstone Tabletop Digital Library</div>
    3939      </div>
     
    4242    <div style="position: relative; width: 100%; height: 100%;">
    4343
    44       <div id="gs-open-home" class="button" onclick="gsToggleHeader()">Toggle Control Bar</div>
     44      <div id="gs-control-bar">
     45        <div style="padding-top: 0.6em;">Greenstone Tabletop Digital Library</div>
     46      </div>
     47      <div id="gs-control-bar-toggle" class="button" onclickXXX="gsToggleHeader()">&#9776;</div>
    4548     
    4649
     
    5255      </div>
    5356     
    54       <div id="info-window-id" class="info-window resize-drag" style="width: 400px;">
     57      <div id="info-window-id" class="info-window resize-drag"
     58           style="position: absolute; left: 100px; top: 60px; width: 400px;">
     59        <p class="interact-info-bar">Info:</p>
    5560        <p> You can Drag and Resize this element </p>
    56         <p>Goto <a href="https://greenstone.org/">Greenstone3 Project Home Page</a></p>
     61        <p>Goto <a target="_blank" href="https://greenstone.org/">Greenstone3 Project Home Page</a></p>
    5762        <p>
    5863          <form>
     
    8691  </body>
    8792  <script>
     93    /*
    8894    function gsToggleHeader()
    8995    {
    9096    $('#gs-header').slideToggle();
    9197    }
     98    */
     99    $(document).ready(function() {
     100    $("#gs-control-bar").width("100%").hide();
     101   
     102    $("#gs-control-bar-toggle").click(function(){
     103            $("#gs-control-bar").animate({
     104        width: "toggle"
     105            });
     106    });
     107    });
     108   
    92109  </script>
    93110</html>
Note: See TracChangeset for help on using the changeset viewer.