4
wp-content/themes/scapegoat-master/js/libs/jquery.1.7.1.min.js
vendored
Normal file
4
wp-content/themes/scapegoat-master/js/libs/jquery.1.7.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
9
wp-content/themes/scapegoat-master/js/libs/jquery.easing.min.js
vendored
Normal file
9
wp-content/themes/scapegoat-master/js/libs/jquery.easing.min.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/* ============================================================
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
* https://raw.github.com/danro/jquery-easing/master/LICENSE
|
||||
* ======================================================== */jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;g||(g=e*.3*1.5);if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return b<1?-0.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return f==undefined&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return f==undefined&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return f==undefined&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return b<e/2?jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c:jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}});
|
||||
74
wp-content/themes/scapegoat-master/js/libs/jquery.fitvids.js
Normal file
74
wp-content/themes/scapegoat-master/js/libs/jquery.fitvids.js
Normal file
@@ -0,0 +1,74 @@
|
||||
/*global jQuery */
|
||||
/*jshint multistr:true browser:true */
|
||||
/*!
|
||||
* FitVids 1.0
|
||||
*
|
||||
* 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/
|
||||
*
|
||||
* Date: Thu Sept 01 18:00:00 2011 -0500
|
||||
*/
|
||||
|
||||
(function( $ ){
|
||||
|
||||
"use strict";
|
||||
|
||||
$.fn.fitVids = function( options ) {
|
||||
var settings = {
|
||||
customSelector: null
|
||||
};
|
||||
|
||||
if(!document.getElementById('fit-vids-style')) {
|
||||
|
||||
var div = document.createElement('div'),
|
||||
ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0],
|
||||
cssStyles = '­<style>.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%;}</style>';
|
||||
|
||||
div.className = 'fit-vids-style';
|
||||
div.id = 'fit-vids-style';
|
||||
div.style.display = 'none';
|
||||
div.innerHTML = cssStyles;
|
||||
|
||||
ref.parentNode.insertBefore(div,ref);
|
||||
|
||||
}
|
||||
|
||||
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 $allVideos = $(this).find(selectors.join(','));
|
||||
$allVideos = $allVideos.not("object object"); // SwfObj conflict patch
|
||||
|
||||
$allVideos.each(function(){
|
||||
var $this = $(this);
|
||||
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
|
||||
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('id')){
|
||||
var videoID = 'fitvid' + Math.floor(Math.random()*999999);
|
||||
$this.attr('id', videoID);
|
||||
}
|
||||
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
|
||||
$this.removeAttr('height').removeAttr('width');
|
||||
});
|
||||
});
|
||||
};
|
||||
// Works with either jQuery or Zepto
|
||||
})( window.jQuery || window.Zepto );
|
||||
5
wp-content/themes/scapegoat-master/js/libs/jquery.flexslider-min.js
vendored
Normal file
5
wp-content/themes/scapegoat-master/js/libs/jquery.flexslider-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* jQuery Smooth Scroll Plugin v1.4
|
||||
*
|
||||
* Date: Mon Apr 25 00:02:30 2011 EDT
|
||||
* Requires: jQuery v1.3+
|
||||
*
|
||||
* Copyright 2010, Karl Swedberg
|
||||
* Dual licensed under the MIT and GPL licenses (just like jQuery):
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
(function(c){function k(b){return b.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")}var l=k(location.pathname),m=function(b){var d=[],a=false,e=b.dir&&b.dir=="left"?"scrollLeft":"scrollTop";this.each(function(){if(!(this==document||this==window)){var f=c(this);if(f[e]()>0)d.push(this);else{f[e](1);a=f[e]()>0;f[e](0);a&&d.push(this)}}});if(b.el==="first"&&d.length)d=[d.shift()];return d};c.fn.extend({scrollable:function(b){return this.pushStack(m.call(this,{dir:b}))},
|
||||
firstScrollable:function(b){return this.pushStack(m.call(this,{el:"first",dir:b}))},smoothScroll:function(b){b=b||{};var d=c.extend({},c.fn.smoothScroll.defaults,b);this.die("click.smoothscroll").live("click.smoothscroll",function(a){var e=c(this),f=location.hostname===this.hostname||!this.hostname,g=d.scrollTarget||(k(this.pathname)||l)===l,i=this.hash,h=true;if(!d.scrollTarget&&(!f||!g||!i))h=false;else{f=d.exclude;g=0;for(var j=f.length;h&&g<j;)if(e.is(f[g++]))h=false;f=d.excludeWithin;g=0;for(j=
|
||||
f.length;h&&g<j;)if(e.closest(f[g++]).length)h=false}if(h){d.scrollTarget=b.scrollTarget||i;d.link=this;a.preventDefault();c.smoothScroll(d)}});return this}});c.smoothScroll=function(b,d){var a,e,f,g=0;e="offset";var i="scrollTop",h={};if(typeof b==="number"){a=c.fn.smoothScroll.defaults;f=b}else{a=c.extend({},c.fn.smoothScroll.defaults,b||{});if(a.scrollElement){e="position";a.scrollElement.css("position")=="static"&&a.scrollElement.css("position","relative")}f=d||c(a.scrollTarget)[e]()&&c(a.scrollTarget)[e]()[a.direction]||
|
||||
0}a=c.extend({link:null},a);i=a.direction=="left"?"scrollLeft":i;if(a.scrollElement){e=a.scrollElement;g=e[i]()}else e=c("html, body").firstScrollable();h[i]=f+g+a.offset;e.animate(h,{duration:a.speed,easing:a.easing,complete:function(){a.afterScroll&&c.isFunction(a.afterScroll)&&a.afterScroll.call(a.link,a)}})};c.smoothScroll.version="1.4";c.fn.smoothScroll.defaults={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,afterScroll:null,easing:"swing",speed:400}})(jQuery);
|
||||
4
wp-content/themes/scapegoat-master/js/libs/modernizr-2.6.2.min.js
vendored
Normal file
4
wp-content/themes/scapegoat-master/js/libs/modernizr-2.6.2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
178
wp-content/themes/scapegoat-master/js/script.js
Normal file
178
wp-content/themes/scapegoat-master/js/script.js
Normal file
@@ -0,0 +1,178 @@
|
||||
(function ($, document, window) {
|
||||
$(document).ready(function () {
|
||||
|
||||
/* Small OS Detection Function */
|
||||
var isMobile = {
|
||||
Android: function() {
|
||||
return navigator.userAgent.match(/Android/i);
|
||||
},
|
||||
BlackBerry: function() {
|
||||
return navigator.userAgent.match(/BlackBerry/i);
|
||||
},
|
||||
iOS: function() {
|
||||
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
|
||||
},
|
||||
Opera: function() {
|
||||
return navigator.userAgent.match(/Opera Mini/i);
|
||||
},
|
||||
Windows: function() {
|
||||
return navigator.userAgent.match(/IEMobile/i);
|
||||
},
|
||||
any: function() {
|
||||
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
|
||||
}
|
||||
};
|
||||
|
||||
/* Parallax for header and slider images*/
|
||||
if(!isMobile.any()) {
|
||||
parallaxScroll();
|
||||
$(window).scroll(parallaxScroll);
|
||||
}
|
||||
function parallaxScroll() {
|
||||
/* Get scrolled distance */
|
||||
var scrolled = $(window).scrollTop();
|
||||
scrolled = Math.round(scrolled);
|
||||
|
||||
/* Manipulate the header and slider images */
|
||||
var prlx = $('.parallax');
|
||||
if(prlx.length>0) {
|
||||
var parallaxOffset = prlx.offset().top;
|
||||
parallaxOffset = Math.round(parallaxOffset) + 10;
|
||||
|
||||
if(scrolled >= parallaxOffset) {
|
||||
parallaxOffset = Math.round(0+((scrolled - parallaxOffset) * 0.75));
|
||||
var opacity = 1 - parallaxOffset / 500;
|
||||
|
||||
prlx.find('img').css({
|
||||
'-webkit-transform' : 'translate3d(0px, ' + parallaxOffset + 'px, 0px)',
|
||||
'transform' : 'translate3d(0px, ' + parallaxOffset + 'px, 0px)',
|
||||
'opacity' : opacity
|
||||
});
|
||||
} else {
|
||||
prlx.find('img').css({
|
||||
'-webkit-transform' : 'translate3d(0px, 0px, 0px)',
|
||||
'transform' : 'translate3d(0px, 0px, 0px)',
|
||||
'opacity' : '1'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/* Manipulate the slider bakcground images */
|
||||
|
||||
var frPaSl = $('.front-page-slide');
|
||||
if(frPaSl.length>0) {
|
||||
var frPaSlOffset = frPaSl.offset().top;
|
||||
frPaSlOffset = Math.round(frPaSlOffset) + 10;
|
||||
|
||||
if(scrolled >= frPaSlOffset) {
|
||||
frPaSlOffset = Math.round(0+((scrolled - frPaSlOffset) * 0.75));
|
||||
var opacity = 1 - frPaSlOffset / 500;
|
||||
|
||||
frPaSl.css({
|
||||
'background-position' : 'center ' + frPaSlOffset + 'px',
|
||||
'opacity' : opacity
|
||||
});
|
||||
} else {
|
||||
frPaSl.css({
|
||||
'background-position' : 'center 0',
|
||||
'opacity' : '1'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function SameHeight() {
|
||||
var maxHeight1 = -1;
|
||||
var footerWidget = $('.footer-sidebar-inside');
|
||||
var heights1 = footerWidget.map(function () {
|
||||
return $(this).height();
|
||||
}).get(),
|
||||
maxHeight1 = Math.max.apply(null, heights1);
|
||||
footerWidget.each(function() {
|
||||
$(this).height('auto');
|
||||
$(this).height(maxHeight1);
|
||||
});
|
||||
|
||||
var maxHeight2 = -1;
|
||||
var footerList = $('#footer_navigation li').not('#footer_navigation li li');
|
||||
var heights2 = footerList.map(function () {
|
||||
return $(this).height();
|
||||
}).get(),
|
||||
maxHeight2 = Math.max.apply(null, heights2);
|
||||
footerList.each(function() {
|
||||
$(this).height('auto');
|
||||
$(this).height(maxHeight2);
|
||||
});
|
||||
/* Dynamic equal width in Footer-Menu */
|
||||
var c = footerList.length;
|
||||
var n = 100 / c;
|
||||
if(($(window).width() < 960) && ($(window).width() > 640)) {
|
||||
switch(c) {
|
||||
case (c = 4 || 8):
|
||||
footerList.css('width', '25%');
|
||||
break;
|
||||
case (c = 6 || 9):
|
||||
footerList.css('width', '33.333%');
|
||||
break;
|
||||
default:
|
||||
footerList.css('width', n + '%');
|
||||
}
|
||||
} else {
|
||||
switch(c) {
|
||||
case (c == 4 || 8):
|
||||
footerList.css('width', '25%');
|
||||
break;
|
||||
case (c == 12):
|
||||
footerList.css('width', '16.666%');
|
||||
break;
|
||||
case (c == 5 || 10 || 15):
|
||||
footerList.css('width', '20%');
|
||||
break;
|
||||
default:
|
||||
footerList.css('width', n + '%');
|
||||
}
|
||||
}
|
||||
}
|
||||
SameHeight();
|
||||
$(window).resize(SameHeight);
|
||||
|
||||
/* Dynamic equal width for Featured Links */
|
||||
var feLi = $('#featured-links li');
|
||||
var feLiCn = 100 / (feLi.length);
|
||||
feLi.css('width', feLiCn + '%');
|
||||
|
||||
/* Responsive Youtube/Vimeo Videos */
|
||||
$('.article').fitVids();
|
||||
$('.post-video').fitVids();
|
||||
|
||||
/* Check if Slider exists */
|
||||
var frPaSl = $('#front-page-slider')
|
||||
if(frPaSl.length>0) {
|
||||
/* Slider on Frontpage */
|
||||
frPaSl.flexslider({
|
||||
slideshow: true,
|
||||
useCSS: false,
|
||||
animation: 'slide',
|
||||
direction: 'horizontal',
|
||||
animationSpeed: 750,
|
||||
easing: 'easeOutExpo',
|
||||
reverse: false,
|
||||
touch: true,
|
||||
keyboard: true,
|
||||
pauseOnAction: false,
|
||||
pauseOnHover: false,
|
||||
pausePlay: true,
|
||||
pauseText: '<i class="fa fa-pause"></i>',
|
||||
playText: '<i class="fa fa-play"></i>',
|
||||
prevText: '<i class="fa fa-chevron-left"></i>',
|
||||
nextText: '<i class="fa fa-chevron-right"></i>',
|
||||
controlsContainer: '#front-page-slider-control-inside',
|
||||
start: function(slider) {
|
||||
$('body').removeClass('loading');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}(jQuery, document, window))
|
||||
Reference in New Issue
Block a user