HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u112693849 (10625425)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /homepages/35/d967185540/htdocs/clickandbuilds/CEU/wp-content/themes/celebrityproject/js/main.js
new WOW().init();
  window.onscroll = function () {
                myFunction()
            };

            var navbar = document.getElementById("stick_bar");
            var sticky = 100;

            function myFunction() {
                if (window.pageYOffset >= sticky) {
                    navbar.classList.add("sticky1")
                } else {
                    navbar.classList.remove("sticky1");
                }
            }
$(document).ready(function(){
    $(".navigation-thumbs .item img").click(function(){
       var x = $(this).attr("data-src");
       var h = $(this).attr("data-heading");
       var d = $(this).attr("data-details");
      // alert(x);
       $(".video-space video source").attr("src", x);
       $("video").get(0).load();
       
       $("#video-heading").text(h);
       $("#video-details").text(d);
       
    });

    // $('.hero_slider').owlCarousel({
    //   autoplay: true,
    //   items: 1,
    //   nav: false,
    //   loop: true,
    //   autoplay: true,
    //   dots: true,
   
    //   }
    // })

    //Init the carousel
      initSlider();

      function initSlider() {
        $(".hero_slider").owlCarousel({
          items: 1,
          loop: true,
          autoplay: true,
          onInitialized: startProgressBar,
          onTranslate: resetProgressBar,
          onTranslated: startProgressBar
        });
      }

      function startProgressBar() {
        // apply keyframe animation
        $(".slide-progress").css({
          width: "100%",
          transition: "width 5000ms"
        });
      }

      function resetProgressBar() {
        $(".slide-progress").css({
          width: 0,
          transition: "width 0s"
        });
      }


    $('#awards_slider ').owlCarousel({
      autoplay: true,
      items: 1,
      nav: true,
      loop: true,
      // autoplayHoverPause: true,
      // animateOut: 'fadeOut',
      autoplay: true,
      // autoplayTimeout: 4000,
      // autoplayHoverPause: false,
      // smartSpeed: 3000,
      // autoplayHoverPause: false,
      dots: false,
      navText: ['<svg width="40" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><g>  <g>    <path d="M492,236H68.442l70.164-69.824c7.829-7.792,7.859-20.455,0.067-28.284c-7.792-7.83-20.456-7.859-28.285-0.068      l-104.504,104c-0.007,0.006-0.012,0.013-0.018,0.019c-7.809,7.792-7.834,20.496-0.002,28.314c0.007,0.006,0.012,0.013,0.018,0.019      l104.504,104c7.828,7.79,20.492,7.763,28.285-0.068c7.792-7.829,7.762-20.492-0.067-28.284L68.442,276H492      c11.046,0,20-8.954,20-20C512,244.954,503.046,236,492,236z"/>  </g></g></svg>','<svg width="40" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><g>  <g>   <path d="M506.134,241.843c-0.006-0.006-0.011-0.013-0.018-0.019l-104.504-104c-7.829-7.791-20.492-7.762-28.285,0.068  c-7.792,7.829-7.762,20.492,0.067,28.284L443.558,236H20c-11.046,0-20,8.954-20,20c0,11.046,8.954,20,20,20h423.557     l-70.162,69.824c-7.829,7.792-7.859,20.455-0.067,28.284c7.793,7.831,20.457,7.858,28.285,0.068l104.504-104      c0.006-0.006,0.011-0.013,0.018-0.019C513.968,262.339,513.943,249.635,506.134,241.843z"/>  </g></g></svg>'],
  
    })
});
if ($(window).width() < 767) {

    $(document).on('click', function () {
        var $trigger = $("li.menu-item-has-children");
        if ($trigger !== event.target && !$trigger.has(event.target).length) {
            $("li.menu-item-has-children").removeClass('show');
        }
    })

    $(".tp_bar_menu").on('click', function () {
        $(this).parent().siblings().removeClass('active');
        $(this).stop().parent().toggleClass('active');

    });
  $("li.menu-item-has-children").append("<span class='caret dy'></span>");
    $("li.menu-item-has-children .sub-menu + .caret").click(function () {
//     $(this).prev('.dropdown-menu').slideToggle();
         $(this).stop().parent().siblings().removeClass('show');
         $(this).stop().parent().toggleClass('show');
//        $(this).stop().next().slideToggle('fast');
//        $(this).parent().siblings().children(".sub-menu").slideUp("fast");
    });
     $(".navbar-toggle").on( "click", function() {
    this.classList.toggle( "active" );
  });
	
	
	
	$('[data-toggle="collapse"]').on('click', function () {
        $navMenuCont = $($(this).data('target'));
        $navMenuCont.animate({
            'width': 'toggle'
        }, 350);

        $(".menu-overlay").stop().fadeIn(300);
    });
    $(".menu-overlay").click(function (event) {
        $(".navbar-toggle").trigger("click");
        $(".menu-overlay").stop().fadeOut(300);
    });

}