1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- var onitirDoc;
- (function($) {
- 'use strict';
- onitirDoc = {
- init: function() {
- this.mobileMenu();
- this.productGird();
- },
- // 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();
- });
- // Sticky Header
- $(window).on('scroll', function() {
- var scroll = $(window).scrollTop();
- if (scroll < 110) {
- $('header.sticky-header').removeClass('sticky');
- } else {
- $('header.sticky-header').addClass('sticky');
- }
- if (scroll > 700){
- $('#scroll-up').css({'visibility': 'visible','opacity':'1'});
- }else{
- $('#scroll-up').css({'visibility': 'hidden','opacity':'0'});
- }
- })
- })(jQuery)
- function toTrade() {
- window.location.href = "./trade/index.html"
- }
- function toNews() {
- window.location.href = "../../news/index.html"
- }
|