Move into wp-content path
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
17
wp-content/themes/Pirate-Rogue/js/customizer.js
Normal file
17
wp-content/themes/Pirate-Rogue/js/customizer.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Settings for Customizer Preview. Only used in Backend.
|
||||
*/
|
||||
|
||||
|
||||
( function( $ ) {
|
||||
wp.customize( 'pirate_rogue_footer_background_color', function( value ) {
|
||||
$("body[class^='footer-bgcol-']").removeClass( function() {
|
||||
return (this.className.match(/\b(footer-col-[a-z]+)\b/g) || []).join(' ');
|
||||
})
|
||||
|
||||
value.bind( function( newval ) {
|
||||
$( 'body' ).addClass( "footer-bgcol-"+newval );
|
||||
|
||||
} );
|
||||
} );
|
||||
} )( jQuery );
|
||||
1420
wp-content/themes/Pirate-Rogue/js/functions.js
Normal file
1420
wp-content/themes/Pirate-Rogue/js/functions.js
Normal file
File diff suppressed because one or more lines are too long
4
wp-content/themes/Pirate-Rogue/js/functions.min.js
vendored
Normal file
4
wp-content/themes/Pirate-Rogue/js/functions.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
87
wp-content/themes/Pirate-Rogue/js/jquery.fitvids.js
Normal file
87
wp-content/themes/Pirate-Rogue/js/jquery.fitvids.js
Normal file
@@ -0,0 +1,87 @@
|
||||
/*jshint browser:true */
|
||||
/*!
|
||||
* FitVids 1.1
|
||||
*
|
||||
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
*
|
||||
*/
|
||||
|
||||
;(function( $ ){
|
||||
|
||||
'use strict';
|
||||
|
||||
$.fn.fitVids = function( options ) {
|
||||
var settings = {
|
||||
customSelector: null,
|
||||
ignore: null
|
||||
};
|
||||
|
||||
if(!document.getElementById('fit-vids-style')) {
|
||||
// appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js
|
||||
var head = document.head || document.getElementsByTagName('head')[0];
|
||||
var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
|
||||
var div = document.createElement("div");
|
||||
div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>';
|
||||
head.appendChild(div.childNodes[1]);
|
||||
}
|
||||
|
||||
if ( options ) {
|
||||
$.extend( settings, options );
|
||||
}
|
||||
|
||||
return this.each(function(){
|
||||
var selectors = [
|
||||
'iframe[src*="player.vimeo.com"]',
|
||||
'iframe[src*="youtube.com"]',
|
||||
'iframe[src*="youtube-nocookie.com"]',
|
||||
'iframe[src*="kickstarter.com"][src*="video.html"]',
|
||||
'object',
|
||||
'embed'
|
||||
];
|
||||
|
||||
if (settings.customSelector) {
|
||||
selectors.push(settings.customSelector);
|
||||
}
|
||||
|
||||
var ignoreList = '.fitvidsignore';
|
||||
|
||||
if(settings.ignore) {
|
||||
ignoreList = ignoreList + ', ' + settings.ignore;
|
||||
}
|
||||
|
||||
var $allVideos = $(this).find(selectors.join(','));
|
||||
$allVideos = $allVideos.not('object object'); // SwfObj conflict patch
|
||||
$allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video.
|
||||
|
||||
$allVideos.each(function(){
|
||||
var $this = $(this);
|
||||
if($this.parents(ignoreList).length > 0) {
|
||||
return; // Disable FitVids on this video.
|
||||
}
|
||||
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
|
||||
if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width'))))
|
||||
{
|
||||
$this.attr('height', 9);
|
||||
$this.attr('width', 16);
|
||||
}
|
||||
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
|
||||
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
|
||||
aspectRatio = height / width;
|
||||
if(!$this.attr('name')){
|
||||
var videoName = 'fitvid' + $.fn.fitVids._count;
|
||||
$this.attr('name', videoName);
|
||||
$.fn.fitVids._count++;
|
||||
}
|
||||
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
|
||||
$this.removeAttr('height').removeAttr('width');
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// Internal counter for unique video names.
|
||||
$.fn.fitVids._count = 0;
|
||||
|
||||
// Works with either jQuery or Zepto
|
||||
})( window.jQuery || window.Zepto );
|
||||
10
wp-content/themes/Pirate-Rogue/js/jquery.fitvids.min.js
vendored
Normal file
10
wp-content/themes/Pirate-Rogue/js/jquery.fitvids.min.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
/*!
|
||||
* FitVids 1.1
|
||||
*
|
||||
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
*
|
||||
*/
|
||||
(function(a){a.fn.fitVids=function(b){var e={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var d=document.head||document.getElementsByTagName("head")[0];var c=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";var f=document.createElement("div");f.innerHTML='<p>x</p><style id="fit-vids-style">'+c+"</style>";d.appendChild(f.childNodes[1])}if(b){a.extend(e,b)}return this.each(function(){var g=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];if(e.customSelector){g.push(e.customSelector)}var h=".fitvidsignore";if(e.ignore){h=h+", "+e.ignore}var i=a(this).find(g.join(","));i=i.not("object object");i=i.not(h);i.each(function(){var n=a(this);if(n.parents(h).length>0){return}if(this.tagName.toLowerCase()==="embed"&&n.parent("object").length||n.parent(".fluid-width-video-wrapper").length){return}if((!n.css("height")&&!n.css("width"))&&(isNaN(n.attr("height"))||isNaN(n.attr("width")))){n.attr("height",9);n.attr("width",16)}var j=(this.tagName.toLowerCase()==="object"||(n.attr("height")&&!isNaN(parseInt(n.attr("height"),10))))?parseInt(n.attr("height"),10):n.height(),l=!isNaN(parseInt(n.attr("width"),10))?parseInt(n.attr("width"),10):n.width(),m=j/l;if(!n.attr("name")){var k="fitvid"+a.fn.fitVids._count;n.attr("name",k);a.fn.fitVids._count++}n.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",(m*100)+"%");n.removeAttr("height").removeAttr("width")})})};a.fn.fitVids._count=0})(window.jQuery||window.Zepto);
|
||||
30
wp-content/themes/Pirate-Rogue/js/jquery.misc.js
Normal file
30
wp-content/themes/Pirate-Rogue/js/jquery.misc.js
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* jQuery-viewport-checker - v1.8.7 - 2015-12-17
|
||||
* https://github.com/dirkgroenen/jQuery-viewport-checker
|
||||
*
|
||||
* Copyright (c) 2015 Dirk Groenen
|
||||
* Licensed MIT <https://github.com/dirkgroenen/jQuery-viewport-checker/blob/master/LICENSE>
|
||||
*/
|
||||
|
||||
!function(a){a.fn.viewportChecker=function(b){var c={classToAdd:"visible",classToRemove:"invisible",classToAddForFullView:"full-visible",removeClassAfterAnimation:!1,offset:100,repeat:!1,invertBottomOffset:!0,callbackFunction:function(a,b){},scrollHorizontal:!1,scrollBox:window};a.extend(c,b);var d=this,e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()},f=-1!=navigator.userAgent.toLowerCase().indexOf("webkit")||-1!=navigator.userAgent.toLowerCase().indexOf("windows phone")?"body":"html";return this.checkElements=function(){var b,g;c.scrollHorizontal?(b=a(f).scrollLeft(),g=b+e.width):(b=a(f).scrollTop(),g=b+e.height),d.each(function(){var d=a(this),f={},h={};if(d.data("vp-add-class")&&(h.classToAdd=d.data("vp-add-class")),d.data("vp-remove-class")&&(h.classToRemove=d.data("vp-remove-class")),d.data("vp-add-class-full-view")&&(h.classToAddForFullView=d.data("vp-add-class-full-view")),d.data("vp-keep-add-class")&&(h.removeClassAfterAnimation=d.data("vp-remove-after-animation")),d.data("vp-offset")&&(h.offset=d.data("vp-offset")),d.data("vp-repeat")&&(h.repeat=d.data("vp-repeat")),d.data("vp-scrollHorizontal")&&(h.scrollHorizontal=d.data("vp-scrollHorizontal")),d.data("vp-invertBottomOffset")&&(h.scrollHorizontal=d.data("vp-invertBottomOffset")),a.extend(f,c),a.extend(f,h),!d.data("vp-animated")||f.repeat){String(f.offset).indexOf("%")>0&&(f.offset=parseInt(f.offset)/100*e.height);var i=f.scrollHorizontal?d.offset().left:d.offset().top,j=f.scrollHorizontal?i+d.width():i+d.height(),k=Math.round(i)+f.offset,l=f.scrollHorizontal?k+d.width():k+d.height();f.invertBottomOffset&&(l-=2*f.offset),g>k&&l>b?(d.removeClass(f.classToRemove),d.addClass(f.classToAdd),f.callbackFunction(d,"add"),g>=j&&i>=b?d.addClass(f.classToAddForFullView):d.removeClass(f.classToAddForFullView),d.data("vp-animated",!0),f.removeClassAfterAnimation&&d.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){d.removeClass(f.classToAdd)})):d.hasClass(f.classToAdd)&&f.repeat&&(d.removeClass(f.classToAdd+" "+f.classToAddForFullView),f.callbackFunction(d,"remove"),d.data("vp-animated",!1))}})},("ontouchstart"in window||"onmsgesturechange"in window)&&a(document).bind("touchmove MSPointerMove pointermove",this.checkElements),a(c.scrollBox).bind("load scroll",this.checkElements),a(window).resize(function(b){e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()},d.checkElements()}),this.checkElements(),this}}(jQuery);
|
||||
//# sourceMappingURL=jquery.viewportchecker.min.js.map
|
||||
/*
|
||||
Sticky-kit v1.1.2 | MIT | Leaf Corcoran 2015 | http://leafo.net
|
||||
*/
|
||||
(function(){var c,f;c=this.jQuery||window.jQuery;f=c(window);c.fn.stick_in_parent=function(b){var A,w,B,n,p,J,k,E,t,K,q,L;null==b&&(b={});t=b.sticky_class;B=b.inner_scrolling;E=b.recalc_every;k=b.parent;p=b.offset_top;n=b.spacer;w=b.bottoming;null==p&&(p=0);null==k&&(k=void 0);null==B&&(B=!0);null==t&&(t="is_stuck");A=c(document);null==w&&(w=!0);J=function(a){var b;return window.getComputedStyle?(a=window.getComputedStyle(a[0]),b=parseFloat(a.getPropertyValue("width"))+parseFloat(a.getPropertyValue("margin-left"))+
|
||||
parseFloat(a.getPropertyValue("margin-right")),"border-box"!==a.getPropertyValue("box-sizing")&&(b+=parseFloat(a.getPropertyValue("border-left-width"))+parseFloat(a.getPropertyValue("border-right-width"))+parseFloat(a.getPropertyValue("padding-left"))+parseFloat(a.getPropertyValue("padding-right"))),b):a.outerWidth(!0)};K=function(a,b,q,C,F,u,r,G){var v,H,m,D,I,d,g,x,y,z,h,l;if(!a.data("sticky_kit")){a.data("sticky_kit",!0);I=A.height();g=a.parent();null!=k&&(g=g.closest(k));if(!g.length)throw"failed to find stick parent";
|
||||
v=m=!1;(h=null!=n?n&&a.closest(n):c("<div />"))&&h.css("position",a.css("position"));x=function(){var d,f,e;if(!G&&(I=A.height(),d=parseInt(g.css("border-top-width"),10),f=parseInt(g.css("padding-top"),10),b=parseInt(g.css("padding-bottom"),10),q=g.offset().top+d+f,C=g.height(),m&&(v=m=!1,null==n&&(a.insertAfter(h),h.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-p,u=a.outerHeight(!0),r=a.css("float"),h&&h.css({width:J(a),
|
||||
height:u,display:a.css("display"),"vertical-align":a.css("vertical-align"),"float":r}),e))return l()};x();if(u!==C)return D=void 0,d=p,z=E,l=function(){var c,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+d>C+q,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:d}).trigger("sticky_kit:unbottom"))),e<F&&(m=!1,d=p,null==n&&("left"!==r&&"right"!==r||a.insertAfter(h),h.detach()),c={position:"",width:"",top:""},a.css(c).removeClass(t).trigger("sticky_kit:unstick")),
|
||||
B&&(c=f.height(),u+p>c&&!v&&(d-=l,d=Math.max(c-u,d),d=Math.min(p,d),m&&a.css({top:d+"px"})))):e>F&&(m=!0,c={position:"fixed",top:d},c.width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(c).addClass(t),null==n&&(a.after(h),"left"!==r&&"right"!==r||h.append(a)),a.trigger("sticky_kit:stick")),m&&w&&(null==k&&(k=e+u+d>C+q),!v&&k)))return v=!0,"static"===g.css("position")&&g.css({position:"relative"}),a.css({position:"absolute",bottom:b,top:"auto"}).trigger("sticky_kit:bottom")},
|
||||
y=function(){x();return l()},H=function(){G=!0;f.off("touchmove",l);f.off("scroll",l);f.off("resize",y);c(document.body).off("sticky_kit:recalc",y);a.off("sticky_kit:detach",H);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:"",width:""});g.position("position","");if(m)return null==n&&("left"!==r&&"right"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on("touchmove",l),f.on("scroll",l),f.on("resize",y),c(document.body).on("sticky_kit:recalc",y),a.on("sticky_kit:detach",H),setTimeout(l,
|
||||
0)}};q=0;for(L=this.length;q<L;q++)b=this[q],K(c(b));return this}}).call(this);
|
||||
|
||||
/*!
|
||||
* FitVids 1.1
|
||||
*
|
||||
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
*
|
||||
*/
|
||||
(function(a){a.fn.fitVids=function(b){var e={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var d=document.head||document.getElementsByTagName("head")[0];var c=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";var f=document.createElement("div");f.innerHTML='<p>x</p><style id="fit-vids-style">'+c+"</style>";d.appendChild(f.childNodes[1])}if(b){a.extend(e,b)}return this.each(function(){var g=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];if(e.customSelector){g.push(e.customSelector)}var h=".fitvidsignore";if(e.ignore){h=h+", "+e.ignore}var i=a(this).find(g.join(","));i=i.not("object object");i=i.not(h);i.each(function(){var n=a(this);if(n.parents(h).length>0){return}if(this.tagName.toLowerCase()==="embed"&&n.parent("object").length||n.parent(".fluid-width-video-wrapper").length){return}if((!n.css("height")&&!n.css("width"))&&(isNaN(n.attr("height"))||isNaN(n.attr("width")))){n.attr("height",9);n.attr("width",16)}var j=(this.tagName.toLowerCase()==="object"||(n.attr("height")&&!isNaN(parseInt(n.attr("height"),10))))?parseInt(n.attr("height"),10):n.height(),l=!isNaN(parseInt(n.attr("width"),10))?parseInt(n.attr("width"),10):n.width(),m=j/l;if(!n.attr("name")){var k="fitvid"+a.fn.fitVids._count;n.attr("name",k);a.fn.fitVids._count++}n.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",(m*100)+"%");n.removeAttr("height").removeAttr("width")})})};a.fn.fitVids._count=0})(window.jQuery||window.Zepto);
|
||||
1031
wp-content/themes/Pirate-Rogue/js/jquery.tablesorter.js
Normal file
1031
wp-content/themes/Pirate-Rogue/js/jquery.tablesorter.js
Normal file
File diff suppressed because it is too large
Load Diff
4
wp-content/themes/Pirate-Rogue/js/jquery.tablesorter.min.js
vendored
Normal file
4
wp-content/themes/Pirate-Rogue/js/jquery.tablesorter.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
wp-content/themes/Pirate-Rogue/js/jquery.viewportchecker.min.js
vendored
Normal file
10
wp-content/themes/Pirate-Rogue/js/jquery.viewportchecker.min.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* jQuery-viewport-checker - v1.8.7 - 2015-12-17
|
||||
* https://github.com/dirkgroenen/jQuery-viewport-checker
|
||||
*
|
||||
* Copyright (c) 2015 Dirk Groenen
|
||||
* Licensed MIT <https://github.com/dirkgroenen/jQuery-viewport-checker/blob/master/LICENSE>
|
||||
*/
|
||||
|
||||
!function(a){a.fn.viewportChecker=function(b){var c={classToAdd:"visible",classToRemove:"invisible",classToAddForFullView:"full-visible",removeClassAfterAnimation:!1,offset:100,repeat:!1,invertBottomOffset:!0,callbackFunction:function(a,b){},scrollHorizontal:!1,scrollBox:window};a.extend(c,b);var d=this,e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()},f=-1!=navigator.userAgent.toLowerCase().indexOf("webkit")||-1!=navigator.userAgent.toLowerCase().indexOf("windows phone")?"body":"html";return this.checkElements=function(){var b,g;c.scrollHorizontal?(b=a(f).scrollLeft(),g=b+e.width):(b=a(f).scrollTop(),g=b+e.height),d.each(function(){var d=a(this),f={},h={};if(d.data("vp-add-class")&&(h.classToAdd=d.data("vp-add-class")),d.data("vp-remove-class")&&(h.classToRemove=d.data("vp-remove-class")),d.data("vp-add-class-full-view")&&(h.classToAddForFullView=d.data("vp-add-class-full-view")),d.data("vp-keep-add-class")&&(h.removeClassAfterAnimation=d.data("vp-remove-after-animation")),d.data("vp-offset")&&(h.offset=d.data("vp-offset")),d.data("vp-repeat")&&(h.repeat=d.data("vp-repeat")),d.data("vp-scrollHorizontal")&&(h.scrollHorizontal=d.data("vp-scrollHorizontal")),d.data("vp-invertBottomOffset")&&(h.scrollHorizontal=d.data("vp-invertBottomOffset")),a.extend(f,c),a.extend(f,h),!d.data("vp-animated")||f.repeat){String(f.offset).indexOf("%")>0&&(f.offset=parseInt(f.offset)/100*e.height);var i=f.scrollHorizontal?d.offset().left:d.offset().top,j=f.scrollHorizontal?i+d.width():i+d.height(),k=Math.round(i)+f.offset,l=f.scrollHorizontal?k+d.width():k+d.height();f.invertBottomOffset&&(l-=2*f.offset),g>k&&l>b?(d.removeClass(f.classToRemove),d.addClass(f.classToAdd),f.callbackFunction(d,"add"),g>=j&&i>=b?d.addClass(f.classToAddForFullView):d.removeClass(f.classToAddForFullView),d.data("vp-animated",!0),f.removeClassAfterAnimation&&d.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){d.removeClass(f.classToAdd)})):d.hasClass(f.classToAdd)&&f.repeat&&(d.removeClass(f.classToAdd+" "+f.classToAddForFullView),f.callbackFunction(d,"remove"),d.data("vp-animated",!1))}})},("ontouchstart"in window||"onmsgesturechange"in window)&&a(document).bind("touchmove MSPointerMove pointermove",this.checkElements),a(c.scrollBox).bind("load scroll",this.checkElements),a(window).resize(function(b){e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()},d.checkElements()}),this.checkElements(),this}}(jQuery);
|
||||
//# sourceMappingURL=jquery.viewportchecker.min.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/jquery.viewportchecker.js"],"names":["$","fn","viewportChecker","useroptions","options","classToAdd","classToRemove","classToAddForFullView","removeClassAfterAnimation","offset","repeat","invertBottomOffset","callbackFunction","elem","action","scrollHorizontal","scrollBox","window","extend","$elem","this","boxSize","height","width","scrollElem","navigator","userAgent","toLowerCase","indexOf","checkElements","viewportStart","viewportEnd","scrollLeft","scrollTop","each","$obj","objOptions","attrOptions","data","String","parseInt","rawStart","left","top","rawEnd","elemStart","Math","round","elemEnd","removeClass","addClass","one","hasClass","document","bind","resize","e","jQuery"],"mappings":"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","file":"jquery.viewportchecker.min.js"}
|
||||
3011
wp-content/themes/Pirate-Rogue/js/slick/slick-1.8.1.js
Normal file
3011
wp-content/themes/Pirate-Rogue/js/slick/slick-1.8.1.js
Normal file
File diff suppressed because it is too large
Load Diff
2
wp-content/themes/Pirate-Rogue/js/slick/slick-1.8.1.min.js
vendored
Normal file
2
wp-content/themes/Pirate-Rogue/js/slick/slick-1.8.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
wp-content/themes/Pirate-Rogue/js/sticky-kit.min.js
vendored
Normal file
10
wp-content/themes/Pirate-Rogue/js/sticky-kit.min.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Sticky-kit v1.1.2 | MIT | Leaf Corcoran 2015 | http://leafo.net
|
||||
*/
|
||||
(function(){var c,f;c=this.jQuery||window.jQuery;f=c(window);c.fn.stick_in_parent=function(b){var A,w,B,n,p,J,k,E,t,K,q,L;null==b&&(b={});t=b.sticky_class;B=b.inner_scrolling;E=b.recalc_every;k=b.parent;p=b.offset_top;n=b.spacer;w=b.bottoming;null==p&&(p=0);null==k&&(k=void 0);null==B&&(B=!0);null==t&&(t="is_stuck");A=c(document);null==w&&(w=!0);J=function(a){var b;return window.getComputedStyle?(a=window.getComputedStyle(a[0]),b=parseFloat(a.getPropertyValue("width"))+parseFloat(a.getPropertyValue("margin-left"))+
|
||||
parseFloat(a.getPropertyValue("margin-right")),"border-box"!==a.getPropertyValue("box-sizing")&&(b+=parseFloat(a.getPropertyValue("border-left-width"))+parseFloat(a.getPropertyValue("border-right-width"))+parseFloat(a.getPropertyValue("padding-left"))+parseFloat(a.getPropertyValue("padding-right"))),b):a.outerWidth(!0)};K=function(a,b,q,C,F,u,r,G){var v,H,m,D,I,d,g,x,y,z,h,l;if(!a.data("sticky_kit")){a.data("sticky_kit",!0);I=A.height();g=a.parent();null!=k&&(g=g.closest(k));if(!g.length)throw"failed to find stick parent";
|
||||
v=m=!1;(h=null!=n?n&&a.closest(n):c("<div />"))&&h.css("position",a.css("position"));x=function(){var d,f,e;if(!G&&(I=A.height(),d=parseInt(g.css("border-top-width"),10),f=parseInt(g.css("padding-top"),10),b=parseInt(g.css("padding-bottom"),10),q=g.offset().top+d+f,C=g.height(),m&&(v=m=!1,null==n&&(a.insertAfter(h),h.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-p,u=a.outerHeight(!0),r=a.css("float"),h&&h.css({width:J(a),
|
||||
height:u,display:a.css("display"),"vertical-align":a.css("vertical-align"),"float":r}),e))return l()};x();if(u!==C)return D=void 0,d=p,z=E,l=function(){var c,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+d>C+q,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:d}).trigger("sticky_kit:unbottom"))),e<F&&(m=!1,d=p,null==n&&("left"!==r&&"right"!==r||a.insertAfter(h),h.detach()),c={position:"",width:"",top:""},a.css(c).removeClass(t).trigger("sticky_kit:unstick")),
|
||||
B&&(c=f.height(),u+p>c&&!v&&(d-=l,d=Math.max(c-u,d),d=Math.min(p,d),m&&a.css({top:d+"px"})))):e>F&&(m=!0,c={position:"fixed",top:d},c.width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(c).addClass(t),null==n&&(a.after(h),"left"!==r&&"right"!==r||h.append(a)),a.trigger("sticky_kit:stick")),m&&w&&(null==k&&(k=e+u+d>C+q),!v&&k)))return v=!0,"static"===g.css("position")&&g.css({position:"relative"}),a.css({position:"absolute",bottom:b,top:"auto"}).trigger("sticky_kit:bottom")},
|
||||
y=function(){x();return l()},H=function(){G=!0;f.off("touchmove",l);f.off("scroll",l);f.off("resize",y);c(document.body).off("sticky_kit:recalc",y);a.off("sticky_kit:detach",H);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:"",width:""});g.position("position","");if(m)return null==n&&("left"!==r&&"right"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on("touchmove",l),f.on("scroll",l),f.on("resize",y),c(document.body).on("sticky_kit:recalc",y),a.on("sticky_kit:detach",H),setTimeout(l,
|
||||
0)}};q=0;for(L=this.length;q<L;q++)b=this[q],K(c(b));return this}}).call(this);
|
||||
29
wp-content/themes/Pirate-Rogue/js/xwolf-customizer.js
Normal file
29
wp-content/themes/Pirate-Rogue/js/xwolf-customizer.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Script run inside a Customizer control sidebar
|
||||
*/
|
||||
(function($) {
|
||||
wp.customize.bind('ready', function() {
|
||||
rangeSlider();
|
||||
});
|
||||
|
||||
var rangeSlider = function() {
|
||||
var slider = $('.range-slider'),
|
||||
range = $('.range-slider__range'),
|
||||
value = $('.range-slider__value');
|
||||
|
||||
slider.each(function() {
|
||||
|
||||
value.each(function() {
|
||||
var value = $(this).prev().attr('value');
|
||||
var suffix = ($(this).prev().attr('suffix')) ? $(this).prev().attr('suffix') : '';
|
||||
$(this).html(value + suffix);
|
||||
});
|
||||
|
||||
range.on('input', function() {
|
||||
var suffix = ($(this).attr('suffix')) ? $(this).attr('suffix') : '';
|
||||
$(this).next(value).html(this.value + suffix );
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user