浏览代码

Add files via upload

Daniele Bonini (皮夕): WebDev, DevOps and project care by lots of Simplicity bits 3 年之前
父节点
当前提交
a04e5074bb
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      Public/static/js/home.js

+ 6 - 3
Public/static/js/home.js

@@ -180,7 +180,10 @@ function setContentPos() {
   $("#Console").css("height", newConsoleHeight + "px");
   $("#Console").css("height", newConsoleHeight + "px");
   //$("#Messagep").css("top", (newConsoleHeight - 433) + "px");
   //$("#Messagep").css("top", (newConsoleHeight - 433) + "px");
   msgKrect=document.getElementById("MessageK").getBoundingClientRect();
   msgKrect=document.getElementById("MessageK").getBoundingClientRect();
-  $("#MessageS").css("height",parseInt(msgKrect.height));
+  msgLineRect=document.getElementById("MessageLine").getBoundingClientRect();
+  $("#MessageS").css("height",parseInt(msgLineRect.height));
+  $("#MessageS").css("max-height",parseInt(msgLineRect.height));
+  $("#MessageLine").css("width", parseInt(msgKrect.width - 115) + "px");
   window.scroll(0, 0);
   window.scroll(0, 0);
   $(document.body).css("overflow-y", "hidden");
   $(document.body).css("overflow-y", "hidden");
 }  
 }  
@@ -240,7 +243,7 @@ window.addEventListener("load", function() {
     setTimeout("setContentPos()", 5200);  
     setTimeout("setContentPos()", 5200);  
     setTimeout("setFooterPos()", 5300);
     setTimeout("setFooterPos()", 5300);
   } else {
   } else {
-    setTimeout("setContentPos()", 200);
+    setTimeout("setContentPos()", 100);
     setTimeout("setFooterPos()", 3000);
     setTimeout("setFooterPos()", 3000);
   }      
   }      
   
   
@@ -252,7 +255,7 @@ window.addEventListener("resize", function() {
     setTimeout("setContentPos()", 5200);
     setTimeout("setContentPos()", 5200);
     setTimeout("setFooterPos()", 5300);  
     setTimeout("setFooterPos()", 5300);  
   } else {
   } else {
-    setTimeout("setContentPos()", 200);
+    setTimeout("setContentPos()", 100);
     setTimeout("setFooterPos()", 3000);
     setTimeout("setFooterPos()", 3000);
   }      
   }