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="my-interact.js"></script>
|
---|
23 |
|
---|
24 | <!--
|
---|
25 | <script src="drag-with-inertia.js"></script>
|
---|
26 | -->
|
---|
27 |
|
---|
28 | <!--
|
---|
29 | <link rel="stylesheet" href="tabletop-winbox.css">
|
---|
30 | -->
|
---|
31 |
|
---|
32 | <style>
|
---|
33 | /*
|
---|
34 | html {
|
---|
35 | overflow: hidden;
|
---|
36 |
|
---|
37 | background: #102010 url(backgrounds/unsplash--dark-green-fern--overview.jpg) no-repeat center center fixed;
|
---|
38 | background-size: cover;
|
---|
39 | height: 100%;
|
---|
40 | overflow: hidden;
|
---|
41 | }
|
---|
42 |
|
---|
43 | html, body {
|
---|
44 | margin: 0;
|
---|
45 | padding: 0;
|
---|
46 | border: 0;
|
---|
47 | }
|
---|
48 |
|
---|
49 | body {
|
---|
50 | position: fixed;
|
---|
51 | top: 0;
|
---|
52 | right: 0;
|
---|
53 | bottom: 0;
|
---|
54 | left: 0;
|
---|
55 | font-family: Helvetica, Arial, "Open Sans", OpenSans, sans-serif;
|
---|
56 | text-align: center;
|
---|
57 | color: #fff;
|
---|
58 | }
|
---|
59 |
|
---|
60 | header {
|
---|
61 | position: sticky;
|
---|
62 | top: 0;
|
---|
63 | width: 100%;
|
---|
64 | //height: 30px;
|
---|
65 | color: white;
|
---|
66 | background: linear-gradient(to right, rgba(13, 17, 22, 0.64), rgba(17, 21, 28, 0.64));
|
---|
67 | padding: 0.6rem;
|
---|
68 | border-bottom: 1px solid #181f2a;
|
---|
69 | z-index: 2;
|
---|
70 | }
|
---|
71 | */
|
---|
72 | html {
|
---|
73 | background: #102010 url(backgrounds/unsplash--dark-green-fern--overview.jpg) no-repeat center center fixed;
|
---|
74 | background-size: cover;
|
---|
75 | }
|
---|
76 |
|
---|
77 | html, body {
|
---|
78 | overflow: hidden;
|
---|
79 | height: 100%;
|
---|
80 | width: 100%;
|
---|
81 | margin: 0;
|
---|
82 | padding: 0;
|
---|
83 | border: 0;
|
---|
84 | }
|
---|
85 |
|
---|
86 | body {
|
---|
87 | font-family: Helvetica, Arial, "Open Sans", OpenSans, sans-serif;
|
---|
88 | color: #fff;
|
---|
89 | }
|
---|
90 |
|
---|
91 | #fixed-height {
|
---|
92 | height: 40px;
|
---|
93 | color: white;
|
---|
94 | background: linear-gradient(to right, rgba(13, 17, 22, 0.64), rgba(17, 21, 28, 0.64));
|
---|
95 | text-align: center;
|
---|
96 | }
|
---|
97 |
|
---|
98 | #remaining-height {
|
---|
99 | overflow: hidden;
|
---|
100 | position: absolute;
|
---|
101 | top: 40px;
|
---|
102 | bottom: 0;
|
---|
103 | width: 100%;
|
---|
104 | }
|
---|
105 |
|
---|
106 |
|
---|
107 | #drag-1, #drag-2 {
|
---|
108 | width: 25%;
|
---|
109 | min-height: 6.5em;
|
---|
110 | margin: 1rem 0 0 1rem;
|
---|
111 | background-color: #29e;
|
---|
112 | color: white;
|
---|
113 | border-radius: 0.75em;
|
---|
114 | padding: 4%;
|
---|
115 | touch-action: none;
|
---|
116 | user-select: none;
|
---|
117 | transform: translate(0px, 0px);
|
---|
118 | }
|
---|
119 |
|
---|
120 | .resize-drag {
|
---|
121 | width: 120px;
|
---|
122 | border-radius: 8px;
|
---|
123 | padding: 20px;
|
---|
124 | margin: 1rem;
|
---|
125 | background-color: #29e;
|
---|
126 | color: white;
|
---|
127 | font-size: 20px;
|
---|
128 | font-family: sans-serif;
|
---|
129 |
|
---|
130 | touch-action: none;
|
---|
131 |
|
---|
132 | /* This makes things *much* easier */
|
---|
133 | box-sizing: border-box;
|
---|
134 | }
|
---|
135 |
|
---|
136 |
|
---|
137 | #scale-element {
|
---|
138 | display: block;
|
---|
139 | max-width: 100%;
|
---|
140 | margin: 1rem auto;
|
---|
141 | touch-action: none;
|
---|
142 | }
|
---|
143 |
|
---|
144 | </style>
|
---|
145 | </head>
|
---|
146 |
|
---|
147 | <!--
|
---|
148 | https://www.w3docs.com/snippets/html/how-to-make-a-div-fill-the-height-of-the-remaining-space.html#:~:text=Another%20way%20of%20making%20a,to%20stretch%20the%20.
|
---|
149 | -->
|
---|
150 |
|
---|
151 | <body>
|
---|
152 | <header id="fixed-height">
|
---|
153 | <div style="padding-top: 0.6em;">Greenstone Tabletop Digital Library</div>
|
---|
154 | </header>
|
---|
155 |
|
---|
156 | <!--
|
---|
157 | <div class="wrapperXXX" style="position: absolute; height: 95%; width: 100%; margin: 0.8rem;">
|
---|
158 | -->
|
---|
159 | <div id="remaining-height">
|
---|
160 |
|
---|
161 | <!--
|
---|
162 | <div class="button" onclick="window.examples['iframe']()" style="background-color: #004000">Open DL Home</div>
|
---|
163 | -->
|
---|
164 |
|
---|
165 | <!--
|
---|
166 | <hr />
|
---|
167 | -->
|
---|
168 |
|
---|
169 | <div id="gesture-area" style="position: absolute; left: 700px; top: 30px; width: 576px; height: 384px;">
|
---|
170 | <img src="backgrounds/unsplash--matrix-like-binary.jpg"
|
---|
171 | style="width: 576px; height: 384px"
|
---|
172 | alt="sample image" id="scale-element" />
|
---|
173 | </div>
|
---|
174 |
|
---|
175 | <div id="drag-1" class="resize-drag">
|
---|
176 | <p> You can drag one element </p>
|
---|
177 | <p>Goto <a href="https://greenstone.org/">Greenstone3 Project Home Page</a></p>
|
---|
178 | </div>
|
---|
179 | <div id="drag-2" class="resize-drag">
|
---|
180 | <p> with each pointer </p>
|
---|
181 | <form>
|
---|
182 | <input type="text" />
|
---|
183 | </form>
|
---|
184 | </div>
|
---|
185 |
|
---|
186 |
|
---|
187 | <!--
|
---|
188 | <hr />
|
---|
189 | -->
|
---|
190 | <!--
|
---|
191 | <div style="position: relative; height: 400px; ">
|
---|
192 | <div id="myWindow" style="width: 500px; padding: 16px; background-color: #004000; position: absolute;">
|
---|
193 | <div style="width: 100% height 40px; background-color: #002000;">DIY Dragable</div>
|
---|
194 | <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. </p>
|
---|
195 | <p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
|
---|
196 | </div>
|
---|
197 | </div>
|
---|
198 |
|
---|
199 | <div style="position: relative">
|
---|
200 |
|
---|
201 | <div id="myWindow2" style="width: 500px; padding: 16px; background-color: #200000; position: absolute; left: 600px;">
|
---|
202 | <div style="width: 100% height 40px; background-color: #400000;">Fixed -- no handler</div>
|
---|
203 | <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. </p>
|
---|
204 | <p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
|
---|
205 | </div>
|
---|
206 | </div>
|
---|
207 |
|
---|
208 | </div>
|
---|
209 | -->
|
---|
210 | </div>
|
---|
211 | </body>
|
---|
212 | </html>
|
---|