Daniele Bonini | 5mode.com | WebDev | Translator преди 3 години
родител
ревизия
6aa73c413a
променени са 1 файла, в които са добавени 5 реда и са изтрити 7 реда
  1. 5 7
      HCjs/HC.js

+ 5 - 7
HCjs/HC.js

@@ -43,7 +43,11 @@ function encryptSha2(string) {
 
 function setFooterPos() {
   if (document.getElementById("footerCont")) {
-    tollerance = 25;
+	if ($("#Password").val() === "") {  
+      tollerance = 48;
+    } else {
+	  tollerance = 15;
+	}  	  
     $("#footerCont").css("top", parseInt( window.innerHeight - $("#footerCont").height() - tollerance ) + "px");
     $("#footer").css("top", parseInt( window.innerHeight - $("#footer").height() - tollerance ) + "px");
   }
@@ -83,9 +87,6 @@ window.addEventListener("load", function() {
     
   setTimeout("setFooterPos()", 3000);
 
-  $(".footer").css("width", parseInt(window.innerWidth)+"px");
-  $("#footerCont").css("width", parseInt(window.innerWidth)+"px");
-  
   document.getElementById("CommandLine").focus();  
   
 }, true);
@@ -94,9 +95,6 @@ window.addEventListener("resize", function() {
 
   setTimeout("setFooterPos()", 3000);
 
-  $(".footer").css("width", parseInt(window.innerWidth)+"px");
-  $("#footerCont").css("width", parseInt(window.innerWidth)+"px");
-
 }, true);