HOME


Mini Shell 1.0
La Pieza.DO | Todo lo que buscas!

Bienvenido de nuevo!

Acceso Cuenta Delivery
DIR: /var/www/devs.lapieza.net/resources/views/frontend/registro-comercio/views/assets/js/
Upload File :
Current File : /var/www/devs.lapieza.net/resources/views/frontend/registro-comercio/views/assets/js/custom.js


$(document).ready(function() {


	'use strict';





  // /*-------------------------------------


  // Sticky NabBar


  // -------------------------------------*/


  // $(window).on('scroll', function () {


  //   var scroll = $(window).scrollTop();





  //   if (scroll >= 1) {


  //     $('.ugf-nav-wrap').addClass('fixed');


  //   } else {


  //     $('.ugf-nav-wrap').removeClass('fixed');


  //   }


  // });





  /*--------------------------------------------


  File Input


  --------------------------------------------*/


  // function handleChange(inputId) {


  //   var fileUploader = document.getElementById(inputId);


  //   var getFile = fileUploader.files





    


  //   var uploadedFile = getFile[getFile.length - 1];


  //   readFile(uploadedFile, inputId);


      





  // }





  // $('.input-file').on('change', function(e) {


  //   handleChange(e.target.id);


  // })





  // function readFile(uploadedFile, inputId) {


  //   if (uploadedFile) {


  //     var reader = new FileReader();


  //     reader.onload = () => {


  //       var parent = document.getElementById('p-' + inputId);


  //       parent.innerHTML = `<img class="preview-content img-fluid" src=${reader.result} />`;


  //     };





  //     reader.readAsDataURL(uploadedFile);


  //   }


  // };





	/*--------------------------------------------


	togglePassword


	--------------------------------------------*/





  function togglePassword(){


      let input = document.getElementById("inputPass");


      var eye = document.getElementById("eye");


      var eyeSlash = document.getElementById("eye-slash");





      if(input.type === "password"){


          input.type = "text"


          eye.style.display = "none";


          eyeSlash.style.display = "inline";


      } else {


          input.type = "password"


          eye.style.display = "inline";


          eyeSlash.style.display = "none";


      }


  }





  $('.pass-toggler-btn').on('click', 'i', function() {


  	togglePassword();


  })








  /*--------------------------------------------


  Owl Carousel


  --------------------------------------------*/





  $('.testimonial-carousel').owlCarousel({


    loop:true,


    items: 1,


    autoplay: true,


    autoplayHoverPause: true,


    dots: true,


    nav: false,


    autoplaySpeed: 600,


    dotsSpeed: 600,


    margin: 15


  })





  // $('.ugf-slider').owlCarousel({


  //   loop:true,


  //   items: 1,


  //   autoplay: true,


  //   autoplayHoverPause: true,


  //   dots: true,


  //   nav: false,


  //   autoplaySpeed: 600,


  //   dotsSpeed: 600,


  //   margin: 15


  // })





  /*--------------------------------------------


  Country Select


  --------------------------------------------*/





  // $("#country").countrySelect();





  // var windowWidth = $(window).width();





  // $(window).resize(function() {


  //   if(windowWidth != $(window).width()) {


  //     countryList()


  //   }


  // });





  // function countryList() {


  //   var screenSize = $(window).width();


  //   var countryInputWidth = $('#country').width();


  //   var countryListWidth = countryInputWidth;





  //   $('.kyc-form .country-list').width(countryListWidth + 86);


  // }


  // countryList();





  /*--------------------------------------------


  File Input


  --------------------------------------------*/





  // var fileInput  = document.querySelector( ".custom-file-input" );


  // var the_return = document.querySelector(".file-return");





  // $(fileInput).on('change', function(event) {


  //   $(the_return).html(this.value);


  // })








})