1 | <!DOCTYPE html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
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">
|
---|
6 |
|
---|
7 | <title>Greenstone Tabletop DL</title>
|
---|
8 |
|
---|
9 | <script src="https://code.jquery.com/jquery-3.6.4.js" integrity="sha256-a9jBBRygX1Bh5lt8GZjXDzyOB+bWve9EiO7tROUtj/E=" crossorigin="anonymous"></script>
|
---|
10 |
|
---|
11 |
|
---|
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 | -->
|
---|
20 |
|
---|
21 | <script src="interactjs-dist/interact.min.js"></script>
|
---|
22 | <script src="tabletop-interact.js"></script>
|
---|
23 |
|
---|
24 |
|
---|
25 | <link rel="stylesheet" href="tabletop.css">
|
---|
26 |
|
---|
27 | </head>
|
---|
28 |
|
---|
29 | <!--
|
---|
30 | To create a div that fills to the remaining available height see Approach 1 of:
|
---|
31 | https://www.w3docs.com/snippets/html/how-to-make-a-div-fill-the-height-of-the-remaining-space.html
|
---|
32 | -->
|
---|
33 |
|
---|
34 | <body>
|
---|
35 |
|
---|
36 | <div class="box">
|
---|
37 | <div id="gs-header" class="row header" style="display: none;">
|
---|
38 | <div style="padding-top: 0.6em;">Greenstone Tabletop Digital Library</div>
|
---|
39 | </div>
|
---|
40 | <div class="row content" style="margin: 0.5em;">
|
---|
41 |
|
---|
42 | <div style="position: relative; width: 100%; height: 100%;">
|
---|
43 |
|
---|
44 | <div id="gs-open-home" class="button" onclick="gsToggleHeader()">Toggle Control Bar</div>
|
---|
45 |
|
---|
46 |
|
---|
47 | <div id="gesture-area" class="drag-and-zoom"
|
---|
48 | style="position: absolute; left: 700px; top: 30px; width: 576px; height: 384px;">
|
---|
49 | <img class="info-window scale-element" src="backgrounds/unsplash--matrix-like-binary.jpg"
|
---|
50 | style="width: 576px; height: 384px"
|
---|
51 | id="scale-element" />
|
---|
52 | </div>
|
---|
53 |
|
---|
54 | <div id="info-window-id" class="info-window resize-drag" style="width: 400px;">
|
---|
55 | <p> You can Drag and Resize this element </p>
|
---|
56 | <p>Goto <a href="https://greenstone.org/">Greenstone3 Project Home Page</a></p>
|
---|
57 | <p>
|
---|
58 | <form>
|
---|
59 | <input type="text" />
|
---|
60 | </form>
|
---|
61 | </p>
|
---|
62 | </div>
|
---|
63 |
|
---|
64 | <div class="drag-and-zoom"
|
---|
65 | style="position: absolute; left: 300px; top: 430px; width: 400px;">
|
---|
66 | <div class="info-window scale-element" style="width: 100%">
|
---|
67 | <p>You can Drag and Zoom this element </p>
|
---|
68 | <p>Goto <a href="https://greenstone.org/">Greenstone3 Project Home Page</a></p>
|
---|
69 | <p>
|
---|
70 | <form>
|
---|
71 | <input type="text" />
|
---|
72 | </form>
|
---|
73 | </p>
|
---|
74 | </div>
|
---|
75 | </div>
|
---|
76 |
|
---|
77 | </div>
|
---|
78 |
|
---|
79 | </div>
|
---|
80 | <div class="row footer" style="display:none;">
|
---|
81 | <p>footer (fixed height)</p>
|
---|
82 | </div>
|
---|
83 | </div>
|
---|
84 |
|
---|
85 |
|
---|
86 | </body>
|
---|
87 | <script>
|
---|
88 | function gsToggleHeader()
|
---|
89 | {
|
---|
90 | $('#gs-header').slideToggle();
|
---|
91 | }
|
---|
92 | </script>
|
---|
93 | </html>
|
---|