From 0779fa4478124d48bce7761e02bea5717643cacc Mon Sep 17 00:00:00 2001
From: LaplongeJunior <laplongejunior@gmail.com>
Date: Thu, 13 Aug 2020 19:30:01 +0000
Subject: [PATCH] Added access to "rent a server" menu

---
 websites/prototype.html | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/websites/prototype.html b/websites/prototype.html
index e69aa55..48aa1c2 100644
--- a/websites/prototype.html
+++ b/websites/prototype.html
@@ -32,6 +32,12 @@ html{
     border: 1px solid #2b4f4f;
     color: white;
 }
+.btn-rentalshop {
+    background-color: #28381EFF;
+    border: 1px solid #B2B2B2FF;
+    color: #C1C1C1FF;
+  }
+
 .btn-bank {
     background-color: #072C3F;
     border: 1px solid #4B4B4B;
@@ -75,15 +81,21 @@ html{
   <br/>
   (The job list is password-restricted)
   </p> 
-  Password: <input id="access"/>
-  <button type="button" onclick="verifyPass('access','btn-private')">Submit</button>
+  <p class="password">
+    Password: <input id="access"/>
+    <button type="button" onclick="verifyPass('access','password','btn-private','btn-hackshop','btn-rentalshop')">Submit</button>
+  </p>
 </div>
 
 <script>
-function verifyPass(inputId, hiddenClass) {
+function verifyPass(inputId, areaId, hiddenClass, oldClass, newClass) {
  var x = document.getElementById(inputId).value;
- if(x=="11234813") {
-  document.getElementById(hiddenClass).style.display = "block";
- }
+ if(x!="11234813") return
+ document.getElementById(hiddenClass).style.display = "block";
+ var shop = document.getElementById('HackShopTools')
+ shop.id = 'InformaticaShop'
+ shop.classList.remove(oldClass)
+ shop.classList.add(newClass)
+ document.getElementById(areaId).style.display = "hidden";
 }
 </script>
-- 
GitLab