function layoutSettings() { wW = window.innerWidth, wH = $(window).height(), iPhoneTransVal = -iPhone.height() - (wH - iPhone.height()) / 2, 740 >= wW ? slider || initSlider() : slider && (slider.destroy(), slider = null, $(".swiper-slide").width(""))}
function initNavigation() { $("section").each(function(e) { sections[e] = new Section(e) }), getTransitionValues() }
function drawLine(e, t) {
var i = 0,
n = e.parent().attr("id"),
r = t.getTotalLength(),
s = e.offset().top - $(window).scrollTop(),
a = 1 - s / $(window).height(); "route1" == n && (a -= .2, a > 0 && (a = 1.35 * a), a >= 1 ? $("#plan_text").show("fast") : $("#plan_text").hide("fast")), "route2" == n && (a -= .45, a > 0 && (a = 1.7 * a), a >= 1 ? $("#design_text").show("fast") : $("#design_text").hide("fast")), "route4" == n && (a -= .55, a > 0 && (a = 1.6 * a), a >= 1 ? $("#code_text").show("fast") : $("#code_text").hide("fast")), "route5" == n && (a -= .45, a > 0 && (a = 1.8 * a), a >= 1 ? $("#qa_text").show("fast") : $("#qa_text").hide("fast")), "route6" == n && (a -= .47, a > 0 && (a = 1.5 * a), a >= 1 ? $("#deploy_text").show("fast") : $("#deploy_text").hide("fast")), i = a * r, 0 > i && (i = 0), t.style.strokeDasharray = [i, r].join(" ") }
function drawallLines(e, t) { $.each($("path"), function(e, t) {
var i = t;
drawLine($(this), i) }) }
function initiPadVideo() { video.play(), video.pause(), console.log("iPad video initiated."), $(document).off("touchend", initiPadVideo) }
function getTransitionValues() { trValues[0] = { stripe: { duration: .5, values: { delay: 0, y: -30, rotationZ: 0, scaleX: 1, force3D: !0, ease: Quad.easeInOut } }, iPhone: { duration: .5, values: { delay: .7, y: 0, rotationZ: -15, force3D: !0, ease: Quad.easeInOut } }, article: { delay: { forward: 0, backward: 0 } }, timelineCtn: { duration: .5, values: { delay: 0, y: 0, opacity: 0, force3D: !0, ease: Quad.easeInOut } }, timeline: { duration: .5, values: { delay: 0, x: 0, force3D: !0, ease: Quad.easeInOut } }, video: { start: 0, end: 0 } }, trValues[1] = { stripe: { duration: 1.3, values: { delay: .2, y: -wH / 2, rotationZ: 0, scaleX: 1.3, force3D: !0, ease: Expo.easeInOut } }, iPhone: { duration: .8, values: { delay: .3, y: iPhoneTransVal, rotationZ: 0, force3D: !0, ease: Sine.easeInOut } }, article: { delay: { forward: 600, backward: 600 } }, timelineCtn: { duration: .8, values: { delay: .2, y: 130, rotationZ: 0, opacity: 1, force3D: !0, ease: Quint.easeInOut } }, timeline: { duration: .5, values: { delay: 0, x: "25%", force3D: !0, ease: Quad.easeInOut } }, video: { start: 2, end: 11 } }, trValues[2] = { stripe: { duration: 1.3, values: { delay: 0, y: -wH / 2, rotationZ: 180, force3D: !0, ease: Expo.easeInOut } }, iPhone: { duration: .8, values: { delay: .9, y: iPhoneTransVal, force3D: !0, ease: Quad.easeInOut } }, article: { delay: { forward: 600, backward: 600 } }, timelineCtn: { duration: .5, values: { delay: 0, y: -150, force3D: !0, ease: Quad.easeInOut } }, timeline: { duration: .5, values: { delay: 0, x: "50%", force3D: !0, ease: Quad.easeInOut } }, video: { start: 11, end: 23 } }, trValues[3] = { stripe: { duration: 1.3, values: { delay: 0, y: -wH / 2, rotationZ: 360, force3D: !0, ease: Expo.easeInOut } }, iPhone: { duration: .8, values: { delay: .9, y: iPhoneTransVal, force3D: !0, ease: Quad.easeInOut } }, article: { delay: { forward: 600, backward: 600 } }, timelineCtn: { duration: .5, values: { delay: 0, y: 130, force3D: !0, ease: Quad.easeInOut } }, timeline: { duration: .5, values: { delay: 0, x: "75%", force3D: !0, ease: Quad.easeInOut } }, video: { start: 23, end: 27.5 } }, trValues[4] = { stripe: { duration: 1.3, values: { delay: 0, y: -wH / 2, rotationZ: 540, force3D: !0, ease: Expo.easeInOut } }, iPhone: { duration: .7, values: { delay: 0, y: iPhoneTransVal, rotationZ: 0, force3D: !0, ease: Quad.easeOut } }, article: { delay: { forward: 600, backward: 0 } }, timelineCtn: { duration: .5, values: { delay: 0, y: -150, opacity: 1, force3D: !0, ease: Quad.easeInOut } }, timeline: { duration: .5, values: { delay: 0, x: "100%", force3D: !0, ease: Quad.easeInOut } }, video: { start: 27.5, end: video.duration } }, trValues[5] = { stripe: { duration: .5, values: { delay: .2, y: 0, rotationZ: 540, force3D: !0, ease: Sine.easeIn } }, iPhone: { duration: .7, values: { delay: 0, y: 2 * -wH, rotationZ: 15, force3D: !0, ease: Sine.easeIn } }, article: { delay: { forward: 0, backward: 0 } }, timelineCtn: { duration: .5, values: { delay: 0, y: 0, scaleX: 0, opacity: 0, force3D: !0, ease: Quad.easeInOut } }, timeline: { duration: .5, values: { delay: 0, x: "100%", force3D: !0, ease: Quad.easeInOut } } } }
function rotateSlide(e, t) {
var i, n = lastSwipeProgress - t,
r = n * (slidesNumber - 1),
s = $("#slider-images span").eq(e.activeIndex),
a = $("#slider-images span").eq(0 > n ? e.activeIndex + 1 : e.activeIndex - 1),
o = Math.min(90, 90 * r);
r >= 0 ? i = Math.max(-90, -90 + 90 * r) : 0 > r && (i = Math.min(90, 90 - -90 * r)), s.css({ transform: "rotate(" + o + "deg)" }), a.css({ transform: "rotate(" + i + "deg)" }), lastViableProgress = t }! 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 i(e) {