Files
old-saburly-website2/dist/all.js

5 lines
146 KiB
JavaScript
Raw Normal View History

2017-11-07 15:49:46 +01:00
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=G.type(e);return"function"!==n&&!G.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,n){if(G.isFunction(t))return G.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return G.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(re.test(t))return G.filter(t,e,n);t=G.filter(t,e)}return G.grep(e,function(e){return G.inArray(e,t)>=0!==n})}function i(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function o(){oe.addEventListener?(oe.removeEventListener("DOMContentLoaded",a,!1),e.removeEventListener("load",a,!1)):(oe.detachEvent("onreadystatechange",a),e.detachEvent("onload",a))}function a(){(oe.addEventListener||"load"===event.type||"complete"===oe.readyState)&&(o(),G.ready())}function s(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(me,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:he.test(n)?G.parseJSON(n):n)}catch(e){}G.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!G.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(e,t,n,r){if(G.acceptData(e)){var i,o,a=G.expando,s=e.nodeType,l=s?G.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=R.pop()||G.guid++:a),l[u]||(l[u]=s?{}:{toJSON:G.noop}),("object"==typeof t||"function"==typeof t)&&(r?l[u]=G.extend(l[u],t):l[u].data=G.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[G.camelCase(t)]=n),"string"==typeof t?null==(i=o[t])&&(i=o[G.camelCase(t)]):i=o,i}}function c(e,t,n){if(G.acceptData(e)){var r,i,o=e.nodeType,a=o?G.cache:e,s=o?e[G.expando]:G.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){G.isArray(t)?t=t.concat(G.map(t,G.camelCase)):t in r?t=[t]:(t=G.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!G.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?G.cleanData([e],!0):J.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function d(){return!0}function f(){return!1}function p(){try{return oe.activeElement}catch(e){}}function h(e){var t=ke.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function m(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==pe?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==pe?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||G.nodeName(r,t)?o.push(r):G.merge(o,m(r,t));return void 0===t||t&&G.nodeName(e,t)?G.merge([e],o):o}function g(e,t){return G.nodeName(e,"table")&&G.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function v(e){return e.type=(null!==G.find.attr(e,"type"))+"/"+e.type,e}function y(e){var t=Oe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function b(e,t){for(var n,r=0;null!=(n=e[r]);r++)G._data(n,"globalEval",!t||G._data(t[r],"globalEval"))}function x(e,t){if(1===t.nodeType&&G.hasData(e)){var n,r,i,o=G._data(e),a=G._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)G.event.add(t,n,s[n][r])}a.data&&(a.data=G.extend({},a.data))}}function w(t,n){var r,i=G(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:G.css(i[0],"display");return i.detach(),o}function T(e){var t=oe,n=$e[e];return n||("none"!==(n=w(e,t))&&n||(We=(We||G("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),(t=(We[0].contentWindow||We[0].contentDocument).document).write(),t.close(),n=w(e,t),We.detach()),$e[e]=n),n}function C(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete
if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one(t.support.transition.end,function(){i=!0});return setTimeout(function(){i||t(o).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]}}()})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.prototype.close=function(e){function i(){s.trigger("closed.bs.alert").remove()}var o=t(this),n=o.attr("data-target");n||(n=o.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,""));var s=t(n);e&&e.preventDefault(),s.length||(s=o.hasClass("alert")?o:o.parent()),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one(t.support.transition.end,i).emulateTransitionEnd(150):i())};var o=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var o=t(this),n=o.data("bs.alert");n||o.data("bs.alert",n=new i(this)),"string"==typeof e&&n[e].call(o)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";var e=function(i,o){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,o)};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(t){var e="disabled",i=this.$element,o=i.is("input")?"val":"html",n=i.data();t+="Text",n.resetText||i.data("resetText",i[o]()),i[o](n[t]||this.options[t]),setTimeout(function(){"loadingText"==t?i.addClass(e).attr(e,e):i.removeClass(e).removeAttr(e)},0)},e.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons"]');if(t.length){"radio"===this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change").prop("type")&&t.find(".active").removeClass("active")}this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=function(i){return this.each(function(){var o=t(this),n=o.data("bs.button"),s="object"==typeof i&&i;n||o.data("bs.button",n=new e(this,s)),"toggle"==i?n.toggle():i&&n.setState(i)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api","[data-toggle^=button]",function(e){var i=t(e.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle"),e.preventDefault()})}(jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},e.prototype.to=function(e){var i=this,o=this.getActiveIndex();return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid",function(){i.to(e)}):o==e?this.pause().cycle():this.slide(e>o?"next":"prev",t(this.$items[e]))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition.end&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){return this.sliding?void 0:this.slide("next")},e.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},e.prototype.slide=
"function"!=typeof Object.create&&(Object.create=function(t){function i(){}return i.prototype=t,new i}),function(t,i,s){var e={init:function(i,s){this.$elem=t(s),this.options=t.extend({},t.fn.owlCarousel.options,this.$elem.data(),i),this.userOptions=i,this.loadContent()},loadContent:function(){var i,s=this;"function"==typeof s.options.beforeInit&&s.options.beforeInit.apply(this,[s.$elem]),"string"==typeof s.options.jsonPath?(i=s.options.jsonPath,t.getJSON(i,function(t){var i,e="";if("function"==typeof s.options.jsonSuccess)s.options.jsonSuccess.apply(this,[t]);else{for(i in t.owl)t.owl.hasOwnProperty(i)&&(e+=t.owl[i].item);s.$elem.html(e)}s.logIn()})):s.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style")),this.$elem.data("owl-originalClasses",this.$elem.attr("class")),this.$elem.css({opacity:0}),this.orignalItems=this.options.items,this.checkBrowser(),this.wrapperWidth=0,this.checkVisible=null,this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass(),this.eventTypes(),this.$userItems=this.$elem.children(),this.itemsAmount=this.$userItems.length,this.wrapItems(),this.$owlItems=this.$elem.find(".owl-item"),this.$owlWrapper=this.$elem.find(".owl-wrapper"),this.playDirection="next",this.prevItem=0,this.prevArr=[0],this.currentItem=0,this.customEvents(),this.onStartup()},onStartup:function(){this.updateItems(),this.calculateAll(),this.buildControls(),this.updateControls(),this.response(),this.moveEvents(),this.stopOnHover(),this.owlStatus(),!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle),!0===this.options.autoPlay&&(this.options.autoPlay=5e3),this.play(),this.$elem.find(".owl-wrapper").css("display","block"),this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility(),this.onstartup=!1,this.eachMoveUpdate(),"function"==typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad(),!0===this.options.autoHeight&&this.autoHeight(),this.onVisibleItems(),"function"==typeof this.options.afterAction&&this.options.afterAction.apply(this,[this.$elem])},updateVars:function(){"function"==typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]),this.watchVisibility(),this.updateItems(),this.calculateAll(),this.updatePosition(),this.updateControls(),this.eachMoveUpdate(),"function"==typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var t=this;i.setTimeout(function(){t.updateVars()},0)},watchVisibility:function(){var t=this;if(!1!==t.$elem.is(":visible"))return!1;t.$elem.css({opacity:0}),i.clearInterval(t.autoPlayInterval),i.clearInterval(t.checkVisible),t.checkVisible=i.setInterval(function(){t.$elem.is(":visible")&&(t.reload(),t.$elem.animate({opacity:1},200),i.clearInterval(t.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'),this.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'),this.wrapperOuter=this.$elem.find(".owl-wrapper-outer"),this.$elem.css("display","block")},baseClass:function(){var t=this.$elem.hasClass(this.options.baseClass),i=this.$elem.hasClass(this.options.theme);t||this.$elem.addClass(this.options.baseClass),i||this.$elem.addClass(this.options.theme)},updateItems:function(){var i,s;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall=!1,this.options.itemsMobile=!1;if((i=t(this.options.responsiveBaseWidth).width())>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems),!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(t,i){return t[0]-i[0]}),s=0;s<this.options.itemsCustom.length;s+=1)this.options.itemsCustom[s][0]<=i&&(this.options.items=this.options.itemsCustom[s
!function(t){t.fn.bcSwipe=function(e){var n={threshold:50};return e&&t.extend(n,e),this.each(function(){function e(e){if(u){var c=e.touches[0].pageX,i=h-c;Math.abs(i)>=n.threshold&&(o(),t(this).carousel(i>0?"next":"prev"))}}function o(){this.removeEventListener("touchmove",e),h=null,u=!1}var h,u=!1;"ontouchstart"in document.documentElement&&this.addEventListener("touchstart",function(t){1==t.touches.length&&(h=t.touches[0].pageX,u=!0,this.addEventListener("touchmove",e,!1))},!1)}),this}}(jQuery);
2017-10-07 01:35:47 +02:00
$("a.nav-link").click(function(a){var o=$($(this).attr("href")),e=parseInt(o.css("paddingTop"),10);return"second"===o.attr("id")&&(e=0),$("html, body").animate({scrollTop:o.offset().top-e},1e3),a.preventDefault(),!1}),$(window).width()<767&&($(".navbar-collapse a").click(function(){$(".navbar-collapse").collapse("hide"),$("#nav-icon3").toggleClass("open")}),$(".navbar-nav").removeClass("animated"),$(".above_item").addClass("carousel-inner"),$("#myCarousel").addClass("carousel slide"),$(".border-box2").addClass("item"),$(".border-box2:first-child").addClass("active"),$(".owl_id").attr("id","owl-demo"),$(".owl_id .col-sm-3").addClass("item"),$(".owl_id .col-sm-3:first-child").addClass("active"),$(".our-work").find(".border-box2").removeClass("animated"),$(".how-we-work").find(".border-box").attr("data-animation","fadeInUp"),$(".technology").find(".animated").removeClass("animated"),$(".navbar-brand").removeClass("animated").attr("data-animation",""),$(".go_there").prependTo($(".come_here")),$(".carousel").bcSwipe({threshold:50})),$("a.back-to-top").click(function(){return $("html, body").animate({scrollTop:0},700),!1}),$(document).ready(function(){$("#nav-icon3").click(function(){$(this).toggleClass("open")}),$(".readmore").click(function(){$(this).siblings(".details2").slideToggle()}),$(".readmore").click(function(){"Read more"==$(this).text()?$(this).text("Read less"):$(this).text("Read more")}),$(".readmore").click(function(){$(this).toggleClass("arrow-up")})}),$(document).ready(function(){$("#owl-demo").owlCarousel({autoPlay:3e3,items:1,loop:!0,itemsCustom:[[0,3],[320,3],[480,3],[768,3],[1200,4],[1400,5],[1600,5]],navigation:!1,slideSpeed:300,paginationSpeed:400,dots:!0,navigationText:["<img src='img/left.png'>","<img src='img/right.png'>"],pagination:!0})});var bodyEl=$("body");$(window).on("scroll",function(){var a=$(this).scrollTop(),o=$("#second"),e=o.attr("id");o.offset().top<=a?bodyEl.addClass(e):bodyEl.removeClass(e)});