fix ipv6 out of box

pull/22/head
kimbioinfostudio 2020-07-01 23:03:55 +08:00
parent 6a11e0877a
commit 850d312279
1 changed files with 7 additions and 0 deletions

View File

@ -244,5 +244,12 @@ require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'device.php');
</div> </div>
</div> </div>
<script src="assets/dashboard.min.js"></script> <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)
}
</script>
</body> </body>
</html> </html>