Server IP : 66.29.132.124 / Your IP : 18.221.58.191 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/blog.diixadigital.com/wp-content/themes/rubik/js/ |
Upload File : |
/*! * * Copyright (c) David Bushell | http://dbushell.com/ * */ (function(window, document, undefined) { "use strict"; // helper functions var trim = function(str) { return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g,''); }; var hasClass = function(el, cn) { return (' ' + el.className + ' ').indexOf(' ' + cn + ' ') !== -1; }; var addClass = function(el, cn) { if (!hasClass(el, cn)) { el.className = (el.className === '') ? cn : el.className + ' ' + cn; } }; var removeClass = function(el, cn) { el.className = trim((' ' + el.className + ' ').replace(' ' + cn + ' ', ' ')); }; var hasParent = function(el, id) { if (el) { do { if (el.id === id) { return true; } if (el.nodeType === 9) { break; } } while((el = el.parentNode)); } return false; }; // normalize vendor prefixes var doc = document.documentElement; var transform_prop = window.Modernizr.prefixed('transform'), transition_prop = window.Modernizr.prefixed('transition'), transition_end = (function() { var props = { 'WebkitTransition' : 'webkitTransitionEnd', 'MozTransition' : 'transitionend', 'OTransition' : 'oTransitionEnd otransitionend', 'msTransition' : 'MSTransitionEnd', 'transition' : 'transitionend' }; return props.hasOwnProperty(transition_prop) ? props[transition_prop] : false; })(); window.App = (function() { var _init = false, app = { }; app.init = function() { if (_init) { return; } _init = true; addClass(doc, 'js-ready'); }; return app; })(); var pagecontainer = document.getElementById( 'page-inner-wrap' ); if (window.addEventListener) { window.addEventListener('DOMContentLoaded', window.App.init, false); } jQuery('.nav-open-btn').on('click', function() { jQuery(pagecontainer).find('.page-cover').css({"opacity":"0.5", "display":"block"}); addClass(doc, 'js-nav'); }); jQuery('.canvas-menu-close').on('click', function() { jQuery(pagecontainer).find('.page-cover').css({"opacity":"0.5", "display":"none"}); jQuery('#main-canvas-menu .sub-menu').slideUp(1); removeClass(doc, 'js-nav'); }); })(window, window.document);