PHP Classes

File: assets/js/pages/form-wizard.init.js

Recommend this page to a friend!
  Classes of Braun Okoi Boniface   eprotech   assets/js/pages/form-wizard.init.js   Download  
File: assets/js/pages/form-wizard.init.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: eprotech
Application to access medical product suppliers
Author: By
Last change:
Date: 2 years ago
Size: 1,957 bytes
 

Contents

Class file image Download
document.querySelector("#profile-img-file-input")&&document.querySelector("#profile-img-file-input").addEventListener("change",function(){var e=document.querySelector(".user-profile-image"),t=document.querySelector(".profile-img-file-input").files[0],r=new FileReader;r.addEventListener("load",function(){e.src=r.result},!1),t&&r.readAsDataURL(t)}),document.querySelectorAll(".form-steps")&&Array.from(document.querySelectorAll(".form-steps")).forEach(function(l){l.querySelectorAll(".nexttab")&&Array.from(l.querySelectorAll(".nexttab")).forEach(function(t){var e=l.querySelectorAll('button[data-bs-toggle="pill"]');Array.from(e).forEach(function(e){e.addEventListener("show.bs.tab",function(e){e.target.classList.add("done")})}),t.addEventListener("click",function(){var e=t.getAttribute("data-nexttab");document.getElementById(e).click()})}),l.querySelectorAll(".previestab")&&Array.from(l.querySelectorAll(".previestab")).forEach(function(o){o.addEventListener("click",function(){for(var e=o.getAttribute("data-previous"),t=o.closest("form").querySelectorAll(".custom-nav .done").length,r=t-1;r<t;r++)o.closest("form").querySelectorAll(".custom-nav .done")[r]&&o.closest("form").querySelectorAll(".custom-nav .done")[r].classList.remove("done");document.getElementById(e).click()})});var n=l.querySelectorAll('button[data-bs-toggle="pill"]');n&&Array.from(n).forEach(function(r,o){r.setAttribute("data-position",o),r.addEventListener("click",function(){var e;r.getAttribute("data-progressbar")&&(e=document.getElementById("custom-progress-bar").querySelectorAll("li").length-1,e=o/e*100,document.getElementById("custom-progress-bar").querySelector(".progress-bar").style.width=e+"%"),0<l.querySelectorAll(".custom-nav .done").length&&Array.from(l.querySelectorAll(".custom-nav .done")).forEach(function(e){e.classList.remove("done")});for(var t=0;t<=o;t++)n[t].classList.contains("active")?n[t].classList.remove("done"):n[t].classList.add("done")})})});