Browse Source

Fixed personal home page config shortcut protocol error

tobychui 3 years ago
parent
commit
6e1688e016
1 changed files with 3 additions and 3 deletions
  1. 3 3
      web/SystemAO/www/config.html

+ 3 - 3
web/SystemAO/www/config.html

@@ -10,7 +10,7 @@
         <!-- CSS and JavaScript, access to scripe folder is not blocked for non logged in users-->
         <link rel="stylesheet" href="../../../script/semantic/semantic.min.css">
         <script src="../../../script/jquery.min.js"></script>
-        <script src="../../../script/ao_module.js"></script>
+        <!-- <script src="../../../script/ao_module.js"></script> -->
         <script src="../../../script/semantic/semantic.min.js"></script>
         <title>Personal Homepage</title>
         <style>
@@ -39,7 +39,7 @@
                 <ul class="list">
                     <li>You can host a static website using ArozOS</li>
                     <li>All website source are accessiable by your File Manager located inside your user file system</li>
-                    <li>Everyone can access your home page using <a id="homepageLink" target="_blank"><span class=".protocol">http:</span>//<span class="hostname"></span>:<span class="port"></span>/www/<span class="username">{your_username}</span>/</a></li>
+                    <li>Everyone can access your home page using <a id="homepageLink" target="_blank"><span class="protocol">http:</span>//<span class="hostname"></span>:<span class="port"></span>/www/<span class="username">{your_username}</span>/</a></li>
                 </ul>
             </div>
             <div class="ui container">
@@ -79,7 +79,7 @@
             if (window.location.port == ""){
                 $(".port").text("80");
             }
-            $(".protocol").text(location.protocol);
+            $(".protocol").text(window.location.protocol);
 
             initHomePageInfo();
             function initHomePageInfo(){