]> www.average.org Git - loctrkd.git/commitdiff
webdemo: use flexbox css
authorEugene Crosser <crosser@average.org>
Tue, 30 Aug 2022 14:10:36 +0000 (16:10 +0200)
committerEugene Crosser <crosser@average.org>
Tue, 30 Aug 2022 15:07:20 +0000 (17:07 +0200)
webdemo/index.html

index 8ef95011ec5792a5ff0ea389b90e92dfb34a595f..20beb34c86f0c9a1239ecf993252b0b0ea7ec080 100644 (file)
 </script>
 
 </head>
-<body onload="init();">
-       <div style="width:100%; height:2%" id="hdr">
+<body onload="init();" style="height: 100%; margin: 0; display: flex;
+                               flex-direction: column; font-size: 2.0vh;">
+       <div style="margin: 0;" id="hdr">
                <input id="imei" type="text" name="imei"
                 size="16" maxlength="16" placeholder="Enter IMEI"
                 autocomplete="off" onkeyup="handleKey(event)">
                <input type="button" id="clear" name="clear" value="Clear"
                 onclick="sendIMEI(true)" disabled>
                <span id="subslist"></span>
-               <span style="float:right">
-                       | <span id="devstatus"></span>
-                       | <span id="tstamp"></span>
-               </span>
        </div>
-       <div style="width:100%; height:97%" id="map"></div>
-       <div style="width:100%; height:1%">
-               <span id="sts"></span>
-               <span id="about" style="float:right">
+       <div style="flex-grow: 1;" id="map"></div>
+       <div style="display: flex; flex-direction: row; width: 100%;">
+               <div id="sts" style="flex: none;"></div>
+               | <div id="devstatus" style="flex: auto;"></div>
+               | <div id="tstamp" style="flex: auto;"></div>
+               | <div id="about" style="flex: none; font-size: 2.0vmin;">
                        <a href="http://www.average.org/loctrkd/">
-                               http://www.average.org/loctrkd/</a>
-               </span>
+                               http://www.average.org/loctrkd/</a></div>
        </div>
 </body>
 </html>