fix some error
parent
850d312279
commit
6816e08d67
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue