pull/11/head
shaun feakes 2018-07-22 16:26:56 -05:00
parent 5d949c6452
commit ee08c7a16e
2 changed files with 6 additions and 10 deletions

View File

@ -59,6 +59,7 @@ Manual install for init-d systems
## New WEB UI (in beta)
* Doesn't work in MS Edge or MS Exploder browsers. (Firefox, Chrome, Safari & mobile versions of each) all seem to be fine.
* use http://aqualink.ip.address/hk/ to access new UI
* look in `<install_dir>/web/hk` hopefully customizing icon and background images are self explanatory.
* icons should be around 50x50 pixles and in PNG format, background any size in JPG or just delete the file if you want solid color.

View File

@ -416,17 +416,18 @@
if (w > h)
_landscape = true;
else
_landscape - false;
_landscape = false;
/*
Future change element sizes here if needed
*/
window.addEventListener("orientationchange", function() {
var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
if (w > h)
// Have no idea why this is reversed, but w is less then h in landscape when captured here.
if (w < h)
_landscape = true;
else
_landscape - false;
_landscape = false;
}, false);
}
@ -1028,13 +1029,7 @@
<!--<body onload='showTileOptions(false); test_harness();startWebsockets();'> -->
<body onload='showTileOptions(false); init(); startWebsockets();'>
<div id='body_wrap' class='body_wrap' onclick='showTileOptions(false);'>
<!--
<div id='message' class='message' onmousedown='hidemessage()'>
<div id='message-text' class='message-text'>
<b>Loading....</b>
</div>
</div>-->
<div id='body_wrap' class='body_wrap' onclick='showTileOptions(false);'>
<div id='wrapper' class="wrapper">
<div id="header" class="head">
<table border='0' width='100%' cellpadding='0' cellspacing='0'>