");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var F,H="ajax",L=function(){F&&i.removeClass(F)},A=function(){L(),t.req&&t.req.abort()};e.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){t.types.push(H),F=t.st.ajax.cursor,x(l+"."+H,A),x("BeforeChange."+H,A)},getAjax:function(n){F&&i.addClass(F),t.updateStatus("loading");var o=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};T("ParseAjax",a),t.appendContent(e(a.data),H),n.finished=!0,L(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),T("AjaxContentAdded")},error:function(){L(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(o),""}}});var j,N=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'
The image could not be loaded.'},proto:{initImage:function(){var e=t.st.image,n=".image";t.types.push("image"),x(f+n,function(){"image"===t.currItem.type&&e.cursor&&i.addClass(e.cursor)}),x(l+n,function(){e.cursor&&i.removeClass(e.cursor),I.off("resize"+h)}),x("Resize"+n,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,j&&clearInterval(j),e.isCheckingImgSize=!1,T("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){j&&clearInterval(j),j=setInterval(function(){return i.naturalWidth>0?(t._onImageHasSize(e),void 0):(n>200&&clearInterval(j),n++,3===n?o(10):40===n?o(50):100===n&&o(500),void 0)},r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,T("ImageLoadComplete")):(o++,200>o?setTimeout(r,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:N(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(j&&clearInterval(j),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var W,R=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};x("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return d(),void 0;r=s(e),r.css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,T("ZoomAnimationEnded")},16)},a)},16)}}),x(c+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),x(l+i,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(b?i.innerHeight():i[0].offsetHeight)-a-r};return R()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var Z="iframe",q="//about:blank",D=function(e){if(t.currTemplate[Z]){var n=t.currTemplate[Z].find("iframe");n.length&&(e||(n[0].src=q),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(Z,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(Z),x("BeforeChange",function(e,t,n){t!==n&&(t===Z?D():n===Z&&D(!0))}),x(l+"."+Z,function(){D()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){return o.indexOf(this.index)>-1?(this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1):void 0});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var K=function(e){var n=t.items.length;return e>n-1?e-n:0>e?n+e:e},Y=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);return t.direction=!0,n&&n.enabled?(a+=" mfp-gallery",x(f+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),o.on("keydown"+i,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),x("UpdateStatus"+i,function(e,n){n.text&&(n.text=Y(n.text,t.currItem.index,t.items.length))}),x(p+i,function(e,i,o,r){var a=t.items.length;o.counter=a>1?Y(n.tCounter,r.index,a):""}),x("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(k("b",o[0],!1,!0),k("a",o[0],!1,!0),k("b",a[0],!1,!0),k("a",a[0],!1,!0)),t.container.append(o.add(a))}}),x(m+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),x(l+i,function(){o.off(i),t.wrap.off("click"+i),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}),void 0):!1},next:function(){t.direction=!0,t.index=K(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=K(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;(t.direction?o:i)>=e;e++)t._preloadItem(t.index+e);for(e=1;(t.direction?i:o)>=e;e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=K(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),T("LazyLoad",i),"image"===i.type&&(i.img=e('
').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,T("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var U="retina";e.magnificPopup.registerModule(U,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(x("ImageHasSize."+U,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),x("ElementParse."+U,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t=1e3,n="ontouchstart"in window,i=function(){I.off("touchmove"+r+" touchend"+r)},o="mfpFastClick",r="."+o;e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,s=e(this);if(n){var l,c,d,u,p,f;s.on("touchstart"+r,function(e){u=!1,f=1,p=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],c=p.clientX,d=p.clientY,I.on("touchmove"+r,function(e){p=e.originalEvent?e.originalEvent.touches:e.touches,f=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-d)>10)&&(u=!0,i())}).on("touchend"+r,function(e){i(),u||f>1||(a=!0,e.preventDefault(),clearTimeout(l),l=setTimeout(function(){a=!1},t),o())})})}s.on("click"+r,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+r+" click"+r),n&&I.off("touchmove"+r+" touchend"+r)}}(),_()});
\ No newline at end of file
diff --git a/www/htdocs/js/magnific-popup/magnific-popup.css b/www/htdocs/js/magnific-popup/magnific-popup.css
new file mode 100644
index 0000000..4302fd7
--- /dev/null
+++ b/www/htdocs/js/magnific-popup/magnific-popup.css
@@ -0,0 +1,369 @@
+/* Magnific Popup CSS */
+.mfp-bg {
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 104200;
+ overflow: hidden;
+ position: fixed;
+ background: #0b0b0b;
+ opacity: 0.8;
+ filter: alpha(opacity=80); }
+
+.mfp-wrap {
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 104300;
+ position: fixed;
+ outline: none !important;
+ -webkit-backface-visibility: hidden; }
+
+.mfp-container {
+ text-align: center;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ left: 0;
+ top: 0;
+ padding: 0 8px;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box; }
+
+.mfp-container:before {
+ content: '';
+ display: inline-block;
+ height: 100%;
+ vertical-align: middle; }
+
+.mfp-align-top .mfp-container:before {
+ display: none; }
+
+.mfp-content {
+ position: relative;
+ display: inline-block;
+ vertical-align: middle;
+ margin: 0 auto;
+ text-align: left;
+ z-index: 104500; }
+
+.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
+ width: 100%;
+ cursor: auto; }
+
+.mfp-ajax-cur {
+ cursor: progress; }
+
+.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
+ cursor: -moz-zoom-out;
+ cursor: -webkit-zoom-out;
+ cursor: zoom-out; }
+
+.mfp-zoom {
+ cursor: pointer;
+ cursor: -webkit-zoom-in;
+ cursor: -moz-zoom-in;
+ cursor: zoom-in; }
+
+.mfp-auto-cursor .mfp-content {
+ cursor: auto; }
+
+.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none; }
+
+.mfp-loading.mfp-figure {
+ display: none; }
+
+.mfp-hide {
+ display: none !important; }
+
+.mfp-preloader {
+ color: #cccccc;
+ position: absolute;
+ top: 50%;
+ width: auto;
+ text-align: center;
+ margin-top: -0.8em;
+ left: 8px;
+ right: 8px;
+ z-index: 104400; }
+ .mfp-preloader a {
+ color: #cccccc; }
+ .mfp-preloader a:hover {
+ color: white; }
+
+.mfp-s-ready .mfp-preloader {
+ display: none; }
+
+.mfp-s-error .mfp-content {
+ display: none; }
+
+button.mfp-close, button.mfp-arrow {
+ overflow: visible;
+ cursor: pointer;
+ background: transparent;
+ border: 0;
+ -webkit-appearance: none;
+ display: block;
+ outline: none;
+ padding: 0;
+ z-index: 104600;
+ -webkit-box-shadow: none;
+ box-shadow: none; }
+button::-moz-focus-inner {
+ padding: 0;
+ border: 0; }
+
+.mfp-close {
+ width: 44px;
+ height: 44px;
+ line-height: 44px;
+ position: absolute;
+ right: 0;
+ top: 0;
+ text-decoration: none;
+ text-align: center;
+ opacity: 0.65;
+ filter: alpha(opacity=65);
+ padding: 0 0 18px 10px;
+ color: white;
+ font-style: normal;
+ font-size: 28px;
+ font-family: Arial, Baskerville, monospace; }
+ .mfp-close:hover, .mfp-close:focus {
+ opacity: 1;
+ filter: alpha(opacity=100); }
+ .mfp-close:active {
+ top: 1px; }
+
+.mfp-close-btn-in .mfp-close {
+ color: #333333; }
+
+.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
+ color: white;
+ right: -6px;
+ text-align: right;
+ padding-right: 6px;
+ width: 100%; }
+
+.mfp-counter {
+ position: absolute;
+ top: 0;
+ right: 0;
+ color: #cccccc;
+ font-size: 12px;
+ line-height: 18px;
+ white-space: nowrap; }
+
+.mfp-arrow {
+ position: absolute;
+ opacity: 0.65;
+ filter: alpha(opacity=65);
+ margin: 0;
+ top: 50%;
+ margin-top: -55px;
+ padding: 0;
+ width: 90px;
+ height: 110px;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
+ .mfp-arrow:active {
+ margin-top: -54px; }
+ .mfp-arrow:hover, .mfp-arrow:focus {
+ opacity: 1;
+ filter: alpha(opacity=100); }
+ .mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
+ content: '';
+ display: block;
+ width: 0;
+ height: 0;
+ position: absolute;
+ left: 0;
+ top: 0;
+ margin-top: 35px;
+ margin-left: 35px;
+ border: medium inset transparent; }
+ .mfp-arrow:after, .mfp-arrow .mfp-a {
+ border-top-width: 13px;
+ border-bottom-width: 13px;
+ top: 8px; }
+ .mfp-arrow:before, .mfp-arrow .mfp-b {
+ border-top-width: 21px;
+ border-bottom-width: 21px;
+ opacity: 0.7; }
+
+.mfp-arrow-left {
+ left: 0; }
+ .mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
+ border-right: 17px solid white;
+ margin-left: 31px; }
+ .mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
+ margin-left: 25px;
+ border-right: 27px solid #3f3f3f; }
+
+.mfp-arrow-right {
+ right: 0; }
+ .mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
+ border-left: 17px solid white;
+ margin-left: 39px; }
+ .mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
+ border-left: 27px solid #3f3f3f; }
+
+.mfp-iframe-holder {
+ padding-top: 40px;
+ padding-bottom: 40px; }
+ .mfp-iframe-holder .mfp-content {
+ line-height: 0;
+ width: 100%;
+ max-width: 900px; }
+ .mfp-iframe-holder .mfp-close {
+ top: -40px; }
+
+.mfp-iframe-scaler {
+ width: 100%;
+ height: 0;
+ overflow: hidden;
+ padding-top: 56.25%; }
+ .mfp-iframe-scaler iframe {
+ position: absolute;
+ display: block;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
+ background: black; }
+
+/* Main image in popup */
+img.mfp-img {
+ width: auto;
+ max-width: 100%;
+ height: auto;
+ display: block;
+ line-height: 0;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ padding: 40px 0 40px;
+ margin: 0 auto; }
+
+/* The shadow behind the image */
+.mfp-figure {
+ line-height: 0; }
+ .mfp-figure:after {
+ content: '';
+ position: absolute;
+ left: 0;
+ top: 40px;
+ bottom: 40px;
+ display: block;
+ right: 0;
+ width: auto;
+ height: auto;
+ z-index: -1;
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
+ background: #444444; }
+ .mfp-figure small {
+ color: #bdbdbd;
+ display: block;
+ font-size: 12px;
+ line-height: 14px; }
+ .mfp-figure figure {
+ margin: 0; }
+
+.mfp-bottom-bar {
+ margin-top: -36px;
+ position: absolute;
+ top: 100%;
+ left: 0;
+ width: 100%;
+ cursor: auto; }
+
+.mfp-title {
+ text-align: left;
+ line-height: 18px;
+ color: #f3f3f3;
+ word-wrap: break-word;
+ padding-right: 36px; }
+
+.mfp-image-holder .mfp-content {
+ max-width: 100%; }
+
+.mfp-gallery .mfp-image-holder .mfp-figure {
+ cursor: pointer; }
+
+@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
+ /**
+ * Remove all paddings around the image on small screen
+ */
+ .mfp-img-mobile .mfp-image-holder {
+ padding-left: 0;
+ padding-right: 0; }
+ .mfp-img-mobile img.mfp-img {
+ padding: 0; }
+ .mfp-img-mobile .mfp-figure:after {
+ top: 0;
+ bottom: 0; }
+ .mfp-img-mobile .mfp-figure small {
+ display: inline;
+ margin-left: 5px; }
+ .mfp-img-mobile .mfp-bottom-bar {
+ background: rgba(0, 0, 0, 0.6);
+ bottom: 0;
+ margin: 0;
+ top: auto;
+ padding: 3px 5px;
+ position: fixed;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box; }
+ .mfp-img-mobile .mfp-bottom-bar:empty {
+ padding: 0; }
+ .mfp-img-mobile .mfp-counter {
+ right: 5px;
+ top: 3px; }
+ .mfp-img-mobile .mfp-close {
+ top: 0;
+ right: 0;
+ width: 35px;
+ height: 35px;
+ line-height: 35px;
+ background: rgba(0, 0, 0, 0.6);
+ position: fixed;
+ text-align: center;
+ padding: 0; } }
+
+@media all and (max-width: 900px) {
+ .mfp-arrow {
+ -webkit-transform: scale(0.75);
+ transform: scale(0.75); }
+ .mfp-arrow-left {
+ -webkit-transform-origin: 0;
+ transform-origin: 0; }
+ .mfp-arrow-right {
+ -webkit-transform-origin: 100%;
+ transform-origin: 100%; }
+ .mfp-container {
+ padding-left: 6px;
+ padding-right: 6px; } }
+
+.mfp-ie7 .mfp-img {
+ padding: 0; }
+.mfp-ie7 .mfp-bottom-bar {
+ width: 600px;
+ left: 50%;
+ margin-left: -300px;
+ margin-top: 5px;
+ padding-bottom: 5px; }
+.mfp-ie7 .mfp-container {
+ padding: 0; }
+.mfp-ie7 .mfp-content {
+ padding-top: 44px; }
+.mfp-ie7 .mfp-close {
+ top: 0;
+ right: 0;
+ padding-top: 0; }
diff --git a/www/htdocs/js/main-original.js b/www/htdocs/js/main-original.js
new file mode 100644
index 0000000..65d8035
--- /dev/null
+++ b/www/htdocs/js/main-original.js
@@ -0,0 +1,443 @@
+// jQuery for page scrolling feature - requires jQuery Easing plugin
+$(function() {
+ $('body').on('click', '.page-scroll', function(event) {
+ var $anchor = $(this);
+ $('html, body').stop().animate({
+ scrollTop: ($($anchor.attr('href')).offset().top - 75 )
+ }, 1500, 'easeInOutExpo');
+ event.preventDefault();
+ });
+});
+
+;(function($) {
+
+ $(document).ready( function() {
+
+ // MENU
+
+ if ($(this).width() > 990) {
+ $('.main').addClass('desk');
+ }
+
+ $('.btn-menu').on('click', function() {
+ $(this).toggleClass('active');
+ $('.mob-menu').slideToggle(300);
+ });
+
+ $('.btn-submenu').on('click', function() {
+ var sub = $(this).parent().siblings('.submenu, .mob-submenu, .megamenu');
+
+ $(this).toggleClass('active');
+ sub.slideToggle(300);
+ });
+
+
+ $('.menu > li').each(function() {
+ var sub = $(this).children('.submenu').size();
+ if (sub > 0) $(this).addClass('with-sub');
+ });
+
+ $(window).resize(function() {
+ if ($('.btn-menu').css('display') === 'block') {
+ $('.main').removeClass('desk');
+ }
+ else {
+ $('.main').addClass('desk');
+ $('.menu, .submenu, .b-search').removeAttr('style');
+ }
+ });
+
+ // FORMS: SEARCH, COMMENT
+
+ $('.btn-search').on('click', function() {
+ $(this).toggleClass('active');
+ $('.b-search').fadeToggle(300);
+ });
+
+ $('.search-submit, .comment-submit').on('click', function() {
+ $(this).parent().submit();
+ });
+
+ $('.search-form').on('click', '.search-text-remove', function() {
+ $(this).siblings('.search-text').val('');
+ });
+
+
+ $('.btn-reply').on('click', function() {
+ if (!$(this).hasClass('cancel-reply')) {
+
+ var comForm = $('.b-comment-form').clone();
+ $('.b-comment-form').remove();
+
+ $('.btn-reply').removeClass('cancel-reply').html('
reply ');
+ $(this).addClass('cancel-reply').html('
cancel ');
+ $(this).parent().parent().append(comForm);
+
+ $(this).parent().parent().children('.b-comment-form')
+ .focus(function() {
+ $(this).siblings('i').addClass('focused');
+ })
+ .focusout(function() {
+ $(this).siblings('i').removeClass('focused');
+ });
+ }
+ });
+
+ $(document)
+ .on('click', '.cancel-reply', function() {
+ var comForm = $(this).parent().siblings('.b-comment-form').clone();
+ $(this).parent().siblings('.b-comment-form').remove();
+
+ $(this).removeClass('cancel-reply').html('
reply ');
+ $('.post').append(comForm);
+ })
+ .on('click', '.cancel-reply2', function(event) {
+ event.preventDefault();
+
+ var comForm = $(this).parent().parent().clone();
+ $(this).parent().parent().remove();
+
+ $('.cancel-reply').removeClass('cancel-reply').html('
reply ');
+ $('.post').append(comForm);
+ })
+ .on('focus', 'input, textarea', function() {
+ $(this).siblings('i').addClass('focused');
+ })
+ .on('focusout', 'input, textarea', function() {
+ $(this).siblings('i').removeClass('focused');
+ });
+
+
+
+ // CONTACT FORM
+
+ $('.b-contact-form').submit(function(){
+
+ var self = $(this),
+ action = self.attr('action');
+
+ self.prev().slideUp(750,function() {
+ self.prev().hide();
+
+ var name = self.find('.field-name'),
+ subj = self.find('.field-subject'),
+ email = self.find('.field-email'),
+ comm = self.find('.field-comments');
+
+ $.post(action, {
+ name: name.val(),
+ email: email.val(),
+ subject: subj.val() || '...',
+ comments: comm.val(),
+ },
+ function(data){
+ self.prev().html(data);
+ self.prev().slideDown('slow');
+
+ if (data.match('success') != null) {
+ name.val('');
+ subj.val('');
+ email.val('');
+ comm.val('');
+ }
+ }
+ );
+
+ });
+
+ return false;
+
+ });
+
+ // TABS
+
+ (function() {
+
+ $('.b-tabs').on('click', 'li', function() {
+ var title = $(this),
+ tab = title.parent().siblings().children().eq(title.index());
+
+ if (title.parent().parent().hasClass('a-slide')) {
+ var curTab = tab.siblings('.active');
+ curTab.addClass('cur-tab').siblings().removeClass('cur-tab');
+ }
+
+ title.addClass('active').siblings().removeClass('active');
+ tab.addClass('active').siblings().removeClass('active');
+ });
+
+ }());
+
+ // MESSAGES
+
+ (function() {
+
+ $(document).on('click', '.message-close', function() {
+ $(this).parent()
+ .animate({'opacity':'0'}, 220, function() {
+ $(this).hide(200);
+ });
+ })
+
+ }());
+
+ // SPOILER
+
+ $('.spoiler-title').on('click', function() {
+ $(this)
+ .toggleClass('active')
+ .next().slideToggle(250);
+ });
+
+ $('.b-accordion .spoiler-title').on('click', function() {
+ $(this).parent().siblings()
+ .children('.spoiler-title').removeClass('active')
+ .next('.spoiler-content').slideUp(250);
+ });
+
+ // PROGRESS BAR
+
+ $('.b-progress-bar').each(function() {
+
+ var cap = parseInt($(this).attr('data-capacity'), 10),
+ val = parseInt($(this).attr('data-value'), 10),
+ len = 100 * (val / cap) + '%';
+
+ $(this).find('.progress-line').css('width', len);
+
+ });
+
+ // TEAM
+
+ $('.member-photo')
+ .on('mouseenter', function() {
+ $(this).children('.b-social').stop().fadeIn(200);
+ })
+ .on('mouseleave', function() {
+ $(this).children('.b-social').stop().fadeOut(200);
+ });
+
+ $('.b-member.m-compact')
+ .on('mouseenter', function() {
+ $(this).children('.member-meta').stop().fadeIn(200);
+ })
+ .on('mouseleave', function() {
+ $(this).children('.member-meta').stop().fadeOut(200);
+ });
+
+ // PORTFOLIO
+
+ $('.work-preview a').on('click', function() {
+ $(this).parent().trigger('click');
+ });
+
+ // CAROUSEL
+
+ $.fn.carousel = function(op) {
+ var op, ui = {};
+
+ op = $.extend({
+ speed: 500,
+ autoChange: false,
+ interval: 5000
+ }, op);
+
+ ui.carousel = this;
+ ui.items = ui.carousel.find('.carousel-item');
+ ui.itemsLen = ui.items.length;
+
+ // CREATE CONTROLS
+
+ ui.ctrl = $('
', {'class': 'carousel-control'});
+ ui.prev = $('
', {'class': 'carousel-prev'});
+ ui.next = $('
', {'class': 'carousel-next'});
+ ui.pagList = $('
', {'class': 'carousel-pagination'});
+ ui.pagItem = $('
');
+
+ for (var i = 0; i < ui.itemsLen; i++) {
+ ui.pagItem.clone().appendTo(ui.pagList);
+ }
+
+ ui.prev.appendTo(ui.ctrl);
+ ui.next.appendTo(ui.ctrl);
+ ui.pagList.appendTo(ui.ctrl);
+ ui.ctrl.appendTo(ui.carousel);
+
+ ui.carousel.find('.carousel-pagination li').eq(0).addClass('active');
+
+ ui.carousel.find('.carousel-item').each(function() {
+ $(this).hide();
+ });
+
+ ui.carousel.find('.carousel-item').eq(0).show().addClass('active');
+
+
+ // CHANGE ITEM
+
+ var changeImage = function(direction, context) {
+ var current = ui.carousel.find('.carousel-item.active');
+
+ if (direction == 'index') {
+ if(current.index() === context.index())
+ return false;
+
+ context.addClass('active').siblings().removeClass('active');
+
+ ui.items.eq(context.index()).addClass('current').fadeIn(op.speed, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+
+ if (direction == 'prev') {
+ if (current.index() == 0) {
+ ui.carousel.find('.carousel-item:last').addClass('current').fadeIn(op.speed, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+ else {
+ current.prev().addClass('current').fadeIn(op.speed, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+ }
+
+ if (direction == undefined) {
+ if (current.index() == ui.itemsLen - 1) {
+ ui.carousel.find('.carousel-item:first').addClass('current').fadeIn(300, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+ else {
+ current.next().addClass('current').fadeIn(300, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+ }
+
+ ui.carousel.find('.carousel-pagination li').eq( ui.carousel.find('.carousel-item.current').index() ).addClass('active').siblings().removeClass('active');
+ };
+
+ ui.carousel
+ .on('click', 'li', function() {
+ changeImage('index', $(this));
+ })
+ .on('click', '.carousel-prev', function() {
+ changeImage('prev');
+ })
+ .on('click', '.carousel-next', function() {
+ changeImage();
+ });
+
+ // AUTO CHANGE
+
+ if (op.autoChange) {
+ var changeInterval = setInterval(changeImage, op.interval);
+
+ ui.carousel
+ .on('mouseenter', function() {
+ clearInterval(changeInterval);
+ })
+ .on('mouseleave', function() {
+ changeInterval = setInterval(changeImage, op.interval);
+ });
+ }
+
+ return this;
+ };
+
+ $('.b-carousel').each(function() {
+ $(this).carousel({
+ autoChange: true
+ });
+ });
+
+ // BUTTON UP
+
+ var btnUp = $('
', {'class':'btn-up'});
+ btnUp.appendTo('body');
+
+ $(document)
+ .on('click', '.btn-up', function() {
+ $('html, body').animate({
+ scrollTop: 0
+ }, 700);
+ });
+
+ $(window)
+ .on('scroll', function() {
+ if ($(this).scrollTop() > 200)
+ $('.btn-up').addClass('active');
+ else
+ $('.btn-up').removeClass('active');
+ });
+
+ // SETTINGS PANEL
+
+ $('.btn-settings').on('click', function() {
+ $(this).parent().toggleClass('active');
+ });
+
+ $('.switch-handle').on('click', function() {
+ $(this).toggleClass('active');
+ $('.main').toggleClass('boxed');
+
+ });
+
+ $('.bg-list div').on('click', function() {
+ if ($(this).hasClass('active')) return false;
+ if(!$('.switch-handle').hasClass('active')) $('.switch-handle').trigger('click');
+
+ $(this).addClass('active').siblings().removeClass('active');
+ var cl = $(this).attr('class');
+ $('body').attr('class', cl);
+ });
+
+ $('.color-list div').on('click', function() {
+ if ($(this).hasClass('active')) return false;
+
+ $('link.color-scheme-link').remove();
+
+ $(this).addClass('active').siblings().removeClass('active');
+ var src = $(this).attr('data-src'),
+ colorScheme = $('
');
+
+ colorScheme
+ .attr('href', src)
+ .appendTo('head');
+ });
+
+ });
+
+})(jQuery);
+
+$(document).ready(function(){
+ $(".header").sticky({topSpacing:0});
+});
+
+$(function(){
+ $.stellar({
+ horizontalScrolling: false,
+ responsive: true
+ });
+});
+
+$(window).scroll(function() {
+ var scroll = $(window).scrollTop();
+
+ if (scroll >= 200) {
+ $(".header-transparent").addClass("header-trans-act");
+ } else {
+ $(".header-transparent").removeClass("header-trans-act");
+ }
+});
+
+$(document).ready(function(){
+$('.navbar-nav .dropdown > a[href]').click(function(){
+location.href = this.href;
+});
+});
diff --git a/www/htdocs/js/main.js b/www/htdocs/js/main.js
new file mode 100644
index 0000000..7c36d18
--- /dev/null
+++ b/www/htdocs/js/main.js
@@ -0,0 +1,831 @@
+(function($) {
+ "use strict";
+
+ // -------------------------------------------------------------
+ // Preloader
+ // -------------------------------------------------------------
+ (function () {
+ $('#status').fadeOut();
+ $('#preloader').delay(200).fadeOut('slow');
+ }());
+
+
+
+ // sticky menu
+ $(window).scroll(function() {
+ if ($(".navbar").offset().top > 50) {
+ $(".navbar-fixed-top").addClass("sticky-nav");
+ } else {
+ $(".navbar-fixed-top").removeClass("sticky-nav");
+ }
+ });
+
+ // -------------------------------------------------------------
+ // Sticky Menu
+ // -------------------------------------------------------------
+
+ (function () {
+ var nav = $('.navbar');
+ var scrolled = false;
+
+ $(window).scroll(function () {
+
+ if (110 < $(window).scrollTop() && !scrolled) {
+ nav.addClass('sticky animated fadeInDown').animate({ 'margin-top': '0px' });
+
+ scrolled = true;
+ }
+
+ if (110 > $(window).scrollTop() && scrolled) {
+ nav.removeClass('sticky animated fadeInDown').css('margin-top', '0px');
+
+ scrolled = false;
+ }
+ });
+
+ }());
+
+
+
+ // OffCanvas
+ (function () {
+ $('button.navbar-toggle').HippoOffCanvasMenu({
+ documentWrapper: '#main-wrapper',
+ contentWrapper : '.content-wrapper',
+ position : 'hippo-offcanvas-left', // class name
+ // opener : 'st-menu-open', // class name
+ effect : 'slide-in-on-top', // class name
+ closeButton : '#off-canvas-close-btn',
+ menuWrapper : '.offcanvas-menu', // class name below-pusher
+ documentPusher : '.offcanvas-pusher'
+ });
+ }());
+
+
+
+
+ // jQuery for page scrolling feature - requires jQuery Easing plugin
+ $('body').on('click', '.page-scroll a', function(event) {
+ var $anchor = $(this);
+ $('html, body').stop().animate({
+ scrollTop: ($($anchor.attr('href')).offset().top - 85 )
+ }, 1500, 'easeInOutExpo');
+ event.preventDefault();
+ });
+
+ $("body").scrollspy({target: ".navbar-collapse", offset:200});
+
+
+
+ // Gallery Slider
+ $('#gal-slider').flexslider({
+ animation: "fade",
+ slideshow: false,
+ directionNav: false,
+ controlsContainer: ".gal-wrap",
+ controlNav: true,
+ manualControls: ".gal-nav li"
+ });
+
+
+
+
+
+ // Twitterfeed
+ $('#tweetcool').tweecool({
+ profile_image: false,
+ username: 'envato',
+ limit: 1
+ });
+
+
+
+
+ // SLIDER REVOLUTION
+ jQuery('.tp-banner').show().revolution({
+ dottedOverlay: "none",
+ delay: 16000,
+ startwidth: 1170,
+ startheight: 700,
+ hideThumbs: 200,
+ hideTimerBar:"on",
+ thumbWidth: 100,
+ thumbHeight: 50,
+ thumbAmount: 5,
+
+ navigationType: "bullet",
+ navigationArrows: "solo",
+ navigationStyle: "preview1",
+
+ touchenabled: "on",
+ onHoverStop: "off",
+
+ swipe_velocity: 0.7,
+ swipe_min_touches: 1,
+ swipe_max_touches: 1,
+ drag_block_vertical: false,
+
+ parallax: "mouse",
+ parallaxBgFreeze: "on",
+ parallaxLevels: [7, 4, 3, 2, 5, 4, 3, 2, 1, 0],
+
+ keyboardNavigation: "on",
+
+ navigationHAlign: "center",
+ navigationVAlign: "bottom",
+ navigationHOffset: 0,
+ navigationVOffset: 20,
+
+ soloArrowLeftHalign: "left",
+ soloArrowLeftValign: "center",
+ soloArrowLeftHOffset: 20,
+ soloArrowLeftVOffset: 0,
+
+ soloArrowRightHalign: "right",
+ soloArrowRightValign: "center",
+ soloArrowRightHOffset: 20,
+ soloArrowRightVOffset: 0,
+
+ shadow: 0,
+ fullWidth: "on",
+ fullScreen: "off",
+
+ spinner: "spinner4",
+
+ stopLoop: "off",
+ stopAfterLoops: -1,
+ stopAtSlide: -1,
+
+ shuffle: "off",
+
+ autoHeight: "off",
+ forceFullWidth: "off",
+
+
+
+ hideThumbsOnMobile: "off",
+ hideNavDelayOnMobile: 1500,
+ hideBulletsOnMobile: "off",
+ hideArrowsOnMobile: "off",
+ hideThumbsUnderResolution: 0,
+
+ hideSliderAtLimit: 0,
+ hideCaptionAtLimit: 0,
+ hideAllCaptionAtLilmit: 0,
+ startWithSlide: 0,
+ videoJsPath: "rs-plugin/videojs/",
+ fullScreenOffsetContainer: ""
+ });
+
+
+
+ // SLIDER REVOLUTION
+ jQuery('.tp-banner1').show().revolution({
+ dottedOverlay: "none",
+ delay: 16000,
+ startwidth: 1170,
+ startheight: 550,
+ hideThumbs: 200,
+
+ thumbWidth: 100,
+ thumbHeight: 50,
+ thumbAmount: 5,
+
+ navigationType: "bullet",
+ navigationArrows: "solo",
+ navigationStyle: "preview5",
+
+ touchenabled: "on",
+ onHoverStop: "on",
+
+ swipe_velocity: 0.7,
+ swipe_min_touches: 1,
+ swipe_max_touches: 1,
+ drag_block_vertical: false,
+
+ parallax: "mouse",
+ parallaxBgFreeze: "on",
+ parallaxLevels: [7, 4, 3, 2, 5, 4, 3, 2, 1, 0],
+
+ keyboardNavigation: "off",
+
+ navigationHAlign: "center",
+ navigationVAlign: "bottom",
+ navigationHOffset: 0,
+ navigationVOffset: 20,
+
+ soloArrowLeftHalign: "left",
+ soloArrowLeftValign: "center",
+ soloArrowLeftHOffset: 20,
+ soloArrowLeftVOffset: 0,
+
+ soloArrowRightHalign: "right",
+ soloArrowRightValign: "center",
+ soloArrowRightHOffset: 20,
+ soloArrowRightVOffset: 0,
+
+ shadow: 0,
+ fullWidth: "on",
+ fullScreen: "off",
+
+ spinner: "spinner4",
+
+ stopLoop: "off",
+ stopAfterLoops: -1,
+ stopAtSlide: -1,
+
+ shuffle: "off",
+
+ autoHeight: "off",
+ forceFullWidth: "off",
+
+
+
+ hideThumbsOnMobile: "off",
+ hideNavDelayOnMobile: 1500,
+ hideBulletsOnMobile: "off",
+ hideArrowsOnMobile: "off",
+ hideThumbsUnderResolution: 0,
+
+ hideSliderAtLimit: 0,
+ hideCaptionAtLimit: 0,
+ hideAllCaptionAtLilmit: 0,
+ startWithSlide: 0,
+ videoJsPath: "rs-plugin/videojs/",
+ fullScreenOffsetContainer: ""
+ });
+
+
+
+
+ // SLIDER REVOLUTION
+ jQuery('.tp-banner-full').show().revolution({
+ dottedOverlay: "none",
+ delay: 16000,
+ startwidth: 1170,
+ startheight: 700,
+ hideThumbs: 200,
+
+ thumbWidth: 100,
+ thumbHeight: 50,
+ thumbAmount: 5,
+
+ navigationType: "bullet",
+ navigationArrows: "solo",
+ navigationStyle: "preview5",
+
+ touchenabled: "on",
+ onHoverStop: "on",
+
+ swipe_velocity: 0.7,
+ swipe_min_touches: 1,
+ swipe_max_touches: 1,
+ drag_block_vertical: false,
+
+ parallax: "mouse",
+ parallaxBgFreeze: "on",
+ parallaxLevels: [7, 4, 3, 2, 5, 4, 3, 2, 1, 0],
+
+ keyboardNavigation: "off",
+
+ navigationHAlign: "center",
+ navigationVAlign: "bottom",
+ navigationHOffset: 0,
+ navigationVOffset: 20,
+
+ soloArrowLeftHalign: "left",
+ soloArrowLeftValign: "center",
+ soloArrowLeftHOffset: 20,
+ soloArrowLeftVOffset: 0,
+
+ soloArrowRightHalign: "right",
+ soloArrowRightValign: "center",
+ soloArrowRightHOffset: 20,
+ soloArrowRightVOffset: 0,
+
+ shadow: 0,
+ fullWidth: "on",
+ fullScreen: "on",
+
+ spinner: "spinner4",
+
+ stopLoop: "off",
+ stopAfterLoops: -1,
+ stopAtSlide: -1,
+
+ shuffle: "off",
+
+ autoHeight: "off",
+ forceFullWidth: "off",
+
+
+
+ hideThumbsOnMobile: "off",
+ hideNavDelayOnMobile: 1500,
+ hideBulletsOnMobile: "off",
+ hideArrowsOnMobile: "off",
+ hideThumbsUnderResolution: 0,
+
+ hideSliderAtLimit: 0,
+ hideCaptionAtLimit: 0,
+ hideAllCaptionAtLilmit: 0,
+ startWithSlide: 0,
+ videoJsPath: "rs-plugin/videojs/",
+ fullScreenOffsetContainer: ""
+ });
+
+
+
+
+ // Floating Sidebar Script
+ var $sidebar = jQuery("#floating-sidebar"),
+ offset = $sidebar.offset(),
+ $scrollHeight = jQuery("#fs-content").height(),
+ $scrollOffset = jQuery("#fs-content").offset(),
+ $window = jQuery(window),
+ $headerHeight = 0;
+ $window = $(window);
+ var sidebarOffset = $sidebar.offset();
+
+
+
+ // Progressbar
+
+ // $('.b-progress-bar').each(function() {
+ // var cap = parseInt($(this).attr('data-capacity'), 10),
+ // val = parseInt($(this).attr('data-value'), 10),
+ // len = 100 * (val / cap) + '%';
+
+ // $(this).find('.progress-line').css('width', len);
+
+ // });
+
+
+ $('.progress-wrapper').on('inview', function(event, visible, visiblePartX, visiblePartY) {
+ if (visible) {
+ $.each($('div.progress-bar'),function(){
+ $(this).css('width', $(this).attr('aria-valuenow')+'%');
+ });
+ $(this).off('inview');
+ }
+ });
+
+
+
+
+ // Skills
+ $('#skills').appear(function() {
+ $(".progress-scale div").removeClass("no-width-skills");
+ }, {
+ accX: 0,
+ accY: -200
+ });
+
+
+
+
+ $('#skills2').appear(function() {
+ $('.chart').easyPieChart({
+ barColor: '#000000'
+ });
+
+ $('.chart-color2').easyPieChart({
+ barColor: '#7cc623'
+ });
+
+ $('.chart-color3').easyPieChart({
+ barColor: '#0FA2D5'
+ });
+
+ $('.chart-color4').easyPieChart({
+ barColor: '#FF4862'
+ });
+
+ }, {
+ accX: 0,
+ accY: -200
+ });
+
+
+
+
+ // TESTIMONIAL
+
+ $("#testimonial").owlCarousel({
+ autoPlay: 3000,
+ stopOnHover: true,
+ navigation: true,
+ pagination: false,
+ slideSpeed: 600,
+ singleItem: true,
+ autoHeight: true
+ });
+
+
+
+
+ // BLOG SLIDER
+ $("#blog-slider").owlCarousel({
+
+ navigation: true, // Show next and prev buttons
+ slideSpeed: 300,
+ pagination: false,
+ paginationSpeed: 400,
+ singleItem: true
+
+ });
+
+
+
+
+
+ // TEAM CAROUSEL
+
+ var owl = $("#home-team");
+
+ owl.owlCarousel({
+
+ itemsCustom: [
+ [0, 1],
+ [450, 1],
+ [600, 2],
+ [700, 2],
+ [1000, 5],
+ [1200, 5],
+ [1400, 5],
+ [1600, 5]
+ ],
+ pagination: false,
+ navigation: true
+
+ });
+
+ // 5 COL CAROUSEL
+
+ var owl = $("#carousel_five");
+
+ owl.owlCarousel({
+
+ itemsCustom: [
+ [0, 2],
+ [450, 3],
+ [600, 3],
+ [700, 4],
+ [1000, 5],
+ [1200, 5],
+ [1400, 5],
+ [1600, 5]
+ ],
+ pagination: false,
+ navigation: true
+
+ });
+
+ // QUOTE CAROUSEL
+
+ var owl = $("#home-quote");
+
+ owl.owlCarousel({
+
+ itemsCustom: [
+ [0, 1],
+ [450, 1],
+ [600, 2],
+ [700, 2],
+ [1000, 2],
+ [1200, 2],
+ [1400, 2],
+ [1600, 2]
+ ],
+ pagination: true,
+ navigation: false,
+ autoPlay: true
+
+ });
+
+ // FLICKRFEED
+
+ $('#flickr').jflickrfeed({
+ limit: 9,
+ qstrings: {
+ id: '51035555243@N01'
+ },
+ itemTemplate: '
'
+ });
+
+ // ACCORDION
+
+ $('#accordion .collapse').on('shown.bs.collapse', function() {
+ $(this).parent().find(".fa-plus").removeClass("fa-plus").addClass("fa-minus");
+ $(this).parent().addClass("active");
+ }).on('hidden.bs.collapse', function() {
+ $(this).parent().find(".fa-minus").removeClass("fa-minus").addClass("fa-plus");
+ $(this).parent().removeClass("active");
+ });
+
+
+
+ $('#accordion-e1 .collapse').on('shown.bs.collapse', function() {
+ $(this).parent().find(".fa-chevron-right").removeClass("fa-chevron-right").addClass("fa-chevron-down");
+ }).on('hidden.bs.collapse', function() {
+ $(this).parent().find(".fa-chevron-down").removeClass("fa-chevron-down").addClass("fa-chevron-right");
+ });
+
+
+ $('#accordion-e2 .collapse').on('shown.bs.collapse', function() {
+ $(this).parent().find(".icon-plus2").removeClass("icon-plus2").addClass("icon-minus2");
+ }).on('hidden.bs.collapse', function() {
+ $(this).parent().find(".icon-minus2").removeClass("icon-minus2").addClass("icon-plus2");
+ });
+
+
+ $('#accordion-e3 .collapse').on('shown.bs.collapse', function() {
+ $(this).parent().find(".icon-cross2").removeClass("icon-cross2").addClass("icon-check2");
+ }).on('hidden.bs.collapse', function() {
+ $(this).parent().find(".icon-check2").removeClass("icon-check2").addClass("icon-cross2");
+ });
+
+
+
+ // COUNTER
+ $('#stats1').appear(function() {
+
+ $('.count1').each(function() {
+ $(this).prop('Counter', 0).animate({
+ Counter: $(this).text()
+ }, {
+ duration: 2000,
+ easing: 'swing',
+ step: function(now) {
+ $(this).text(Math.ceil(now));
+ }
+ });
+ });
+
+ }, {
+ accX: 0,
+ accY: -50
+ });
+
+
+ // COUNTER
+ $('#stats2').appear(function() {
+
+ $('.count2').each(function() {
+ $(this).prop('Counter', 0).animate({
+ Counter: $(this).text()
+ }, {
+ duration: 2000,
+ easing: 'swing',
+ step: function(now) {
+ $(this).text(Math.ceil(now));
+ }
+ });
+ });
+
+ }, {
+ accX: 0,
+ accY: -50
+ });
+
+
+ // COUNTER
+ $('#stats3').appear(function() {
+
+ $('.count3').each(function() {
+ $(this).prop('Counter', 0).animate({
+ Counter: $(this).text()
+ }, {
+ duration: 2000,
+ easing: 'swing',
+ step: function(now) {
+ $(this).text(Math.ceil(now));
+ }
+ });
+ });
+
+ }, {
+ accX: 0,
+ accY: -50
+ });
+
+
+ // COUNTER
+ $('#stats4').appear(function() {
+
+ $('.count4').each(function() {
+ $(this).prop('Counter', 0).animate({
+ Counter: $(this).text()
+ }, {
+ duration: 2000,
+ easing: 'swing',
+ step: function(now) {
+ $(this).text(Math.ceil(now));
+ }
+ });
+ });
+
+ }, {
+ accX: 0,
+ accY: -50
+ });
+
+ // FULLWIDTH SEARCH
+$(".ss-trigger").click(function() {
+ $(".ss-content").addClass("ss-content-act");
+});
+$(".ss-close").click(function() {
+ $(".ss-content").removeClass("ss-content-act");
+});
+
+
+
+ // Countdown Timer
+ var endDate = "March 20, 2016";
+ $('.countdown.styled').countdown({
+ date: endDate,
+ render: function(data) {
+ $(this.el).html("
" + this.leadingZeros(data.days, 3) + " days
" + this.leadingZeros(data.hours, 2) + " hrs
" + this.leadingZeros(data.min, 2) + " min
" + this.leadingZeros(data.sec, 2) + " sec
");
+ }
+ });
+
+ $('.mp-lightbox').magnificPopup({
+ removalDelay: 300,
+ type: 'image',
+ closeOnContentClick: true,
+ mainClass: 'mfp-fade',
+ image: {
+ verticalFit: true
+ },
+ gallery:{
+ enabled:true
+ }
+ });
+
+
+ // SETTINGS PANEL
+
+ $('.btn-settings').on('click', function() {
+ $(this).parent().toggleClass('active');
+ });
+
+ $('.switch-handle').on('click', function() {
+ $(this).toggleClass('active');
+ $('.outer-wrapper').toggleClass('boxed');
+
+ });
+
+ $('.bg-list div').on('click', function() {
+ if ($(this).hasClass('active')) return false;
+ if(!$('.switch-handle').hasClass('active')) $('.switch-handle').trigger('click');
+
+ $(this).addClass('active').siblings().removeClass('active');
+ var cl = $(this).attr('class');
+ $('body').attr('class', cl);
+ });
+
+ $('.color-list div').on('click', function() {
+ if ($(this).hasClass('active')) return false;
+
+ $('link.color-scheme-link').remove();
+
+ $(this).addClass('active').siblings().removeClass('active');
+ var src = $(this).attr('data-src'),
+ colorScheme = $('
');
+
+ colorScheme
+ .attr('href', src)
+ .appendTo('head');
+ });
+
+})(jQuery); // End of use strict
+
+
+
+
+// slider
+$("#sliderRange")
+ .slider({
+ range: true,
+ min: 0,
+ max: 500,
+ step: 1,
+ values: [75, 300],
+ slide: function(event, ui) {
+ var price1 = ui.values[0];
+ var price2 = ui.values[1];
+ $("#price1")
+ .val("\u20ac" + price1);
+ $("#price2")
+ .val("\u20ac" + price2);
+ }
+ });
+$('#price1')
+ .bind('keyup', function() {
+ var from = $(this)
+ .val();
+ var to = $('#price2')
+ .val();
+ $('#sliderRange')
+ .slider('option', 'values', [from, to]);
+ });
+$('#price2')
+ .bind('keyup', function() {
+ var from = $('#price1')
+ .val();
+ var to = $(this)
+ .val();
+ $('#sliderRange')
+ .slider('option', 'values', [from, to]);
+ });
+
+$(window).load(function() {
+ "use strict";
+ // Isotope
+ var $container = $('#blog-mason');
+ $container.isotope({
+ itemSelector: '.bm-item'
+ });
+ var $optionSets = $('#portfolio .folio-filter'),
+ $optionLinks = $optionSets.find('a');
+ $optionLinks.click(function() {
+ var $this = $(this);
+ if ($this.hasClass('selected')) {
+ return false;
+ }
+ var $optionSet = $this.parents('.folio-filter');
+ $optionSet.find('.selected').removeClass('selected');
+ $this.addClass('selected');
+ // make option object dynamically, i.e. { filter: '.my-filter-class' }
+ var options = {},
+ key = $optionSet.attr('data-option-key'),
+ value = $this.attr('data-option-value');
+ value = value === 'false' ? false : value;
+ options[key] = value;
+ if (key === 'layoutMode' && typeof changeLayoutMode === 'function') {
+ changeLayoutMode($this, options);
+ } else {
+ $container.isotope(options);
+ }
+ return false;
+ });
+});
+
+
+
+ // Isotope
+
+
+
+$(window).load(function() {
+ "use strict";
+ var $container = $('#portfolio-home');
+ $container.isotope({
+ itemSelector: '.project-item'
+ });
+ var $optionSets = $('#portfolio-section .filter'),
+ $optionLinks = $optionSets.find('a');
+ $optionLinks.click(function() {
+ var $this = $(this);
+ if ($this.hasClass('selected')) {
+ return false;
+ }
+ var $optionSet = $this.parents('.filter');
+ $optionSet.find('.selected').removeClass('selected');
+ $this.addClass('selected');
+ var options = {},
+ key = $optionSet.attr('data-option-key'),
+ value = $this.attr('data-option-value');
+ value = value === 'false' ? false : value;
+ options[key] = value;
+ if (key === 'layoutMode' && typeof changeLayoutMode === 'function') {
+ changeLayoutMode($this, options);
+ } else {
+ $container.isotope(options);
+ }
+ return false;
+ });
+});
+
+ var tabLinK = $('.about-post a'),
+ tabContenT = $('.tab-cont');
+
+ tabLinK.on('click', function(event){
+ event.preventDefault();
+ var dataLink = $(this).attr('data-link'),
+ dataTab = $('.tab-cont.active').attr('data-tab');
+
+ if(!$(this).hasClass('active')) {
+ $('.about-post a').removeClass('active');
+ $(this).addClass('active');
+ }
+
+ if ( dataLink == dataTab ) {
+ } else {
+ tabContenT.removeClass('active');
+ $('.tab-cont[data-tab='+ dataLink +']').addClass('active');
+ }
+ });
+
+
+
diff --git a/www/htdocs/js/main2.js b/www/htdocs/js/main2.js
new file mode 100644
index 0000000..eda7927
--- /dev/null
+++ b/www/htdocs/js/main2.js
@@ -0,0 +1,455 @@
+// jQuery for page scrolling feature - requires jQuery Easing plugin
+$(function() {
+ $('body').on('click', '.page-scroll', function(event) {
+ var $anchor = $(this);
+ $('html, body').stop().animate({
+ scrollTop: ($($anchor.attr('href')).offset().top - 75 )
+ }, 1500, 'easeInOutExpo');
+ event.preventDefault();
+ });
+});
+
+;(function($) {
+
+ $(document).ready( function() {
+
+ // MENU
+
+ if ($(this).width() > 990) {
+ $('.main').addClass('desk');
+ }
+
+ $('.btn-menu').on('click', function() {
+ $(this).toggleClass('active');
+ $('.mob-menu').slideToggle(300);
+ });
+
+ $('.btn-submenu').on('click', function() {
+ var sub = $(this).parent().siblings('.submenu, .mob-submenu, .megamenu');
+
+ $(this).toggleClass('active');
+ sub.slideToggle(300);
+ });
+
+
+ $('.menu > li').each(function() {
+ var sub = $(this).children('.submenu').size();
+ if (sub > 0) $(this).addClass('with-sub');
+ });
+
+ $(window).resize(function() {
+ if ($('.btn-menu').css('display') === 'block') {
+ $('.main').removeClass('desk');
+ }
+ else {
+ $('.main').addClass('desk');
+ $('.menu, .submenu, .b-search').removeAttr('style');
+ }
+ });
+
+ // FORMS: SEARCH, COMMENT
+
+ $('.btn-search').on('click', function() {
+ $(this).toggleClass('active');
+ $('.b-search').fadeToggle(300);
+ });
+
+ $('.search-submit, .comment-submit').on('click', function() {
+ $(this).parent().submit();
+ });
+
+ $('.search-form').on('click', '.search-text-remove', function() {
+ $(this).siblings('.search-text').val('');
+ });
+
+
+ $('.btn-reply').on('click', function() {
+ if (!$(this).hasClass('cancel-reply')) {
+
+ var comForm = $('.b-comment-form').clone();
+ $('.b-comment-form').remove();
+
+ $('.btn-reply').removeClass('cancel-reply').html('
reply ');
+ $(this).addClass('cancel-reply').html('
cancel ');
+ $(this).parent().parent().append(comForm);
+
+ $(this).parent().parent().children('.b-comment-form')
+ .focus(function() {
+ $(this).siblings('i').addClass('focused');
+ })
+ .focusout(function() {
+ $(this).siblings('i').removeClass('focused');
+ });
+ }
+ });
+
+ $(document)
+ .on('click', '.cancel-reply', function() {
+ var comForm = $(this).parent().siblings('.b-comment-form').clone();
+ $(this).parent().siblings('.b-comment-form').remove();
+
+ $(this).removeClass('cancel-reply').html('
reply ');
+ $('.post').append(comForm);
+ })
+ .on('click', '.cancel-reply2', function(event) {
+ event.preventDefault();
+
+ var comForm = $(this).parent().parent().clone();
+ $(this).parent().parent().remove();
+
+ $('.cancel-reply').removeClass('cancel-reply').html('
reply ');
+ $('.post').append(comForm);
+ })
+ .on('focus', 'input, textarea', function() {
+ $(this).siblings('i').addClass('focused');
+ })
+ .on('focusout', 'input, textarea', function() {
+ $(this).siblings('i').removeClass('focused');
+ });
+
+
+
+ // CONTACT FORM
+
+ $('.b-contact-form').submit(function(){
+
+ var self = $(this),
+ action = self.attr('action');
+
+ self.prev().slideUp(750,function() {
+ self.prev().hide();
+
+ var name = self.find('.field-name'),
+ subj = self.find('.field-subject'),
+ email = self.find('.field-email'),
+ comm = self.find('.field-comments');
+
+ $.post(action, {
+ name: name.val(),
+ email: email.val(),
+ subject: subj.val() || '...',
+ comments: comm.val(),
+ },
+ function(data){
+ self.prev().html(data);
+ self.prev().slideDown('slow');
+
+ if (data.match('success') != null) {
+ name.val('');
+ subj.val('');
+ email.val('');
+ comm.val('');
+ }
+ }
+ );
+
+ });
+
+ return false;
+
+ });
+
+ // TABS
+
+ (function() {
+
+ $('.b-tabs').on('click', 'li', function() {
+ var title = $(this),
+ tab = title.parent().siblings().children().eq(title.index());
+
+ if (title.parent().parent().hasClass('a-slide')) {
+ var curTab = tab.siblings('.active');
+ curTab.addClass('cur-tab').siblings().removeClass('cur-tab');
+ }
+
+ title.addClass('active').siblings().removeClass('active');
+ tab.addClass('active').siblings().removeClass('active');
+ });
+
+ }());
+
+ // MESSAGES
+
+ (function() {
+
+ $(document).on('click', '.message-close', function() {
+ $(this).parent()
+ .animate({'opacity':'0'}, 220, function() {
+ $(this).hide(200);
+ });
+ })
+
+ }());
+
+ // SPOILER
+
+ $('.spoiler-title').on('click', function() {
+ $(this)
+ .toggleClass('active')
+ .next().slideToggle(250);
+ });
+
+ $('.b-accordion .spoiler-title').on('click', function() {
+ $(this).parent().siblings()
+ .children('.spoiler-title').removeClass('active')
+ .next('.spoiler-content').slideUp(250);
+ });
+
+ // PROGRESS BAR
+
+ $('.b-progress-bar').each(function() {
+
+ var cap = parseInt($(this).attr('data-capacity'), 10),
+ val = parseInt($(this).attr('data-value'), 10),
+ len = 100 * (val / cap) + '%';
+
+ $(this).find('.progress-line').css('width', len);
+
+ });
+
+ // TEAM
+
+ $('.member-photo')
+ .on('mouseenter', function() {
+ $(this).children('.b-social').stop().fadeIn(200);
+ })
+ .on('mouseleave', function() {
+ $(this).children('.b-social').stop().fadeOut(200);
+ });
+
+ $('.b-member.m-compact')
+ .on('mouseenter', function() {
+ $(this).children('.member-meta').stop().fadeIn(200);
+ })
+ .on('mouseleave', function() {
+ $(this).children('.member-meta').stop().fadeOut(200);
+ });
+
+ // PORTFOLIO
+
+ $('.work-preview a').on('click', function() {
+ $(this).parent().trigger('click');
+ });
+
+ // CAROUSEL
+
+ $.fn.carousel = function(op) {
+ var op, ui = {};
+
+ op = $.extend({
+ speed: 500,
+ autoChange: false,
+ interval: 5000
+ }, op);
+
+ ui.carousel = this;
+ ui.items = ui.carousel.find('.carousel-item');
+ ui.itemsLen = ui.items.length;
+
+ // CREATE CONTROLS
+
+ ui.ctrl = $('
', {'class': 'carousel-control'});
+ ui.prev = $('
', {'class': 'carousel-prev'});
+ ui.next = $('
', {'class': 'carousel-next'});
+ ui.pagList = $('
', {'class': 'carousel-pagination'});
+ ui.pagItem = $('
');
+
+ for (var i = 0; i < ui.itemsLen; i++) {
+ ui.pagItem.clone().appendTo(ui.pagList);
+ }
+
+ ui.prev.appendTo(ui.ctrl);
+ ui.next.appendTo(ui.ctrl);
+ ui.pagList.appendTo(ui.ctrl);
+ ui.ctrl.appendTo(ui.carousel);
+
+ ui.carousel.find('.carousel-pagination li').eq(0).addClass('active');
+
+ ui.carousel.find('.carousel-item').each(function() {
+ $(this).hide();
+ });
+
+ ui.carousel.find('.carousel-item').eq(0).show().addClass('active');
+
+
+ // CHANGE ITEM
+
+ var changeImage = function(direction, context) {
+ var current = ui.carousel.find('.carousel-item.active');
+
+ if (direction == 'index') {
+ if(current.index() === context.index())
+ return false;
+
+ context.addClass('active').siblings().removeClass('active');
+
+ ui.items.eq(context.index()).addClass('current').fadeIn(op.speed, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+
+ if (direction == 'prev') {
+ if (current.index() == 0) {
+ ui.carousel.find('.carousel-item:last').addClass('current').fadeIn(op.speed, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+ else {
+ current.prev().addClass('current').fadeIn(op.speed, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+ }
+
+ if (direction == undefined) {
+ if (current.index() == ui.itemsLen - 1) {
+ ui.carousel.find('.carousel-item:first').addClass('current').fadeIn(300, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+ else {
+ current.next().addClass('current').fadeIn(300, function() {
+ current.removeClass('active').hide();
+ $(this).addClass('active').removeClass('current');
+ });
+ }
+ }
+
+ ui.carousel.find('.carousel-pagination li').eq( ui.carousel.find('.carousel-item.current').index() ).addClass('active').siblings().removeClass('active');
+ };
+
+ ui.carousel
+ .on('click', 'li', function() {
+ changeImage('index', $(this));
+ })
+ .on('click', '.carousel-prev', function() {
+ changeImage('prev');
+ })
+ .on('click', '.carousel-next', function() {
+ changeImage();
+ });
+
+ // AUTO CHANGE
+
+ if (op.autoChange) {
+ var changeInterval = setInterval(changeImage, op.interval);
+
+ ui.carousel
+ .on('mouseenter', function() {
+ clearInterval(changeInterval);
+ })
+ .on('mouseleave', function() {
+ changeInterval = setInterval(changeImage, op.interval);
+ });
+ }
+
+ return this;
+ };
+
+ $('.b-carousel').each(function() {
+ $(this).carousel({
+ autoChange: true
+ });
+ });
+
+ // BUTTON UP
+
+ var btnUp = $('
', {'class':'btn-up'});
+ btnUp.appendTo('body');
+
+ $(document)
+ .on('click', '.btn-up', function() {
+ $('html, body').animate({
+ scrollTop: 0
+ }, 700);
+ });
+
+ $(window)
+ .on('scroll', function() {
+ if ($(this).scrollTop() > 200)
+ $('.btn-up').addClass('active');
+ else
+ $('.btn-up').removeClass('active');
+ });
+
+ // SETTINGS PANEL
+
+ $('.btn-settings').on('click', function() {
+ $(this).parent().toggleClass('active');
+ });
+
+ $('.switch-handle').on('click', function() {
+ $(this).toggleClass('active');
+ $('.main').toggleClass('boxed');
+
+ });
+
+ $('.bg-list div').on('click', function() {
+ if ($(this).hasClass('active')) return false;
+ if(!$('.switch-handle').hasClass('active')) $('.switch-handle').trigger('click');
+
+ $(this).addClass('active').siblings().removeClass('active');
+ var cl = $(this).attr('class');
+ $('body').attr('class', cl);
+ });
+
+ $('.color-list div').on('click', function() {
+ if ($(this).hasClass('active')) return false;
+
+ $('link.color-scheme-link').remove();
+
+ $(this).addClass('active').siblings().removeClass('active');
+ var src = $(this).attr('data-src'),
+ colorScheme = $('
');
+
+ colorScheme
+ .attr('href', src)
+ .appendTo('head');
+ });
+
+ });
+
+})(jQuery);
+
+$(document).ready(function(){
+ $(".header").sticky({topSpacing:0});
+});
+
+$(function(){
+ $.stellar({
+ horizontalScrolling: false,
+ responsive: true
+ });
+});
+
+$(window).scroll(function() {
+ var scroll = $(window).scrollTop();
+
+ if (scroll >= 200) {
+ $(".header-transparent").addClass("header-trans-act");
+ } else {
+ $(".header-transparent").removeClass("header-trans-act");
+ }
+});
+
+$(document).ready(function(){
+$('.navbar-nav .dropdown > a[href]').click(function(){
+location.href = this.href;
+});
+});
+
+
+
+jQuery( "button.navbar-toggle" ).click(function(){
+ jQuery('#navbar-collapse-1').toggleClass('in');
+
+});
+
+
+
+
+
diff --git a/www/htdocs/js/menu-target.js b/www/htdocs/js/menu-target.js
new file mode 100644
index 0000000..0b94bd3
--- /dev/null
+++ b/www/htdocs/js/menu-target.js
@@ -0,0 +1,29 @@
+jQuery(window).scroll(function(){
+ if (jQuery(this).scrollTop() > 170) {
+ //console.log(jQuery(this).scrollTop());
+ jQuery('.header,#header-main').addClass('fixed-header');
+ }
+ else {
+ jQuery('.header,#header-main').removeClass('fixed-header');
+ }
+});
+
+jQuery(document).ready(function(){
+ jQuery('.header-container a[href^="#"],a[href^="#"]').on('click',function (e) {
+ e.preventDefault();
+
+ var target = this.hash;
+ $target = jQuery(target);
+
+ jQuery('html, body').stop().animate({
+ 'scrollTop': $target.offset().top
+ }, 900, 'swing', function () {
+ window.location.hash = target;
+ });
+ });
+
+
+});
+
+
+
diff --git a/www/htdocs/js/menu.js b/www/htdocs/js/menu.js
new file mode 100644
index 0000000..a5e3db2
--- /dev/null
+++ b/www/htdocs/js/menu.js
@@ -0,0 +1,110 @@
+/**
+* Project: Bootstrap Hover Dropdown
+* Author: Cameron Spear
+* Contributors: Mattia Larentis
+*
+* Dependencies: Bootstrap's Dropdown plugin, jQuery
+*
+* A simple plugin to enable Bootstrap dropdowns to active on hover and provide a nice user experience.
+*
+* License: MIT
+*
+* http://cameronspear.com/blog/bootstrap-dropdown-on-hover-plugin/
+*/
+;(function ($, window, undefined) {
+ // outside the scope of the jQuery plugin to
+ // keep track of all dropdowns
+ var $allDropdowns = $();
+
+ // if instantlyCloseOthers is true, then it will instantly
+ // shut other nav items when a new one is hovered over
+ $.fn.dropdownHover = function (options) {
+ // don't do anything if touch is supported
+ // (plugin causes some issues on mobile)
+ if('ontouchstart' in document) return this; // don't want to affect chaining
+
+ // the element we really care about
+ // is the dropdown-toggle's parent
+ $allDropdowns = $allDropdowns.add(this.parent());
+
+ return this.each(function () {
+ var $this = $(this),
+ $parent = $this.parent(),
+ defaults = {
+ delay: 400,
+ instantlyCloseOthers: true
+ },
+ data = {
+ delay: $(this).data('delay'),
+ instantlyCloseOthers: $(this).data('close-others')
+ },
+ showEvent = 'show.bs.dropdown',
+ hideEvent = 'hide.bs.dropdown',
+ // shownEvent = 'shown.bs.dropdown',
+ // hiddenEvent = 'hidden.bs.dropdown',
+ settings = $.extend(true, {}, defaults, options, data),
+ timeout;
+
+ $parent.hover(function (event) {
+ // so a neighbor can't open the dropdown
+ if(!$parent.hasClass('open') && !$this.is(event.target)) {
+ // stop this event, stop executing any code
+ // in this callback but continue to propagate
+ return true;
+ }
+
+ $allDropdowns.find(':focus').blur();
+
+ if(settings.instantlyCloseOthers === true)
+ $allDropdowns.removeClass('open');
+
+ window.clearTimeout(timeout);
+ $parent.addClass('open');
+ $this.trigger(showEvent);
+ }, function () {
+ timeout = window.setTimeout(function () {
+ $parent.removeClass('open');
+ $this.trigger(hideEvent);
+ }, settings.delay);
+ });
+
+ // this helps with button groups!
+ $this.hover(function () {
+ $allDropdowns.find(':focus').blur();
+
+ if(settings.instantlyCloseOthers === true)
+ $allDropdowns.removeClass('open');
+
+ window.clearTimeout(timeout);
+ $parent.addClass('open');
+ $this.trigger(showEvent);
+ });
+
+ // handle submenus
+ $parent.find('.dropdown-submenu').each(function (){
+ var $this = $(this);
+ var subTimeout;
+ $this.hover(function () {
+ window.clearTimeout(subTimeout);
+ $this.children('.dropdown-menu').show();
+ // always close submenu siblings instantly
+ $this.siblings().children('.dropdown-menu').hide();
+ }, function () {
+ var $submenu = $this.children('.dropdown-menu');
+ subTimeout = window.setTimeout(function () {
+ $submenu.hide();
+ }, settings.delay);
+ });
+ });
+ });
+ };
+
+ $(document).ready(function () {
+ // apply dropdownHover to all elements with the data-hover="dropdown" attribute
+ $('[data-hover="dropdown"]').dropdownHover();
+ });
+ $('.dropdown-toggle').dropdownHover().dropdown();
+ $(document).on('click', '.yamm .dropdown-menu', function(e) {
+ e.stopPropagation()
+ })
+})(jQuery, this);
\ No newline at end of file
diff --git a/www/htdocs/js/owl-carousel/AjaxLoader.gif b/www/htdocs/js/owl-carousel/AjaxLoader.gif
new file mode 100644
index 0000000..3c329ff
Binary files /dev/null and b/www/htdocs/js/owl-carousel/AjaxLoader.gif differ
diff --git a/www/htdocs/js/owl-carousel/grabbing.png b/www/htdocs/js/owl-carousel/grabbing.png
new file mode 100644
index 0000000..85491df
Binary files /dev/null and b/www/htdocs/js/owl-carousel/grabbing.png differ
diff --git a/www/htdocs/js/owl-carousel/owl.carousel.css b/www/htdocs/js/owl-carousel/owl.carousel.css
new file mode 100644
index 0000000..4e3c17c
--- /dev/null
+++ b/www/htdocs/js/owl-carousel/owl.carousel.css
@@ -0,0 +1,71 @@
+/*
+ * Core Owl Carousel CSS File
+ * v1.3.3
+ */
+
+/* clearfix */
+.owl-carousel .owl-wrapper:after {
+ content: ".";
+ display: block;
+ clear: both;
+ visibility: hidden;
+ line-height: 0;
+ height: 0;
+}
+/* display none until init */
+.owl-carousel{
+ display: none;
+ position: relative;
+ width: 100%;
+ -ms-touch-action: pan-y;
+}
+.owl-carousel .owl-wrapper{
+ display: none;
+ position: relative;
+ -webkit-transform: translate3d(0px, 0px, 0px);
+}
+.owl-carousel .owl-wrapper-outer{
+ overflow: hidden;
+ position: relative;
+ width: 100%;
+}
+.owl-carousel .owl-wrapper-outer.autoHeight{
+ -webkit-transition: height 500ms ease-in-out;
+ -moz-transition: height 500ms ease-in-out;
+ -ms-transition: height 500ms ease-in-out;
+ -o-transition: height 500ms ease-in-out;
+ transition: height 500ms ease-in-out;
+}
+
+.owl-carousel .owl-item{
+ float: left;
+}
+.owl-controls .owl-page,
+.owl-controls .owl-buttons div{
+ cursor: pointer;
+}
+.owl-controls {
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
+
+/* mouse grab icon */
+.grabbing {
+ cursor:url(grabbing.png) 8 8, move;
+}
+
+/* fix */
+.owl-carousel .owl-wrapper,
+.owl-carousel .owl-item{
+ -webkit-backface-visibility: hidden;
+ -moz-backface-visibility: hidden;
+ -ms-backface-visibility: hidden;
+ -webkit-transform: translate3d(0,0,0);
+ -moz-transform: translate3d(0,0,0);
+ -ms-transform: translate3d(0,0,0);
+}
+
diff --git a/www/htdocs/js/owl-carousel/owl.carousel.js b/www/htdocs/js/owl-carousel/owl.carousel.js
new file mode 100644
index 0000000..a5d9ac1
--- /dev/null
+++ b/www/htdocs/js/owl-carousel/owl.carousel.js
@@ -0,0 +1,1512 @@
+/*
+ * jQuery OwlCarousel v1.3.3
+ *
+ * Copyright (c) 2013 Bartosz Wojciechowski
+ * http://www.owlgraphic.com/owlcarousel/
+ *
+ * Licensed under MIT
+ *
+ */
+
+/*JS Lint helpers: */
+/*global dragMove: false, dragEnd: false, $, jQuery, alert, window, document */
+/*jslint nomen: true, continue:true */
+
+if (typeof Object.create !== "function") {
+ Object.create = function (obj) {
+ function F() {}
+ F.prototype = obj;
+ return new F();
+ };
+}
+(function ($, window, document) {
+
+ var Carousel = {
+ init : function (options, el) {
+ var base = this;
+
+ base.$elem = $(el);
+ base.options = $.extend({}, $.fn.owlCarousel.options, base.$elem.data(), options);
+
+ base.userOptions = options;
+ base.loadContent();
+ },
+
+ loadContent : function () {
+ var base = this, url;
+
+ function getData(data) {
+ var i, content = "";
+ if (typeof base.options.jsonSuccess === "function") {
+ base.options.jsonSuccess.apply(this, [data]);
+ } else {
+ for (i in data.owl) {
+ if (data.owl.hasOwnProperty(i)) {
+ content += data.owl[i].item;
+ }
+ }
+ base.$elem.html(content);
+ }
+ base.logIn();
+ }
+
+ if (typeof base.options.beforeInit === "function") {
+ base.options.beforeInit.apply(this, [base.$elem]);
+ }
+
+ if (typeof base.options.jsonPath === "string") {
+ url = base.options.jsonPath;
+ $.getJSON(url, getData);
+ } else {
+ base.logIn();
+ }
+ },
+
+ logIn : function () {
+ var base = this;
+
+ base.$elem.data("owl-originalStyles", base.$elem.attr("style"));
+ base.$elem.data("owl-originalClasses", base.$elem.attr("class"));
+
+ base.$elem.css({opacity: 0});
+ base.orignalItems = base.options.items;
+ base.checkBrowser();
+ base.wrapperWidth = 0;
+ base.checkVisible = null;
+ base.setVars();
+ },
+
+ setVars : function () {
+ var base = this;
+ if (base.$elem.children().length === 0) {return false; }
+ base.baseClass();
+ base.eventTypes();
+ base.$userItems = base.$elem.children();
+ base.itemsAmount = base.$userItems.length;
+ base.wrapItems();
+ base.$owlItems = base.$elem.find(".owl-item");
+ base.$owlWrapper = base.$elem.find(".owl-wrapper");
+ base.playDirection = "next";
+ base.prevItem = 0;
+ base.prevArr = [0];
+ base.currentItem = 0;
+ base.customEvents();
+ base.onStartup();
+ },
+
+ onStartup : function () {
+ var base = this;
+ base.updateItems();
+ base.calculateAll();
+ base.buildControls();
+ base.updateControls();
+ base.response();
+ base.moveEvents();
+ base.stopOnHover();
+ base.owlStatus();
+
+ if (base.options.transitionStyle !== false) {
+ base.transitionTypes(base.options.transitionStyle);
+ }
+ if (base.options.autoPlay === true) {
+ base.options.autoPlay = 5000;
+ }
+ base.play();
+
+ base.$elem.find(".owl-wrapper").css("display", "block");
+
+ if (!base.$elem.is(":visible")) {
+ base.watchVisibility();
+ } else {
+ base.$elem.css("opacity", 1);
+ }
+ base.onstartup = false;
+ base.eachMoveUpdate();
+ if (typeof base.options.afterInit === "function") {
+ base.options.afterInit.apply(this, [base.$elem]);
+ }
+ },
+
+ eachMoveUpdate : function () {
+ var base = this;
+
+ if (base.options.lazyLoad === true) {
+ base.lazyLoad();
+ }
+ if (base.options.autoHeight === true) {
+ base.autoHeight();
+ }
+ base.onVisibleItems();
+
+ if (typeof base.options.afterAction === "function") {
+ base.options.afterAction.apply(this, [base.$elem]);
+ }
+ },
+
+ updateVars : function () {
+ var base = this;
+ if (typeof base.options.beforeUpdate === "function") {
+ base.options.beforeUpdate.apply(this, [base.$elem]);
+ }
+ base.watchVisibility();
+ base.updateItems();
+ base.calculateAll();
+ base.updatePosition();
+ base.updateControls();
+ base.eachMoveUpdate();
+ if (typeof base.options.afterUpdate === "function") {
+ base.options.afterUpdate.apply(this, [base.$elem]);
+ }
+ },
+
+ reload : function () {
+ var base = this;
+ window.setTimeout(function () {
+ base.updateVars();
+ }, 0);
+ },
+
+ watchVisibility : function () {
+ var base = this;
+
+ if (base.$elem.is(":visible") === false) {
+ base.$elem.css({opacity: 0});
+ window.clearInterval(base.autoPlayInterval);
+ window.clearInterval(base.checkVisible);
+ } else {
+ return false;
+ }
+ base.checkVisible = window.setInterval(function () {
+ if (base.$elem.is(":visible")) {
+ base.reload();
+ base.$elem.animate({opacity: 1}, 200);
+ window.clearInterval(base.checkVisible);
+ }
+ }, 500);
+ },
+
+ wrapItems : function () {
+ var base = this;
+ base.$userItems.wrapAll("
").wrap("
");
+ base.$elem.find(".owl-wrapper").wrap("
");
+ base.wrapperOuter = base.$elem.find(".owl-wrapper-outer");
+ base.$elem.css("display", "block");
+ },
+
+ baseClass : function () {
+ var base = this,
+ hasBaseClass = base.$elem.hasClass(base.options.baseClass),
+ hasThemeClass = base.$elem.hasClass(base.options.theme);
+
+ if (!hasBaseClass) {
+ base.$elem.addClass(base.options.baseClass);
+ }
+
+ if (!hasThemeClass) {
+ base.$elem.addClass(base.options.theme);
+ }
+ },
+
+ updateItems : function () {
+ var base = this, width, i;
+
+ if (base.options.responsive === false) {
+ return false;
+ }
+ if (base.options.singleItem === true) {
+ base.options.items = base.orignalItems = 1;
+ base.options.itemsCustom = false;
+ base.options.itemsDesktop = false;
+ base.options.itemsDesktopSmall = false;
+ base.options.itemsTablet = false;
+ base.options.itemsTabletSmall = false;
+ base.options.itemsMobile = false;
+ return false;
+ }
+
+ width = $(base.options.responsiveBaseWidth).width();
+
+ if (width > (base.options.itemsDesktop[0] || base.orignalItems)) {
+ base.options.items = base.orignalItems;
+ }
+ if (base.options.itemsCustom !== false) {
+ //Reorder array by screen size
+ base.options.itemsCustom.sort(function (a, b) {return a[0] - b[0]; });
+
+ for (i = 0; i < base.options.itemsCustom.length; i += 1) {
+ if (base.options.itemsCustom[i][0] <= width) {
+ base.options.items = base.options.itemsCustom[i][1];
+ }
+ }
+
+ } else {
+
+ if (width <= base.options.itemsDesktop[0] && base.options.itemsDesktop !== false) {
+ base.options.items = base.options.itemsDesktop[1];
+ }
+
+ if (width <= base.options.itemsDesktopSmall[0] && base.options.itemsDesktopSmall !== false) {
+ base.options.items = base.options.itemsDesktopSmall[1];
+ }
+
+ if (width <= base.options.itemsTablet[0] && base.options.itemsTablet !== false) {
+ base.options.items = base.options.itemsTablet[1];
+ }
+
+ if (width <= base.options.itemsTabletSmall[0] && base.options.itemsTabletSmall !== false) {
+ base.options.items = base.options.itemsTabletSmall[1];
+ }
+
+ if (width <= base.options.itemsMobile[0] && base.options.itemsMobile !== false) {
+ base.options.items = base.options.itemsMobile[1];
+ }
+ }
+
+ //if number of items is less than declared
+ if (base.options.items > base.itemsAmount && base.options.itemsScaleUp === true) {
+ base.options.items = base.itemsAmount;
+ }
+ },
+
+ response : function () {
+ var base = this,
+ smallDelay,
+ lastWindowWidth;
+
+ if (base.options.responsive !== true) {
+ return false;
+ }
+ lastWindowWidth = $(window).width();
+
+ base.resizer = function () {
+ if ($(window).width() !== lastWindowWidth) {
+ if (base.options.autoPlay !== false) {
+ window.clearInterval(base.autoPlayInterval);
+ }
+ window.clearTimeout(smallDelay);
+ smallDelay = window.setTimeout(function () {
+ lastWindowWidth = $(window).width();
+ base.updateVars();
+ }, base.options.responsiveRefreshRate);
+ }
+ };
+ $(window).resize(base.resizer);
+ },
+
+ updatePosition : function () {
+ var base = this;
+ base.jumpTo(base.currentItem);
+ if (base.options.autoPlay !== false) {
+ base.checkAp();
+ }
+ },
+
+ appendItemsSizes : function () {
+ var base = this,
+ roundPages = 0,
+ lastItem = base.itemsAmount - base.options.items;
+
+ base.$owlItems.each(function (index) {
+ var $this = $(this);
+ $this
+ .css({"width": base.itemWidth})
+ .data("owl-item", Number(index));
+
+ if (index % base.options.items === 0 || index === lastItem) {
+ if (!(index > lastItem)) {
+ roundPages += 1;
+ }
+ }
+ $this.data("owl-roundPages", roundPages);
+ });
+ },
+
+ appendWrapperSizes : function () {
+ var base = this,
+ width = base.$owlItems.length * base.itemWidth;
+
+ base.$owlWrapper.css({
+ "width": width * 2,
+ "left": 0
+ });
+ base.appendItemsSizes();
+ },
+
+ calculateAll : function () {
+ var base = this;
+ base.calculateWidth();
+ base.appendWrapperSizes();
+ base.loops();
+ base.max();
+ },
+
+ calculateWidth : function () {
+ var base = this;
+ base.itemWidth = Math.round(base.$elem.width() / base.options.items);
+ },
+
+ max : function () {
+ var base = this,
+ maximum = ((base.itemsAmount * base.itemWidth) - base.options.items * base.itemWidth) * -1;
+ if (base.options.items > base.itemsAmount) {
+ base.maximumItem = 0;
+ maximum = 0;
+ base.maximumPixels = 0;
+ } else {
+ base.maximumItem = base.itemsAmount - base.options.items;
+ base.maximumPixels = maximum;
+ }
+ return maximum;
+ },
+
+ min : function () {
+ return 0;
+ },
+
+ loops : function () {
+ var base = this,
+ prev = 0,
+ elWidth = 0,
+ i,
+ item,
+ roundPageNum;
+
+ base.positionsInArray = [0];
+ base.pagesInArray = [];
+
+ for (i = 0; i < base.itemsAmount; i += 1) {
+ elWidth += base.itemWidth;
+ base.positionsInArray.push(-elWidth);
+
+ if (base.options.scrollPerPage === true) {
+ item = $(base.$owlItems[i]);
+ roundPageNum = item.data("owl-roundPages");
+ if (roundPageNum !== prev) {
+ base.pagesInArray[prev] = base.positionsInArray[i];
+ prev = roundPageNum;
+ }
+ }
+ }
+ },
+
+ buildControls : function () {
+ var base = this;
+ if (base.options.navigation === true || base.options.pagination === true) {
+ base.owlControls = $("
").toggleClass("clickable", !base.browser.isTouch).appendTo(base.$elem);
+ }
+ if (base.options.pagination === true) {
+ base.buildPagination();
+ }
+ if (base.options.navigation === true) {
+ base.buildButtons();
+ }
+ },
+
+ buildButtons : function () {
+ var base = this,
+ buttonsWrapper = $("