First commit 2014-2020
This commit is contained in:
commit
40a5bca3b8
215 files changed
+28433
No files matched your search
@@ -0,0 +1,85 @@
|
||||
/*!
|
||||
* classie v1.0.1
|
||||
* class helper functions
|
||||
* from bonzo https://github.com/ded/bonzo
|
||||
* MIT license
|
||||
*
|
||||
* classie.has( elem, 'my-class' ) -> true/false
|
||||
* classie.add( elem, 'my-new-class' )
|
||||
* classie.remove( elem, 'my-unwanted-class' )
|
||||
* classie.toggle( elem, 'my-class' )
|
||||
*/
|
||||
|
||||
/*jshint browser: true, strict: true, undef: true, unused: true */
|
||||
/*global define: false, module: false */
|
||||
|
||||
( function( window ) {
|
||||
|
||||
'use strict';
|
||||
|
||||
// class helper functions from bonzo https://github.com/ded/bonzo
|
||||
|
||||
function classReg( className ) {
|
||||
return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
|
||||
}
|
||||
|
||||
// classList support for class management
|
||||
// altho to be fair, the api sucks because it won't accept multiple classes at once
|
||||
var hasClass, addClass, removeClass;
|
||||
|
||||
if ( 'classList' in document.documentElement ) {
|
||||
hasClass = function( elem, c ) {
|
||||
return elem.classList.contains( c );
|
||||
};
|
||||
addClass = function( elem, c ) {
|
||||
elem.classList.add( c );
|
||||
};
|
||||
removeClass = function( elem, c ) {
|
||||
elem.classList.remove( c );
|
||||
};
|
||||
}
|
||||
else {
|
||||
hasClass = function( elem, c ) {
|
||||
return classReg( c ).test( elem.className );
|
||||
};
|
||||
addClass = function( elem, c ) {
|
||||
if ( !hasClass( elem, c ) ) {
|
||||
elem.className = elem.className + ' ' + c;
|
||||
}
|
||||
};
|
||||
removeClass = function( elem, c ) {
|
||||
elem.className = elem.className.replace( classReg( c ), ' ' );
|
||||
};
|
||||
}
|
||||
|
||||
function toggleClass( elem, c ) {
|
||||
var fn = hasClass( elem, c ) ? removeClass : addClass;
|
||||
fn( elem, c );
|
||||
}
|
||||
|
||||
var classie = {
|
||||
// full names
|
||||
hasClass: hasClass,
|
||||
addClass: addClass,
|
||||
removeClass: removeClass,
|
||||
toggleClass: toggleClass,
|
||||
// short names
|
||||
has: hasClass,
|
||||
add: addClass,
|
||||
remove: removeClass,
|
||||
toggle: toggleClass
|
||||
};
|
||||
|
||||
// transport
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( classie );
|
||||
} else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
module.exports = classie;
|
||||
} else {
|
||||
// browser global
|
||||
window.classie = classie;
|
||||
}
|
||||
|
||||
})( window );
|
||||
File diff suppressed because it is too large.
Load diff
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
/*! Magnific Popup - v0.9.9 - 2014-09-06
|
||||
* http://dimsemenov.com/plugins/magnific-popup/
|
||||
* Copyright (c) 2014 Dmitry Semenov; */
|
||||
(function(e){var t,n,i,o,r,a,s,l="Close",c="BeforeClose",d="AfterClose",u="BeforeAppend",p="MarkupParse",f="Open",m="Change",g="mfp",h="."+g,v="mfp-ready",C="mfp-removing",y="mfp-prevent-close",w=function(){},b=!!window.jQuery,I=e(window),x=function(e,n){t.ev.on(g+e+h,n)},k=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},T=function(n,i){t.ev.triggerHandler(g+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},E=function(n){return n===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=n),t.currTemplate.closeBtn},_=function(){e.magnificPopup.instance||(t=new w,t.init(),e.magnificPopup.instance=t)},S=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};w.prototype={constructor:w,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=S(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=e(document),t.popupsCache={}},open:function(n){i||(i=e(document.body));var r;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var s,l=n.items;for(r=0;l.length>r;r++)if(s=l[r],s.parsed&&(s=s.el[0]),s===n.el[0]){t.index=r;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return t.updateItemHTML(),void 0;t.types=[],a="",t.ev=n.mainEl&&n.mainEl.length?n.mainEl.eq(0):o,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=k("bg").on("click"+h,function(){t.close()}),t.wrap=k("wrap").attr("tabindex",-1).on("click"+h,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=k("container",t.wrap)),t.contentContainer=k("content"),t.st.preloader&&(t.preloader=k("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(r=0;c.length>r;r++){var d=c[r];d=d.charAt(0).toUpperCase()+d.slice(1),t["init"+d].call(t)}T("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(p,function(e,t,n,i){n.close_replaceWith=E(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(E())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:I.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+h,function(e){27===e.keyCode&&t.close()}),I.on("resize"+h,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var u=t.wH=I.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(u)){var g=t._getScrollbarSize();g&&(m.marginRight=g)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var C=t.st.mainClass;return t.isIE7&&(C+=" mfp-ie7"),C&&t._addClassToMFP(C),t.updateItemHTML(),T("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||i),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),o.on("focusin"+h,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(u),T(f),n},close:function(){t.isOpen&&(T(c),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(C),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){T(l);var n=C+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}o.off("keyup"+h+" focusin"+h),t.ev.off(h),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,T(d)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||I.height();t.fixedContentPos||t.wrap.css("height",t.wH),T("Resize")}Line truncated
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Modernizr 2.7.1 (Custom Build) | MIT & BSD
|
||||
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexboxlegacy-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
|
||||
*/
|
||||
;window.Modernizr=function(a,b,c){function C(a){j.cssText=a}function D(a,b){return C(n.join(a+";")+(b||""))}function E(a,b){return typeof a===b}function F(a,b){return!!~(""+a).indexOf(b)}function G(a,b){for(var d in a){var e=a[d];if(!F(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function H(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:E(f,"function")?f.bind(d||b):f}return!1}function I(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return E(b,"string")||E(b,"undefined")?G(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),H(e,b,c))}function J(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.7.1",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=E(e[d],"function"),E(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),A={}.hasOwnProperty,B;!E(A,"undefined")&&!E(A.call,"undefined")?B=function(a,b){return A.call(a,b)}:B=function(a,b){return b in a&&E(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return I("flexWrap")},s.flexboxlegacy=function(){return I("boxDirection")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!E(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!I("indexedDB",a)},s.hashchange=function(){return z("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return C("background-color:rgba(150,255,150,.5)"),F(j.backgroundColor,"rgba")},s.hsla=function(){return C("background-color:hsla(120,40%,100%,.5)"),F(j.backgroundColor,"rgba")||F(j.backgroundColor,"hsla")},s.multiplebgs=function(){return C("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return I("backgroundSize")},s.borderimage=function(){return I("borderImage")},s.borderradius=function(){return I("borderRadius")},s.boxshadow=function(){return I("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return D("opacity:.55"),/^Line truncated
|
||||
+326
@@ -0,0 +1,326 @@
|
||||
/***************** Waypoints ******************/
|
||||
$('.article').waypoint(function() {
|
||||
|
||||
$('.header').addClass("magictime spaceOutUp");
|
||||
}, { offset: -2 });
|
||||
$('.header').waypoint(function() {
|
||||
$('.header').removeClass("magictime spaceOutUp");
|
||||
|
||||
}, { offset: -2 });
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.wp1').waypoint(function() {
|
||||
$('.wp1').addClass('animated fadeInLeft');
|
||||
}, {
|
||||
offset: '10%'
|
||||
});
|
||||
$('.wp2').waypoint(function() {
|
||||
$('.wp2').addClass('animated fadeInUp');
|
||||
}, {
|
||||
offset: '35%'
|
||||
});
|
||||
$('.wp3').waypoint(function() {
|
||||
$('.wp3').addClass('animated fadeInDown');
|
||||
}, {
|
||||
offset: '55%'
|
||||
});
|
||||
$('.wp4').waypoint(function() {
|
||||
$('.wp4').addClass('animated fadeInDown');
|
||||
}, {
|
||||
offset: '75%'
|
||||
});
|
||||
$('.wp5').waypoint(function() {
|
||||
$('.wp5').addClass('animated fadeInUp');
|
||||
}, {
|
||||
offset: '75%'
|
||||
});
|
||||
$('.wp6').waypoint(function() {
|
||||
$('.wp6').addClass('animated fadeInDown');
|
||||
}, {
|
||||
offset: '75%'
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/***************** bounce - trigger ******************/
|
||||
$('.trigger').addClass('animated bounce');
|
||||
|
||||
setInterval(function() {
|
||||
$('.trigger').removeClass('animated bounce')
|
||||
}, 5000);
|
||||
|
||||
setInterval(function() {
|
||||
$('.trigger').addClass('animated bounce')
|
||||
}, 10000);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/***************** Slide-In Nav ******************/
|
||||
/*
|
||||
|
||||
$(window).load(function() {
|
||||
|
||||
$('.nav_slide_button').click(function() {
|
||||
$('.pull').slideToggle();
|
||||
});
|
||||
|
||||
});
|
||||
*/
|
||||
|
||||
/***************** Smooth Scrolling ******************/
|
||||
|
||||
$(function() {
|
||||
|
||||
$('a[href*=#]:not([href=#])').click(function() {
|
||||
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) {
|
||||
|
||||
var target = $(this.hash);
|
||||
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
|
||||
if (target.length) {
|
||||
$('html,body').animate({
|
||||
scrollTop: target.offset().top
|
||||
}, 2000);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/***************** Nav Transformicon ******************/
|
||||
/*
|
||||
|
||||
document.querySelector("#nav-toggle").addEventListener("click", function() {
|
||||
this.classList.toggle("active");
|
||||
});
|
||||
*/
|
||||
|
||||
/***************** Overlays ******************/
|
||||
|
||||
$(document).ready(function(){
|
||||
if (Modernizr.touch) {
|
||||
// show the close overlay button
|
||||
$(".close-overlay").removeClass("hidden");
|
||||
// handle the adding of hover class when clicked
|
||||
$(".img").click(function(e){
|
||||
if (!$(this).hasClass("hover")) {
|
||||
$(this).addClass("hover");
|
||||
}
|
||||
});
|
||||
// handle the closing of the overlay
|
||||
$(".close-overlay").click(function(e){
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if ($(this).closest(".img").hasClass("hover")) {
|
||||
$(this).closest(".img").removeClass("hover");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// handle the mouseenter functionality
|
||||
$(".img").mouseenter(function(){
|
||||
$(this).addClass("hover");
|
||||
})
|
||||
// handle the mouseleave functionality
|
||||
.mouseleave(function(){
|
||||
$(this).removeClass("hover");
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/***************** Flexsliders ******************/
|
||||
|
||||
$(window).load(function() {
|
||||
|
||||
$('#portfolioSlider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: false,
|
||||
controlNav: true,
|
||||
touch: false,
|
||||
pauseOnHover: true,
|
||||
start: function() {
|
||||
$.waypoints('refresh');
|
||||
}
|
||||
});
|
||||
|
||||
$('#servicesSlider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: false,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: true,
|
||||
start: function() {
|
||||
$.waypoints('refresh');
|
||||
}
|
||||
});
|
||||
|
||||
$('#teamSlider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: false,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: true,
|
||||
start: function() {
|
||||
$.waypoints('refresh');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/***************** Modal-Boxes ******************/
|
||||
|
||||
$('#print1').click(function(){
|
||||
$('#print1Modal').modal('toggle');
|
||||
$('#print1slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$('#print2').click(function(){
|
||||
$('#print2Modal').modal('toggle');
|
||||
$('#print2slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
});
|
||||
});
|
||||
|
||||
$('#print3').click(function(){
|
||||
$('#print3Modal').modal('toggle');
|
||||
$('#print3slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$('#web1').click(function(){
|
||||
$('#web1Modal').modal('toggle');
|
||||
$('#web1slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
});
|
||||
});
|
||||
|
||||
$('#web2').click(function(){
|
||||
$('#web2Modal').modal('toggle');
|
||||
$('#web2slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
});
|
||||
});
|
||||
|
||||
$('#web3').click(function(){
|
||||
$('#web3Modal').modal('toggle');
|
||||
$('#web3slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$('#kompetenz1').click(function(){
|
||||
$('#kompetenz1Modal').modal('toggle');
|
||||
$('#kompetenz1slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
$('#kompetenz2').click(function(){
|
||||
$('#kompetenz2Modal').modal('toggle');
|
||||
$('#kompetenz2slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
});
|
||||
});
|
||||
|
||||
$('#kompetenz3').click(function(){
|
||||
$('#kompetenz3Modal').modal('toggle');
|
||||
$('#kompetenz3slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
smoothHeight: true,
|
||||
});
|
||||
});
|
||||
|
||||
$('#kompetenz4').click(function(){
|
||||
$('#kompetenz4Modal').modal('toggle');
|
||||
$('#kompetenz4slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false, });
|
||||
});
|
||||
|
||||
$('#kompetenz5').click(function(){
|
||||
$('#kompetenz5Modal').modal('toggle');
|
||||
$('#kompetenz5slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
});
|
||||
});
|
||||
|
||||
$('#kompetenz6').click(function(){
|
||||
$('#kompetenz6Modal').modal('toggle');
|
||||
$('#kompetenz6slider').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: true,
|
||||
controlNav: true,
|
||||
touch: true,
|
||||
pauseOnHover: false,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/***************** Footer-Slider ******************/
|
||||
$('#footerSlides').flexslider({
|
||||
animation: "slide",
|
||||
directionNav: false,
|
||||
controlNav: false,
|
||||
touch: true,
|
||||
start: function() {
|
||||
$.waypoints('refresh');
|
||||
}
|
||||
});
|
||||
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// Generated by CoffeeScript 1.6.2
|
||||
/*!
|
||||
jQuery Waypoints - v2.0.5
|
||||
Copyright (c) 2011-2014 Caleb Troughton
|
||||
Licensed under the MIT license.
|
||||
https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt
|
||||
*/
|
||||
(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define==="function"&&define.amd){return define("waypoints",["jquery"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(window,function(n,r){var i,o,l,s,f,u,c,a,h,d,p,y,v,w,g,m;i=n(r);a=t.call(r,"ontouchstart")>=0;s={horizontal:{},vertical:{}};f=1;c={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};this.element[u]=this.id;c[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||a)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(a&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete c[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=this.element[w])!=null?o:[];i.push(this.id);this.element[w]=i}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=t[w];if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;e=n.extend({},n.fn[g].defaults,e);if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=c[i[0][u]];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke.call(this,"disable")},enable:function(){return d._invoke.call(this,"enable")},destroy:function(){return d._invoke.call(this,"destLine truncated
|
||||
Reference in new issue
Block a user