Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.71 KB | None | 0 0
  1. <div class="hero">
  2.        
  3.         <div class="form-box">
  4.             <div class="button-box">
  5.                 <div id="btn"></div>
  6.                 <button type="button" class="toggle-btn" onclick="login()">Employee</button>
  7.                 <button type="button" class="toggle-btn" onclick="register()">Hirer</button>
  8.             </div>
  9.         <!--EMPLOYEE Registration Form -->
  10.         <form id="EMPLOYEE" class="input-group" action="" method="post">
  11.             <h3 class="input-field-title">Register as Employee</h3>
  12.             <!--First Name Input Box -->
  13.             <input type="text" class="input-field" placeholder="First Name" name="First_Name" >
  14.             <!--Last Name Input Box-->
  15.             <input type="text" class="input-field" placeholder="Last Name" name="Last_Name" >
  16.             <input type="text" class="input-field" name="username" placeholder="Username" required />
  17.            
  18.             <!--Email Input Box -->
  19.             <input type="text" class="input-field" placeholder="Email" name="email" >
  20.             <!--Password Input Box -->
  21.             <input type="password" class="input-field" placeholder="Enter Password" value="" name="password" >
  22.             <!--Option to add confirm password field
  23.            <input type="password" class="input-field" placeholder="Confirm Password" value="" name="employee_cpassword" id="employee_cpassword" required>
  24.            
  25.            <!--Upload Resume Button -->
  26.             <input class="resume-btn" type="file" name="resume" hidden="hidden">
  27.             <button class="resume-btn" type="button" >Upload Resume</button>
  28.             <span class="resume-btn-text" id="custom-text">No file chosen, yet.</span>
  29.             <input type="checkbox" class="check-box"><span>I agree to the terms & conditions</span>
  30.  
  31.            <button type="submit" class="submit-btn" name="submit">Register as Employee</button>
  32.  
  33.            <p class="link">Already have an account? <a href="login.php">Login here</a></p>
  34.        </form>
  35.            
  36.        <!--HIRER Registration Form -->
  37.        <form id="HIRER"class="input-group" action="" method="post">
  38.            <h3 class="input-field-title">Register as Hirer</h3>
  39.            <!--First Name Input Box -->
  40.            <input type="text" class="input-field" placeholder="First Name" name="First_Name" >
  41.            <!--Last Name Input Box-->
  42.            <input type="text" class="input-field" placeholder="Last Name" name="Last_Name" >
  43.            <!--Email Input Box -->
  44.            <input type="text" class="input-field" placeholder="Email" name="email" >
  45.            <!--Password Input Box -->
  46.            <input type="password" class="input-field" placeholder="Enter Password" value="" name="password" >
  47.            <input type="text" class="input-field" name="username" placeholder="Username" required />
  48.            <!--Option to add confirm password field
  49.            <input type="password" class="input-field" placeholder="Confirm Password" value="" name="hirer_cpassword" id="hirer_cpassword" required>
  50.            -->
  51.            <input type="checkbox" class="check-box"><span>I agree to the terms & conditions</span>
  52.            <button type="submit" class="submit-btn" name="submit">Register as Hirer</button>
  53.            <p class="link">Already have an account? <a href="login.php">Login here</a></p>
  54.        </form>
  55.        </div>
  56.        
  57.        
  58.    </div>
  59.    
  60.    
  61.    <!--Script for switching between Employee and Hirer tabs -->
  62.    <script>
  63.    var x = document.getElementById("EMPLOYEE");
  64.     var y = document.getElementById("HIRER");
  65.     var z = document.getElementById("btn");
  66.    
  67.     function register(){
  68.         x.style.left = "-400px";
  69.         y.style.left = "50px";
  70.         z.style.left = "110px";
  71.     }        
  72.     function login(){
  73.         x.style.left = "50px";
  74.         y.style.left = "450px";
  75.         z.style.left = "0";
  76.     }
  77.        
  78.     </script>
  79.    
  80.     <!--Script for showing the chosen file for the upload resume button -->
  81.     <!--this script return the given file name without including the path-->
  82.     <script type="text/javascript">
  83.         const resumeFile = document.getElementById("resume");
  84.         const resumeBtn = document.getElementById("resume_button");
  85.         const customText = document.getElementById("custom-text");
  86.        
  87.         resumeBtn.addEventListener("click", function(){
  88.             resumeFile.click();
  89.         });
  90.        
  91.         resumeFile.addEventListener("change", function(){
  92.             if(resumeFile.value){
  93.                 customText.innerHTML = resumeFile.value.match(/[\/\\]([\w\d\s\.\-\(\)]+)$/)[1];
  94.             } else{
  95.                 customText.innerHTML = "No file chosen, yet."
  96.             }
  97.         });
  98.        
  99.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement