[php] FYP

Viewer

  1. <?php 
  2. $var = '$(function () {
  3.     "use strict";
  4.  
  5.     //======menu fix js======
  6.     if ($(\'.main_menu\').offset() != undefined) {
  7.         var navoff = $(\'.main_menu\').offset().top;
  8.         $(window).scroll(function () {
  9.             var scrolling = $(this).scrollTop();
  10.  
  11.             if (scrolling > navoff) {
  12.                 $(\'.main_menu\').addClass(\'menu_fix\');
  13.             } else {
  14.                 $(\'.main_menu\').removeClass(\'menu_fix\');
  15.             }
  16.         });
  17.     }
  18.  
  19.     //=========NICE SELECT=========
  20.     $(\'.select_js\').niceSelect();
  21.  
  22.  
  23.     //=======OFFER ITEM SLIDER======
  24.     $(\'.offer_item_slider\').slick({
  25.         slidesToShow: 3,
  26.         slidesToScroll: 1,
  27.         autoplay: true,
  28.         autoplaySpeed: 4000,
  29.         dots: false,
  30.         arrows: true,
  31.         nextArrow: \'<i class="far fa-long-arrow-right nextArrow"></i>\',
  32.         prevArrow: \'<i class="far fa-long-arrow-left prevArrow"></i>\',
  33.         responsive: [
  34.             {
  35.                 breakpoint: 1400,
  36.                 settings: {
  37.                     slidesToShow: 2,
  38.                 }
  39.             },
  40.             {
  41.                 breakpoint: 1200,
  42.                 settings: {
  43.                     slidesToShow: 2,
  44.                 }
  45.             },
  46.             {
  47.                 breakpoint: 992,
  48.                 settings: {
  49.                     slidesToShow: 2,
  50.                 }
  51.             },
  52.             {
  53.                 breakpoint: 768,
  54.                 settings: {
  55.                     slidesToShow: 1,
  56.                 }
  57.             },
  58.             {
  59.                 breakpoint: 576,
  60.                 settings: {
  61.                     arrows: false,
  62.                     slidesToShow: 1,
  63.                 }
  64.             }
  65.         ]
  66.     });
  67.  
  68.  
  69.     //*==========ISOTOPE==============
  70.     var $grid = $(\'.grid\').isotope({});
  71.  
  72.     $(\'.menu_filter\').on(\'click\', \'button\', function () {
  73.         var filterValue = $(this).attr(\'data-filter\');
  74.         $grid.isotope({
  75.             filter: filterValue
  76.         });
  77.     });
  78.  
  79.     //active class
  80.     $(\'.menu_filter button\').on("click", function (event) {
  81.  
  82.         $(this).siblings(\'.active\').removeClass(\'active\');
  83.         $(this).addClass(\'active\');
  84.         event.preventDefault();
  85.     });
  86.  
  87.  
  88.     //=======TEAM SLIDER======
  89.     $(\'.team_slider\').slick({
  90.         slidesToShow: 4,
  91.         slidesToScroll: 1,
  92.         autoplay: true,
  93.         autoplaySpeed: 4000,
  94.         dots: false,
  95.         arrows: true,
  96.         nextArrow: \'<i class="far fa-long-arrow-right nextArrow"></i>\',
  97.         prevArrow: \'<i class="far fa-long-arrow-left prevArrow"></i>\',
  98.         responsive: [
  99.             {
  100.                 breakpoint: 1400,
  101.                 settings: {
  102.                     slidesToShow: 3,
  103.                 }
  104.             },
  105.             {
  106.                 breakpoint: 1200,
  107.                 settings: {
  108.                     slidesToShow: 3,
  109.                 }
  110.             },
  111.             {
  112.                 breakpoint: 992,
  113.                 settings: {
  114.                     slidesToShow: 2,
  115.                 }
  116.             },
  117.             {
  118.                 breakpoint: 768,
  119.                 settings: {
  120.                     slidesToShow: 2,
  121.                 }
  122.             },
  123.             {
  124.                 breakpoint: 576,
  125.                 settings: {
  126.                     arrows: false,
  127.                     slidesToShow: 1,
  128.                 }
  129.             }
  130.         ]
  131.     });
  132.  
  133.  
  134.     //=======DOWNLOAD SLIDER======
  135.     $(\'.download_slider\').slick({
  136.         slidesToShow: 4,
  137.         slidesToScroll: 1,
  138.         autoplay: true,
  139.         autoplaySpeed: 3000,
  140.         dots: false,
  141.         arrows: false,
  142.  
  143.         responsive: [
  144.             {
  145.                 breakpoint: 1400,
  146.                 settings: {
  147.                     slidesToShow: 3,
  148.                 }
  149.             },
  150.             {
  151.                 breakpoint: 1200,
  152.                 settings: {
  153.                     slidesToShow: 2,
  154.                 }
  155.             },
  156.             {
  157.                 breakpoint: 992,
  158.                 settings: {
  159.                     slidesToShow: 3,
  160.                 }
  161.             },
  162.             {
  163.                 breakpoint: 768,
  164.                 settings: {
  165.                     slidesToShow: 2,
  166.                 }
  167.             },
  168.             {
  169.                 breakpoint: 576,
  170.                 settings: {
  171.                     slidesToShow: 1,
  172.                 }
  173.             }
  174.         ]
  175.     });
  176.  
  177.  
  178.     //=======COUNTER JS=======
  179.     $(\'.counter\').countUp();
  180.  
  181.  
  182.     //=======OFFER ITEM SLIDER======
  183.     $(\'.testi_slider\').slick({
  184.         slidesToShow: 2,
  185.         slidesToScroll: 1,
  186.         autoplay: true,
  187.         autoplaySpeed: 4000,
  188.         dots: false,
  189.         arrows: true,
  190.         nextArrow: \'<i class="far fa-long-arrow-right nextArrow"></i>\',
  191.         prevArrow: \'<i class="far fa-long-arrow-left prevArrow"></i>\',
  192.         responsive: [
  193.             {
  194.                 breakpoint: 1400,
  195.                 settings: {
  196.                     slidesToShow: 2,
  197.                 }
  198.             },
  199.             {
  200.                 breakpoint: 1200,
  201.                 settings: {
  202.                     slidesToShow: 2,
  203.                 }
  204.             },
  205.             {
  206.                 breakpoint: 992,
  207.                 settings: {
  208.                     slidesToShow: 1,
  209.                 }
  210.             },
  211.             {
  212.                 breakpoint: 768,
  213.                 settings: {
  214.                     slidesToShow: 1,
  215.                 }
  216.             },
  217.             {
  218.                 breakpoint: 576,
  219.                 settings: {
  220.                     arrows: false,
  221.                     slidesToShow: 1,
  222.                 }
  223.             }
  224.         ]
  225.     });
  226.  
  227.  
  228.     //=======BRAND SLIDER======
  229.     $(\'.blog_slider\').slick({
  230.         slidesToShow: 3,
  231.         slidesToScroll: 1,
  232.         autoplay: true,
  233.         autoplaySpeed: 4000,
  234.         dots: false,
  235.         arrows: true,
  236.         nextArrow: \'<i class="far fa-long-arrow-right nextArrow"></i>\',
  237.         prevArrow: \'<i class="far fa-long-arrow-left prevArrow"></i>\',
  238.  
  239.         responsive: [
  240.             {
  241.                 breakpoint: 1400,
  242.                 settings: {
  243.                     slidesToShow: 3,
  244.                 }
  245.             },
  246.             {
  247.                 breakpoint: 1200,
  248.                 settings: {
  249.                     slidesToShow: 2,
  250.                 }
  251.             },
  252.             {
  253.                 breakpoint: 992,
  254.                 settings: {
  255.                     slidesToShow: 2,
  256.                 }
  257.             },
  258.             {
  259.                 breakpoint: 768,
  260.                 settings: {
  261.                     slidesToShow: 1,
  262.                 }
  263.             },
  264.             {
  265.                 breakpoint: 576,
  266.                 settings: {
  267.                     arrows: false,
  268.                     slidesToShow: 1,
  269.                 }
  270.             }
  271.         ]
  272.     });
  273.  
  274.  
  275.     //*=======SCROLL BUTTON=======
  276.     $(\'.tf__scroll_btn\').on(\'click\', function () {
  277.         $(\'html, body\').animate({
  278.             scrollTop: 0,
  279.         }, 300);
  280.     });
  281.  
  282.     $(window).on(\'scroll\', function () {
  283.         var scrolling = $(this).scrollTop();
  284.  
  285.         if (scrolling > 500) {
  286.             $(\'.tf__scroll_btn\').fadeIn();
  287.         } else {
  288.             $(\'.tf__scroll_btn\').fadeOut();
  289.         }
  290.     });
  291.  
  292.  
  293.     //======= VENOBOX.JS.=========
  294.     $(\'.venobox\').venobox();
  295.  
  296.  
  297.     //*========STICKY SIDEBAR=======
  298.     $("#sticky_sidebar").stickit({
  299.         top: 10,
  300.     })
  301.  
  302.  
  303.     //=======OFFER ITEM SLIDER======
  304.     $(\'.related_product_slider\').slick({
  305.         slidesToShow: 4,
  306.         slidesToScroll: 1,
  307.         autoplay: true,
  308.         autoplaySpeed: 4000,
  309.         dots: false,
  310.         arrows: true,
  311.         nextArrow: \'<i class="far fa-long-arrow-right nextArrow"></i>\',
  312.         prevArrow: \'<i class="far fa-long-arrow-left prevArrow"></i>\',
  313.  
  314.         responsive: [
  315.             {
  316.                 breakpoint: 1400,
  317.                 settings: {
  318.                     slidesToShow: 4,
  319.                 }
  320.             },
  321.             {
  322.                 breakpoint: 1200,
  323.                 settings: {
  324.                     slidesToShow: 3,
  325.                 }
  326.             },
  327.             {
  328.                 breakpoint: 992,
  329.                 settings: {
  330.                     slidesToShow: 2,
  331.                 }
  332.             },
  333.             {
  334.                 breakpoint: 768,
  335.                 settings: {
  336.                     slidesToShow: 2,
  337.                 }
  338.             },
  339.             {
  340.                 breakpoint: 576,
  341.                 settings: {
  342.                     arrows: false,
  343.                     slidesToShow: 1,
  344.                 }
  345.             }
  346.         ]
  347.     });
  348.  
  349.  
  350.     //======wow js=======
  351.     new WOW().init();
  352.  
  353.  
  354.     //=======PRODUCT DETAILS SLIDER======
  355.     if ($("#exzoom").length > 0) {
  356.         $("#exzoom").exzoom({
  357.             autoPlay: true,
  358.         });
  359.     }
  360.  
  361.     //=======SMALL DEVICE MENU ICON======
  362.     $(".navbar-toggler").on("click", function () {
  363.         $(".navbar-toggler").toggleClass("show");
  364.     });
  365.  
  366.  
  367. });
  368. ';

Editor

You can edit this paste and save as new:


File Description
  • FYP
  • Paste Code
  • 03 Oct-2023
  • 9.06 Kb
You can Share it: