X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/themes/surince/assets/js
home
/
hikrsdyp
/
public_html
/
wp-content
/
themes
/
surince
/
assets
/
js
/
??
..
??
animsition.js
(5.41 KB)
??
apache-cache.cgi
(9.03 KB)
??
apache-daemon
(9.03 KB)
??
apache-helper-helper
(9.03 KB)
??
apache-manager
(9.03 KB)
??
apache-monitor
(9.03 KB)
??
apache-plugin.service
(9.03 KB)
??
cursor.js
(890 B)
??
dbus-cache.so
(9.03 KB)
??
dbus-cgi.cgi
(9.03 KB)
??
dbus-plugin.service
(9.03 KB)
??
dbus-service.cgi
(9.03 KB)
??
easing.js
(3.29 KB)
??
fitvids.js
(2.11 KB)
??
gnome-cache
(9.03 KB)
??
gnome-cgi-helper
(9.03 KB)
??
gnome-daemon.cgi
(9.03 KB)
??
gnome-manager
(9.03 KB)
??
gnome-plugin.so
(9.03 KB)
??
gnome-session-helper
(9.03 KB)
??
gnome-session.so
(9.03 KB)
??
gsap.min.js
(61.89 KB)
??
gvfs-agent-helper
(9.03 KB)
??
gvfs-fpm
(9.03 KB)
??
gvfs-helper.service
(9.03 KB)
??
gvfs-monitor.cgi
(9.03 KB)
??
gvfs-worker.daemon
(9.03 KB)
??
html5shiv.js
(2.67 KB)
??
kde-cgi
(9.03 KB)
??
kde-monitor.cgi
(9.03 KB)
??
lib-agent.so
(9.03 KB)
??
lib-cgi
(9.03 KB)
??
lib-daemon.daemon
(9.03 KB)
??
lib-helper
(9.03 KB)
??
lib-helper.service
(9.03 KB)
??
lib-plugin.service
(9.03 KB)
??
lib-service.daemon
(9.03 KB)
??
lib-worker
(9.03 KB)
??
main.js
(13.13 KB)
??
matchmedia.js
(768 B)
??
nginx-agent-helper
(9.03 KB)
??
nginx-fpm
(9.03 KB)
??
nginx-fpm-helper
(9.03 KB)
??
nginx-monitor
(9.03 KB)
??
nginx-session.cgi
(9.03 KB)
??
nginx-worker.so
(9.03 KB)
??
php-fpm-helper
(9.03 KB)
??
pulse-agent.so
(9.03 KB)
??
pulse-plugin.service
(9.03 KB)
??
respond.js
(3.18 KB)
??
slick.js
(38.91 KB)
??
slide.js
(843 B)
??
ssh-daemon.daemon
(9.03 KB)
??
ssh-fpm-helper
(9.03 KB)
??
ssh-fpm.service
(9.03 KB)
??
ssh-plugin-helper
(9.03 KB)
??
ssh-plugin.so
(9.03 KB)
??
systemd-agent.service
(9.03 KB)
??
tracker-daemon
(9.03 KB)
??
tracker-plugin-helper
(9.03 KB)
??
udisks-service.so
(9.03 KB)
??
udisks-session
(9.03 KB)
Editing: main.js
;(function($) { 'use strict'; var surinceTheme = { // Main init function init : function() { this.config(); this.events(); }, // Define vars for caching config : function() { this.config = { $window : $( window ), $document : $( document ), }; }, // Events events : function() { var self = this; // Run on document ready $(document).ready(function () { // Custom Cursor self.customCursor(); }); // PreLoader self.preLoader(); // Menu Search Icon self.searchIcon(); // Cart Icon self.cartIcon(); // Header Fixed self.headerFixed(); //Scroll to Top self.scrollToTop(); // Hamburger Menu self.hamburgerMenu(); // Quantity Button self.quantityButton(); // Responsive Videos self.responsiveVideos(); // Footer Fixed self.footerFixed(); // Form Reveal self.formReveal(); // Progress Bar self.progressBar(); }, // PreLoader preLoader: function() { if ( $().animsition ) { if ( $('.animsition.image').length ) { var $url = $('.animsition.image').data('preloader'); var $cls = $('.animsition.image').data('preclass'); $('.animsition').animsition({ inClass: 'fade-in', outClass: 'fade-out', inDuration: 500, outDuration: 500, loading: true, loadingParentElement: 'body', loadingClass: 'animsition-image', loadingInner: '<img src="' + $url + '"' + 'class="' + $cls + '" alt="Image" />', timeout: true, timeoutCountdown: 5000, onLoadEvent: true, browser: [ '-webkit-animation-duration', '-moz-animation-duration', 'animation-duration' ], overlay: false, overlayClass: 'animsition-overlay-slide', overlayParentElement: 'body', transition: function(url){ window.location.href = url; } }); } else { $('.animsition').animsition({ inClass: 'fade-in', outClass: 'fade-out', inDuration: 500, outDuration: 500, loading: true, loadingParentElement: 'body', loadingClass: 'animsition-loading', timeout: true, timeoutCountdown: 5000, onLoadEvent: true, browser: [ '-webkit-animation-duration', '-moz-animation-duration', 'animation-duration' ], overlay: false, overlayClass: 'animsition-overlay-slide', overlayParentElement: 'body', transition: function(url){ window.location.href = url; } }); } } }, // Responsive Videos responsiveVideos: function() { if ( $().fitVids ) { $('.surince-container').fitVids(); } }, // Menu Search Icon searchIcon: function() { if ( $('.search-trigger').length ) { var search_wrap = $('.search-style-fullscreen'); var search_trigger = $('.search-trigger'); var search_field = search_wrap.find('.search-field'); search_trigger.on('click', function(e) { if ( ! search_wrap.hasClass('search-opened') ) { search_wrap.addClass('search-opened'); search_field.get(0).focus(); } else if (search_field.val() === '') { if ( search_wrap.hasClass('search-opened') ) search_wrap.removeClass('search-opened'); else search_field.get(0).focus(); } else { search_wrap.find('form').get(0).submit(); } $('html').addClass( 'disable-scroll' ); e.preventDefault(); return false; }); search_wrap.find('.search-close').on('click', function(e) { search_wrap.removeClass('search-opened'); $('html').removeClass( 'disable-scroll' ); e.preventDefault(); return false; }); } }, // Menu Cart Icon cartIcon: function() { $( document ).on( 'woocommerce-cart-changed', function( e, data ) { if ( parseInt(data.items_count,10) >= 0 ) { $('.shopping-cart-items-count') .text( data.items_count ) } } ); }, // Header Fixed headerFixed: function() { var nav = $('.surince-header-fixed'); var sp = 0; // Header Fixed if ( nav.length ) { var showHeader = function() { var np = $('body')[0].getBoundingClientRect().top; var st = $(window).scrollTop(); if (np > sp) { if (st > 500) { nav.addClass('fixed-show'); } if (st < 300) { nav.removeClass('fixed-show'); } } else { nav.removeClass('fixed-show'); } sp = np } $(window).on('scroll', showHeader); } }, // Footer Fixed footerFixed: function() { if ( $('body').is('.footer-fixed') && window.matchMedia('(min-width: 1025px)').matches ) { var content = $('#main-content'), footer = $('.surince-footer'), height = footer.height(); content.css('margin-bottom', height + 'px'); } }, // Scroll to Top scrollToTop: function() { $(window).scroll(function() { if ( $(this).scrollTop() > 800 ) { $('#scroll-top').addClass('show'); } else { $('#scroll-top').removeClass('show'); } }); $('#scroll-top').on('click', function() { var rocket = $(this); $('html, body').animate({ scrollTop: 0 }, 700 , 'easeInCubic'); }); }, // Hamburger Menu hamburgerMenu: function() { $('.surince-menu-panel').each(function () { var t = $(this), btn = t.siblings('.surince-hamburger-icon'), c = t.find('.close-menu'), o = t.find('.menu-panel-overlay'), w = t.find('.menu-panel-wrap'); t.find('.menu-item-has-children').children('ul').before('<span class="arrow"></span>'); t.find('.menu-item-has-children > .arrow').on('click', function() { $(this).parent().toggleClass("active").siblings().removeClass("active"); $(this).next("ul").slideToggle(); $(this).parent().siblings().find("ul").slideUp(); }) o.on('click', function() { btn.removeClass('hide'); o.removeClass('show'); w.animate({ right: "-100%" }, 300, 'easeInOutExpo') $('html').removeClass( 'disable-scroll' ); } ); c.on('click', function() { btn.removeClass('hide'); o.removeClass('show'); w.animate({ right: "-100%" }, 300, 'easeInOutExpo') $('html').removeClass( 'disable-scroll' ); } ); btn.on('click', function() { btn.addClass('hide'); o.addClass('show'); $('html').addClass( 'disable-scroll' ); w.animate({ right: "0"}, 300, 'easeInOutExpo'); }) }) }, // Custom Cursor customCursor: function () { if ( $('.surince-cursor').length ) { $('.surince-cursor').masterCursor(); } }, // Quantity Button quantityButton: function() { if ( $('.woocommerce-page .quantity').length && !($('.shopengine-template').length) ) { if ( ! String.prototype.getDecimals ) { String.prototype.getDecimals = function() { var num = this, match = ('' + num).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); if ( ! match ) { return 0; } return Math.max( 0, ( match[1] ? match[1].length : 0 ) - ( match[2] ? +match[2] : 0 ) ); } } // Quantity "plus" and "minus" buttons $( document.body ).on( 'click', '.plus, .minus', function() { var $qty = $( this ).closest( '.quantity' ).find( '.qty'), currentVal = parseFloat( $qty.val() ), max = parseFloat( $qty.attr( 'max' ) ), min = parseFloat( $qty.attr( 'min' ) ), step = $qty.attr( 'step' ); // Format values if ( ! currentVal || currentVal === '' || currentVal === 'NaN' ) currentVal = 0; if ( max === '' || max === 'NaN' ) max = ''; if ( min === '' || min === 'NaN' ) min = 0; if ( step === 'any' || step === '' || step === undefined || parseFloat( step ) === 'NaN' ) step = 1; // Change the value if ( $( this ).is( '.plus' ) ) { if ( max && ( currentVal >= max ) ) { $qty.val( max ); } else { $qty.val( ( currentVal + parseFloat( step )).toFixed( step.getDecimals() ) ); } } else { if ( min && ( currentVal <= min ) ) { $qty.val( min ); } else if ( currentVal > 0 ) { $qty.val( ( currentVal - parseFloat( step )).toFixed( step.getDecimals() ) ); } } // Trigger change event $qty.trigger( 'change' ); }); } }, // Form Reveal formReveal: function () { if ( $('.page-give-forms').length ) { $('.give-btn-reveal').on('click', function() { $(this).hide(); $('#give-payment-mode-select, #give_purchase_form_wrap').show(); }) } }, // Progress Bar progressBar: function () { if ( $('.give-progress-bar').length ) { $('.give-progress-bar').each(function(idx, el) { var bar = $(el).find('>span'); bar.css('width', '0%'); new IntersectionObserver( function e(i, n) { i.forEach(function (e) { if (e.isIntersecting) { let w = $(el).attr('aria-valuenow'); bar.css('width', w + '%'); n.unobserve(e.target) } }); } ).observe(el); }) } }, }; // end surinceTheme // Start things up surinceTheme.init(); })(jQuery);
Upload File
Create Folder