Forráskód Böngészése

Add files via upload

Daniele Bonini | 5mode.com | WebDev | Translator 3 éve
szülő
commit
6aa73c413a
1 módosított fájl, 5 hozzáadás és 7 törlés
  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);