░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/peoplemoverstheatre/wp-content/themes/radiance-lite/js
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: custom.js
var $j = jQuery.noConflict(); /* ---------------------------------------------------- */ /* PARALLAX */ /* ---------------------------------------------------- */ jQuery.fn.parallax = function(xpos, speedFactor) { 'use strict'; var firstTop, methods = {}; return this.each(function(idx, value) { var $this = jQuery(value), firstTop = $this.offset().top; if (arguments.length < 1 || xpos === null) xpos = "50%"; if (arguments.length < 2 || speedFactor === null) speedFactor = 0.1; methods = { update: function() { var pos = jQuery(window).scrollTop(); $this.each(function() { $this.css('backgroundPosition', xpos + " " + Math.round((firstTop - pos) * speedFactor) + "px"); }); }, init: function() { this.update(); jQuery(window).on('scroll', methods.update); } } return methods.init(); }); }; /*===========================================================*/ /* MOBILE MENU SCRIPT /*===========================================================*/ jQuery(document).ready(function(){ jQuery('#menu').superfish(); jQuery('#menu li:has(ul)').each(function(){ jQuery(this).addClass('has_child'); }); }); (function( $ ) { 'use strict'; $.fn.sktmobilemenu = function( options ) { var defaults = { 'fwidth': 1025 }; //call in the default otions var options = $.extend(defaults, options); var obj = $(this); return this.each(function() { if($(window).width() < options.fwidth) { sktMobileRes(); } $(window).resize(function() { if($(window).width() < options.fwidth) { sktMobileRes(); }else{ sktDeskRes(); } }); function sktMobileRes() { jQuery('#menu').superfish('destroy'); obj.addClass('skt-mob-menu').hide(); // obj.parent().css('position','relative'); if(obj.prev('.sktmenu-toggle').length === 0) { obj.before('<div class="sktmenu-toggle" id="responsive-nav-button"></div>'); } obj.parent().find('.sktmenu-toggle').removeClass('active'); } function sktDeskRes() { jQuery('#menu').superfish('init'); obj.removeClass('skt-mob-menu').show(); if(obj.prev('.sktmenu-toggle').length) { obj.prev('.sktmenu-toggle').remove(); } } obj.parent().on('click','.sktmenu-toggle',function() { if(!$(this).hasClass('active')){ $(this).addClass('active'); $(this).next('ul').stop(true,true).slideDown(); } else{ $(this).removeClass('active'); $(this).next('ul').stop(true,true).slideUp(); } }); }); }; })( jQuery ); jQuery(document).ready(function(){ 'use strict'; jQuery('#menu').sktmobilemenu(); //SEARCH BOX jQuery('.search-strip, .hsearch .hsearch-close').click(function() { jQuery('.hsearch .row-fluid').toggle(500, "easeInQuad" ); jQuery('body').toggleClass('overflowhide'); }); }); //BACK TO TOP ----------------------------------------- //----------------------------------------------------- jQuery(document).ready( function() { 'use strict'; jQuery('#back-to-top,#backtop').hide(); jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > 100) { jQuery('#back-to-top,#backtop').fadeIn(); } else { jQuery('#back-to-top,#backtop').fadeOut(); } }); jQuery('#back-to-top,#backtop').click(function(){ jQuery('html, body').animate({ scrollTop: 0 }, '3000'); }); }); //WAYPOINTS MAGIC ----------------------------------------- //--------------------------------------------------------- if ( typeof window['vc_waypoints'] !== 'function' ) { function vc_waypoints() { if (typeof jQuery.fn.waypoint !== 'undefined') { $j('.fade_in_hide').waypoint(function() { $j(this).addClass('skt_start_animation'); }, { offset: '90%' }); $j('.skt_animate_when_almost_visible').waypoint(function() { $j(this).addClass('skt_start_animation'); }, { offset: '90%' }); } } } jQuery(document).ready(function($) { 'use strict'; vc_waypoints(); }); //------------------------------------------------------------ jQuery(document).ready(function($) { jQuery("#menu-main a").click(function(event){ if (/#/.test(this.href)) { event.preventDefault(); jQuery('html,body').animate({scrollTop:jQuery('#'+this.hash.substr(1)).offset().top - 150}, 500); } }); });
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 cbpAnimatedHeader.js
JS
3.5 KB
2017-05-12 06:48
EDIT
📄 custom.js
JS
4.3 KB
2017-05-12 06:48
EDIT
📄 jquery.easing.1.3.js
JS
7.8 KB
2017-05-12 06:48
EDIT
📄 superfish.js
JS
8.1 KB
2017-05-12 06:48
EDIT
📄 waypoints.min.js
JS
19.3 KB
2017-05-12 06:48
EDIT