fix some error

pull/22/head
kimbioinfostudio 2020-07-01 23:18:30 +08:00
parent 850d312279
commit 6816e08d67
1 changed files with 3 additions and 3 deletions

View File

@ -245,9 +245,9 @@ require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'device.php');
</div>
<script src="assets/dashboard.min.js"></script>
<script language="JavaScript">
if $("#hostip").text().length > 15 {
var scale = Math.round($("#hostip").text().length /15 *10000) / 100 + "%"
$("#hostip").css("font-size", $scale)
if $("#hostip").text().length > 15 ){
var scale = Math.round(15 / $("#hostip").text().length * 15000) / 100 + "%";
$("#hostip").css("font-size", scale);
}
</script>