init commit2

This commit is contained in:
zino
2021-02-16 23:13:27 +01:00
parent 12b4ef5db4
commit 1011e8b282
815 changed files with 365513 additions and 0 deletions

View File

@@ -0,0 +1,259 @@
/*****************************************************************************************************
* jquery.themepunch.revmigrate.js - jQuery Plugin for Revolution Slider Migration from 4.x to 5.0
* @version: 1.0.1 (18.08.2015)
* @requires jQuery v1.7 or later (tested on 1.9)
* @author ThemePunch
*****************************************************************************************************/
(function($) {
var _R = jQuery.fn.revolution;
///////////////////////////////////////////
// EXTENDED FUNCTIONS AVAILABLE GLOBAL //
///////////////////////////////////////////
jQuery.extend(true,_R, {
// OUR PLUGIN HERE :)
migration: function(container,options) {
// PREPARE THE NEW OPTIONS
options = prepOptions(options);
// PREPARE LAYER ANIMATIONS
prepLayerAnimations(container,options);
return options;
}
});
var prepOptions = function(o) {
// PARALLAX FALLBACKS
if (o.parallaxLevels || o.parallaxBgFreeze) {
var p = new Object();
p.type = o.parallax
p.levels = o.parallaxLevels;
p.bgparallax = o.parallaxBgFreeze == "on" ? "off" : "on";
p.disable_onmobile = o.parallaxDisableOnMobile;
o.parallax = p;
}
if (o.disableProgressBar === undefined)
o.disableProgressBar = o.hideTimerBar || "off";
// BASIC FALLBACKS
if (o.startwidth || o.startheight) {
o.gridwidth = o.startwidth;
o.gridheight = o.startheight;
}
if (o.sliderType===undefined)
o.sliderType = "standard";
if (o.fullScreen==="on")
o.sliderLayout = "fullscreen";
if (o.fullWidth==="on")
o.sliderLayout = "fullwidth";
if (o.sliderLayout===undefined)
o.sliderLayout = "auto";
// NAVIGATION ARROW FALLBACKS
if (o.navigation===undefined) {
var n = new Object();
if (o.navigationArrows=="solo" || o.navigationArrows=="nextto") {
var a = new Object();
a.enable = true;
a.style = o.navigationStyle || "";
a.hide_onmobile = o.hideArrowsOnMobile==="on" ? true : false;
a.hide_onleave = o.hideThumbs >0 ? true : false;
a.hide_delay = o.hideThumbs>0 ? o.hideThumbs : 200;
a.hide_delay_mobile = o.hideNavDelayOnMobile || 1500;
a.hide_under = 0;
a.tmp = '';
a.left = {
h_align:o.soloArrowLeftHalign,
v_align:o.soloArrowLeftValign,
h_offset:o.soloArrowLeftHOffset,
v_offset:o.soloArrowLeftVOffset
};
a.right = {
h_align:o.soloArrowRightHalign,
v_align:o.soloArrowRightValign,
h_offset:o.soloArrowRightHOffset,
v_offset:o.soloArrowRightVOffset
};
n.arrows = a;
}
if (o.navigationType=="bullet") {
var b = new Object();
b.style = o.navigationStyle || "";
b.enable=true;
b.hide_onmobile = o.hideArrowsOnMobile==="on" ? true : false;
b.hide_onleave = o.hideThumbs >0 ? true : false;
b.hide_delay = o.hideThumbs>0 ? o.hideThumbs : 200;
b.hide_delay_mobile = o.hideNavDelayOnMobile || 1500;
b.hide_under = 0;
b.direction="horizontal";
b.h_align=o.navigationHAlign || "center";
b.v_align=o.navigationVAlign || "bottom";
b.space=5;
b.h_offset=o.navigationHOffset || 0;
b.v_offset=o.navigationVOffset || 20;
b.tmp='<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>';
n.bullets = b;
}
if (o.navigationType=="thumb") {
var t = new Object();
t.style=o.navigationStyle || "";
t.enable=true;
t.width=o.thumbWidth || 100;
t.height=o.thumbHeight || 50;
t.min_width=o.thumbWidth || 100;
t.wrapper_padding=2;
t.wrapper_color="#f5f5f5";
t.wrapper_opacity=1;
t.visibleAmount=o.thumbAmount || 3;
t.hide_onmobile = o.hideArrowsOnMobile==="on" ? true : false;
t.hide_onleave = o.hideThumbs >0 ? true : false;
t.hide_delay = o.hideThumbs>0 ? o.hideThumbs : 200;
t.hide_delay_mobile = o.hideNavDelayOnMobile || 1500;
t.hide_under = 0;
t.direction="horizontal";
t.span=false;
t.position="inner";
t.space=2;
t.h_align=o.navigationHAlign || "center";
t.v_align=o.navigationVAlign || "bottom";
t.h_offset=o.navigationHOffset || 0;
t.v_offset=o.navigationVOffset || 20;
t.tmp='<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>';
n.thumbnails = t;
}
o.navigation = n;
o.navigation.keyboardNavigation=o.keyboardNavigation || "on";
o.navigation.onHoverStop=o.onHoverStop || "on";
o.navigation.touch = {
touchenabled:o.touchenabled || "on",
swipe_treshold : o.swipe_treshold ||75,
swipe_min_touches : o.swipe_min_touches || 1,
drag_block_vertical:o.drag_block_vertical || false
};
}
o.fallbacks = {
isJoomla:o.isJoomla || false,
panZoomDisableOnMobile: o.parallaxDisableOnMobile || "off",
simplifyAll:o.simplifyAll || "on",
nextSlideOnWindowFocus:o.nextSlideOnWindowFocus || "off",
disableFocusListener:o.disableFocusListener || true
};
return o;
}
var prepLayerAnimations = function(container,opt) {
var c = new Object(),
cw = container.width(),
ch = container.height();
c.skewfromleftshort = "x:-50;skX:85;o:0";
c.skewfromrightshort = "x:50;skX:-85;o:0";
c.sfl = "x:-50;o:0";
c.sfr = "x:50;o:0";
c.sft = "y:-50;o:0";
c.sfb = "y:50;o:0";
c.skewfromleft = "x:top;skX:85;o:0";
c.skewfromright = "x:bottom;skX:-85;o:0";
c.lfl = "x:top;o:0";
c.lfr = "x:bottom;o:0";
c.lft = "y:left;o:0";
c.lfb = "y:right;o:0";
c.fade = "o:0";
var src = (Math.random()*720-360)
container.find('.tp-caption').each(function() {
var cp = jQuery(this),
rw = Math.random()*(cw*2)-cw,
rh = Math.random()*(ch*2)-ch,
rs = Math.random()*3,
rz = Math.random()*720-360,
rx = Math.random()*70-35,
ry = Math.random()*70-35,
ncc = cp.attr('class');
c.randomrotate = "x:{-400,400};y:{-400,400};sX:{0,2};sY:{0,2};rZ:{-180,180};rX:{-180,180};rY:{-180,180};o:0;";
if (ncc.match("randomrotate")) cp.data('transform_in',c.randomrotate)
else
if (ncc.match(/\blfl\b/)) cp.data('transform_in',c.lfl)
else
if (ncc.match(/\blfr\b/)) cp.data('transform_in',c.lfr)
else
if (ncc.match(/\blft\b/)) cp.data('transform_in',c.lft)
else
if (ncc.match(/\blfb\b/)) cp.data('transform_in',c.lfb)
else
if (ncc.match(/\bsfl\b/)) cp.data('transform_in',c.sfl)
else
if (ncc.match(/\bsfr\b/)) cp.data('transform_in',c.sfr)
else
if (ncc.match(/\bsft\b/)) cp.data('transform_in',c.sft)
else
if (ncc.match(/\bsfb\b/)) cp.data('transform_in',c.sfb)
else
if (ncc.match(/\bskewfromleftshort\b/)) cp.data('transform_in',c.skewfromleftshort)
else
if (ncc.match(/\bskewfromrightshort\b/)) cp.data('transform_in',c.skewfromrightshort)
else
if (ncc.match(/\bskewfromleft\b/)) cp.data('transform_in',c.skewfromleft)
else
if (ncc.match(/\bskewfromright\b/)) cp.data('transform_in',c.skewfromright)
else
if (ncc.match(/\bfade\b/)) cp.data('transform_in',c.fade);
if (ncc.match(/\brandomrotateout\b/)) cp.data('transform_out',c.randomrotate)
else
if (ncc.match(/\bltl\b/)) cp.data('transform_out',c.lfl)
else
if (ncc.match(/\bltr\b/)) cp.data('transform_out',c.lfr)
else
if (ncc.match(/\bltt\b/)) cp.data('transform_out',c.lft)
else
if (ncc.match(/\bltb\b/)) cp.data('transform_out',c.lfb)
else
if (ncc.match(/\bstl\b/)) cp.data('transform_out',c.sfl)
else
if (ncc.match(/\bstr\b/)) cp.data('transform_out',c.sfr)
else
if (ncc.match(/\bstt\b/)) cp.data('transform_out',c.sft)
else
if (ncc.match(/\bstb\b/)) cp.data('transform_out',c.sfb)
else
if (ncc.match(/\bskewtoleftshortout\b/)) cp.data('transform_out',c.skewfromleftshort)
else
if (ncc.match(/\bskewtorightshortout\b/)) cp.data('transform_out',c.skewfromrightshort)
else
if (ncc.match(/\bskewtoleftout\b/)) cp.data('transform_out',c.skewfromleft)
else
if (ncc.match(/\bskewtorightout\b/)) cp.data('transform_out',c.skewfromright)
else
if (ncc.match(/\bfadeout\b/)) cp.data('transform_out',c.fade);
if (cp.data('customin')!=undefined) cp.data('transform_in',cp.data('customin'));
if (cp.data('customout')!=undefined) cp.data('transform_out',cp.data('customout'));
})
}
})(jQuery);

View File

