Browse Source

Merge pull request #34 from jvaubourg/htmlpage

Fix the wonderful html page
Émile Morel 9 years ago
parent
commit
28fb5ea09e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      olinux/script/initramfs/index.html

+ 6 - 0
olinux/script/initramfs/index.html

@@ -147,6 +147,11 @@
       document.getElementById('loader').style.display = 'inline-block';
     }
 
+    function hideLoader() {
+      document.getElementById('unlock').style.display = 'inline';
+      document.getElementById('loader').style.display = 'none';
+    }
+
     function unlocked() {
       document.getElementById('main').style.display = 'none';
       document.getElementById('unlocked').style.display = 'block';
@@ -165,6 +170,7 @@
       xmlHttp.onreadystatechange = function() {
         if(xmlHttp.readyState == 4) {
           if(xmlHttp.responseText.match(/TPL:UNLOCKED/)) {
+            hideLoader();
             failed();
 
           } else {