[37461] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en">
|
---|
[37464] | 3 | <head>
|
---|
[37461] | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
---|
| 5 | <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover, shrink-to-fit=no">
|
---|
[37464] | 6 |
|
---|
[37461] | 7 | <title>Greenstone Tabletop DL</title>
|
---|
| 8 |
|
---|
[37462] | 9 | <script src="https://code.jquery.com/jquery-3.6.4.js" integrity="sha256-a9jBBRygX1Bh5lt8GZjXDzyOB+bWve9EiO7tROUtj/E=" crossorigin="anonymous"></script>
|
---|
| 10 |
|
---|
| 11 |
|
---|
[37463] | 12 | <!-- Import as bundled (All-in-one): -->
|
---|
| 13 | <!-- <script src="dist/winbox.bundle.min.js"></script> -->
|
---|
| 14 |
|
---|
| 15 | <!-- Or import JS + CSS separately: -->
|
---|
| 16 | <!--
|
---|
| 17 | <link rel="stylesheet" href="winbox-dist/css/winbox.min.css">
|
---|
| 18 | <script src="winbox-dist/js/winbox.min.js"></script>
|
---|
| 19 | -->
|
---|
[37538] | 20 | <link rel="stylesheet" href="winbox-with-interactjs-dist/css/winbox.min.css">
|
---|
| 21 | <script src="winbox-with-interactjs-dist/js/winbox.min.js"></script>
|
---|
[37463] | 22 |
|
---|
| 23 | <script src="interactjs-dist/interact.min.js"></script>
|
---|
[37465] | 24 | <script src="tabletop-interact.js"></script>
|
---|
[37464] | 25 |
|
---|
[37463] | 26 |
|
---|
[37464] | 27 | <link rel="stylesheet" href="tabletop.css">
|
---|
[37463] | 28 |
|
---|
[37464] | 29 | </head>
|
---|
[37463] | 30 |
|
---|
[37464] | 31 | <!--
|
---|
| 32 | To create a div that fills to the remaining available height see Approach 1 of:
|
---|
| 33 | https://www.w3docs.com/snippets/html/how-to-make-a-div-fill-the-height-of-the-remaining-space.html
|
---|
| 34 | -->
|
---|
[37463] | 35 |
|
---|
[37464] | 36 | <body>
|
---|
[37463] | 37 |
|
---|
[37464] | 38 | <div class="box">
|
---|
[37467] | 39 | <div id="gs-control-bar_ORIG" class="row header" style="display: none;">
|
---|
[37464] | 40 | <div style="padding-top: 0.6em;">Greenstone Tabletop Digital Library</div>
|
---|
| 41 | </div>
|
---|
| 42 | <div class="row content" style="margin: 0.5em;">
|
---|
[37463] | 43 |
|
---|
[37464] | 44 | <div style="position: relative; width: 100%; height: 100%;">
|
---|
[37463] | 45 |
|
---|
[37467] | 46 | <div id="gs-control-bar">
|
---|
| 47 | <div style="padding-top: 0.6em;">Greenstone Tabletop Digital Library</div>
|
---|
| 48 | </div>
|
---|
| 49 | <div id="gs-control-bar-toggle" class="button" onclickXXX="gsToggleHeader()">☰</div>
|
---|
[37464] | 50 |
|
---|
[37463] | 51 |
|
---|
[37466] | 52 | <div id="gesture-area" class="drag-and-zoom"
|
---|
| 53 | style="position: absolute; left: 700px; top: 30px; width: 576px; height: 384px;">
|
---|
| 54 | <img class="info-window scale-element" src="backgrounds/unsplash--matrix-like-binary.jpg"
|
---|
[37464] | 55 | style="width: 576px; height: 384px"
|
---|
| 56 | id="scale-element" />
|
---|
| 57 | </div>
|
---|
[37463] | 58 |
|
---|
[37467] | 59 | <div id="info-window-id" class="info-window resize-drag"
|
---|
| 60 | style="position: absolute; left: 100px; top: 60px; width: 400px;">
|
---|
| 61 | <p class="interact-info-bar">Info:</p>
|
---|
[37466] | 62 | <p> You can Drag and Resize this element </p>
|
---|
[37467] | 63 | <p>Goto <a target="_blank" href="https://greenstone.org/">Greenstone3 Project Home Page</a></p>
|
---|
[37464] | 64 | <p>
|
---|
| 65 | <form>
|
---|
| 66 | <input type="text" />
|
---|
| 67 | </form>
|
---|
| 68 | </p>
|
---|
| 69 | </div>
|
---|
[37466] | 70 |
|
---|
| 71 | <div class="drag-and-zoom"
|
---|
| 72 | style="position: absolute; left: 300px; top: 430px; width: 400px;">
|
---|
| 73 | <div class="info-window scale-element" style="width: 100%">
|
---|
| 74 | <p>You can Drag and Zoom this element </p>
|
---|
| 75 | <p>Goto <a href="https://greenstone.org/">Greenstone3 Project Home Page</a></p>
|
---|
| 76 | <p>
|
---|
| 77 | <form>
|
---|
| 78 | <input type="text" />
|
---|
| 79 | </form>
|
---|
| 80 | </p>
|
---|
| 81 | </div>
|
---|
| 82 | </div>
|
---|
[37463] | 83 |
|
---|
[37464] | 84 | </div>
|
---|
[37533] | 85 |
|
---|
| 86 | <!--
|
---|
| 87 | <div id="my-own-window"
|
---|
| 88 | style="position: absolute; left: 30px; top: 430px; width: 400px; height: 300px; background-color: red;">
|
---|
| 89 | </div>
|
---|
| 90 | -->
|
---|
[37464] | 91 |
|
---|
[37533] | 92 |
|
---|
[37464] | 93 | </div>
|
---|
| 94 | <div class="row footer" style="display:none;">
|
---|
| 95 | <p>footer (fixed height)</p>
|
---|
| 96 | </div>
|
---|
| 97 | </div>
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 | </body>
|
---|
| 101 | <script>
|
---|
[37538] | 102 |
|
---|
[37467] | 103 | $(document).ready(function() {
|
---|
| 104 | $("#gs-control-bar").width("100%").hide();
|
---|
| 105 |
|
---|
| 106 | $("#gs-control-bar-toggle").click(function(){
|
---|
| 107 | $("#gs-control-bar").animate({
|
---|
| 108 | width: "toggle"
|
---|
| 109 | });
|
---|
| 110 | });
|
---|
[37533] | 111 |
|
---|
[37467] | 112 | });
|
---|
| 113 |
|
---|
[37464] | 114 | </script>
|
---|
[37538] | 115 |
|
---|
[37461] | 116 | </html>
|
---|