123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- var onitirDoc;
- (function($) {
- 'use strict';
- onitirDoc = {
- init: function() {
- this.slider();
- this.mobileMenu();
- this.productGird();
- },
- // Slider
- slider: function() {
- var bannerSlider = $('#bannerSlider');
- if (!bannerSlider.length) {
- return;
- }
- bannerSlider.on('beforeChange', function(e, slick, currentSlide, nextSlide) {
- });
- bannerSlider.slick({
- infinite: false,
- dots: true,
- variableWidth: false,
- arrows: false,
- autoplaySpeed: 5000,
- autoplay: true,
- cssEase: 'linear',
- // fade: true,
- // cssEase: 'ease'
- });
- },
- // Mobile Menu
- mobileMenu: function() {
- $('.mainmenu-area .main-menu .menu-items').meanmenu({
- meanMenuContainer: '.mobile-menu',
- meanScreenWidth: '991',
- meanRevealPosition: 'right',
- });
- },
- // Porduct Grid
- productGird: function() {
- var grid = jQuery('.grid-isotope');
- if (!grid.length) {
- return;
- }
- grid.isotope();
- jQuery('.grid-filter ul').on('click', 'li', function() {
- var filterValue = jQuery(this).attr('data-filter');
- grid.isotope({ filter: filterValue });
- });
- jQuery('.grid-filter ul li').on('click', function(event) {
- jQuery(this).siblings('.active').removeClass('active');
- jQuery(this).addClass('active');
- event.preventDefault();
- });
- }
- };
- // Document Ready
- $(document).ready(function() {
- onitirDoc.init();
- });
- $(window).on('scroll', function() {
- // Sticky Header
- var scroll = $(window).scrollTop();
- if (scroll < 110) {
- $('header.sticky-header').removeClass('sticky');
- } else {
- $('header.sticky-header').addClass('sticky');
- }
- })
- })(jQuery)
- function toTrade() {
- window.location.href = "./trade/index.html"
- }
- function toNews() {
- window.location.href = "../../news/index.html"
- }
|