Skip to main content

Owl Slider JQuery

$(document).ready(function () {

    // Owl Slider Home
    $('.homeSlide').owlCarousel({
        loop: false,
        margin: 0,
        nav: false,
        items: 1,
        animateOut: 'fadeOut',
        animateIn: 'fadeIn',
        smartSpeed:100,
        mouseDrag:false,
        autoplay:true,
        dots:false
    });
  $('.mobileSlide').owlCarousel({
        loop: false,
        margin: 0,
        nav: false,
        items: 1,
        animateOut: 'fadeOut',
        animateIn: 'fadeIn',
        smartSpeed:100,
        mouseDrag:false,
        autoplay:true,
        dots:false
    });


$('.moodSlider').owlCarousel({
        loop: true,
        margin: 40,
        nav: false,
        items: 5,
        smartSpeed:1000,
        autoplay:true,
autoplayTimeout: 500,
 //autoplaySpeed: 1000, //Set AutoPlay to 3 seconds
        dots:false,
        //autoPlay: 3000, //Set AutoPlay to 3 seconds
        responsive:{ 
        0:{
          items:2,
    nav: true
        },
        767:{ 
          items:3,
    nav: true
        },
        970:{
          items:5,
    nav: true
        }
      }
    });

$('.teaSalonSlide').owlCarousel({
        loop: true,
        margin: 0,
        nav: false,
        items: 1,
 autoplay: true,
 autoPlaySpeed: 7000,
        autoPlayTimeout: 5000

    });

$('.videoSlider').owlCarousel({
        loop: true,
        margin: 0,
        nav: false,
        items: 1,
        smartSpeed:100,
        autoplay:true,
 autoPlaySpeed: 7000,
        autoPlayTimeout: 5000
    });

 $('.innerPrdctDetail').owlCarousel({
        items:1,
        loop:false,
        center:true,
        margin:0,
        URLhashListener:true,
        autoplayHoverPause:true,
        startPosition: 'URLHash',
        dots:false
    });

  $('.sliderPicsSli').owlCarousel({
        items:3,
        loop:false,
        margin:20,
        dots:false,
        nav: true,
         responsive:{ 
        0:{
          items:1,
         nav: true
        },
        767:{ 
          items:1,
      nav: true
        },
        970:{
          items:3,
          nav: true
        }
      }

    });

    /*
 * Drop down on sub menu
 */
var $as = $('.iconNavigate').click(function () {
    $(this).parent().toggleClass('active').find('.subMenu').slideToggle();
    $(this).parent().siblings().children('.subMenu').slideUp();
    $(this).parent().siblings().removeClass('active');
    return false;
});
    

    // Add open class on body
    $('.mobile-toggles').click(function () {
        $('body').toggleClass('open');
    });


    // Mobile toggle
    $('.mobile-toggles').click(function () {
        $('.navMain').slideToggle();
    });

    // On scroll add remove

    $(window).scroll(function () {
        if ($(this).scrollTop() > 30) {
            $('header').addClass("sticky");
        } else {
            $('header').removeClass("sticky");
        }
    });
});

Comments

Popular posts from this blog

High light Search Result In Wordpress

High light Search Result In Wordpress add this function in your themes function.php function highlight_results ( $ text ) {      if ( is_search ( ) ) { $ keys = implode ( '|' , explode ( ' ' , get_search_query ( ) ) ) ; $ text = preg_replace ( '/(' . $ keys . ')/iu' , '<span class="search-highlight">\0</span>' , $ text ) ;      }      return $ text ; } add_filter ( 'the_content' , 'highlight_results' ) ; add_filter ( 'the_excerpt' , 'highlight_results' ) ; add_filter ( 'the_title' , 'highlight_results' ) ;   function highlight_results_css ( ) { ? > <style> .search-highlight { background-color : #FF0 ; font-weight : bold ; } </style> < ? php } add_action ( 'wp_head' , 'highlight_results_css' ) ;

Redirect In contact form 7

add_action( 'wp_footer' , 'redirect_cf7' ); function redirect_cf7() { ?> < script type = "text/javascript" > document.addEventListener( 'wpcf7mailsent' , function ( event ) { if ( '1377' == event.detail.contactFormId ) { // Sends sumissions on form 947 to the first thank you page location = 'https://www.panelesyceldassolares.com/regreso' ; } else { // Sends submissions on all unaccounted for forms to the third thank you page location = 'https://www.panelesyceldassolares.com/regreso-2/' ; } }, false ); </ script > <?php }

Get Single Product By ID in Opencart

<?php if(!empty($_POST["country_id"])) {     $query ="SELECT * FROM oc_product WHERE product_id = '" . $_POST["country_id"] . "'";     $results = $this->db->query($query);   $query2 ="SELECT * FROM oc_product_description WHERE product_id = '" . $_POST["country_id"] . "'";   $results2 = $this->db->query($query2);   $rowresults2 = $results2->row;   $rowresults = $results->row;   $name1 = $rowresults['model'];   $name2 = $rowresults2['name'];   $name3 = $rowresults['price'];   $name4 = 'Exe.' ?>