2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

f18style.css: hide scrollbar for fixedinput on windows and linux (Forum #82351)

git-svn-id: https://svn.fhem.de/fhem/trunk@17371 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-09-19 09:28:18 +00:00
parent b51b72edcd
commit 24614b2078
2 changed files with 17 additions and 0 deletions

View File

@ -27,6 +27,12 @@ input.maininput { margin-left:10px; }
}
#menu > table td { padding-top: 2px; }
/* Hide the scrollbar for fixed input */
body.fixedInput[data-os=linux] div#content::-webkit-scrollbar {display:none;}
body.fixedInput[data-os=linux] div#menu::-webkit-scrollbar {display:none;}
body.fixedInput[data-os=windows] div#content::-webkit-scrollbar {display:none;}
body.fixedInput[data-os=windows] div#menu::-webkit-scrollbar {display:none;}
#menu.hidden { left:-120%!important; }
#console { width:100%; top:2em; bottom:0px; position:absolute; overflow-y:auto;}
#errmsg { background-color: #000000; color: #FFFFFF;

View File

@ -13,6 +13,14 @@ var FW_root = "/fhem"; // root
var FW_availableJs={};
var FW_urlParams={};
var embedLoadRetry = 100;
var FW_os = "unknown";
if(FW_isiOS) { FW_os = "iOS";
} else if(navigator.userAgent.indexOf("Android") >= 0) { FW_os = "android";
} else if(navigator.userAgent.indexOf("OS X") >= 0) { FW_os = "osx";
} else if(navigator.userAgent.indexOf("Windows") >= 0) { FW_os = "windows";
} else if(navigator.userAgent.indexOf("Linux") >= 0) { FW_os = "linux";
}
// createFn returns an HTML Element, which may contain
// - setValueFn, which is called when data via longpoll arrives
@ -72,6 +80,8 @@ FW_jqueryReadyFn()
return;
FW_docReady = true;
FW_serverGenerated = $("body").attr("generated");
if(!FW_serverGenerated) // called from commandref.html
return;
FW_longpollType = $("body").attr("longpoll");
var ajs = $("body").attr("data-availableJs");
if(ajs) {
@ -309,6 +319,7 @@ FW_jqueryReadyFn()
FW_rawDef();
FW_treeMenu();
$("body").attr("data-os", FW_os);
// automatic reload for style change
if(location.search.indexOf("cmd=style%20select") > 0) {
$('a[href*="style set"],a[onclick*="style set"]').each(function(){