JAVASCRIPT   32
custom js
Guest on 8th March 2023 12:14:01 PM


  1. /*************************************
  2. @@File: Job Stock  Template Custom Js
  3.  
  4. All custom js files contents are below
  5. **************************************
  6. * 01. Company Brand Carousel
  7. * 02. Client Story testimonial
  8. * 03. Bootstrap wysihtml5 editor
  9. * 04. Tab Js
  10. * 05. Add field Script
  11. **************************************/
  12.  
  13. (function($){
  14. "use strict";
  15.          
  16.          /*---Company Brand Carousel --*/
  17.          $("#company-brands").owlCarousel({
  18.                 items:5,
  19.                 itemsDesktop:[1199,5],
  20.                 itemsDesktopSmall:[979,4],
  21.                 itemsTablet:[768,3],
  22.                 itemsMobile: [600, 2],
  23.                 pagination: false,
  24.                 navigation:false,
  25.                 navigationText:["",""],
  26.                 autoPlay:true
  27.         });
  28.        
  29.         /*--- Client Story testimonial --*/
  30.         $("#client-testimonial-slider").owlCarousel({
  31.                 items:3,
  32.                 itemsDesktop:[1199,3],
  33.                 itemsDesktopSmall:[979,2],
  34.                 itemsTablet:[768,1],
  35.                 pagination: false,
  36.                 navigation:false,
  37.                 navigationText:["",""],
  38.                 autoPlay:true
  39.         });
  40.        
  41.         /*---Bootstrap wysihtml5 editor --*/   
  42.         $('.textarea').wysihtml5();
  43.        
  44.         /*---Tab Js --*/
  45.         $("#simple-design-tab a").on('click', function(e){
  46.                                 e.preventDefault();
  47.                                 $(this).tab('show');
  48.         });
  49.        
  50.         /*-----Add field Script------*/
  51.         $('.extra-field-box').each(function() {
  52.     var $wrapp = $('.multi-box', this);
  53.     $(".add-field", $(this)).on('click', function() {
  54.         $('.dublicat-box:first-child', $wrapp).clone(true).appendTo($wrapp).find('input').val('').focus();
  55.     });
  56.     $('.dublicat-box .remove-field', $wrapp).on('click', function() {
  57.         if ($('.dublicat-box', $wrapp).length > 1)
  58.             $(this).parent('.dublicat-box').remove();
  59.                 });
  60.         });
  61.                        
  62.         })(jQuery);

Raw Paste

Login or Register to edit or fork this paste. It's free.