@@ -0,0 +1,392 @@
/********************************************
* REVOLUTION 5.1.6 EXTENSION - PARALLAX
* @version: 1.2 (04.01.2016)
* @requires jquery.themepunch.revolution.js
* @author ThemePunch
*********************************************/
(function($) {
var _R = jQuery.fn.revolution,
_ISM = _R.is_mobile();
jQuery.extend(true,_R, {
/*callStaticDDDParallax: function(container,opt,li) {
// STATIC 3D PARALLAX MOVEMENTS
if (opt.parallax && (opt.parallax.ddd_path=="static" || opt.parallax.ddd_path=="both")) {
var coo = {},
path = li.data('3dpath');
coo.li = li;
if (path.split(',').length>1) {
coo.h = parseInt(path.split(',')[0],0);
coo.v = parseInt(path.split(',')[1],0);
container.trigger('trigger3dpath',coo);
}
}
},*/
checkForParallax : function(container,opt) {
var _ = opt.parallax;
if (_ISM && _.disable_onmobile=="on") return false;
if (_.type=="3D" || _.type=="3d") {
punchgs.TweenLite.set(opt.c,{overflow:_.ddd_overflow});
punchgs.TweenLite.set(opt.ul,{overflow:_.ddd_overflow});
if (opt.sliderType!="carousel" && _.ddd_shadow=="on") {
opt.c.prepend('<div class="dddwrappershadow"></div>')
punchgs.TweenLite.set(opt.c.find('.dddwrappershadow'),{force3D:"auto",transformPerspective:1600,transformOrigin:"50% 50%", width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:0});
}
}
opt.li.each(function() {
var li = jQuery(this);
if (_.type=="3D" || _.type=="3d") {
li.find('.slotholder').wrapAll('<div class="dddwrapper" style="width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden"></div>');
li.find('.tp-parallax-wrap').wrapAll('<div class="dddwrapper-layer" style="width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:5;overflow:'+_.ddd_layer_overflow+';"></div>');
// MOVE THE REMOVED 3D LAYERS OUT OF THE PARALLAX GROUP
li.find('.rs-parallaxlevel-tobggroup').closest('.tp-parallax-wrap').wrapAll('<div class="dddwrapper-layertobggroup" style="position:absolute;top:0px;left:0px;z-index:50;width:100%;height:100%"></div>');
var dddw = li.find('.dddwrapper'),
dddwl = li.find('.dddwrapper-layer'),
dddwlbg = li.find('.dddwrapper-layertobggroup');
dddwlbg.appendTo(dddw);
if (opt.sliderType=="carousel") {
if (_.ddd_shadow=="on") dddw.addClass("dddwrappershadow");
punchgs.TweenLite.set(dddw,{borderRadius:opt.carousel.border_radius});
}
punchgs.TweenLite.set(li,{overflow:"visible",transformStyle:"preserve-3d",perspective:1600});
punchgs.TweenLite.set(dddw,{force3D:"auto",transformOrigin:"50% 50%"});
punchgs.TweenLite.set(dddwl,{force3D:"auto",transformOrigin:"50% 50%",zIndex:5});
punchgs.TweenLite.set(opt.ul,{transformStyle:"preserve-3d",transformPerspective:1600});
}
});
for (var i = 1; i<=_.levels.length;i++)
opt.c.find('.rs-parallaxlevel-'+i).each(function() {
var pw = jQuery(this),
tpw = pw.closest('.tp-parallax-wrap');
tpw.data('parallaxlevel',_.levels[i-1])
tpw.addClass("tp-parallax-container");
});
if (_.type=="mouse" || _.type=="scroll+mouse" || _.type=="mouse+scroll" || _.type=="3D" || _.type=="3d") {
container.mouseenter(function(event) {
var currslide = container.find('.active-revslide'),
t = container.offset().top,
l = container.offset().left,
ex = (event.pageX-l),
ey = (event.pageY-t);
currslide.data("enterx",ex);
currslide.data("entery",ey);
});
container.on('mousemove.hoverdir, mouseleave.hoverdir, trigger3dpath',function(event,data) {
var currslide = data && data.li ? data.li : container.find('.active-revslide');
// CALCULATE DISTANCES
if (_.origo=="enterpoint") {
var t = container.offset().top,
l = container.offset().left;
if (currslide.data("enterx")==undefined) currslide.data("enterx",(event.pageX-l));
if (currslide.data("entery")==undefined) currslide.data("entery",(event.pageY-t));
var mh = currslide.data("enterx") || (event.pageX-l),
mv = currslide.data("entery") || (event.pageY-t),
diffh = (mh - (event.pageX - l)),
diffv = (mv - (event.pageY - t)),
s = _.speed/1000 || 0.4;
} else {
var t = container.offset().top,
l = container.offset().left,
diffh = (opt.conw/2 - (event.pageX-l)),
diffv = (opt.conh/2 - (event.pageY-t)),
s = _.speed/1000 || 3;
}
/*if (event.type=="trigger3dpath") {
diffh = data.h;
diffv = data.v;
_.ddd_lasth = diffh;
_.ddd_lastv = diffv;
}*/
if (event.type=="mouseleave") {
diffh = _.ddd_lasth || 0;
diffv = _.ddd_lastv || 0;
s = 1.5;
}
/*if (_.ddd_path=="static") {
diffh = _.ddd_lasth || 0;
diffv = _.ddd_lastv || 0;
}*/
var pcnts = [];
currslide.find(".tp-parallax-container").each(function(i){
pcnts.push(jQuery(this));
});
container.find('.tp-static-layers .tp-parallax-container').each(function(){
pcnts.push(jQuery(this));
});
jQuery.each(pcnts, function() {
var pc = jQuery(this),
bl = parseInt(pc.data('parallaxlevel'),0),
pl = _.type=="3D" || _.type=="3d" ? bl/200 : bl/100,
offsh = diffh * pl,
offsv = diffv * pl;
if (_.type=="scroll+mouse" || _.type=="mouse+scroll" )
punchgs.TweenLite.to(pc,s,{force3D:"auto",x:offsh,ease:punchgs.Power3.easeOut,overwrite:"all"});
else
punchgs.TweenLite.to(pc,s,{force3D:"auto",x:offsh,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"});
});
if (_.type=="3D" || _.type=="3d") {
var sctor = '.tp-revslider-slidesli .dddwrapper, .dddwrappershadow, .tp-revslider-slidesli .dddwrapper-layer';
if (opt.sliderType==="carousel") sctor = ".tp-revslider-slidesli .dddwrapper, .tp-revslider-slidesli .dddwrapper-layer";
opt.c.find(sctor).each(function() {
var t = jQuery(this),
pl = _.levels[_.levels.length-1]/200,
offsh = diffh * pl,
offsv = diffv * pl,
offrv = opt.conw == 0 ? 0 : Math.round((diffh / opt.conw * pl)*100) || 0,
offrh = opt.conh == 0 ? 0 : Math.round((diffv / opt.conh * pl)*100) || 0,
li = t.closest('li'),
zz = 0,
itslayer = false;
if (t.hasClass("dddwrapper-layer")) {
zz = _.ddd_z_correction || 65;
itslayer = true;
}
if (t.hasClass("dddwrapper-layer")) {
offsh=0;
offsv=0;
}
if (li.hasClass("active-revslide") || opt.sliderType!="carousel")
if (_.ddd_bgfreeze!="on" || (itslayer))
punchgs.TweenLite.to(t,s,{rotationX:offrh, rotationY:-offrv, x:offsh, z:zz,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"});
else
punchgs.TweenLite.to(t,0.5,{force3D:"auto",rotationY:0, rotationX:0, z:0,ease:punchgs.Power3.easeOut,overwrite:"all"});
else
punchgs.TweenLite.to(t,0.5,{force3D:"auto",rotationY:0,z:0,x:0,y:0, rotationX:0, z:0,ease:punchgs.Power3.easeOut,overwrite:"all"});
if (event.type=="mouseleave")
punchgs.TweenLite.to(jQuery(this),3.8,{z:0, ease:punchgs.Power3.easeOut});
});
}
});
if (_ISM)
window.ondeviceorientation = function(event) {
var y = Math.round(event.beta || 0)-70,
x = Math.round(event.gamma || 0);
var currslide = container.find('.active-revslide');
if (jQuery(window).width() > jQuery(window).height()){
var xx = x;
x = y;
y = xx;
}
var cw = container.width(),
ch = container.height(),
diffh = (360/cw * x),
diffv = (180/ch * y),
s = _.speed/1000 || 3,
pcnts = [];
currslide.find(".tp-parallax-container").each(function(i){
pcnts.push(jQuery(this));
});
container.find('.tp-static-layers .tp-parallax-container').each(function(){
pcnts.push(jQuery(this));
});
jQuery.each(pcnts, function() {
var pc = jQuery(this),
bl = parseInt(pc.data('parallaxlevel'),0),
pl = bl/100,
offsh = diffh * pl*2,
offsv = diffv * pl*4;
punchgs.TweenLite.to(pc,s,{force3D:"auto",x:offsh,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"});
});
if (_.type=="3D" || _.type=="3d") {
var sctor = '.tp-revslider-slidesli .dddwrapper, .dddwrappershadow, .tp-revslider-slidesli .dddwrapper-layer';
if (opt.sliderType==="carousel") sctor = ".tp-revslider-slidesli .dddwrapper, .tp-revslider-slidesli .dddwrapper-layer";
opt.c.find(sctor).each(function() {
var t = jQuery(this),
pl = _.levels[_.levels.length-1]/200
offsh = diffh * pl,
offsv = diffv * pl*3,
offrv = opt.conw == 0 ? 0 : Math.round((diffh / opt.conw * pl)*500) || 0,
offrh = opt.conh == 0 ? 0 : Math.round((diffv / opt.conh * pl)*700) || 0,
li = t.closest('li'),
zz = 0,
itslayer = false;
if (t.hasClass("dddwrapper-layer")) {
zz = _.ddd_z_correction || 65;
itslayer = true;
}
if (t.hasClass("dddwrapper-layer")) {
offsh=0;
offsv=0;
}
if (li.hasClass("active-revslide") || opt.sliderType!="carousel")
if (_.ddd_bgfreeze!="on" || (itslayer))
punchgs.TweenLite.to(t,s,{rotationX:offrh, rotationY:-offrv, x:offsh, z:zz,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"});
else
punchgs.TweenLite.to(t,0.5,{force3D:"auto",rotationY:0, rotationX:0, z:0,ease:punchgs.Power3.easeOut,overwrite:"all"});
else
punchgs.TweenLite.to(t,0.5,{force3D:"auto",rotationY:0,z:0,x:0,y:0, rotationX:0, z:0,ease:punchgs.Power3.easeOut,overwrite:"all"});
if (event.type=="mouseleave")
punchgs.TweenLite.to(jQuery(this),3.8,{z:0, ease:punchgs.Power3.easeOut});
});
}
}
}
_R.scrollTicker(opt,container);
},
scrollTicker : function(opt,container) {
var faut;
if (opt.scrollTicker!=true) {
opt.scrollTicker = true;
if (_ISM) {
punchgs.TweenLite.ticker.fps(150);
punchgs.TweenLite.ticker.addEventListener("tick",function() {_R.scrollHandling(opt);},container,false,1);
} else {
jQuery(window).on('scroll mousewheel DOMMouseScroll', function() {
_R.scrollHandling(opt,true);
});
}
}
_R.scrollHandling(opt, true);
},
// - SET POST OF SCROLL PARALLAX -
scrollHandling : function(opt,fromMouse) {
opt.lastwindowheight = opt.lastwindowheight || jQuery(window).height();
var t = opt.c.offset().top,
st = jQuery(window).scrollTop(),
b = new Object(),
_v = opt.viewPort,
_ = opt.parallax;
if (opt.lastscrolltop==st && !opt.duringslidechange && !fromMouse) return false;
//if (opt.lastscrolltop==st) return false;
function saveLastScroll(opt,st) {
opt.lastscrolltop = st;
}
punchgs.TweenLite.delayedCall(0.2,saveLastScroll,[opt,st]);
b.top = (t-st);
b.h = opt.conh==0 ? opt.c.height() : opt.conh;
b.bottom = (t-st) + b.h;
var proc = b.top<0 ? b.top / b.h : b.bottom>opt.lastwindowheight ? (b.bottom-opt.lastwindowheight) / b.h : 0;
opt.scrollproc = proc;
if (_R.callBackHandling)
_R.callBackHandling(opt,"parallax","start");
if (_v.enable) {
var area = 1-Math.abs(proc);
area = area<0 ? 0 : area;
// To Make sure it is not any more in %
if (!jQuery.isNumeric(_v.visible_area))
if (_v.visible_area.indexOf('%')!==-1)
_v.visible_area = parseInt(_v.visible_area)/100;
if (1-_v.visible_area<=area) {
if (!opt.inviewport) {
opt.inviewport = true;
_R.enterInViewPort(opt);
}
} else {
if (opt.inviewport) {
opt.inviewport = false;
_R.leaveViewPort(opt);
}
}
}
// SCROLL BASED PARALLAX EFFECT
if (_ISM && opt.parallax.disable_onmobile=="on") return false;
var pt = new punchgs.TimelineLite();
pt.pause();
if (_.type!="3d" && _.type!="3D") {
if (_.type=="scroll" || _.type=="scroll+mouse" || _.type=="mouse+scroll")
opt.c.find(".tp-parallax-container").each(function(i) {
var pc = jQuery(this),
pl = parseInt(pc.data('parallaxlevel'),0)/100,
offsv = proc * -(pl*opt.conh) || 0;
pc.data('parallaxoffset',offsv);
pt.add(punchgs.TweenLite.set(pc,{force3D:"auto",y:offsv}),0);
});
opt.c.find('.tp-revslider-slidesli .slotholder, .tp-revslider-slidesli .rs-background-video-layer').each(function() {
var t = jQuery(this),
l = t.data('bgparallax') || opt.parallax.bgparallax;
l = l == "on" ? 1 : l;
if (l!== undefined || l !== "off") {
var pl = opt.parallax.levels[parseInt(l,0)-1]/100,
offsv = proc * -(pl*opt.conh) || 0;
if (jQuery.isNumeric(offsv))
pt.add(punchgs.TweenLite.set(t,{position:"absolute",top:"0px",left:"0px",backfaceVisibility:"hidden",force3D:"true",y:offsv+"px"}),0);
}
});
}
if (_R.callBackHandling)
_R.callBackHandling(opt,"parallax","end");
pt.play(0);
}
});
//// END OF PARALLAX EFFECT
})(jQuery);

View File

@@ -0,0 +1 @@
window.tplogs = true;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
window.tplogs = true;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,89 @@
<?php
/**
* Facebook
*
* with help of the API this class delivers album images from Facebook
*
* @package socialstreams
* @subpackage socialstreams/facebook
* @author ThemePunch <info@themepunch.com>
*/
class TP_facebook {
/**
* Get User ID from its URL
*
* @since 1.0.0
* @param string $user_url URL of the Page
*/
public function get_user_from_url($user_url){
$theid = str_replace("https", "", $user_url);
$theid = str_replace("http", "", $theid);
$theid = str_replace("://", "", $theid);
$theid = str_replace("www.", "", $theid);
$theid = str_replace("facebook", "", $theid);
$theid = str_replace(".com", "", $theid);
$theid = str_replace("/", "", $theid);
$theid = explode("?", $theid);
return $theid[0];
}
/**
* Get Photosets List from User
*
* @since 1.0.0
* @param string $user_id Facebook User id (not name)
* @param int $item_count number of photos to pull
*/
public function get_photo_sets($user_id,$item_count=10){
//photoset params
$url = "https://graph.facebook.com/$user_id/albums";
$photo_sets_list = json_decode(file_get_contents($url));
return $photo_sets_list->data;
}
/**
* Get Photoset Photos
*
* @since 1.0.0
* @param string $photo_set_id Photoset ID
* @param int $item_count number of photos to pull
*/
public function get_photo_set_photos($photo_set_id,$item_count=10){
$url = "https://graph.facebook.com/v2.0/$photo_set_id?fields=photos";
$photo_set_photos = json_decode(file_get_contents($url));
return $photo_set_photos->photos->data;
}
/**
* Get Feed
*
* @since 1.0.0
* @param string $user User ID
* @param int $item_count number of itmes to pull
*/
public function get_post_feed($user,$app_id,$app_secret,$item_count=10){
$oauth = file_get_contents("https://graph.facebook.com/oauth/access_token?type=client_cred&client_id=".$app_id."&client_secret=".$app_secret);
$url = "https://graph.facebook.com/$user/feed?".$oauth."&fields=id,from,message,picture,link,name,icon,privacy,type,status_type,object_id,application,created_time,updated_time,is_hidden,is_expired,likes,comments";
$feed = json_decode(file_get_contents($url));
return $feed->data;
}
/**
* Decode URL from feed
*
* @since 1.0.0
* @param string $url facebook Output Data
*/
public static function decode_facebook_url($url) {
$url = str_replace('u00253A',':',$url);
$url = str_replace('\u00255C\u00252F','/',$url);
$url = str_replace('u00252F','/',$url);
$url = str_replace('u00253F','?',$url);
$url = str_replace('u00253D','=',$url);
$url = str_replace('u002526','&',$url);
return $url;
}
}
?>

View File

@@ -0,0 +1,265 @@
<?php
/**
* Flickr
*
* with help of the API this class delivers all kind of Images from flickr
*
* @package socialstreams
* @subpackage socialstreams/flickr
* @author ThemePunch <info@themepunch.com>
*/
class TP_flickr {
/**
* API key
*
* @since 1.0.0
* @access private
* @var string $api_key flickr API key
*/
private $api_key;
/**
* API params
*
* @since 1.0.0
* @access private
* @var array $api_param_defaults Basic params to call with API
*/
private $api_param_defaults;
/**
* Basic URL
*
* @since 1.0.0
* @access private
* @var string $url Url to fetch user from
*/
private $flickr_url;
/**
* Initialize the class and set its properties.
*
* @since 1.0.0
* @param string $api_key flickr API key.
*/
public function __construct($api_key) {
$this->api_key = $api_key;
$this->api_param_defaults = array(
'api_key' => $this->api_key,
'format' => 'json',
'nojsoncallback' => 1,
);
}
/**
* Calls Flicker API with set of params, returns json
*
* @since 1.0.0
* @param array $params Parameter build for API request
*/
private function call_flickr_api($params){
//build url
$encoded_params = array();
foreach ($params as $k => $v){
$encoded_params[] = urlencode($k).'='.urlencode($v);
}
//call the API and decode the response
$url = "https://api.flickr.com/services/rest/?".implode('&', $encoded_params);
$rsp = json_decode(file_get_contents($url));
return $rsp;
}
/**
* Get User ID from its URL
*
* @since 1.0.0
* @param string $user_url URL of the Gallery
*/
public function get_user_from_url($user_url){
//gallery params
$user_params = $this->api_param_defaults + array(
'method' => 'flickr.urls.lookupUser',
'url' => $user_url,
);
//set User Url
$this->flickr_url = $user_url;
//get gallery info
$user_info = $this->call_flickr_api($user_params);
return $user_info->user->id;
}
/**
* Get Group ID from its URL
*
* @since 1.0.0
* @param string $group_url URL of the Gallery
*/
public function get_group_from_url($group_url){
//gallery params
$group_params = $this->api_param_defaults + array(
'method' => 'flickr.urls.lookupGroup',
'url' => $group_url,
);
//set User Url
$this->flickr_url = $group_url;
//get gallery info
$group_info = $this->call_flickr_api($group_params);
return $group_info->group->id;
}
/**
* Get Public Photos
*
* @since 1.0.0
* @param string $user_id flicker User id (not name)
* @param int $item_count number of photos to pull
*/
public function get_public_photos($user_id,$item_count=10){
//public photos params
$public_photo_params = $this->api_param_defaults + array(
'method' => 'flickr.people.getPublicPhotos',
'user_id' => $user_id,
'extras' => 'description, license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags, o_dims, views, media, path_alias, url_sq, url_t, url_s, url_q, url_m, url_n, url_z, url_c, url_l, url_o',
'per_page'=> $item_count,
'page' => 1
);
//get photo list
$public_photos_list = $this->call_flickr_api($public_photo_params);
return $public_photos_list->photos->photo;
}
/**
* Get Photosets List from User
*
* @since 1.0.0
* @param string $user_id flicker User id (not name)
* @param int $item_count number of photos to pull
*/
public function get_photo_sets($user_id,$item_count=10){
//photoset params
$photo_set_params = $this->api_param_defaults + array(
'method' => 'flickr.photosets.getList',
'user_id' => $user_id,
'per_page'=> $item_count,
'page' => 1
);
//get photoset list
$photo_sets_list = $this->call_flickr_api($photo_set_params);
return $photo_sets_list->photosets->photoset;
}
/**
* Get Photoset Photos
*
* @since 1.0.0
* @param string $photo_set_id Photoset ID
* @param int $item_count number of photos to pull
*/
public function get_photo_set_photos($photo_set_id,$item_count=10){
//photoset photos params
$photo_set_params = $this->api_param_defaults + array(
'method' => 'flickr.photosets.getPhotos',
'photoset_id' => $photo_set_id,
'per_page' => $item_count,
'page' => 1,
'extras' => 'license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags, o_dims, views, media, path_alias, url_sq, url_t, url_s, url_q, url_m, url_n, url_z, url_c, url_l, url_o'
);
//get photo list
$photo_set_photos = $this->call_flickr_api($photo_set_params);
return $photo_set_photos->photoset->photo;
}
/**
* Get Groop Pool Photos
*
* @since 1.0.0
* @param string $group_id Photoset ID
* @param int $item_count number of photos to pull
*/
public function get_group_photos($group_id,$item_count=10){
//photoset photos params
$group_pool_params = $this->api_param_defaults + array(
'method' => 'flickr.groups.pools.getPhotos',
'group_id' => $group_id,
'per_page' => $item_count,
'page' => 1,
'extras' => 'license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags, o_dims, views, media, path_alias, url_sq, url_t, url_s, url_q, url_m, url_n, url_z, url_c, url_l, url_o'
);
//get photo list
$group_pool_photos = $this->call_flickr_api($group_pool_params);
return $group_pool_photos->photos->photo;
}
/**
* Get Gallery ID from its URL
*
* @since 1.0.0
* @param string $gallery_url URL of the Gallery
* @param int $item_count number of photos to pull
*/
public function get_gallery_from_url($gallery_url){
//gallery params
$gallery_params = $this->api_param_defaults + array(
'method' => 'flickr.urls.lookupGallery',
'url' => $gallery_url,
);
//get gallery info
$gallery_info = $this->call_flickr_api($gallery_params);
return $gallery_info->gallery->id;
}
/**
* Get Gallery Photos
*
* @since 1.0.0
* @param string $gallery_id flicker Gallery id (not name)
* @param int $item_count number of photos to pull
*/
public function get_gallery_photos($gallery_id,$item_count=10){
//gallery photos params
$gallery_photo_params = $this->api_param_defaults + array(
'method' => 'flickr.galleries.getPhotos',
'gallery_id' => $gallery_id,
'extras' => 'description, license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags, o_dims, views, media, path_alias, url_sq, url_t, url_s, url_q, url_m, url_n, url_z, url_c, url_l, url_o',
'per_page'=> $item_count,
'page' => 1
);
//get photo list
$gallery_photos_list = $this->call_flickr_api($gallery_photo_params);
return $gallery_photos_list->photos->photo;
}
/**
* Encode the flickr ID for URL (base58)
*
* @since 1.0.0
* @param string $num flickr photo id
*/
public static function base_encode($num, $alphabet='123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ') {
$base_count = strlen($alphabet);
$encoded = '';
while ($num >= $base_count) {
$div = $num/$base_count;
$mod = ($num-($base_count*intval($div)));
$encoded = $alphabet[$mod] . $encoded;
$num = intval($div);
}
if ($num) $encoded = $alphabet[$num] . $encoded;
return $encoded;
}
}
?>

View File

@@ -0,0 +1,48 @@
<?php
/**
* Instagram
*
* with help of the API this class delivers all kind of Images from instagram
*
* @package socialstreams
* @subpackage socialstreams/instagram
* @author ThemePunch <info@themepunch.com>
*/
class TP_instagram {
/**
* API key
*
* @since 1.0.0
* @access private
* @var string $api_key Instagram API key
*/
private $api_key;
/**
* Initialize the class and set its properties.
*
* @since 1.0.0
* @param string $api_key Instagram API key.
*/
public function __construct($api_key) {
$this->api_key = $api_key;
}
/**
* Get Instagram Pictures
*
* @since 1.0.0
* @param string $user_id Instagram User id (not name)
*/
public function get_public_photos($search_user_id){
//call the API and decode the response
$url = "https://api.instagram.com/v1/users/".$search_user_id."/media/recent?access_token=".$this->api_key."&client_id=".$search_user_id;
$rsp = json_decode(file_get_contents($url));
return $rsp->data;
}
}
?>

View File

@@ -0,0 +1,93 @@
<?php
/**
* @author Albert Kozlowski <vojant@gmail.com>
* @license MIT License
* @link https://github.com/vojant/Twitter-php
*/
namespace TwitterPhp;
use \TwitterPhp\Connection\Application;
use \TwitterPhp\Connection\User;
require_once 'connection/ConnectionAbstract.php';
require_once 'connection/Application.php';
require_once 'connection/User.php';
/**
* Class TwitterRestApiException
*/
class RestApiException extends \Exception {};
/**
* Class RestApi
* @package TwitterPhp
*/
class RestApi
{
/**
* @var string
*/
private $_consumerKey;
/**
* @var string
*/
private $_consumerSecret;
/**
* @var string
*/
private $_accessToken;
/**
* @var string
*/
private $_accessTokenSecret;
/**
* @param string $consumerKey
* @param string $consumerSecret
* @param null|string $accessToken
* @param null|string $accessTokenSecret
* @throws TwitterRestApiException
*/
public function __construct($consumerKey,$consumerSecret,$accessToken = null,$accessTokenSecret = null)
{
if (!function_exists('curl_init')) {
throw new TwitterRestApiException('You must have the cURL extension enabled to use this library');
}
$this->_consumerKey = $consumerKey;
$this->_consumerSecret = $consumerSecret;
$this->_accessToken = $accessToken;
$this->_accessTokenSecret = $accessTokenSecret;
}
/**
* Connect to Twitter API as application.
* @link https://dev.twitter.com/docs/auth/application-only-auth
*
* @return \TwitterPhp\Connection\Application
*/
public function connectAsApplication()
{
return new Application($this->_consumerKey,$this->_consumerSecret);
}
/**
* Connect to Twitter API as user.
* @link https://dev.twitter.com/docs/auth/oauth/single-user-with-examples
*
* @return \TwitterPhp\Connection\User
* @throws TwitterRestApiException
*/
public function connectAsUser()
{
if (!$this->_accessToken || !$this->_accessTokenSecret) {
throw new TwitterRestApiException('Missing ACCESS_TOKEN OR ACCESS_TOKEN_SECRET');
}
return new User($this->_consumerKey,$this->_consumerSecret,$this->_accessToken,$this->_accessTokenSecret);
}
}

View File

@@ -0,0 +1,122 @@
<?php
include 'RestApi.php';
/**
* Twitter
*
* with help of the API this class delivers all kind of tweeted images from twitter
*
* @package socialstreams
* @subpackage socialstreams/twitter
* @author ThemePunch <info@themepunch.com>
*/
class TP_twitter {
/**
* Consumer Key
*
* @since 1.0.0
* @access private
* @var string $consumer_key Consumer Key
*/
private $consumer_key;
/**
* Consumer Secret
*
* @since 1.0.0
* @access private
* @var string $consumer_secret Consumer Secret
*/
private $consumer_secret;
/**
* Access Token
*
* @since 1.0.0
* @access private
* @var string $access_token Access Token
*/
private $access_token;
/**
* Access Token Secret
*
* @since 1.0.0
* @access private
* @var string $access_token_secret Access Token Secret
*/
private $access_token_secret;
/**
* Initialize the class and set its properties.
*
* @since 1.0.0
* @param string $api_key flickr API key.
*/
public function __construct($consumer_key,$consumer_secret,$access_token,$access_token_secret) {
$this->consumer_key = $consumer_key;
$this->consumer_secret = $consumer_secret;
$this->access_token = $access_token;
$this->access_token_secret = $access_token_secret;
}
/**
* Get Tweets
*
* @since 1.0.0
* @param string $twitter_account Twitter account without trailing @ char
*/
public function get_public_photos($twitter_account){
$twitter = new \TwitterPhp\RestApi($this->consumer_key,$this->consumer_secret,$this->access_token,$this->access_token_secret);
/*
* Connect as application
* https://dev.twitter.com/docs/auth/application-only-auth
*/
$connection = $twitter->connectAsApplication();
/*
* Collection of the most recent Tweets posted by the user indicated by the screen_name, without replies
* https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
*/
$tweets = $connection->get('/statuses/user_timeline',array('screen_name' => $twitter_account, 'entities' => 1, 'trim_user' => 0 , 'exclude_replies' => 'true'));
//var_dump($tweets);
return $tweets;
}
/**
* Find Key in array and return value (multidim array possible)
*
* @since 1.0.0
* @param string $key Needle
* @param array $form Haystack
*/
public static function array_find_element_by_key($key, $form) {
if (array_key_exists($key, $form)) {
$ret =& $form[$key];
return $ret;
}
foreach ($form as $k => $v) {
if (is_array($v)) {
$ret =TP_twitter::array_find_element_by_key($key, $form[$k]);
if ($ret) {
return $ret;
}
}
}
return FALSE;
}
/**
* Prepare output array $stream
*
* @since 1.0.0
* @param string $tweets Twitter Output Data
*/
public static function makeClickableLinks($s) {
return preg_replace('@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?)?)@', '<a href="$1" target="_blank">$1</a>', $s);
}
}
?>

View File

@@ -0,0 +1,80 @@
<?php
namespace TwitterPhp\Connection;
use TwitterPhp\RestApiException;
class Application extends Base
{
/**
* @var string
*/
private $_consumerKey;
/**
* @var string
*/
private $_consumerSecret;
/**
* @var string
*/
private $_bearersToken = null;
/**
* @param string $consumerKey
* @param string $consumerSecret
*/
public function __construct($consumerKey,$consumerSecret)
{
$this->_consumerKey = $consumerKey;
$this->_consumerSecret = $consumerSecret;
}
/**
* @param string $url
* @param array $parameters
* @param $method
* @return array
*/
protected function _buildHeaders($url,array $parameters = null,$method)
{
return $headers = array(
"Authorization: Bearer " . $this->_getBearerToken()
);
}
/**
* Get Bearer token
*
* @link https://dev.twitter.com/docs/auth/application-only-auth
*
* @throws \TwitterPhp\RestApiException
* @return string
*/
private function _getBearerToken() {
if (!$this->_bearersToken) {
$token = urlencode($this->_consumerKey) . ':' . urlencode($this->_consumerSecret);
$token = base64_encode($token);
$headers = array(
"Authorization: Basic " . $token
);
$options = array (
CURLOPT_URL => self::TWITTER_API_AUTH_URL,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => "grant_type=client_credentials"
);
$response = $this->_callApi($options);
if (isset($response["token_type"]) && $response["token_type"] == 'bearer') {
$this->_bearersToken = $response["access_token"];
} else {
throw new RestApiException('Error while getting access token');
}
}
return $this->_bearersToken;
}
}

View File

@@ -0,0 +1,120 @@
<?php
namespace TwitterPhp\Connection;
/**
* Class Base
* @package TwitterPhp
* @subpackage Connection
*/
abstract class Base
{
/**
* Url for Twitter api
*/
const TWITTER_API_URL = 'https://api.twitter.com';
/**
* Twitter URL that authenticates bearer tokens
*/
const TWITTER_API_AUTH_URL = 'https://api.twitter.com/oauth2/token/';
/**
* Version of Twitter api
*/
const TWITTER_API_VERSION = '1.1';
/**
* Timeout value for curl connections
*/
const DEFAULT_TIMEOUT = 10;
/**
* METHOD GET
*/
const METHOD_GET = 'GET';
/**
* METHOD POST
*/
const METHOD_POST = 'POST';
/**
* @param string $url
* @param array $parameters
* @param $method
* @return array
*/
abstract protected function _buildHeaders($url,array $parameters = null,$method);
/**
* Do GET request to Twitter api
*
* @link https://dev.twitter.com/docs/api/1.1
*
* @param $resource
* @param array $parameters
* @return mixed
*/
public function get($resource, array $parameters = array())
{
$url = $this->_prepareUrl($resource);
$headers = $this->_buildHeaders($url,$parameters,self::METHOD_GET);
$url = $url . '?' . http_build_query($parameters);
$curlParams = array (
CURLOPT_URL => $url,
CURLOPT_HTTPHEADER => $headers
);
return $this->_callApi($curlParams);
}
/**
* Do POST request to Twitter api
*
* @link https://dev.twitter.com/docs/api/1.1
*
* @param $resource
* @param array $parameters
* @return mixed
*/
public function post($resource, array $parameters = array())
{
$url = $this->_prepareUrl($resource);
$headers = $this->_buildHeaders($url,$parameters,self::METHOD_POST);
$curlParams = array (
CURLOPT_URL => $url,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $parameters,
CURLOPT_HTTPHEADER => $headers
);
return $this->_callApi($curlParams);
}
/**
* Call Twitter api
*
* @param array $params
* @return array
*/
protected function _callApi(array $params)
{
$curl = curl_init();
curl_setopt_array($curl,$params);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, self::DEFAULT_TIMEOUT);
$response = curl_exec($curl);
return json_decode($response,true);
}
/**
* @param string $resource
* @return string
*/
private function _prepareUrl($resource)
{
return self::TWITTER_API_URL . '/' . self::TWITTER_API_VERSION . '/' . ltrim($resource,'/') . '.json';
}
}

View File

@@ -0,0 +1,92 @@
<?php
namespace TwitterPhp\Connection;
class User extends Base
{
/**
* @var string
*/
private $_consumerKey;
/**
* @var string
*/
private $_consumerSecret;
/**
* @var string
*/
private $_accessToken;
/**
* @var string
*/
private $_accessTokenSecret;
/**
* @param string $consumerKey
* @param string $consumerSecret
* @param string $accessToken
* @param string $accessTokenSecret
*/
public function __construct($consumerKey,$consumerSecret,$accessToken,$accessTokenSecret)
{
$this->_consumerKey = $consumerKey;
$this->_consumerSecret = $consumerSecret;
$this->_accessToken = $accessToken;
$this->_accessTokenSecret = $accessTokenSecret;
}
/**
* @param string $url
* @param array $parameters
* @param $method
* @return array
*/
protected function _buildHeaders($url,array $parameters = null,$method)
{
$oauthHeaders = array(
'oauth_version' => '1.0',
'oauth_consumer_key' => $this->_consumerKey,
'oauth_nonce' => time(),
'oauth_signature_method' => 'HMAC-SHA1',
'oauth_token' => $this->_accessToken,
'oauth_timestamp' => time()
);
$data = $oauthHeaders;
if ($method == self::METHOD_GET) {
$data = array_merge($oauthHeaders,$parameters);
}
$oauthHeaders['oauth_signature'] = $this->_buildOauthSignature($url,$data,$method);
ksort($oauthHeaders);
$oauthHeader = array();
foreach($oauthHeaders as $key => $value) {
$oauthHeader[] = $key . '="' . rawurlencode($value) . '"';
}
$headers[] = 'Authorization: OAuth ' . implode(', ', $oauthHeader);
return $headers;
}
/**
* @param $url
* @param array $params
* @param $method
* @return string
*/
private function _buildOauthSignature($url,array $params,$method)
{
ksort($params);
$sortedParams = array();
foreach($params as $key=>$value) {
$sortedParams[] = $key . '=' . $value;
}
$signatureBaseString = $method . "&" . rawurlencode($url) . '&' . rawurlencode(implode('&', $sortedParams));
$compositeKey = rawurlencode($this->_consumerSecret) . '&' . rawurlencode($this->_accessTokenSecret);
return base64_encode(hash_hmac('sha1', $signatureBaseString, $compositeKey, true));
}
}

View File

@@ -0,0 +1,74 @@
<?php
/**
* Vimeo
*
* with help of the API this class delivers all kind of Images/Videos from Vimeo
*
* @package socialstreams
* @subpackage socialstreams/vimeo
* @author ThemePunch <info@themepunch.com>
*/
class TP_vimeo {
/**
* Stream Array
*
* @since 1.0.0
* @access private
* @var array $stream Stream Data Array
*/
private $stream;
/**
* Get Vimeo User Videos
*
* @since 1.0.0
*/
public function get_vimeo_videos($type,$value){
//call the API and decode the response
if($type=="user"){
$url = "https://vimeo.com/api/v2/".$value."/videos.json";
}
else{
$url = "https://vimeo.com/api/v2/".$type."/".$value."/videos.json";
}
$rsp = json_decode(file_get_contents($url));
return $rsp;
}
/**
* Prepare output array $stream for Vimeo videos
*
* @since 1.0.0
* @param string $videos Vimeo Output Data
*/
private function vimeo_output_array($videos,$count){
foreach ($videos as $video) {
if($count-- == 0) break;
$stream = array();
$image_url = @array(
'thumbnail_small' => array($video->thumbnail_small),
'thumbnail_medium' => array($video->thumbnail_medium),
'thumbnail_large' => array($video->thumbnail_large),
);
$stream['custom-image-url'] = $image_url; //image for entry
$stream['custom-type'] = 'vimeo'; //image, vimeo, youtube, soundcloud, html
$stream['custom-vimeo'] = $video->id;
$stream['post_url'] = $video->url;
$stream['post_link'] = $video->url;
$stream['title'] = $video->title;
$stream['content'] = $video->description;
$stream['date_modified'] = $video->upload_date;
$stream['author_name'] = $video->user_name;
$this->stream[] = $stream;
}
}
}
?>

View File

@@ -0,0 +1,85 @@
<?php
/**
* Youtube
*
* with help of the API this class delivers all kind of Images/Videos from youtube
*
* @package socialstreams
* @subpackage socialstreams/youtube
* @author ThemePunch <info@themepunch.com>
*/
class TP_youtube {
/**
* API key
*
* @since 1.0.0
* @access private
* @var string $api_key Youtube API key
*/
private $api_key;
/**
* Channel ID
*
* @since 1.0.0
* @access private
* @var string $channel_id Youtube Channel ID
*/
private $channel_id;
/**
* Initialize the class and set its properties.
*
* @since 1.0.0
* @param string $api_key Youtube API key.
*/
public function __construct($api_key,$channel_id) {
$this->api_key = $api_key;
$this->channel_id = $channel_id;
}
/**
* Get Youtube Playlists
*
* @since 1.0.0
*/
public function get_playlists(){
//call the API and decode the response
$url = "https://www.googleapis.com/youtube/v3/playlists?part=snippet&channelId=".$this->channel_id."&key=".$this->api_key;
$rsp = json_decode(file_get_contents($url));
return $rsp->items;
}
/**
* Get Youtube Playlist Items
*
* @since 1.0.0
* @param string $playlist_id Youtube Playlist ID
* @param integer $count Max videos count
*/
public function show_playlist_videos($playlist_id,$count=50){
//call the API and decode the response
$url = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=".$playlist_id."&maxResults=".$count."&fields=items%2Fsnippet&key=".$this->api_key;
$rsp = json_decode(file_get_contents($url));
return $rsp->items;
}
/**
* Get Youtube Channel Items
*
* @since 1.0.0
* @param integer $count Max videos count
*/
public function show_channel_videos($count=50){
//call the API and decode the response
$url = "https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=".$this->channel_id."&maxResults=".$count."&key=".$this->api_key."&order=date";
echo $url;
$rsp = json_decode(file_get_contents($url));
return $rsp->items;
}
}
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Copyright (C) 2015 by original authors @ fontello.com</metadata>
<defs>
<font id="ws-fullscreen" horiz-adv-x="1000" >
<font-face font-family="ws-fullscreen" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
<missing-glyph horiz-adv-x="1000" />
<glyph glyph-name="glyph" unicode="&#xe800;" d="m857 82l-144 143-88-88 143-144-143-143h375v375z m-482 768h-375v-375l143 143 142-141 89 88-142 142z m0-713l-88 88-144-143-143 143v-375h375l-143 143z m625 713h-375l143-143-142-142 89-88 142 141 143-143z" horiz-adv-x="1000" />
<glyph glyph-name="glyph-1" unicode="&#xe801;" d="m768-7l144-143 88 88-143 144 143 143h-375v-375z m-768 482h375v375l-143-143-142 142-88-89 141-142z m0-537l88-88 144 143 143-143v375h-375l143-143z m625 537h375l-143 143 142 142-89 89-142-142-143 143z" horiz-adv-x="1000" />
</font>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,32 @@
/**
* WOWslider
*
* http://wowslider.com
*/
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"basic",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2,
}
);

View File

@@ -0,0 +1,32 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_basic_linear(j,g,a){var c=jQuery;var f=c(this);var e=a.find(".ws_list");var i=c("<div>").addClass("ws_effect ws_basic_linear").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).appendTo(a);var b=c("<div>").css({position:"absolute",display:"none","z-index":2,width:"200%",height:"100%",transform:"translate3d(0,0,0)"}).appendTo(i);var h=c("<div>").css({position:"absolute",left:"auto",top:"auto",width:"50%",height:"100%",overflow:"hidden"}),d=h.clone();b.append(h,d);this.go=function(k,n,m){b.stop(1,1);if(m==undefined){m=(!!((k-n+1)%g.length)^j.revers?"left":"right")}else{m=m?"left":"right"}var o=c(g[n]);var l={width:o.width()||j.width,height:o.height()||j.height};o.clone().css(l).appendTo(h).css(m,0);c(g[k]).clone().css(l).appendTo(d).show();if(m=="right"){h.css("left","50%");d.css("left",0)}else{h.css("left",0);d.css("left","50%")}var q={},p={};q[m]=0;p[m]=-a.width();if(j.support.transform){if(m=="right"){q.left=q.right;p.left=-p.right}q={translate:[q.left,0,0]};p={translate:[p.left,0,0]}}e.hide();wowAnimate(b.css({left:"auto",right:"auto",top:0}).css(m,0).show(),q,p,j.duration,"easeInOutExpo",function(){f.trigger("effectEnd");b.hide().find("div").html("")})}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"basic_linear",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_blast(q,j,m){var e=jQuery;var i=e(this);var f=m.find(".ws_list");var a=q.distance||1;var g=e("<div>").addClass("ws_effect ws_blast");var c=e("<div>").addClass("ws_zoom").appendTo(g);var k=e("<div>").addClass("ws_parts").appendTo(g);m.css({overflow:"visible"}).append(g);g.css({position:"absolute",left:0,top:0,width:"100%",height:"100%","z-index":8});var d=q.cols;var p=q.rows;var l=[];var b=[];function h(u,r,s,t){if(q.support.transform&&q.support.transition){if(typeof r.left==="number"||typeof r.top==="number"){r.transform="translate3d("+(typeof r.left==="number"?r.left:0)+"px,"+(typeof r.top==="number"?r.top:0)+"px,0)"}delete r.left;delete r.top;if(s){r.transition="all "+s+"ms ease-in-out"}else{r.transition=""}u.css(r);if(t){u.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){t();u.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd")})}}else{delete r.transfrom;delete r.transition;if(s){u.animate(r,{queue:false,duration:q.duration,complete:t?t:0})}else{u.stop(1).css(r)}}}function n(r){var w=Math.max((q.width||g.width())/(q.height||g.height())||3,3);d=d||Math.round(w<1?3:3*w);p=p||Math.round(w<1?3/w:3);for(var u=0;u<d*p;u++){var v=u%d;var t=Math.floor(u/d);e([b[u]=document.createElement("div"),l[u]=document.createElement("div")]).css({position:"absolute",overflow:"hidden"}).appendTo(k).append(e("<img>").css({position:"absolute"}))}l=e(l);b=e(b);o(l,r);o(b,r,true);var s={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"};c.css(s).append(e("<img>").css(s))}function o(t,u,s,r,w,z){var v=g.width();var x=g.height();var y={left:e(window).scrollLeft(),top:e(window).scrollTop(),width:e(window).width(),height:e(window).height()};e(t).each(function(F){var E=F%d;var C=Math.floor(F/d);if(s){var I=a*v*(2*Math.random()-1)+v/2;var G=a*x*(2*Math.random()-1)+x/2;var H=g.offset();H.left+=I;H.top+=G;if(H.left<y.left){I-=H.left+y.left}if(H.top<y.top){G-=H.top+y.top}var D=(y.left+y.width)-H.left-v/d;if(0>D){I+=D}var B=(y.top+y.height)-H.top-x/p;if(0>B){G+=B}}else{var I=v*E/d;var G=x*C/p}e(this).find("img").css({left:-(v*E/d)+u.marginLeft,top:-(x*C/p)+u.marginTop,width:u.width,height:u.height});var A={left:I,top:G,width:v/d,height:x/p};if(w){e.extend(A,w)}if(r){h(e(this),A,q.duration,(F===0&&z)?z:0)}else{h(e(this),A)}})}this.go=function(s,u){var v=e(j[u]),r={width:v.width(),height:v.height(),marginTop:parseFloat(v.css("marginTop")),marginLeft:parseFloat(v.css("marginLeft"))};if(!l.length){n(r)}l.find("img").attr("src",j.get(u).src);h(l,{opacity:1,zIndex:3});b.find("img").attr("src",j.get(s).src);h(b,{opacity:0,zIndex:2});c.find("img").attr("src",j.get(u).src);h(c.find("img"),{transform:"scale(1)"});g.show();f.hide();o(b,r,false,true,{opacity:1});o(l,r,true,true,{opacity:0},function(){i.trigger("effectEnd");g.hide()});h(c.find("img"),{transform:"scale(2)"},q.duration,0);var t=b;b=l;l=t}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"blast",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_blinds(m,l,a){var g=jQuery;var k=g(this);var c=m.parts||3;var j=g(".ws_list",a);var h=g("<div>").addClass("ws_effect ws_blinds").css({position:"absolute",width:"100%",height:"100%",left:0,top:0,"z-index":8}).hide().appendTo(a);var d=g("<div>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).appendTo(h);var e=[];var b=document.addEventListener;for(var f=0;f<c;f++){e[f]=g("<div>").css({position:b?"relative":"absolute",display:b?"inline-block":"block",height:"100%",width:(100/c+0.001).toFixed(3)+"%",border:"none",margin:0,overflow:"hidden",top:0,left:b?0:((100*f/c).toFixed(3)+"%")}).appendTo(h)}this.go=function(r,p,o){if(o==undefined){o=p>r?1:0}h.find("img").stop(true,true);h.show();var s=g(l[p]);var t={width:s.width()||m.width,height:s.height()||m.height};var u=s.clone().css(t).appendTo(d);u.from={left:0};u.to={left:(!o?1:-1)*u.width()*0.5};if(m.support.transform){u.from={translate:[u.from.left,0,0]};u.to={translate:[u.to.left,0,0]}}j.hide();wowAnimate(u,u.from,u.to,m.duration,m.duration*0.1,"swing");for(var q=0;q<e.length;q++){var n=e[q];var v=g(l[r]).clone().css({position:"absolute",top:0}).css(t).appendTo(n);v.from={left:(!o?-1:1)*v.width()-n.position().left};v.to={left:-n.position().left};if(m.support.transform){v.from={translate:[v.from.left,0,0]};v.to={translate:[v.to.left,0,0]}}wowAnimate(v,v.from,v.to,(m.duration/(e.length+1))*(o?(e.length-q+1):(q+2)),"swing",((!o&&q==e.length-1||o&&!q)?function(){k.trigger("effectEnd");h.hide().find("img").remove();u.remove()}:false))}}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"blinds",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_bubbles(b,l,n){var e=jQuery;var f=e(this);var i=b.noCanvas||!document.createElement("canvas").getContext;var k=b.width,p=b.height;var g=e("<div>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).addClass("ws_effect ws_bubbles").appendTo(n);if(!i){var a=e("<canvas>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%"}).appendTo(g);var o=a.get(0).getContext("2d")}var j={easeOutBack:function(u,v,h,z,y,w){if(w==undefined){w=1.70158}return z*((v=v/y-1)*v*((w+1)*v+w)+1)+h},easeOutBackCubic:function(u,v,h,A,z,w){var y=(v/=z)*v;return h+A*(-1.5*y*v*y+2*y*y+4*y*v+-9*y+5.5*v)},easeOutCubic:function(u,v,h,y,w){return y*((v=v/w-1)*v*v+1)+h},easeOutExpo:function(u,v,h,y,w){return(v==w)?h+y:y*(-Math.pow(2,-10*v/w)+1)+h}};var s=[["#bbbbbb",0.5,0.5],["#b3b3b3",0.2,0.2],["#b6b6b6",0.5,0.2],["#b9b9b9",0.8,0.2],["#cccccc",0.2,0.8],["#c3c3c3",0.5,0.8],["#c6c6c6",0.8,0.8]];var c=[[[0.5,0.5,0.7,0.15],[0.5,0.5,0.6,0.3],[0.5,0.5,0.5,0.45],[0.5,0.5,0.4,0.6],[0.5,0.5,0.3,0.75],[0.5,0.5,0.2,0.9],[0.5,0.5,0.1,1]],[[0.5,0.5,0.7,1],[0.5,0.5,0.6,0.9],[0.5,0.5,0.5,0.75],[0.5,0.5,0.4,0.6],[0.5,0.5,0.3,0.45],[0.5,0.5,0.2,0.3],[0.5,0.5,0.1,0.15]]];var m=[[[0.5,0.5,0,1],[0.5,0.5,0,0.9],[0.5,0.5,0,0.75],[0.5,0.5,0,0.6],[0.5,0.5,0,0.45],[0.5,0.5,0,0.3],[0.5,0.5,0,0.15]],[[0.5,0.5,0,0.15],[0.5,0.5,0,0.3],[0.5,0.5,0,0.45],[0.5,0.5,0,0.6],[0.5,0.5,0,0.75],[0.5,0.5,0,0.9],[0.5,0.5,0,1]],[[0.5,7.5,0.7,0.75],[0.5,7.5,0.6,0.15],[0.5,7.5,0.5,1],[0.5,7.5,0.4,0.3],[0.5,7.5,0.3,0.45],[0.5,7.5,0.2,0.6],[0.5,7.5,0.1,0.9]],[[0.5,7.5,0.7,1],[0.5,7.5,0.6,0.9],[0.5,7.5,0.5,0.75],[0.5,7.5,0.4,0.6],[0.5,7.5,0.3,0.45],[0.5,7.5,0.2,0.3],[0.5,7.5,0.1,0.15]]];function d(u){if(Object.prototype.toString.call(u)==="[object Array]"){return u[Math.floor(Math.random()*(u.length))]}else{var h;var t=0;for(var v in u){if(Math.random()<1/++t){h=v}}return/linear|swing/g.test(h)?d(u):h}}function q(B,A,v,z,t){B.clearRect(0,0,k,p);for(var u=0,y=v.length;u<y;u++){var h=Math.max(0,Math.min(1,A-v[u][3]*(1-A)));if(t&&j[t]){h=j[t](1,h,0,1,1,1)}var w=k;if(k/p<=1.8&&k/p>0.7){w*=2}else{if(k/p<=0.7){w=p*2}}var x=v[u][2]*h*w;if(z){x=(v[u][2]+(z[u][2]-v[u][2])*h)*w}x=Math.max(0,x);B.beginPath();B.arc((v[u][0]+((z?z[u][0]:0.5)-v[u][0])*h)*k,(v[u][1]+((z?z[u][1]:0.5)-v[u][1])*h)*p,x,0,2*Math.PI,false);B.fillStyle=s[u][0];B.fill()}}this.go=function(B,w){if(i){n.find(".ws_list").css("transform","translate3d(0,0,0)").stop(true).animate({left:(B?-B+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))},b.duration,"easeInOutExpo",function(){f.trigger("effectEnd")})}else{k=n.width();p=n.height();a.attr({width:k,height:p});var z=l.get(w);for(var x=0,A=s.length;x<A;x++){var u=Math.abs(s[x][1]),h=Math.abs(s[x][2]);s[x][0]=r(z,{x:u*k,y:h*p,w:2,h:2})||s[x][0]}var t=d(c);var v=d(m);var y=d(j);wowAnimate(function(C){q(o,C,t,0,y)},0,1,b.duration/2,function(){n.find(".ws_list").css({left:(B?-B+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))});y=d(j);wowAnimate(function(C){q(o,1-C,v,t,y)},0,1,b.duration/2,function(){o.clearRect(0,0,k,p);f.trigger("effectEnd")})})}};function r(C,t){t=t||{};var E=1,w=t.exclude||[],B;var y=document.createElement("canvas"),v=y.getContext("2d"),u=y.width=C.naturalWidth,I=y.height=C.naturalHeight;v.drawImage(C,0,0,C.naturalWidth,C.naturalHeight);try{B=v.getImageData(t.x?t.x:0,t.y?t.y:0,t.w?t.w:C.width,t.h?t.h:C.height)["data"]}catch(D){return false}var x=(t.w?t.w:C.width*t.h?t.h:C.height)||B.length,z={},G="",F=[],h={dominant:{name:"",count:0}};var A=0;while(A<x){F[0]=B[A];F[1]=B[A+1];F[2]=B[A+2];G=F.join(",");if(G in z){z[G]=z[G]+1}else{z[G]=1}if(w.indexOf(["rgb(",G,")"].join(""))===-1){var H=z[G];if(H>h.dominant.count){h.dominant.name=G;h.dominant.count=H}}A+=E*4}return["rgb(",h.dominant.name,")"].join("")}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"bubbles",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,33 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a}});function ws_carousel(d,l,o){var f=jQuery,h=f(this),p=f(".ws_list",o).css("opacity",0),s=(/iPhone|iPod|iPad|Android|BlackBerry/).test(navigator.userAgent),m=l.length,r=70,g=80,b=60,t=90,x=2,u=[];var i=f("<div>").addClass("ws_effect ws_carousel").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",perspective:2000}).appendTo(o);var q=[];function k(y,A){for(var z=0;z<y;z++){var B=A?(l.length-y+z):z;while(B<0){B+=y-l.length}while(B>l.length-1){B-=y-l.length}q.push({item:f("<div>").append(f(l[B]).clone().css({outline:"1px solid transparent"})).css({position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"}).appendTo(i),id:B});if(d.images){u.push(!d.images[B].noimage)}}}k(x,true);k(l.length);k(x);function e(){var z=f(l[0]);z={width:z.width(),height:z.height(),marginTop:parseFloat(z.css("marginTop")),marginLeft:parseFloat(z.css("marginLeft"))};for(var y in q){if(q[y]&&q[y].item){f(q[y].item).find("img").css(z)}}}function w(C){C*=-1;var y=[];for(var z in q){var B={};var A=x-z;y.push(A!=C?C-A:0)}return y}function c(B,A,y,z){wowAnimate(function(C){n(B,A,C)},0,1,y,z)}function v(A,z,y){return A+(z-A)*y}function a(z,y){if(d.support.transform){z.css({transform:"scale("+y.scale+") translate3d("+y.offset+"%,0,0) rotateY("+y.rotate+"deg)",zIndex:y.zIndex})}else{z.css({left:(100*(1-y.scale)/2+y.offset*0.85)+"%",top:(100*(1-y.scale)/2)+"%",width:(100*y.scale)+"%"})}}function n(F,G,E,C){if(!C){E=f.easing.easeInOutQuart(1,E,0,1,1,1)}for(var D in F){var A=v(F[D],G[D],E)*t;var H=r/100;var B=0;var z=F[D]*(F[D]>0?-1:1);var y=A>0?-1:1;if(E>0.5){z=G[D]*(G[D]>0?-1:1)}if(F[D]===0){H=v(g,r,E)/100;B=v(0,y*b,E)}if(G[D]===0){H=v(r,g,E)/100;B=v(y*b,0,E)}if(G[D]!==0&&F[D]!==0){B=y*b}if(q[D]&&q[D].item){a(q[D].item,{scale:H,offset:A,rotate:B,zIndex:z})}}}var j=w(d.startSlide);c(j,j,0);e();f(window).on("load resize",e);this.go=function(z,B){e();p.css("opacity",0);if(d.images&&!u[z+x]){var A=z+x;u[A]=true;function y(C){return C.find("img").attr("src",d.images[z].src)}y(q[A].item);if(z<x){y(q[q.length-z].item)}if(z+x>=l.length){y(q[z+x-l.length].item)}}if(window.XMLHttpRequest){if(B==l.length-1&&z==0){z=B+1}if(B==0&&z==l.length-1){z=-1}c(w(B),w(z),d.duration,function(){h.trigger("effectEnd")})}else{p.stop(true).animate({left:(z?-z+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))},d.duration,"easeInOutExpo",function(){h.trigger("effectEnd")})}};this.step=function(A,y){var z=A+(y<0?1:-1);if(y<0){y*=-1}n(w(A),w(z),y,true)}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"carousel",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
}
);

View File

@@ -0,0 +1,33 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a}});function ws_carousel_basic(d,l,o){var f=jQuery,h=f(this),p=f(".ws_list",o).css("opacity",0),s=(/iPhone|iPod|iPad|Android|BlackBerry/).test(navigator.userAgent),m=l.length,r=90,g=100,b=60,t=90,x=2,u=[];var i=f("<div>").addClass("ws_effect ws_carousel_basic").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",perspective:2000}).appendTo(o);var q=[];function k(y,A){for(var z=0;z<y;z++){var B=A?(l.length-y+z):z;while(B<0){B+=y-l.length}while(B>l.length-1){B-=y-l.length}q.push({item:f("<div>").append(f(l[B]).clone().css({outline:"1px solid transparent"})).css({position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"}).appendTo(i),id:B});if(d.images){u.push(!d.images[B].noimage)}}}k(x,true);k(l.length);k(x);function e(){var z=f(l[0]);z={width:z.width(),height:z.height(),marginTop:parseFloat(z.css("marginTop")),marginLeft:parseFloat(z.css("marginLeft"))};for(var y in q){if(q[y]&&q[y].item){f(q[y].item).find("img").css(z)}}}function w(C){C*=-1;var y=[];for(var z in q){var B={};var A=x-z;y.push(A!=C?C-A:0)}return y}function c(B,A,y,z){wowAnimate(function(C){n(B,A,C)},0,1,y,z)}function v(A,z,y){return A+(z-A)*y}function a(z,y){if(d.support.transform){z.css({transform:"scale("+y.scale+") translate3d("+y.offset+"%,0,0) rotateY("+y.rotate+"deg)",zIndex:y.zIndex})}else{z.css({left:(100*(1-y.scale)/2+y.offset*0.85)+"%",top:(100*(1-y.scale)/2)+"%",width:(100*y.scale)+"%"})}}function n(F,G,E,C){if(!C){E=f.easing.easeInOutQuart(1,E,0,1,1,1)}for(var D in F){var A=v(F[D],G[D],E)*t;var H=r/100;var B=0;var z=F[D]*(F[D]>0?-1:1);var y=A>0?-1:1;if(E>0.5){z=G[D]*(G[D]>0?-1:1)}if(F[D]===0){H=v(g,r,E)/100;B=v(0,y*b,E)}if(G[D]===0){H=v(r,g,E)/100;B=v(y*b,0,E)}if(G[D]!==0&&F[D]!==0){B=y*b}if(q[D]&&q[D].item){a(q[D].item,{scale:H,offset:A,rotate:B,zIndex:z})}}}var j=w(d.startSlide);c(j,j,0);e();f(window).on("load resize",e);this.go=function(z,B){e();if(d.images&&!u[z+x]){var A=z+x;u[A]=true;function y(C){return C.find("img").attr("src",d.images[z].src)}y(q[A].item);if(z<x){y(q[q.length-z].item)}if(z+x>=l.length){y(q[z+x-l.length].item)}}if(window.XMLHttpRequest){if(B==l.length-1&&z==0){z=B+1}if(B==0&&z==l.length-1){z=-1}c(w(B),w(z),d.duration,function(){h.trigger("effectEnd")})}else{p.stop(true).animate({left:(z?-z+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))},d.duration,"easeInOutExpo",function(){h.trigger("effectEnd")})}};this.step=function(A,y){var z=A+(y<0?1:-1);if(y<0){y*=-1}n(w(A),w(z),y,true)}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"carousel_basic",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_cube(p,k,b){var e=jQuery,j=e(this),a=/WOW Slider/g.test(navigator.userAgent),l=!(/iPhone|iPod|iPad|Android|BlackBerry/).test(navigator.userAgent)&&!a,g=e(".ws_list",b),c=p.perspective||2000,d={position:"absolute",backgroundSize:"cover",left:0,top:0,width:"100%",height:"100%",backfaceVisibility:"hidden"};var o={domPrefixes:" Webkit Moz ms O Khtml".split(" "),testDom:function(r){var q=this.domPrefixes.length;while(q--){if(typeof document.body.style[this.domPrefixes[q]+r]!=="undefined"){return true}}return false},cssTransitions:function(){return this.testDom("Transition")},cssTransforms3d:function(){var r=(typeof document.body.style.perspectiveProperty!=="undefined")||this.testDom("Perspective");if(r&&/AppleWebKit/.test(navigator.userAgent)){var t=document.createElement("div"),q=document.createElement("style"),s="Test3d"+Math.round(Math.random()*99999);q.textContent="@media (-webkit-transform-3d){#"+s+"{height:3px}}";document.getElementsByTagName("head")[0].appendChild(q);t.id=s;document.body.appendChild(t);r=t.offsetHeight===3;q.parentNode.removeChild(q);t.parentNode.removeChild(t)}return r},webkit:function(){return/AppleWebKit/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)}};var f=(o.cssTransitions()&&o.cssTransforms3d()),m=o.webkit();var i=e("<div>").css(d).css({transformStyle:"preserve-3d",perspective:(m&&!a?"none":c),zIndex:8});e("<div>").addClass("ws_effect ws_cube").css(d).append(i).appendTo(b);if(!f&&p.fallback){return new p.fallback(p,k,b)}function n(q,r,t,s){return"inset "+(-s*q*1.2/90)+"px "+(t*r*1.2/90)+"px "+(q+r)/20+"px rgba("+((t<s)?"0,0,0,.6":(t>s)?"255,255,255,0.8":"0,0,0,.0")+")"}var h;this.go=function(B,y){var t=e(k[y]);t={width:t.width(),height:t.height(),marginTop:parseFloat(t.css("marginTop")),marginLeft:parseFloat(t.css("marginLeft"))};function s(S,F,H,I,G,E,Q,R,P,O){S.parent().css("perspective",c);var N=S.width(),K=S.height();F.front.css({transform:"translate3d(0,0,0) rotateY(0deg) rotateX(0deg)"});F.back.css({opacity:1,transform:"translate3d(0,0,0) rotateY("+Q+"deg) rotateX("+E+"deg)"});if(l){var J=e("<div>").css(d).css("boxShadow",n(N,K,0,0)).appendTo(F.front);var M=e("<div>").css(d).css("boxShadow",n(N,K,E,Q)).appendTo(F.back)}if(m&&!/WOW Slider/g.test(navigator.userAgent)){S.css({transform:"translateZ(-"+H+"px)"})}var L=setTimeout(function(){var w="all "+p.duration+"ms cubic-bezier(0.645, 0.045, 0.355, 1.000)";F.front.css({transition:w,boxShadow:l?n(N,K,R,P):"",transform:"rotateX("+R+"deg) rotateY("+P+"deg)",zIndex:0});F.back.css({transition:w,boxShadow:l?n(N,K,0,0):"",transform:"rotateY(0deg) rotateX(0deg)",zIndex:20});if(l){J.css({transition:w,boxShadow:n(N,K,R,P)});M.css({transition:w,boxShadow:n(N,K,0,0)})}L=setTimeout(O,p.duration)},20);return{stop:function(){clearTimeout(L);O()}}}if(f){if(h){h.stop()}var C=b.width(),z=b.height();var x={left:[C/2,C/2,0,0,90,0,-90],right:[C/2,-C/2,0,0,-90,0,90],down:[z/2,0,-z/2,90,0,-90,0],up:[z/2,0,z/2,-90,0,90,0]}[p.direction||["left","right","down","up"][Math.floor(Math.random()*4)]];var D=e("<img>").css(t),v=e("<img>").css(t).attr("src",k.get(B).src);var q=e("<div>").css({overflow:"hidden",transformOrigin:"50% 50% -"+x[0]+"px",zIndex:20}).css(d).append(D).appendTo(i);var r=e("<div>").css({overflow:"hidden",transformOrigin:"50% 50% -"+x[0]+"px",zIndex:0}).css(d).append(v).appendTo(i);D.on("load",function(){g.hide()});D.attr("src",k.get(y).src).load();i.parent().show();h=new s(i,{front:q,back:r},x[0],x[1],x[2],x[3],x[4],x[5],x[6],function(){j.trigger("effectEnd");i.empty().parent().hide();h=0})}else{i.css({position:"absolute",display:"none",zIndex:2,width:"100%",height:"100%"});i.stop(1,1);var u=(!!((B-y+1)%k.length)^p.revers?"left":"right");var q=e("<div>").css({position:"absolute",left:"0%",right:"auto",top:0,width:"100%",height:"100%"}).css(u,0).append(e(k[y]).clone().css({width:100*t.width/b.width()+"%",height:100*t.height/b.height()+"%",marginLeft:100*t.marginLeft/b.width()+"%"})).appendTo(i);var A=e("<div>").css({position:"absolute",left:"100%",right:"auto",top:0,width:"0%",height:"100%"}).append(e(k[B]).clone().css({width:100*t.width/b.width()+"%",height:100*t.height/b.height()+"%",marginLeft:100*t.marginLeft/b.width()+"%"})).appendTo(i);i.css({left:"auto",right:"auto",top:0}).css(u,0).show();i.show();g.hide();A.animate({width:"100%",left:0},p.duration,"easeInOutExpo",function(){e(this).remove()});q.animate({width:0},p.duration,"easeInOutExpo",function(){j.trigger("effectEnd");i.empty().hide()})}}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"cube",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a}});function ws_cube_over(m,k,b){var e=jQuery,j=e(this),a=/WOW Slider/g.test(navigator.userAgent),g=e(".ws_list",b),c=m.perspective||/MSIE|Trident/g.test(navigator.userAgent)?1000:2000,d={position:"absolute",backgroundSize:"cover",left:0,top:0,width:"100%",height:"100%",backfaceVisibility:"hidden"};var l=/AppleWebKit/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent);var i=e("<div>").css(d).css({transformStyle:"preserve-3d",perspective:(l&&!a?"none":c),zIndex:8});e("<div>").addClass("ws_effect ws_cube_over").css(d).append(i).appendTo(b);if(!m.support.transform&&m.fallback){return new m.fallback(m,k,b)}var h;this.go=function(y,u){var q=e(k[u]);q={width:q.width(),height:q.height(),marginTop:parseFloat(q.css("marginTop")),marginLeft:parseFloat(q.css("marginLeft"))};function p(C,G,F,H){C.parent().css("perspective",c);var D=C.width(),E=C.height();wowAnimate(C,{scale:1,translate:[0,0,(l&&!a)?F:0]},{scale:0.85,translate:[0,0,(l&&!a)?F:0]},m.duration*0.4,"easeInOutBack",function(){wowAnimate(C,{scale:0.85,translate:[0,0,(l&&!a)?F:0]},{scale:1,translate:[0,0,(l&&!a)?F:0]},m.duration*0.4,m.duration-m.duration*0.8,"easeInOutBack",H)});wowAnimate(G.front.item,{rotateY:0,rotateX:0},{rotateY:G.front.rotateY,rotateX:G.front.rotateX},m.duration,"easeInOutBack");wowAnimate(G.back.item,{rotateY:G.back.rotateY,rotateX:G.back.rotateX},{rotateY:0,rotateX:0},m.duration,"easeInOutBack");wowAnimate(G.side.item,{rotateY:G.side.rotateY,rotateX:G.side.rotateX},{rotateY:-G.side.rotateY,rotateX:-G.side.rotateX},m.duration,"easeInOutBack")}if(m.support.transform&&m.support.perspective){if(h){h.stop()}var A=b.width(),v=b.height();var t={left:[A/2,0,0,180,0,-180],right:[A/2,0,0,-180,0,180],down:[v/2,-v/2,180,0,-180,0],up:[v/2,v/2,-180,0,180,0]}[m.direction||["left","right","down","up"][Math.floor(Math.random()*4)]];var B=e("<img>").css(q),s=e("<img>").css(q).attr("src",k.get(y).src);var n=e("<div>").css({overflow:"hidden",transformOrigin:"50% 50% -"+t[0]+"px"}).css(d).append(B).appendTo(i);var o=e("<div>").css({overflow:"hidden",transformOrigin:"50% 50% -"+t[0]+"px"}).css(d).append(s).appendTo(i);var z=e('<div class="ws_cube_side">').css({transformOrigin:"50% 50% -"+t[0]+"px",background:m.staticColor?"":f(s[0],{exclude:["0,0,0","255,255,255"]})}).css(d).appendTo(i);B.on("load",function(){g.hide()});B.attr("src",k.get(u).src).load();i.parent().show();h=new p(i,{front:{item:n,rotateY:t[5],rotateX:t[4]},back:{item:o,rotateY:t[3],rotateX:t[2]},side:{item:z,rotateY:t[3]/2,rotateX:t[2]/2}},-t[0],function(){j.trigger("effectEnd");i.empty().parent().hide();h=0})}else{i.css({position:"absolute",display:"none",zIndex:2,width:"100%",height:"100%"});i.stop(1,1);var r=(!!((y-u+1)%k.length)^m.revers?"left":"right");var n=e("<div>").css({position:"absolute",left:"0%",right:"auto",top:0,width:"100%",height:"100%"}).css(r,0).append(e(k[u]).clone().css({width:100*q.width/b.width()+"%",height:100*q.height/b.height()+"%",marginLeft:100*q.marginLeft/b.width()+"%"})).appendTo(i);var x=e("<div>").css({position:"absolute",left:"100%",right:"auto",top:0,width:"0%",height:"100%"}).append(e(k[y]).clone().css({width:100*q.width/b.width()+"%",height:100*q.height/b.height()+"%",marginLeft:100*q.marginLeft/b.width()+"%"})).appendTo(i);i.css({left:"auto",right:"auto",top:0}).css(r,0).show();i.show();g.hide();x.animate({width:"100%",left:0},m.duration,"easeInOutExpo",function(){e(this).remove()});n.animate({width:0},m.duration,"easeInOutExpo",function(){j.trigger("effectEnd");i.empty().hide()})}};function f(x,o){o=o||{};var z=1,r=o.exclude||[],w;var t=document.createElement("canvas"),q=t.getContext("2d"),p=t.width=x.naturalWidth,D=t.height=x.naturalHeight;q.drawImage(x,0,0,x.naturalWidth,x.naturalHeight);try{w=q.getImageData(o.x?o.x:0,o.y?o.y:0,o.w?o.w:x.width,o.h?o.h:x.height)["data"]}catch(y){console.log("error:unable to access image data: "+y);return"#ccc"}var s=(o.w?o.w:x.width*o.h?o.h:x.height)||w.length,u={},B="",A=[],n={dominant:{name:"",count:0}};var v=0;while(v<s){A[0]=w[v];A[1]=w[v+1];A[2]=w[v+2];B=A.join(",");if(B in u){u[B]=u[B]+1}else{u[B]=1}if(r.indexOf(["rgb(",B,")"].join(""))===-1){var C=u[B];if(C>n.dominant.count){n.dominant.name=B;n.dominant.count=C}}v+=z*4}return["rgb(",n.dominant.name,")"].join("")}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"cube_over",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeInOutSine:function(j,i,b,c,d){return -c/2*(Math.cos(Math.PI*i/d)-1)+b}});function ws_domino(m,i,k){$=jQuery;var h=$(this);var c=m.columns||5,l=m.rows||2,d=m.centerRow||2,g=m.centerColumn||2;var f=$("<div>").addClass("ws_effect ws_domino").css({position:"absolute",width:"100%",height:"100%",top:0,overflow:"hidden"}).appendTo(k);var b=$("<div>").addClass("ws_zoom").appendTo(f);var j=$("<div>").addClass("ws_parts").appendTo(f);var e=k.find(".ws_list");var a;this.go=function(y,x){function z(){j.find("img").stop(1,1);j.empty();b.empty();a=0}z();var s=$(i.get(x));s={width:s.width(),height:s.height(),marginTop:parseFloat(s.css("marginTop")),marginLeft:parseFloat(s.css("marginLeft"))};var D=$(i.get(x)).clone().appendTo(b).css({position:"absolute",top:0,left:0}).css(s);var p=f.width();var o=f.height();var w=Math.floor(p/c);var v=Math.floor(o/l);var t=p-w*(c-1);var E=o-v*(l-1);function I(L,K){return Math.random()*(K-L+1)+L}e.hide();var u=[];for(var C=0;C<l;C++){u[C]=[];for(var B=0;B<c;B++){var q=m.duration*(1-Math.abs((d*g-C*B)/(2*l*c)));var F=B<c-1?w:t;var n=C<l-1?v:E;u[C][B]=$("<div>").css({width:F,height:n,position:"absolute",top:C*v,left:B*w,overflow:"hidden"});var H=I(C-2,C+2);var G=I(B-2,B+2);u[C][B].appendTo(j);var J=$(i.get(y)).clone().appendTo(u[C][B]).css(s);var A={top:-H*v,left:-G*w,opacity:0};var r={top:-C*v,left:-B*w,opacity:1};if(m.support.transform&&m.support.transition){A.translate=[A.left,A.top,0];r.translate=[r.left,r.top,0];delete A.top;delete A.left;delete r.top;delete r.left}wowAnimate(J.css({position:"absolute"}),A,r,q,"easeInOutSine",function(){a++;if(a==l*c){z();e.stop(1,1);h.trigger("effectEnd")}})}}wowAnimate(D,{scale:1},{scale:1.6},m.duration,m.duration*0.2,"easeInOutSine")}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"domino",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeOutBackCubic:function(e,f,a,j,i,g){var h=(f/=i)*f;return a+j*(-1.5*h*f*h+2*h*h+4*h*f+-9*h+5.5*f)}});function ws_dribbles(p,k,a){var e=jQuery;var j=e(this);var n=p.noCanvas||!document.createElement("canvas").getContext;var m=p.width,f=p.height;var i=e("<div>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).addClass("ws_effect ws_dribbles").appendTo(a);if(!n){var c=e("<canvas>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%"}).appendTo(i);var o=c.get(0).getContext("2d")}var l=[["#bbbbbb",0.1,0.3,0.18],["#b3b3b3",0.9,0.8,0.15],["#b6b6b6",0.68,0.4,0.2],["#b9b9b9",0.25,0.4,0.15],["#cccccc",0.11,0.7,0.15],["#c3c3c3",0.18,0.1,0.15],["#c6c6c6",0.4,0.2,0.15],["#c9c9c9",0.55,-0.04,0.18],["#d3d3d3",0,0.95,0.13],["#d6d6d6",0.5,0.8,0.22],["#d9d9d9",0.9,0.1,0.18],["#eeeeee",0.3,0.9,0.18],["#e3e3e3",0.93,0.5,0.14],["#e6e6e6",0.7,0.9,0.15]];var d=[[[0.1,0.3,0,1],[0.9,0.8,0.15,0.85],[0.68,0.4,0,0.9],[0.25,0.4,0.21,0.79],[0.11,0.7,0.3,0.7],[0.18,0.1,0.45,0.55],[0.4,0.2,0,0.75],[0.55,-0.04,0.48,0.52],[0,0.95,0.21,0.79],[0.5,0.8,0.1,0.9],[0.9,0.1,0.25,0.75],[0.3,0.9,0.18,0.82],[0.93,0.5,0.4,0.6],[0.7,0.9,0.13,0.87]],[[-0.3,-0.2,0.06,1],[-0.1,-0.3,0.12,1],[-0.2,-0.5,0,1],[-0.1,-0.3,0.24,1],[-0.3,-0.4,0.4,1],[-0.5,-0.1,0.76,1],[-0.2,-0.1,0.62,1],[-0.3,-0.3,0.48,1],[-0.4,-0.1,0.05,1],[-0.5,-0.2,0.6,1],[-0.3,-0.25,0.75,1],[-0.1,-0.4,0.3,1],[-0.2,-0.35,0.95,1],[-0.15,-0.25,0.2,1]],[[1.3,1.2,0.06,1],[1.1,1.3,0.12,1],[1.2,1.5,0,1],[1.1,1.3,0.24,1],[1.3,1.4,0.4,1],[1.5,1.1,0.76,1],[1.2,1.1,0.62,1],[1.3,1.3,0.48,1],[1.4,1.1,0.05,1],[1.5,1.2,0.6,1],[1.3,1.25,0.75,1],[1.1,1.4,0.3,1],[1.2,1.35,0.95,1],[1.15,1.25,0.2,1]],[[0.1,1.3,0,1],[0.9,1.34,0.15,0.85],[0.68,1.23,0,0.9],[0.25,1.5,0.21,0.79],[0.11,1.2,0.3,0.7],[0.18,1.4,0.16,0.84],[0.4,1.17,0,0.75],[0.55,1.2,0,0.52],[0,1.5,0.21,0.79],[0.5,1.45,0,0.9],[0.9,1.34,0.25,0.75],[0.3,1.6,0.18,0.82],[0.93,1.2,0.09,0.91],[0.7,1.15,0.13,0.87]],[[0.1,-0.3,0,1],[0.9,-0.34,0.15,0.85],[0.68,-0.23,0,0.9],[0.25,-0.5,0.21,0.79],[0.11,-0.2,0.3,0.7],[0.18,-0.4,0.16,0.84],[0.4,-0.17,0,0.75],[0.55,-0.2,0,0.52],[0,-0.5,0.21,0.79],[0.5,-0.45,0,0.9],[0.9,-0.34,0.25,0.75],[0.3,-0.6,0.18,0.82],[0.93,-0.2,0.09,0.91],[0.7,-0.15,0.13,0.87]],[[-0.2,-0.1,0,1],[1.3,1.1,0.15,0.85],[0.48,1.4,0,0.9],[1.2,1.6,0.21,0.79],[1.11,-0.15,0.3,0.7],[0.28,1.3,0.16,0.84],[-0.1,-0.4,0,0.75],[0.15,1.3,0,0.52],[-0.5,0.85,0.21,0.79],[-0.2,0.7,0,0.9],[1.4,0.2,0.25,0.75],[1.1,1.5,0.18,0.82],[-0.43,-0.2,0.09,0.91],[0.7,1.5,0.13,0.87]]];function b(y,w,t,q){y.clearRect(0,0,m,f);for(var r=0,v=t.length;r<v;r++){var s=2-t[r][3];var x=t[r][2]*(1-w);var h=Math.max(0,Math.min(1,w*s-x));if(q&&e.easing[q]){h=e.easing[q](1,h,0,1,1,1)}var u=m;if(m/f<=1.8&&m/f>0.7){u*=2}else{if(m/f<=0.7){u=f*2}}y.beginPath();y.arc((t[r][0]+(l[r][1]-t[r][0])*h)*m,(t[r][1]+(l[r][2]-t[r][1])*h)*f,l[r][3]*h*u,0,2*Math.PI,false);y.fillStyle=l[r][0];y.fill()}}this.go=function(x,s){if(n){a.find(".ws_list").css("transform","translate3d(0,0,0)").stop(true).animate({left:(x?-x+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))},p.duration,"easeInOutExpo",function(){j.trigger("effectEnd")})}else{m=a.width();f=a.height();var u=Math.floor(Math.random()*(d.length));var y=d[u];var r=d[Math.floor(Math.random()*(d.length))];c.attr({width:m,height:f});var v=k.get(u==0?s:x);for(var t=0,w=l.length;t<w;t++){var q=Math.abs(l[t][1]),h=Math.abs(l[t][2]);l[t][0]=g(v,{x:q*m,y:h*f,w:2,h:2})||l[t][0]}wowAnimate(function(z){b(o,z,y,"easeOutBackCubic")},0,1,p.duration/2,function(){a.find(".ws_list").css({left:(x?-x+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))});wowAnimate(function(z){b(o,1-z,r,"easeOutBackCubic")},0,1,p.duration/2,function(){o.clearRect(0,0,m,f);j.trigger("effectEnd")})})}};function g(z,q){q=q||{};var B=1,t=q.exclude||[],y;var v=document.createElement("canvas"),s=v.getContext("2d"),r=v.width=z.naturalWidth,F=v.height=z.naturalHeight;s.drawImage(z,0,0,z.naturalWidth,z.naturalHeight);try{y=s.getImageData(q.x?q.x:0,q.y?q.y:0,q.w?q.w:z.width,q.h?q.h:z.height)["data"]}catch(A){return false}var u=(q.w?q.w:z.width*q.h?q.h:z.height)||y.length,w={},D="",C=[],h={dominant:{name:"",count:0}};var x=0;while(x<u){C[0]=y[x];C[1]=y[x+1];C[2]=y[x+2];D=C.join(",");if(D in w){w[D]=w[D]+1}else{w[D]=1}if(t.indexOf(["rgb(",D,")"].join(""))===-1){var E=w[D];if(E>h.dominant.count){h.dominant.name=D;h.dominant.count=E}}x+=B*4}return["rgb(",h.dominant.name,")"].join("")}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"dribbles",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_fade(c,a,b){var e=jQuery,g=e(this),d=e(".ws_list",b),h={position:"absolute",left:0,top:0,width:"100%",height:"100%",maxHeight:"none",maxWidth:"none",transform:"translate3d(0,0,0)"},f=e("<div>").addClass("ws_effect ws_fade").css(h).css("overflow","hidden").appendTo(b);this.go=function(i,j){var k=e(a.get(i)),m={width:k.width(),height:k.height()};k=k.clone().css(h).css(m).appendTo(f);if(!c.noCross){var l=e(a.get(j)).clone().css(h).css(m).appendTo(f);wowAnimate(l,{opacity:1},{opacity:0},c.duration,function(){l.remove()})}wowAnimate(k,{opacity:0},{opacity:1},c.duration,function(){g.trigger("effectEnd");k.remove()})}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"fade",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2,
// remove next 3 lines to remove "random" slide order
// onBeforeStep:function(i, c) {
// return (i+1 + Math.floor((c-1)*Math.random()))
// }
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_fly(c,a,b){var e=jQuery;var f=e(this);var h={position:"absolute",left:0,top:0,width:"100%",height:"100%",transform:"translate3d(0,0,0)"};var d=b.find(".ws_list");var g=e("<div>").addClass("ws_effect ws_fly").css(h).css({overflow:"visible"}).appendTo(b);this.go=function(p,m,l){if(l==undefined){l=!!c.revers}else{l=!l}var k=-(c.distance||g.width()/4),n=Math.min(-k,Math.max(0,e(window).width()-g.offset().left-g.width())),i=(l?n:k),q=(l?k:n);var j=e(a.get(m));j={width:j.width(),height:j.height()};var r=e("<div>").css(h).css({"z-index":1,overflow:"hidden"}).html(e(a.get(m)).clone().css(j)).appendTo(g);var o=e("<div>").css(h).css({"z-index":3,overflow:"hidden"}).html(e(a.get(p)).clone().css(j)).appendTo(g).show();wowAnimate(o,{opacity:0},{opacity:1},c.duration);wowAnimate(o,{left:i},{left:0},2*c.duration/3);d.hide();wowAnimate(r,{left:0,opacity:1},{left:q,opacity:0},2*c.duration/3,c.duration/3,function(){r.remove();f.trigger("effectEnd");o.remove()})}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"fly",
duration:13*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_kenburns(d,l,m){var e=jQuery;var g=e(this);var f=document.createElement("canvas").getContext;var i=e("<div>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).addClass("ws_effect ws_kenburns").appendTo(m);var o=d.paths||[{from:[0,0,1],to:[0,0,1.2]},{from:[0,0,1.2],to:[0,0,1]},{from:[1,0,1],to:[1,0,1.2]},{from:[0,1,1.2],to:[0,1,1]},{from:[1,1,1],to:[1,1,1.2]},{from:[0.5,1,1],to:[0.5,1,1.3]},{from:[1,0.5,1.2],to:[1,0.5,1]},{from:[1,0.5,1],to:[1,0.5,1.2]},{from:[0,0.5,1.2],to:[0,0.5,1]},{from:[1,0.5,1.2],to:[1,0.5,1]},{from:[0.5,0.5,1],to:[0.5,0.5,1.2]},{from:[0.5,0.5,1.3],to:[0.5,0.5,1]},{from:[0.5,1,1],to:[0.5,0,1.15]}];function c(h){return o[h?Math.floor(Math.random()*(f?o.length:Math.min(5,o.length))):0]}var k=d.width,p=d.height;var j,b;var a,r;function n(){a=e('<div style="width:100%;height:100%"></div>').css({"z-index":8,position:"absolute",left:0,top:0}).appendTo(i)}n();function s(w,t,h){var u={width:100*w[2]+"%"};u[t?"right":"left"]=-100*(w[2]-1)*(t?(1-w[0]):w[0])+"%";u[h?"bottom":"top"]=-100*(w[2]-1)*(h?(1-w[1]):w[1])+"%";if(!f){for(var v in u){if(/\%/.test(u[v])){u[v]=(/right|left|width/.test(v)?k:p)*parseFloat(u[v])/100+"px"}}}return u}function q(w,z,A){var t=e(w);t={width:t.width(),height:t.height(),marginTop:t.css("marginTop"),marginLeft:t.css("marginLeft")};if(f){if(b){b.stop(1)}b=j}if(r){r.remove()}r=a;n();if(A){a.hide();r.stop(true,true)}if(f){var y,x;var u,h;u=e('<canvas width="'+k+'" height="'+p+'"/>');u.css({position:"absolute",left:0,top:0}).css(t).appendTo(a);y=u.get(0).getContext("2d");h=u.clone().appendTo(a);x=h.get(0).getContext("2d");j=wowAnimate(function(B){var D=[z.from[0]*(1-B)+B*z.to[0],z.from[1]*(1-B)+B*z.to[1],z.from[2]*(1-B)+B*z.to[2]];x.drawImage(w,-k*(D[2]-1)*D[0],-p*(D[2]-1)*D[1],k*D[2],p*D[2]);y.clearRect(0,0,k,p);var C=y;y=x;x=C},0,1,d.duration+d.delay*2)}else{k=t.width;p=t.height;var v=e('<img src="../../wow-slider/engine1/'+w.src+'"/>').css({position:"absolute",left:"auto",right:"auto",top:"auto",bottom:"auto"}).appendTo(a).css(s(z.from,z.from[0]>0.5,z.from[1]>0.5)).animate(s(z.to,z.from[0]>0.5,z.from[1]>0.5),{easing:"linear",queue:false,duration:(1.5*d.duration+d.delay)})}if(A){a.fadeIn(d.duration)}}if(d.effect.length==1){e(function(){l.each(function(h){e(this).css({visibility:"hidden"});if(h==d.startSlide){q(this,c(h),0)}})})}this.go=function(h,t){setTimeout(function(){g.trigger("effectEnd")},d.duration);q(l.get(h),c(h),1)}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"kenburns",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeOutBackCubic:function(e,f,a,j,i,g){var h=(f/=i)*f;return a+j*(-1.5*h*f*h+2*h*h+4*h*f+-9*h+5.5*f)},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a}});function ws_lines(d,l,m){var e=jQuery;var f=e(this);var i=d.noCanvas||!document.createElement("canvas").getContext;var k=d.width,r=d.height;var g=e("<div>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).addClass("ws_effect ws_lines").appendTo(m);if(!i){var b=e("<canvas>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%"}).appendTo(g);var o=b.get(0).getContext("2d")}var s=[["rgb(187,187,187)",0.1,0.3],["rgb(179,179,179)",0.9,0.8],["rgb(182,182,182)",0.68,0.4],["rgb(185,185,185)",0.25,0.4],["rgb(204,204,204)",0.11,0.7],["rgb(195,195,195)",0.18,0.1],["rgb(198,198,198)",0.4,0.2],["rgb(201,201,201)",0.55,-0.04],["rgb(211,211,211)",0,0.95],["rgb(214,214,214)",0.5,0.8],["rgb(217,217,217)",0.9,0.1]];var a=[[0.5,0.4,0.3,0.2,0.1,0,0.1,0.2,0.3,0.4,0.5],[0,0.1,0.2,0.3,0.4,0.5,0.4,0.3,0.2,0.1,0],[0,0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5],[0.5,0.45,0.4,0.35,0.3,0.25,0.2,0.15,0.1,0.05,0],[0.7,0.3,0,0.1,0.5,0.3,0.4,0.1,0.6,0.2,0],];var q=["from-top","from-bottom","width-from-center","height-from-center","fill-half-fill-full"];var j=["easeOutExpo","easeOutCubic","easeOutBackCubic","easeOutBack"];var p=[45,-45,0,180,90,-90];function n(h){h.save();h.setTransform(1,0,0,1,0,0);h.clearRect(0,0,k,r);h.restore()}function c(G,D,I,w,C,y,z){var u=k;var E=r;if(z==45||z==-45){u=E=Math.sqrt(k*k+r*r)}if(z==90||z==-90){u=r;E=k}var B=(u-k)/2;var v=(E-r)/2;n(G);for(var x=0,A=I.length;x<A;x++){var F=I[x]*(1-D);var h=Math.max(0,Math.min(1,D-F));G.beginPath();G.fillStyle=s[x][0];if(w){G.fillStyle=s[x][0].replace(/rgb/g,"rgba").replace(/\)/g,","+Math.min(D+0.1,1)+")")}var H={x:0,y:0,w:0,h:0};switch(C){case"from-top":if(y&&e.easing[y]){h=e.easing[y](1,h,0,1,1,1)}H.w=Math.ceil(0.5+u/A);H.h=E;H.x=(A-x-1)*u/A-B;H.y=-1.5*E*(1-h)-v;break;case"from-bottom":if(y&&e.easing[y]){h=e.easing[y](1,h,0,1,1,1)}H.w=Math.ceil(0.5+u/A);H.h=E;H.x=(A-x-1)*u/A-B;H.y=1.5*E*(1-h)-v;break;case"width-from-center":if(y&&e.easing[y]){h=e.easing[y](1,h,0,1,1,1)}H.w=Math.ceil(0.5+u/A)*h;H.h=E;H.x=(A-x-1)*u/A+(1-h)*u/A/2-B;H.y=-v;break;case"height-from-center":if(y&&e.easing[y]){h=e.easing[y](1,h,0,1,1,1)}H.w=Math.ceil(0.5+u/A);H.h=E*h;H.x=(A-x-1)*u/A-B;H.y=(1-h)*E/2-v;break;case"fill-half-fill-full":if(h<0.5){if(y&&e.easing[y]){h=e.easing[y](0.5,h,0,0.5,0.5,0.5)}}H.w=Math.ceil(0.5+u/A);H.h=E*h;H.x=(A-x-1)*u/A-B;H.y=(1-h)*E/2-v;break}G.fillRect(H.x,H.y,H.w,H.h)}}this.go=function(C,x){if(i){m.find(".ws_list").css("transform","translate3d(0,0,0)").stop(true).animate({left:(C?-C+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))},d.duration,"easeInOutExpo",function(){f.trigger("effectEnd")})}else{k=m.width();r=m.height();var w=a[Math.floor(Math.random()*(a.length))];var E=a[Math.floor(Math.random()*(a.length))];b.attr({width:k,height:r});var A=l.get(x);for(var y=0,B=s.length;y<B;y++){var v=Math.abs(s[y][1]),h=Math.abs(s[y][2]);s[y][0]=t(A,{x:v*k,y:h*r,w:2,h:2})||s[y][0]}var D=q[Math.floor(Math.random()*(q.length))];var z=j[Math.floor(Math.random()*(j.length))];var u=p[Math.floor(Math.random()*(p.length))];o.translate(k/2,r/2);o.rotate(u*Math.PI/180);o.translate(-k/2,-r/2);wowAnimate(function(F){c(o,F,w,true,D,z,u)},0,1,d.duration/2,function(){m.find(".ws_list").css({left:(C?-C+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))});D=q[Math.floor(Math.random()*(q.length))];z=j[Math.floor(Math.random()*(j.length))];wowAnimate(function(F){c(o,1-F,E,false,D,z,u)},0,1,d.duration/2,d.duration*0.15,function(){n(o);f.trigger("effectEnd")})})}};function t(D,u){u=u||{};var F=1,x=u.exclude||[],C;var z=document.createElement("canvas"),w=z.getContext("2d"),v=z.width=D.naturalWidth,J=z.height=D.naturalHeight;w.drawImage(D,0,0,D.naturalWidth,D.naturalHeight);try{C=w.getImageData(u.x?u.x:0,u.y?u.y:0,u.w?u.w:D.width,u.h?u.h:D.height)["data"]}catch(E){return false}var y=(u.w?u.w:D.width*u.h?u.h:D.height)||C.length,A={},H="",G=[],h={dominant:{name:"",count:0}};var B=0;while(B<y){G[0]=C[B];G[1]=C[B+1];G[2]=C[B+2];H=G.join(",");if(H in A){A[H]=A[H]+1}else{A[H]=1}if(x.indexOf(["rgb(",H,")"].join(""))===-1){var I=A[H];if(I>h.dominant.count){h.dominant.name=H;h.dominant.count=I}}B+=F*4}return["rgb(",h.dominant.name,")"].join("")}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"lines",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeOutOneBounce:function(e,i,c,a,d,g){var j=0.8;var b=0.2;var f=j*j;if(i<0.0001){return 0}else{if(i<j){return i*i/f}else{return 1-b*b+(i-j-b)*(i-j-b)}}},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}}});function ws_page(c,b,a){var e=jQuery;var h=c.angle||17;var g=e(this);var f=e("<div>").addClass("ws_effect ws_page").css({position:"absolute",width:"100%",height:"100%",top:"0%",overflow:"hidden"});var d=a.find(".ws_list");f.hide().appendTo(a);this.go=function(l,j){function o(){f.find("div").stop(1,1);f.hide();f.empty()}o();d.hide();var k=e("<div>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden","z-index":9}).append(e(b.get(l)).clone()).appendTo(f);var i=e("<div>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",outline:"1px solid transparent","z-index":10,"transform-origin":"top left","backface-visibility":"hidden"}).append(e(b.get(j)).clone()).appendTo(f);f.show();if(c.responsive<3){k.find("img").css("width","100%");i.find("img").css("width","100%")}var q=i;var p=q.width(),m=q.height();var n=!document.addEventListener;wowAnimate(q,{rotate:0},{rotate:h},n?0:2*c.duration/3,"easeOutOneBounce",function(){wowAnimate(q,{top:0},{top:"100%"},(n?2:1)*c.duration/3)});wowAnimate(k,{top:"-100%"},{top:"-30%"},n?0:c.duration/2,function(){wowAnimate(k,{top:"-30%"},{top:0},(n?2:1)*c.duration/2,"easeOutBounce",function(){q.hide();o();g.trigger("effectEnd")})})}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"page",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_parallax(k,g,a){var c=jQuery;var f=c(this);var d=a.find(".ws_list");var b=k.parallax||0.25;var e=c("<div>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).addClass("ws_effect ws_parallax").appendTo(a);function j(l){return Math.round(l*1000)/1000}var i=c("<div>").css({position:"absolute",left:0,top:0,overflow:"hidden",width:"100%",height:"100%",transform:"translate3d(0,0,0)"}).appendTo(e);var h=i.clone().appendTo(e);this.go=function(l,r,p){var s=c(g.get(r));s={width:s.width(),height:s.height(),marginTop:s.css("marginTop"),marginLeft:s.css("marginLeft")};p=p?1:-1;var n=c(g.get(r)).clone().css(s).appendTo(i);var o=c(g.get(l)).clone().css(s).appendTo(h);var m=a.width()||k.width;var q=a.height()||k.height;d.hide();wowAnimate(function(v){v=c.easing.swing(v);var x=j(p*v*m),u=j(p*(-m+v*m)),t=j(-p*m*b*v),w=j(p*m*b*(1-v));if(k.support.transform){i.css("transform","translate3d("+x+"px,0,0)");n.css("transform","translate3d("+t+"px,0,0)");h.css("transform","translate3d("+u+"px,0,0)");o.css("transform","translate3d("+w+"px,0,0)")}else{i.css("left",x);n.css("margin-left",t);h.css("left",u);o.css("margin-left",w)}},0,1,k.duration,function(){e.hide();n.remove();o.remove();f.trigger("effectEnd")})}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"parallax",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_photo(a,g,j){var c=jQuery,e=c(this),l=c(".ws_list",j),n=(/iPhone|iPod|iPad|Android|BlackBerry/).test(navigator.userAgent),h=g.length,w=a.imagesCount||30,m=30,d=80,q=[];var f=c("<div>").addClass("ws_effect ws_photo").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",backgroundColor:"#DDDDDD"}).appendTo(j);if(!n){var o=c("<div>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.6)",zIndex:4}).appendTo(f)}var r=Math.max(w,g.length);for(var t=0,p=0;t<r;t++){if(p>=g.length){p-=g.length}c("<div>").addClass("ws_photoItem").css({width:"100%",height:"100%",overflow:"hidden"}).append(c("<div>").css({overflow:"hidden",position:"absolute"}).append(c(g[p]).clone())).appendTo(f);if(a.images&&t<g.length){q.push(!a.images[p].noimage)}p++}var s=f.children(".ws_photoItem");function u(k,i){return parseFloat(Math.random()*(i-k)+k)}function v(K,D,i,B,z,J){if(!K[0].wowParams){K[0].wowParams={}}if(B&&D){var L=d,G=50-L/2,F=50-L/2,A=0,E=5}else{var L=m,G=u(-10,90),F=u(-10,90),A=u(-30,30),E=B?(D?5:(i?3:2)):(D?3:(i?4:2))}var I={top:K[0].wowParams.y||0,left:K[0].wowParams.x||0,width:K[0].wowParams.size||0,height:K[0].wowParams.size||0};var H={top:F,left:G,width:L,height:L};if(a.support.transform){I={translate:[(50-I.width/2-I.left)+"%",(50-I.width/2-I.top)+"%",0],rotate:K[0].wowParams.angle||0,scale:I.width/100};H={translate:[(50-H.width/2-H.left),(50-H.width/2-H.top),0],rotate:A||0,scale:H.width/100}}else{for(var C in I){I[C]=I[C]+"%"}}wowAnimate(K.css({position:"absolute",zIndex:E}),I,H,z,"swing",J||0);K[0].wowParams={size:L,x:G,y:F,angle:A,zIndex:E}}s.each(function(i){v(c(this),a.startSlide==i,false,true,0)});function b(){if(a.support.transform){var i=c(g[0]);i={width:i.width(),height:i.height(),marginTop:parseFloat(i.css("marginTop")),marginLeft:parseFloat(i.css("marginLeft"))};c(s).find("img").css(i)}else{c(s).find("img").css({width:"100%"})}}b();c(window).on("load resize",b);this.go=function(i,y){b();if(a.images&&!q[i]){q[i]=true;var k=i;for(;;){c(s[k]).find("img").attr("src",a.images[k%g.length].src);if(k>r){break}k+=g.length}}if(window.XMLHttpRequest){var x=a.duration*0.5;s.each(function(z){v(c(this),i==z,y==z,false,x)});if(!n){wowAnimate(o,{opacity:1},{opacity:0},x*0.7,"swing")}setTimeout(function(){s.each(function(z){v(c(this),i==z,y==z,true,x,(y==z?function(){e.trigger("effectEnd")}:0))});if(!n){wowAnimate(o,{opacity:0},{opacity:1},x*0.7,"swing")}},x)}else{l.stop(true).animate({left:(i?-i+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))},a.duration,"easeInOutExpo",function(){e.trigger("effectEnd")})}}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"photo",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_rotate(i,h,a){var d=jQuery;var g=d(this);var e=d(".ws_list",a);var b={position:"absolute",left:0,top:0};var f=d("<div>").addClass("ws_effect ws_rotate").css(b).css({height:"100%",width:"100%",overflow:"hidden"}).appendTo(a);var c;this.go=function(j,k){var m=d(h[0]);m={width:m.width(),height:m.height(),marginTop:parseFloat(m.css("marginTop")),marginLeft:parseFloat(m.css("marginLeft")),maxHeight:"none",maxWidth:"none",};if(c){c.stop(true,true)}c=d(h.get(j)).clone().css(b).css(m).appendTo(f);if(!i.noCross){var l=d(h.get(k)).clone().css(b).css(m).appendTo(f);wowAnimate(l,{opacity:1,rotate:0,scale:1},{opacity:0,rotate:i.rotateOut||180,scale:i.scaleOut||10},i.duration,"easeInOutExpo",function(){l.remove()})}wowAnimate(c,{opacity:1,rotate:-(i.rotateIn||180),scale:i.scaleIn||10},{opacity:1,rotate:0,scale:1},i.duration,"easeInOutExpo",function(){c.remove();c=0;g.trigger("effectEnd")})}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"rotate",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1000,
height:450,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:false, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:1,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a}});function ws_shift(k,i,c){var d=jQuery;var h=d(this);var b=c.find("li");var f=c.find(".ws_list");var e={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"};var g=d("<div>").addClass("ws_effect ws_shift").css(e).appendTo(c);var a=d("<div>").css(e).css({display:"none",zIndex:4}).appendTo(g);var j=d("<div>").css(e).css({display:"none",zIndex:3}).appendTo(g);this.go=function(l,p,n){var m=c.width();var o=c.height();a.append(d(i.get(l)).clone());j.append(d(i.get(p)).clone());if(k.responsive<3){a.find("img").css("width","100%");j.find("img").css("width","100%")}f.stop(true,true).hide().css({left:-l+"00%"});var q={left:[{left:-m},{left:0}],right:[{left:m},{left:0}],down:[{top:o},{top:0}],up:[{top:-o},{top:0}]}[k.direction||["left","right","down","up"][Math.floor(Math.random()*4)]];if(k.support.transform){if(q[0].left){q[0]={translate:[q[0].left,0,0]}}else{q[0]={translate:[0,q[0].top,0]}}q[1]={translate:[0,0,0]}}a.show();j.show();wowAnimate(a,q[0],q[1],k.duration,"easeInOutCubic",function(){f.show();a.hide().html("");j.hide().html("");h.trigger("effectEnd")});wowAnimate(j,{scale:1,translate:[0,0,0]},{scale:0.5,translate:[0,0,0]},k.duration,"easeInOutCubic")}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"shift",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_slices(k,h,i){var b=jQuery;var f=b(this);function g(q,p,o,m,l,n){if(k.support.transform){if(p.top){p.translate=[0,p.top||0,0]}if(o.top){o.translate=[0,o.top||0,0]}delete p.top;delete o.top}wowAnimate(q,p,o,m,l,"swing",n)}var e=function(r,x){var q=b.extend({},{effect:"random",slices:15,animSpeed:500,pauseTime:3000,startSlide:0,container:null,onEffectEnd:0},x);var t={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",stop:false};var o=b(r);o.data("wow:vars",t);if(!/absolute|relative/.test(o.css("position"))){o.css("position","relative")}var m=x.container||o;var p=o.children();t.totalSlides=p.length;if(q.startSlide>0){if(q.startSlide>=t.totalSlides){q.startSlide=t.totalSlides-1}t.currentSlide=q.startSlide}if(b(p[t.currentSlide]).is("img")){t.currentImage=b(p[t.currentSlide])}else{t.currentImage=b(p[t.currentSlide]).find("img:first")}if(b(p[t.currentSlide]).is("a")){b(p[t.currentSlide]).css("display","block")}for(var s=0;s<q.slices;s++){var w=Math.round(m.width()/q.slices);var v=b('<div class="wow-slice"></div>').css({left:w*s+"px",overflow:"hidden",width:((s==q.slices-1)?(m.width()-(w*s)):w)+"px",position:"absolute"}).appendTo(m);b("<img>").css({position:"absolute",left:0,top:0,transform:"translate3d(0,0,0)"}).appendTo(v)}var n=0;this.sliderRun=function(y,z){if(t.busy){return false}q.effect=z||q.effect;t.currentSlide=y-1;u(o,p,q,false);return true};var l=function(){if(q.onEffectEnd){q.onEffectEnd(t.currentSlide)}m.hide();b(".wow-slice",m).css({transition:"",transform:""});t.busy=0};var u=function(y,z,C,E){var F=y.data("wow:vars");if((!F||F.stop)&&!E){return false}F.busy=1;F.currentSlide++;if(F.currentSlide==F.totalSlides){F.currentSlide=0}if(F.currentSlide<0){F.currentSlide=(F.totalSlides-1)}F.currentImage=b(z[F.currentSlide]);if(!F.currentImage.is("img")){F.currentImage=F.currentImage.find("img:first")}var A=b(h[F.currentSlide]);A={width:A.width(),heiht:A.height(),marginTop:A.css("marginTop"),marginLeft:A.css("marginLeft")};b(".wow-slice",m).each(function(J){var L=b(this),I=b("img",L);var K=Math.round(m.width()/C.slices);I.width(m.width());I.attr("src",F.currentImage.attr("src"));I.css({left:-K*J+"px"}).css(A);L.css({height:"100%",opacity:0,left:K*J,width:((J==C.slices-1)?(m.width()-(K*J)):K)})});m.show();if(C.effect=="random"){var G=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDownRight","sliceUpDownLeft","fold","fade");F.randAnim=G[Math.floor(Math.random()*(G.length+1))];if(F.randAnim==undefined){F.randAnim="fade"}}if(C.effect.indexOf(",")!=-1){var G=C.effect.split(",");F.randAnim=b.trim(G[Math.floor(Math.random()*G.length)])}if(C.effect=="sliceDown"||C.effect=="sliceDownRight"||F.randAnim=="sliceDownRight"||C.effect=="sliceDownLeft"||F.randAnim=="sliceDownLeft"){var B=0;var H=b(".wow-slice",m);if(C.effect=="sliceDownLeft"||F.randAnim=="sliceDownLeft"){H=H._reverse()}H.each(function(I){g(b(this),{top:"-100%",opacity:0},{top:"0%",opacity:1},C.animSpeed,100+B,(I==C.slices-1)?l:0);B+=50})}else{if(C.effect=="sliceUp"||C.effect=="sliceUpRight"||F.randAnim=="sliceUpRight"||C.effect=="sliceUpLeft"||F.randAnim=="sliceUpLeft"){var B=0;var H=b(".wow-slice",m);if(C.effect=="sliceUpLeft"||F.randAnim=="sliceUpLeft"){H=H._reverse()}H.each(function(I){g(b(this),{top:"100%",opacity:0},{top:"0%",opacity:1},C.animSpeed,100+B,(I==C.slices-1)?l:0);B+=50})}else{if(C.effect=="sliceUpDown"||C.effect=="sliceUpDownRight"||F.randAnim=="sliceUpDownRight"||C.effect=="sliceUpDownLeft"||F.randAnim=="sliceUpDownLeft"){var B=0;var H=b(".wow-slice",m);if(C.effect=="sliceUpDownLeft"||F.randAnim=="sliceUpDownLeft"){H=H._reverse()}H.each(function(I){g(b(this),{top:((I%2)?"-":"")+"100%",opacity:0},{top:"0%",opacity:1},C.animSpeed,100+B,(I==C.slices-1)?l:0);B+=50})}else{if(C.effect=="fold"||F.randAnim=="fold"){var B=0;var H=b(".wow-slice",m);var D=H.width();H.each(function(I){g(b(this),{width:0,opacity:0},{width:D,opacity:1},C.animSpeed,100+B,(I==C.slices-1)?l:0);B+=50})}else{if(C.effect=="fade"||F.randAnim=="fade"){var H=b(".wow-slice",m);b(".wow-slice",m).each(function(I){b(this).css("height","100%");b(this).animate({opacity:"1.0"},(C.animSpeed*2),(I==C.slices-1)?l:0)})}}}}}}};b.fn._reverse=[].reverse;var a=b("li",i);var c=b("ul",i);var d=b("<div>").addClass("ws_effect ws_slices").css({left:0,top:0,"z-index":8,overflow:"hidden",width:"100%",height:"100%",position:"absolute"}).appendTo(i);var j=new e(c,{keyboardNav:false,caption:0,effect:"sliceDownRight,sliceDownLeft,sliceUpRight,sliceUpLeft,sliceUpDownRight,sliceUpDownLeft,sliceUpDownRight,sliceUpDownLeft,fold,fold,fold",animSpeed:k.duration,startSlide:k.startSlide,container:d,onEffectEnd:function(l){f.trigger("effectEnd")}});this.go=function(m,l){var n=j.sliderRun(m);if(k.fadeOut){c.fadeOut(k.duration)}}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"slices",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_stack(d,a,b){var e=jQuery;var g=e(this);var c=e("li",b);var f=e("<div>").addClass("ws_effect ws_stack").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).appendTo(b);this.go=function(q,j,i){var k=(d.revers?1:-1)*b.width();c.each(function(s){if(i&&s!=j){this.style.zIndex=(Math.max(0,this.style.zIndex-1))}});var p=e(".ws_list",b);var h=e("<div>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",zIndex:4}).append(e(a.get(i?q:j)).clone()),r=e("<div>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",zIndex:4}).append(e(a.get(i?j:q)).clone());if(d.responsive<3){h.find("img").css("width","100%");r.find("img").css("width","100%")}if(i){r.appendTo(f);h.appendTo(f)}else{h.insertAfter(p);r.insertAfter(p)}if(!i){p.stop(true,true).hide().css({left:-q+"00%"});if(d.fadeOut){p.fadeIn(d.duration)}else{p.show()}}else{if(d.fadeOut){p.fadeOut(d.duration)}}var o={left:i?k:0};var m={left:i?0:-k*0.5};var n={left:i?0:k};var l={left:(i?1:0)*b.width()*0.5};if(d.support.transform){o={translate:[o.left,0,0]};m={translate:[m.left,0,0]};n={translate:[n.left,0,0]};l={translate:[l.left,0,0]}}wowAnimate(h,o,n,d.duration,d.duration*(i?0:0.1),"easeInOutExpo",function(){g.trigger("effectEnd");h.remove();r.remove()});wowAnimate(r,m,l,d.duration,d.duration*(i?0.1:0),"easeInOutExpo")}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"stack",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
function ws_stack_vertical(d,a,b){var e=jQuery;var g=e(this);var c=e("li",b);var f=e("<div>").addClass("ws_effect ws_stack_vertical").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).appendTo(b);this.go=function(q,j,i){var k=(d.revers?1:-1)*b.height();c.each(function(s){if(i&&s!=j){this.style.zIndex=(Math.max(0,this.style.zIndex-1))}});var p=e(".ws_list",b);var h=e("<div>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",zIndex:4}).append(e(a.get(i?q:j)).clone()),r=e("<div>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",zIndex:4}).append(e(a.get(i?j:q)).clone());if(d.responsive<3){h.find("img").css("width","100%");r.find("img").css("width","100%")}if(i){r.appendTo(f);h.appendTo(f)}else{h.insertAfter(p);r.insertAfter(p)}if(!i){p.stop(true,true).hide().css({left:-q+"00%"});if(d.fadeOut){p.fadeIn(d.duration)}else{p.show()}}else{if(d.fadeOut){p.fadeOut(d.duration)}}var o={top:i?k:0};var m={top:i?0:-k*0.5};var n={top:i?0:k};var l={top:(i?1:0)*b.height()*0.5};if(d.support.transform){o={translate:[0,o.top,0]};m={translate:[0,m.top,0]};n={translate:[0,n.top,0]};l={translate:[0,l.top,0]}}wowAnimate(h,o,n,d.duration,d.duration*(i?0:0.1),"easeInOutExpo",function(){g.trigger("effectEnd");h.remove();r.remove()});wowAnimate(r,m,l,d.duration,d.duration*(i?0.1:0),"easeInOutExpo")}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"stack_vertical",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a}});function ws_turn(d,a,b){var f=jQuery;var h=f(this);var c=f("li",b);var e=f(".ws_list",b);var g=f("<div>").addClass("ws_effect ws_turn").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",perspective:500}).appendTo(b);this.go=function(q,l){var s=b.height();var j=b.width();var k={left:["0% 50%",{rotateY:90,translate:[0,0,0.1]},{left:-j}],right:["100% 50%",{rotateY:-90,translate:[0,0,0.1]},{left:j}],up:["50% 0%",{rotateX:-90,translate:[0,0,0.1]},{top:-s}],down:["50% 100%",{rotateX:90,translate:[0,0,0.1]},{top:s}]}[d.direction||["left","right","down","up"][Math.floor(Math.random()*4)]];var i=f("<div>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",transformOrigin:k[0],transformStyle:"preserve-3d",outline:"1px solid transparent",zIndex:5}).append(f(a.get(q)).clone()),r=f("<div>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",background:"#000",zIndex:4}).append(f(a.get(l)).clone());g.css({perspectiveOrigin:k[0]});if(d.responsive<3){i.find("img").css("width","100%");r.find("img").css("width","100%")}r.appendTo(g);i.appendTo(g);e.stop(true,true).hide().css({left:-q+"00%"});var p=k[2];var o={top:0,left:0};var n={opacity:1};var m={opacity:0.2};if(d.support.transform){p=k[1];o={rotateX:0,rotateY:0,translate:[0,0,0]}}wowAnimate(i,p,o,d.duration,"easeInOutQuart",function(){h.trigger("effectEnd");i.remove();r.remove()});wowAnimate(r.find("img"),n,m,d.duration,"easeInOutQuart")}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"turn",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

View File

@@ -0,0 +1,36 @@
/**
* WOWslider
*
* http://wowslider.com
*/
jQuery.extend(jQuery.easing,{easeOutBack2:function(f,g,e,j,i){var h=(g/=i)*g;var a=h*g;return e+j*(5*a*h+-15*h*h+19*a+-14*h+6*g)},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a}});function ws_tv(m,i,b){var d=jQuery;var g=d(this);var k=m.noCanvas||!document.createElement("canvas").getContext;var j=m.width,e=m.height;var f=d("<div>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).addClass("ws_effect ws_tv").appendTo(b);if(!k){var c=d("<canvas>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%"}).appendTo(f);var l=c.get(0).getContext("2d")}function a(n,h,o){return n+(h-n)*o}this.go=function(h,o){if(k){b.find(".ws_list").css("transform","translate3d(0,0,0)").stop(true).animate({left:(h?-h+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))},m.duration,"easeInOutExpo",function(){g.trigger("effectEnd")})}else{j=b.width();e=b.height();c.attr({width:j,height:e});var n=d(i.get(h)).clone().css({opacity:0,zIndex:2,maxHeight:"none"}).appendTo(f);wowAnimate(function(p){l.clearRect(0,0,j,e);var r=j;if(p>=0.95){r*=1-(p-0.95)/(1-0.95)}l.fillStyle="#111";l.fillRect(0,0,j,e);var q=l.createLinearGradient(0,p*e/2,0,e-p*e/2);q.addColorStop(0,"#111");q.addColorStop(a(0,0.5,p),"#fff");q.addColorStop(0.5,"#fff");q.addColorStop(a(1,0.5,p),"#fff");q.addColorStop(1,"#111");l.fillStyle=q;l.fillRect((j-r)/2,p*e/2,r,e*(1-p))},0,1,m.duration*0.3,"easeOutCubic",function(){wowAnimate(n,{scale:[0.9,0],opacity:0.5},{scale:[1,1],opacity:1},m.duration*0.3,m.duration*0.4,"easeOutBack2",function(){b.find(".ws_list").css({left:(h?-h+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))});g.trigger("effectEnd");setTimeout(function(){l.fillStyle="#111";l.clearRect(0,0,j,e);n.remove()},1)})})}}};
/* ---------------------------------------------------------------------------
* WOWslider Settings
* -------------------------------------------------------------------------- */
jQuery("#wowslider-container1").wowSlider( {
effect:"tv",
duration:20*100, // change effect transition time
delay:20*100, // change delay on each slide
width:1600,
height:800,
autoPlay:true, // autoplay slides on load
playPause:false, // show a play & pause button
stopOnHover:false,
loop:false,
bullets:0,
caption:false, // use a caption on slides
controls:true, // use left, right arrows
fullScreen:true, // show a fullscreen button
responsive:3,
gestures:2,
// remove next 3 lines to remove "random" slide order
onBeforeStep:function(i, c) {
return (i+1 + Math.floor((c-1)*Math.random()))
}
}
);

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

File diff suppressed because one or more lines are too long