1//! 2//! header.js 3//! 4var ua = window.navigator.userAgent, browserIE = !1, browser_v = 0, browser_nm = ""; (ua.match(/MSIE/) || ua.match(/Trident/)) && (browserIE = !0, ua.match(/MSIE/) || (browser_v = ua.match(/(msie\s|rv:)([\d\.]+)/)[2])), browser_nm = browserIE ? "IE" : -1 < ua.indexOf("Edge") ? "Edge" : -1 < ua.indexOf("Firefox") ? "Firefox" : -1 < ua.indexOf("Chrome") ? "Chrome" : -1 < ua.indexOf("Safari") ? "Safari" : "Unknown"; var v_text = ""; browser_v && (v_text = "" + browser_v), -1 != v_text.indexOf("11") ? jQuery("html").addClass("ie").addClass("ie11") : jQuery("html").addClass(browser_nm.toLowerCase()) 5/*! 6 jquery-drawer v3.2.2 7 Flexible drawer menu using jQuery, iScroll and CSS. 8 http://git.blivesta.com/drawer 9 License : MIT 10 Author : blivesta <[email protected]> (http://blivesta.com/) 11 */, function (t) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], t) : "object" == typeof exports ? module.exports = t(require("jquery")) : t(jQuery) }(function (s) { "use strict"; var n = "drawer", i = void 0 !== document.ontouchstart, o = { init: function (e) { return e = s.extend({ iscroll: { mouseWheel: !0, preventDefault: !1 }, showOverlay: !0 }, e), o.settings = { state: !1, events: { opened: "drawer.opened", closed: "drawer.closed" }, dropdownEvents: { opened: "shown.bs.dropdown", closed: "hidden.bs.dropdown" } }, o.settings.class = s.extend({ nav: "drawer-nav", toggle: "drawer-toggle", overlay: "drawer-overlay", open: "drawer-open", close: "drawer-close", dropdown: "drawer-dropdown" }, e.class), this.each(function () { var t = this, i = s(this); i.data(n) || (e = s.extend({}, e), i.data(n, { options: e }), o.refresh.call(t), e.showOverlay && o.addOverlay.call(t), s("." + o.settings.class.toggle).on("click." + n, function () { return o.toggle.call(t), t.iScroll.refresh() }), s(window).on("resize." + n, function () { return o.close.call(t), t.iScroll.refresh() }), s("." + o.settings.class.dropdown).on(o.settings.dropdownEvents.opened + " " + o.settings.dropdownEvents.closed, function () { return t.iScroll.refresh() })) }) }, refresh: function () { this.iScroll = new IScroll("." + o.settings.class.nav, s(this).data(n).options.iscroll) }, addOverlay: function () { var t = s(this), i = s("<div>").addClass(o.settings.class.overlay + " " + o.settings.class.toggle); return t.append(i) }, toggle: function () { return o.settings.state ? o.close.call(this) : o.open.call(this) }, open: function () { var t = s(this); return i && t.on("touchmove." + n, function (t) { t.preventDefault() }), t.removeClass(o.settings.class.close).addClass(o.settings.class.open).drawerCallback(function () { o.settings.state = !0, t.trigger(o.settings.events.opened) }) }, close: function () { var t = s(this); return i && t.off("touchmove." + n), t.removeClass(o.settings.class.open).addClass(o.settings.class.close).drawerCallback(function () { o.settings.state = !1, t.trigger(o.settings.events.closed) }) }, destroy: function () { return this.each(function () { var t = s(this); s("." + o.settings.class.toggle).off("click." + n), s(window).off("resize." + n), s("." + o.settings.class.dropdown).off(o.settings.dropdownEvents.opened + " " + o.settings.dropdownEvents.closed), this.iScroll.destroy(), t.removeData(n).find("." + o.settings.class.overlay).remove() }) } }; s.fn.drawerCallback = function (i) { var e = "transitionend webkitTransitionEnd"; return this.each(function () { var t = s(this); t.on(e, function () { return t.off(e), i.call(this) }) }) }, s.fn.drawer = function (t) { return o[t] ? o[t].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" != typeof t && t ? void s.error("Method " + t + " does not exist on jQuery." + n) : o.init.apply(this, arguments) } }), 12 /*! 13 iScroll v5.2.0-snapshot ~ (c) 2008-2017 Matteo Spinelli ~ http://cubiq.org/license 14 */ 15 function (o, r, d) { var f = o.requestAnimationFrame || o.webkitRequestAnimationFrame || o.mozRequestAnimationFrame || o.oRequestAnimationFrame || o.msRequestAnimationFrame || function (t) { o.setTimeout(t, 1e3 / 60) }, m = function () { var s = {}, n = r.createElement("div").style, i = function () { for (var t = ["t", "webkitT", "MozT", "msT", "OT"], i = 0, e = t.length; i < e; i++)if (t[i] + "ransform" in n) return t[i].substr(0, t[i].length - 1); return !1 }(); function t(t) { return !1 !== i && ("" === i ? t : i + t.charAt(0).toUpperCase() + t.substr(1)) } s.getTime = Date.now || function () { return (new Date).getTime() }, s.extend = function (t, i) { for (var e in i) t[e] = i[e] }, s.addEvent = function (t, i, e, s) { t.addEventListener(i, e, !!s) }, s.removeEvent = function (t, i, e, s) { t.removeEventListener(i, e, !!s) }, s.prefixPointerEvent = function (t) { return o.MSPointerEvent ? "MSPointer" + t.charAt(7).toUpperCase() + t.substr(8) : t }, s.momentum = function (t, i, e, s, n, o) { var r, a, h = t - i, l = d.abs(h) / e; return a = l / (o = void 0 === o ? 6e-4 : o), (r = t + l * l / (2 * o) * (h < 0 ? -1 : 1)) < s ? (r = n ? s - n / 2.5 * (l / 8) : s, a = (h = d.abs(r - t)) / l) : 0 < r && (r = n ? n / 2.5 * (l / 8) : 0, a = (h = d.abs(t) + r) / l), { destination: d.round(r), duration: a } }; var e = t("transform"); return s.extend(s, { hasTransform: !1 !== e, hasPerspective: t("perspective") in n, hasTouch: "ontouchstart" in o, hasPointer: !(!o.PointerEvent && !o.MSPointerEvent), hasTransition: t("transition") in n }), s.isBadAndroid = function () { var t = o.navigator.appVersion; if (/Android/.test(t) && !/Chrome\/\d/.test(t)) { var i = t.match(/Safari\/(\d+.\d)/); return !(i && "object" == typeof i && 2 <= i.length) || parseFloat(i[1]) < 535.19 } return !1 }(), s.extend(s.style = {}, { transform: e, transitionTimingFunction: t("transitionTimingFunction"), transitionDuration: t("transitionDuration"), transitionDelay: t("transitionDelay"), transformOrigin: t("transformOrigin"), touchAction: t("touchAction") }), s.hasClass = function (t, i) { return new RegExp("(^|\\s)" + i + "(\\s|$)").test(t.className) }, s.addClass = function (t, i) { if (!s.hasClass(t, i)) { var e = t.className.split(" "); e.push(i), t.className = e.join(" ") } }, s.removeClass = function (t, i) { if (s.hasClass(t, i)) { var e = new RegExp("(^|\\s)" + i + "(\\s|$)", "g"); t.className = t.className.replace(e, " ") } }
15, s.offset = function (t) { for (var i = -t.offsetLeft, e = -t.offsetTop; t = t.offsetParent;)i -= t.offsetLeft, e -= t.offsetTop; return { left: i, top: e } }, s.preventDefaultException = function (t, i) { for (var e in i) if (i[e].test(t[e])) return !0; return !1 }, s.extend(s.eventType = {}, { touchstart: 1, touchmove: 1, touchend: 1, mousedown: 2, mousemove: 2, mouseup: 2, pointerdown: 3, pointermove: 3, pointerup: 3, MSPointerDown: 3, MSPointerMove: 3, MSPointerUp: 3 }), s.extend(s.ease = {}, { quadratic: { style: "cubic-bezier(0.25, 0.46, 0.45, 0.94)", fn: function (t) { return t * (2 - t) } }, circular: { style: "cubic-bezier(0.1, 0.57, 0.1, 1)", fn: function (t) { return d.sqrt(1 - --t * t) } }, back: { style: "cubic-bezier(0.175, 0.885, 0.32, 1.275)", fn: function (t) { return (t -= 1) * t * (5 * t + 4) + 1 } }, bounce: { style: "", fn: function (t) { return (t /= 1) < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375 } }, elastic: { style: "", fn: function (t) { return 0 === t ? 0 : 1 == t ? 1 : .4 * d.pow(2, -10 * t) * d.sin((t - .055) * (2 * d.PI) / .22) + 1 } } }), s.tap = function (t, i) { var e = r.createEvent("Event"); e.initEvent(i, !0, !0), e.pageX = t.pageX, e.pageY = t.pageY, t.target.dispatchEvent(e) }, s.click = function (t) { var i, e = t.target; /(SELECT|INPUT|TEXTAREA)/i.test(e.tagName) || ((i = r.createEvent(o.MouseEvent ? "MouseEvents" : "Event")).initEvent("click", !0, !0), i.view = t.view || o, i.detail = 1, i.screenX = e.screenX || 0, i.screenY = e.screenY || 0, i.clientX = e.clientX || 0, i.clientY = e.clientY || 0, i.ctrlKey = !!t.ctrlKey, i.altKey = !!t.altKey, i.shiftKey = !!t.shiftKey, i.metaKey = !!t.metaKey, i.button = 0, i.relatedTarget = null, i._constructed = !0, e.dispatchEvent(i)) }, s.getTouchAction = function (t, i) { var e = "none"; return "vertical" === t ? e = "pan-y" : "horizontal" === t && (e = "pan-x"), i && "none" != e && (e += " pinch-zoom"), e }, s.getRect = function (t) { if (t instanceof SVGElement) { var i = t.getBoundingClientRect(); return { top: i.top, left: i.left, width: i.width, height: i.height } } return { top: t.offsetTop, left: t.offsetLeft, width: t.offsetWidth, height: t.offsetHeight } }, s }(); function t(t, i) { for (var e in this.wrapper = "string" == typeof t ? r.querySelector(t) : t, this.scroller = this.wrapper.children[0], this.scrollerStyle = this.scroller.style, this.options = { resizeScrollbars: !0, mouseWheelSpeed: 20, snapThreshold: .334, disablePointer: !m.hasPointer, disableTouch: m.hasPointer || !m.hasTouch, disableMouse: m.hasPointer || m.hasTouch, startX: 0, startY: 0, scrollY: !0, directionLockThreshold: 5, momentum: !0, bounce: !0, bounceTime: 600, bounceEasing: "", preventDefault: !0, preventDefaultException: { tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/ }, HWCompositing: !0, useTransition: !0, useTransform: !0, bindToWrapper: void 0 === o.onmousedown }, i) this.options[e] = i[e]; this.translateZ = this.options.HWCompositing && m.hasPerspective ? " translateZ(0)" : "", this.options.useTransition = m.hasTransition && this.options.useTransition, this.options.useTransform = m.hasTransform && this.options.useTransform, this.options.eventPassthrough = !0 === this.options.eventPassthrough ? "vertical" : this.options.eventPassthrough, this.options.preventDefault = !this.options.eventPassthrough && this.options.preventDefault, this.options.scrollY = "vertical" != this.options.eventPassthrough && this.options.scrollY, this.options.scrollX = "horizontal" != this.options.eventPassthrough && this.options.scrollX, this.options.freeScroll = this.options.freeScroll && !this.options.eventPassthrough, this.options.directionLockThreshold = this.options.eventPassthrough ? 0 : this.options.directionLockThreshold, this.options.bounceEasing = "string" == typeof this.options.bounceEasing ? m.ease[this.options.bounceEasing] || m.ease.circular : this.options.bounceEasing, this.options.resizePolling = void 0 === this.options.resizePolling ? 60 : this.options.resizePolling, !0 === this.options.tap && (this.options.tap = "tap"), this.options.useTransition || this.options.useTransform || /relative|absolute/i.test(this.scrollerStyle.position) || (this.scrollerStyle.position = "relative"), "scale" == this.options.shrinkScrollbars && (this.options.useTransition = !1), this.options.invertWheelDirection = this.options.invertWheelDirection ? -1 : 1, this.x = 0, this.y = 0, this.directionX = 0, this.directionY = 0, this._events = {}, this._init(), this.refresh(), this.scrollTo(this.options.startX, this.options.startY), this.enable() } function a(t, i, e) { var s = r.createElement("div"), n = r.createElement("div"); return !0 === e && (s.style.cssText = "position:absolute;z-index:9999", n.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"), n.className = "iScrollIndicator", "h" == t ? (!0 === e && (s.style.cssText += ";height:7px;left:2px;right:2px;bottom:0", n.style.height = "100%"), s.className = "iScrollHorizontalScrollbar") : (!0 === e && (s.style.cssText += ";width:7px;bottom:2px;top:2px;right:1px", n.style.width = "100%"), s.className = "iScrollVerticalScrollbar"), s.style.cssText += ";overflow:hidden", i || (s.style.pointerEvents = "none"), s.appendChild(n), s } function h(t, i) { for (var e in this.wrapper = "string" == typeof i.el ? r.querySelector(i.el) : i.el, this.wrapperStyle = this.wrapper.style, this.indicator = this.wrapper.children[0], this.indicatorStyle = this.indicator.style, this.scroller = t, this.options = { listenX: !0, listenY: !0, interactive: !1, resize: !0, defaultScrollbars: !1, shrink: !1, fade: !1, speedRatioX: 0, speedRatioY: 0 }, i) this.options[e] = i[e]; if (this.sizeRatioX = 1, this.sizeRatioY = 1, this.maxPosX = 0, this.maxPosY = 0, this.options.interactive && (this.options.disableTouch || (m.addEvent(this.indicator, "touchstart", this), m.addEvent(o, "touchend", this)), this.options.disablePointer || (m.addEvent(this.indicator, m.prefixPointerEvent("pointerdown"), this), m.addEvent(o, m.prefixPointerEvent("pointerup"), this)), this.options.disableMouse || (m.addEvent(this.indicator, "mousedown", this), m.addEvent(o, "mouseup", this))), this.options.fade) { this.wrapperStyle[m.style.transform] = this.scroller.translateZ; var s = m.style.transitionDuration; if (!s) return; this.wrapperStyle[s] = m.isBadAndroid ? "0.0001ms" : "0ms"; var n = this; m.isBadAndroid && f(function () { "0.0001ms" === n.wrapperStyle[s] && (n.wrapperStyle[s] = "0s") }), this.wrapperStyle.opacity = "0" } } t.prototype = { version: "5.2.0-snapshot", _init: function () { this._initEvents(), (this.options.scrollbars || this.options.indicators) && this._initIndicators(), this.options.mouseWheel && this._initWheel(), this.options.snap && this._initSnap(), this.options.keyBindings && this._initKeys() }, destroy: function () { this._initEvents(!0), clearTimeout(this.resizeTimeout), this.resizeTimeout = null, this._execEvent("destroy") }, _transitionEnd: function (t) { t.target == this.scroller && this.isInTransition && (this._transitionTime(), this.resetPosition(this.options.bounceTime) || (this.isInTransition = !1, this._execEvent("scrollEnd"))) }, _start: function (t) { if (1 != m.eventType[t.type] && 0 !== (t.which ? t.button : t.button < 2 ? 0 : 4 == t.button ? 1 : 2)) return; if (this.enabled && (!this.initiated || m.eventType[t.type] === this.initiated)) { !this.options.preventDefault || m.isBadAndroid || m.preventDefaultException(t.target, this.options.preventDefaultException) || t.preventDefault(); var i, e = t.touches ? t.touches[0] : t; this.initiated = m.eventType[t.type], this.moved = !1, this.distX = 0, this.distY = 0, this.directionX = 0, this.directionY = 0, this.directionLocked
15= 0, this.startTime = m.getTime(), this.options.useTransition && this.isInTransition ? (this._transitionTime(), this.isInTransition = !1, i = this.getComputedPosition(), this._translate(d.round(i.x), d.round(i.y)), this._execEvent("scrollEnd")) : !this.options.useTransition && this.isAnimating && (this.isAnimating = !1, this._execEvent("scrollEnd")), this.startX = this.x, this.startY = this.y, this.absStartX = this.x, this.absStartY = this.y, this.pointX = e.pageX, this.pointY = e.pageY, this._execEvent("beforeScrollStart") } }, _move: function (t) { if (this.enabled && m.eventType[t.type] === this.initiated) { this.options.preventDefault && t.preventDefault(); var i, e, s, n, o = t.touches ? t.touches[0] : t, r = o.pageX - this.pointX, a = o.pageY - this.pointY, h = m.getTime(); if (this.pointX = o.pageX, this.pointY = o.pageY, this.distX += r, this.distY += a, s = d.abs(this.distX), n = d.abs(this.distY), !(300 < h - this.endTime && s < 10 && n < 10)) { if (this.directionLocked || this.options.freeScroll || (s > n + this.options.directionLockThreshold ? this.directionLocked = "h" : n >= s + this.options.directionLockThreshold ? this.directionLocked = "v" : this.directionLocked = "n"), "h" == this.directionLocked) { if ("vertical" == this.options.eventPassthrough) t.preventDefault(); else if ("horizontal" == this.options.eventPassthrough) return void (this.initiated = !1); a = 0 } else if ("v" == this.directionLocked) { if ("horizontal" == this.options.eventPassthrough) t.preventDefault(); else if ("vertical" == this.options.eventPassthrough) return void (this.initiated = !1); r = 0 } r = this.hasHorizontalScroll ? r : 0, a = this.hasVerticalScroll ? a : 0, i = this.x + r, e = this.y + a, (0 < i || i < this.maxScrollX) && (i = this.options.bounce ? this.x + r / 3 : 0 < i ? 0 : this.maxScrollX), (0 < e || e < this.maxScrollY) && (e = this.options.bounce ? this.y + a / 3 : 0 < e ? 0 : this.maxScrollY), this.directionX = 0 < r ? -1 : r < 0 ? 1 : 0, this.directionY = 0 < a ? -1 : a < 0 ? 1 : 0, this.moved || this._execEvent("scrollStart"), this.moved = !0, this._translate(i, e), 300 < h - this.startTime && (this.startTime = h, this.startX = this.x, this.startY = this.y) } } }, _end: function (t) { if (this.enabled && m.eventType[t.type] === this.initiated) { this.options.preventDefault && !m.preventDefaultException(t.target, this.options.preventDefaultException) && t.preventDefault(); t.changedTouches && t.changedTouches[0]; var i, e, s = m.getTime() - this.startTime, n = d.round(this.x), o = d.round(this.y), r = d.abs(n - this.startX), a = d.abs(o - this.startY), h = 0, l = ""; if (this.isInTransition = 0, this.initiated = 0, this.endTime = m.getTime(), !this.resetPosition(this.options.bounceTime)) { if (this.scrollTo(n, o), !this.moved) return this.options.tap && m.tap(t, this.options.tap), this.options.click && m.click(t), void this._execEvent("scrollCancel"); if (this._events.flick && s < 200 && r < 100 && a < 100) this._execEvent("flick"); else { if (this.options.momentum && s < 300 && (i = this.hasHorizontalScroll ? m.momentum(this.x, this.startX, s, this.maxScrollX, this.options.bounce ? this.wrapperWidth : 0, this.options.deceleration) : { destination: n, duration: 0 }, e = this.hasVerticalScroll ? m.momentum(this.y, this.startY, s, this.maxScrollY, this.options.bounce ? this.wrapperHeight : 0, this.options.deceleration) : { destination: o, duration: 0 }, n = i.destination, o = e.destination, h = d.max(i.duration, e.duration), this.isInTransition = 1), this.options.snap) { var c = this._nearestSnap(n, o); this.currentPage = c, h = this.options.snapSpeed || d.max(d.max(d.min(d.abs(n - c.x), 1e3), d.min(d.abs(o - c.y), 1e3)), 300), n = c.x, o = c.y, this.directionX = 0, this.directionY = 0, l = this.options.bounceEasing } if (n != this.x || o != this.y) return (0 < n || n < this.maxScrollX || 0 < o || o < this.maxScrollY) && (l = m.ease.quadratic), void this.scrollTo(n, o, h, l); this._execEvent("scrollEnd") } } } }, _resize: function () { var t = this; clearTimeout(this.resizeTimeout), this.resizeTimeout = setTimeout(function () { t.refresh() }, this.options.resizePolling) }, resetPosition: function (t) { var i = this.x, e = this.y; return t = t || 0, !this.hasHorizontalScroll || 0 < this.x ? i = 0 : this.x < this.maxScrollX && (i = this.maxScrollX), !this.hasVerticalScroll || 0 < this.y ? e = 0 : this.y < this.maxScrollY && (e = this.maxScrollY), (i != this.x || e != this.y) && (this.scrollTo(i, e, t, this.options.bounceEasing), !0) }, disable: function () { this.enabled = !1 }, enable: function () { this.enabled = !0 }
15, refresh: function () { m.getRect(this.wrapper), this.wrapperWidth = this.wrapper.clientWidth, this.wrapperHeight = this.wrapper.clientHeight; var t = m.getRect(this.scroller); this.scrollerWidth = t.width, this.scrollerHeight = t.height, this.maxScrollX = this.wrapperWidth - this.scrollerWidth, this.maxScrollY = this.wrapperHeight - this.scrollerHeight, this.hasHorizontalScroll = this.options.scrollX && this.maxScrollX < 0, this.hasVerticalScroll = this.options.scrollY && this.maxScrollY < 0, this.hasHorizontalScroll || (this.maxScrollX = 0, this.scrollerWidth = this.wrapperWidth), this.hasVerticalScroll || (this.maxScrollY = 0, this.scrollerHeight = this.wrapperHeight), this.endTime = 0, this.directionX = 0, this.directionY = 0, m.hasPointer && !this.options.disablePointer && (this.wrapper.style[m.style.touchAction] = m.getTouchAction(this.options.eventPassthrough, !0), this.wrapper.style[m.style.touchAction] || (this.wrapper.style[m.style.touchAction] = m.getTouchAction(this.options.eventPassthrough, !1))), this.wrapperOffset = m.offset(this.wrapper), this._execEvent("refresh"), this.resetPosition() }, on: function (t, i) { this._events[t] || (this._events[t] = []), this._events[t].push(i) }, off: function (t, i) { if (this._events[t]) { var e = this._events[t].indexOf(i); -1 < e && this._events[t].splice(e, 1) } }, _execEvent: function (t) { if (this._events[t]) { var i = 0, e = this._events[t].length; if (e) for (; i < e; i++)this._events[t][i].apply(this, [].slice.call(arguments, 1)) } }, scrollBy: function (t, i, e, s) { t = this.x + t, i = this.y + i, e = e || 0, this.scrollTo(t, i, e, s) }, scrollTo: function (t, i, e, s) { s = s || m.ease.circular, this.isInTransition = this.options.useTransition && 0 < e; var n = this.options.useTransition && s.style; !e || n ? (n && (this._transitionTimingFunction(s.style), this._transitionTime(e)), this._translate(t, i)) : this._animate(t, i, e, s.fn) }, scrollToElement: function (t, i, e, s, n) { if (t = t.nodeType ? t : this.scroller.querySelector(t)) { var o = m.offset(t); o.left -= this.wrapperOffset.left, o.top -= this.wrapperOffset.top; var r = m.getRect(t), a = m.getRect(this.wrapper); !0 === e && (e = d.round(r.width / 2 - a.width / 2)), !0 === s && (s = d.round(r.height / 2 - a.height / 2)), o.left -= e || 0, o.top -= s || 0, o.left = 0 < o.left ? 0 : o.left < this.maxScrollX ? this.maxScrollX : o.left, o.top = 0 < o.top ? 0 : o.top < this.maxScrollY ? this.maxScrollY : o.top, i = null == i || "auto" === i ? d.max(d.abs(this.x - o.left), d.abs(this.y - o.top)) : i, this.scrollTo(o.left, o.top, i, n) } }, _transitionTime: function (t) { if (this.options.useTransition) { t = t || 0; var i = m.style.transitionDuration; if (i) { if (this.scrollerStyle[i] = t + "ms", !t && m.isBadAndroid) { this.scrollerStyle[i] = "0.0001ms"; var e = this; f(function () { "0.0001ms" === e.scrollerStyle[i] && (e.scrollerStyle[i] = "0s") }) } if (this.indicators) for (var s = this.indicators.length; s--;)this.indicators[s].transitionTime(t) } } }, _transitionTimingFunction: function (t) { if (this.scrollerStyle[m.style.transitionTimingFunction] = t, this.indicators) for (var i = this.indicators.length; i--;)this.indicators[i].transitionTimingFunction(t) }, _translate: function (t, i) { if (this.options.useTransform ? this.scrollerStyle[m.style.transform] = "translate(" + t + "px," + i + "px)" + this.translateZ : (t = d.round(t), i = d.round(i), this.scrollerStyle.left = t + "px", this.scrollerStyle.top = i + "px"), this.x = t, this.y = i, this.indicators) for (var e = this.indicators.length; e--;)this.indicators[e].updatePosition() }, _initEvents: function (t) { var i = t ? m.removeEvent : m.addEvent, e = this.options.bindToWrapper ? this.wrapper : o; i(o, "orientationchange", this), i(o, "resize", this), this.options.click && i(this.wrapper, "click", this, !0), this.options.disableMouse || (i(this.wrapper, "mousedown", this), i(e, "mousemove", this), i(e, "mousecancel", this), i(e, "mouseup", this)), m.hasPointer && !this.options.disablePointer && (i(this.wrapper, m.prefixPointerEvent("pointerdown"), this), i(e, m.prefixPointerEvent("pointermove"), this), i(e, m.prefixPointerEvent("pointercancel"), this), i(e, m.prefixPointerEvent("pointerup"), this)), m.hasTouch && !this.options.disableTouch && (i(this.wrapper, "touchstart", this), i(e, "touchmove", this), i(e, "touchcancel", this), i(e, "touchend", this)), i(this.scroller, "transitionend", this), i(this.scroller, "webkitTransitionEnd", this), i(this.scroller, "oTransitionEnd", this), i(this.scroller, "MSTransitionEnd", this) }, getComputedPosition: function () { var t, i, e = o.getComputedStyle(this.scroller, null); return this.options.useTransform ? (t = +((e = e[m.style.transform].split(")")[0].split(", "))[12] || e[4]), i = +(e[13] || e[5])) : (t = +e.left.replace(/[^-\d.]/g, ""), i = +e.top.replace(/[^-\d.]/g, "")), { x: t, y: i } }, _initIndicators: function () { var t, i = this.options.interactiveScrollbars, e = "string" != typeof this.options.scrollbars, s = [], n = this; this.indicators = [], this.options.scrollbars && (this.options.scrollY && (t = { el: a("v", i, this.options.scrollbars), interactive: i, defaultScrollbars: !0, customStyle: e, resize: this.options.resizeScrollbars, shrink: this.options.shrinkScrollbars, fade: this.options.fadeScrollbars, listenX: !1 }, this.wrapper.appendChild(t.el), s.push(t)), this.options.scrollX && (t = { el: a("h", i, this.options.scrollbars), interactive: i, defaultScrollbars: !0, customStyle: e, resize: this.options.resizeScrollbars, shrink: this.options.shrinkScrollbars, fade: this.options.fadeScrollbars, listenY: !1 }, this.wrapper.appendChild(t.el), s.push(t))), this.options.indicators && (s = s.concat(this.options.indicators)); for (var o = s.length; o--;)this.indicators.push(new h(this, s[o])); function r(t) { if (n.indicators) for (var i = n.indicators.length; i--;)t.call(n.indicators[i]) } this.options.fadeScrollbars && (this.on("scrollEnd", function () { r(function () { this.fade() }) }), this.on("scrollCancel", function () { r(function () { this.fade() }) }), this.on("scrollStart", function () { r(function () { this.fade(1) }) }), this.on("beforeScrollStart", function () { r(function () { this.fade(1, !0) }) })), this.on("refresh", function () { r(function () { this.refresh() }) }), this.on("destroy", function () { r(function () { this.destroy() }), delete this.indicators }) }, _initWheel: function () { m.addEvent(this.wrapper, "wheel", this), m.addEvent(this.wrapper, "mousewheel", this), m.addEvent(this.wrapper, "DOMMouseScroll", this), this.on("destroy", function () { clearTimeout(this.wheelTimeout), this.wheelTimeout = null, m.removeEvent(this.wrapper, "wheel", this), m.removeEvent(this.wrapper, "mousewheel", this), m.removeEvent(this.wrapper, "DOMMouseScroll", this) }) }, _wheel: function (t) { if (this.enabled) { t.preventDefault(); var i, e, s, n, o = this; if (void 0 === this.wheelTimeout && o._execEvent("scrollStart"), clearTimeout(this.wheelTimeout), this.wheelTimeout = setTimeout(function () { o.options.snap || o._execEvent("scrollEnd"), o.wheelTimeout = void 0 }, 400), "deltaX" in t) 1 === t.deltaMode ? (i = -t.deltaX * this.options.mouseWheelSpeed, e = -t.deltaY * this.options.mouseWheelSpeed) : (i = -t.deltaX, e = -t.deltaY); else if ("wheelDeltaX" in t) i = t.wheelDeltaX / 120 * this.options.mouseWheelSpeed, e = t.wheelDeltaY / 120 * this.options.mouseWheelSpeed; else if ("wheelDelta" in t) i = e = t.wheelDelta / 120 * this.options.mouseWheelSpeed; else { if (!("detail" in t)) return; i = e = -t.detail / 3 * this.options.mouseWheelSpeed } if (i *= this.options.invertWheelDirection, e *= this.options.invertWheelDirection, this.hasVerticalScroll || (i = e, e = 0), this.options.snap) return s = this.currentPage.pageX, n = this.currentPage.pageY, 0 < i ? s-- : i < 0 && s++, 0 < e ? n-- : e < 0 && n++, void this.goToPage(s, n); s = this.x + d.round(this.hasHorizontalScroll ? i : 0), n = this.y + d.round(this.hasVerticalScroll ? e : 0), this.directionX = 0 < i ? -1 : i < 0 ? 1 : 0, this.directionY = 0 < e ? -1 : e < 0 ? 1 : 0, 0 < s ? s = 0 : s < this.maxScrollX && (s = this.maxScrollX), 0 < n ? n = 0 : n < this.maxScrollY && (n = this.maxScrollY), this.scrollTo(s, n, 0) } }, _initSnap: function () { this.currentPage = {}, "string" == typeof this.options.snap && (this.options.snap = this.scroller.querySelectorAll(this.options.snap)), this.on("refresh", function () { var t, i, e, s, n, o, r, a = 0, h = 0, l = 0, c = this.options.snapStepX || this.wrapperW
15idth, p = this.options.snapStepY || this.wrapperHeight; if (this.pages = [], this.wrapperWidth && this.wrapperHeight && this.scrollerWidth && this.scrollerHeight) { if (!0 === this.options.snap) for (e = d.round(c / 2), s = d.round(p / 2); l > -this.scrollerWidth;) { for (this.pages[a] = [], n = t = 0; n > -this.scrollerHeight;)this.pages[a][t] = { x: d.max(l, this.maxScrollX), y: d.max(n, this.maxScrollY), width: c, height: p, cx: l - e, cy: n - s }, n -= p, t++; l -= c, a++ } else for (t = (o = this.options.snap).length, i = -1; a < t; a++)r = m.getRect(o[a]), (0 === a || r.left <= m.getRect(o[a - 1]).left) && (h = 0, i++), this.pages[h] || (this.pages[h] = []), l = d.max(-r.left, this.maxScrollX), n = d.max(-r.top, this.maxScrollY), e = l - d.round(r.width / 2), s = n - d.round(r.height / 2), this.pages[h][i] = { x: l, y: n, width: r.width, height: r.height, cx: e, cy: s }, l > this.maxScrollX && h++; this.goToPage(this.currentPage.pageX || 0, this.currentPage.pageY || 0, 0), this.options.snapThreshold % 1 == 0 ? (this.snapThresholdX = this.options.snapThreshold, this.snapThresholdY = this.options.snapThreshold) : (this.snapThresholdX = d.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width * this.options.snapThreshold), this.snapThresholdY = d.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height * this.options.snapThreshold)) } }), this.on("flick", function () { var t = this.options.snapSpeed || d.max(d.max(d.min(d.abs(this.x - this.startX), 1e3), d.min(d.abs(this.y - this.startY), 1e3)), 300); this.goToPage(this.currentPage.pageX + this.directionX, this.currentPage.pageY + this.directionY, t) }) }, _nearestSnap: function (t, i) { if (!this.pages.length) return { x: 0, y: 0, pageX: 0, pageY: 0 }; var e = 0, s = this.pages.length, n = 0; if (d.abs(t - this.absStartX) < this.snapThresholdX && d.abs(i - this.absStartY) < this.snapThresholdY) return this.currentPage; for (0 < t ? t = 0 : t < this.maxScrollX && (t = this.maxScrollX), 0 < i ? i = 0 : i < this.maxScrollY && (i = this.maxScrollY); e < s; e++)if (t >= this.pages[e][0].cx) { t = this.pages[e][0].x; break } for (s = this.pages[e].length; n < s; n++)if (i >= this.pages[0][n].cy) { i = this.pages[0][n].y; break } return e == this.currentPage.pageX && ((e += this.directionX) < 0 ? e = 0 : e >= this.pages.length && (e = this.pages.length - 1), t = this.pages[e][0].x), n == this.currentPage.pageY && ((n += this.directionY) < 0 ? n = 0 : n >= this.pages[0].length && (n = this.pages[0].length - 1), i = this.pages[0][n].y), { x: t, y: i, pageX: e, pageY: n } }, goToPage: function (t, i, e, s) { s = s || this.options.bounceEasing, t >= this.pages.length ? t = this.pages.length - 1 : t < 0 && (t = 0), i >= this.pages[t].length ? i = this.pages[t].length - 1 : i < 0 && (i = 0); var n = this.pages[t][i].x, o = this.pages[t][i].y; e = void 0 === e ? this.options.snapSpeed || d.max(d.max(d.min(d.abs(n - this.x), 1e3), d.min(d.abs(o - this.y), 1e3)), 300) : e, this.currentPage = { x: n, y: o, pageX: t, pageY: i }, this.scrollTo(n, o, e, s) }, next: function (t, i) { var e = this.currentPage.pageX, s = this.currentPage.pageY; ++e >= this.pages.length && this.hasVerticalScroll && (e = 0, s++), this.goToPage(e, s, t, i) }, prev: function (t, i) { var e = this.currentPage.pageX, s = this.currentPage.pageY; --e < 0 && this.hasVerticalScroll && (e = 0, s--), this.goToPage(e, s, t, i) }, _initKeys: function (t) { var i, e = { pageUp: 33, pageDown: 34, end: 35, home: 36, left: 37, up: 38, right: 39, down: 40 }; if ("object" == typeof this.options.keyBindings) for (i in this.options.keyBindings) "string" == typeof this.options.keyBindings[i] && (this.options.keyBindings[i] = this.options.keyBindings[i].toUpperCase().charCodeAt(0)); else this.options.keyBindings = {}; for (i in e) this.options.keyBindings[i] = this.options.keyBindings[i] || e[i]; m.addEvent(o, "keydown", this), this.on("destroy", function () { m.removeEvent(o, "keydown", this) }) }, _key: function (t) { if (this.enabled) { var i, e = this.options.snap, s = e ? this.currentPage.pageX : this.x, n = e ? this.currentPage.pageY : this.y, o = m.getTime(), r = this.keyTime || 0; switch (this.options.useTransition && this.isInTransition && (i = this.getComputedPosition(), this._translate(d.round(i.x), d.round(i.y)), this.isInTransition = !1), this.keyAcceleration = o - r < 200 ? d.min(this.keyAcceleration + .25, 50) : 0, t.keyCode) { case this.options.keyBindings.pageUp: this.hasHorizontalScroll && !this.hasVerticalScroll ? s += e ? 1 : this.wrapperW
15idth : n += e ? 1 : this.wrapperHeight; break; case this.options.keyBindings.pageDown: this.hasHorizontalScroll && !this.hasVerticalScroll ? s -= e ? 1 : this.wrapperWidth : n -= e ? 1 : this.wrapperHeight; break; case this.options.keyBindings.end: s = e ? this.pages.length - 1 : this.maxScrollX, n = e ? this.pages[0].length - 1 : this.maxScrollY; break; case this.options.keyBindings.home: n = s = 0; break; case this.options.keyBindings.left: s += e ? -1 : 5 + this.keyAcceleration >> 0; break; case this.options.keyBindings.up: n += e ? 1 : 5 + this.keyAcceleration >> 0; break; case this.options.keyBindings.right: s -= e ? -1 : 5 + this.keyAcceleration >> 0; break; case this.options.keyBindings.down: n -= e ? 1 : 5 + this.keyAcceleration >> 0; break; default: return }e ? this.goToPage(s, n) : (0 < s ? (s = 0, this.keyAcceleration = 0) : s < this.maxScrollX && (s = this.maxScrollX, this.keyAcceleration = 0), 0 < n ? (n = 0, this.keyAcceleration = 0) : n < this.maxScrollY && (n = this.maxScrollY, this.keyAcceleration = 0), this.scrollTo(s, n, 0), this.keyTime = o) } }, _animate: function (o, r, a, h) { var l = this, c = this.x, p = this.y, d = m.getTime(), u = d + a; this.isAnimating = !0, function t() { var i, e, s, n = m.getTime(); if (u <= n) return l.isAnimating = !1, l._translate(o, r), void (l.resetPosition(l.options.bounceTime) || l._execEvent("scrollEnd")); s = h(n = (n - d) / a), i = (o - c) * s + c, e = (r - p) * s + p, l._translate(i, e), l.isAnimating && f(t) }() }, handleEvent: function (t) { switch (t.type) { case "touchstart": case "pointerdown": case "MSPointerDown": case "mousedown": this._start(t); break; case "touchmove": case "pointermove": case "MSPointerMove": case "mousemove": this._move(t); break; case "touchend": case "pointerup": case "MSPointerUp": case "mouseup": case "touchcancel": case "pointercancel": case "MSPointerCancel": case "mousecancel": this._end(t); break; case "orientationchange": case "resize": this._resize(); break; case "transitionend": case "webkitTransitionEnd": case "oTransitionEnd": case "MSTransitionEnd": this._transitionEnd(t); break; case "wheel": case "DOMMouseScroll": case "mousewheel": this._wheel(t); break; case "keydown": this._key(t); break; case "click": this.enabled && !t._constructed && (t.preventDefault(), t.stopPropagation()) } } }, h.prototype = { handleEvent: function (t) { switch (t.type) { case "touchstart": case "pointerdown": case "MSPointerDown": case "mousedown": this._start(t); break; case "touchmove": case "pointermove": case "MSPointerMove": case "mousemove": this._move(t); break; case "touchend": case "pointerup": case "MSPointerUp": case "mouseup": case "touchcancel": case "pointercancel": case "MSPointerCancel": case "mousecancel": this._end(t) } }, destroy: function () { this.options.fadeScrollbars && (clearTimeout(this.fadeTimeout), this.fadeTimeout = null), this.options.interactive && (m.removeEvent(this.indicator, "touchstart", this), m.removeEvent(this.indicator, m.prefixPointerEvent("pointerdown"), this), m.removeEvent(this.indicator, "mousedown", this), m.removeEvent(o, "touchmove", this), m.removeEvent(o, m.prefixPointerEvent("pointermove"), this), m.removeEvent(o, "mousemove", this), m.removeEvent(o, "touchend", this), m.removeEvent(o, m.prefixPointerEvent("pointerup"), this), m.removeEvent(o, "mouseup", this)), this.options.defaultScrollbars && this.wrapper.parentNode && this.wrapper.parentNode.removeChild(this.wrapper) }, _start: function (t) { var i = t.touches ? t.touches[0] : t; t.preventDefault(), t.stopPropagation(), this.transitionTime(), this.initiated = !0, this.moved = !1, this.lastPointX = i.pageX, this.lastPointY = i.pageY, this.startTime = m.getTime(), this.options.disableTouch || m.addEvent(o, "touchmove", this), this.options.disablePointer || m.addEvent(o, m.prefixPointerEvent("pointermove"), this), this.options.disableMouse || m.addEvent(o, "mousemove", this), this.scroller._execEvent("beforeScrollStart") }, _move: function (t) { var i, e, s, n, o = t.touches ? t.touches[0] : t; m.getTime(); this.moved || this.scroller._execEvent("scrollStart"), this.moved = !0, i = o.pageX
15- this.lastPointX, this.lastPointX = o.pageX, e = o.pageY - this.lastPointY, this.lastPointY = o.pageY, s = this.x + i, n = this.y + e, this._pos(s, n), t.preventDefault(), t.stopPropagation() }, _end: function (t) { if (this.initiated) { if (this.initiated = !1, t.preventDefault(), t.stopPropagation(), m.removeEvent(o, "touchmove", this), m.removeEvent(o, m.prefixPointerEvent("pointermove"), this), m.removeEvent(o, "mousemove", this), this.scroller.options.snap) { var i = this.scroller._nearestSnap(this.scroller.x, this.scroller.y), e = this.options.snapSpeed || d.max(d.max(d.min(d.abs(this.scroller.x - i.x), 1e3), d.min(d.abs(this.scroller.y - i.y), 1e3)), 300); this.scroller.x == i.x && this.scroller.y == i.y || (this.scroller.directionX = 0, this.scroller.directionY = 0, this.scroller.currentPage = i, this.scroller.scrollTo(i.x, i.y, e, this.scroller.options.bounceEasing)) } this.moved && this.scroller._execEvent("scrollEnd") } }, transitionTime: function (t) { t = t || 0; var i = m.style.transitionDuration; if (i && (this.indicatorStyle[i] = t + "ms", !t && m.isBadAndroid)) { this.indicatorStyle[i] = "0.0001ms"; var e = this; f(function () { "0.0001ms" === e.indicatorStyle[i] && (e.indicatorStyle[i] = "0s") }) } }, transitionTimingFunction: function (t) { this.indicatorStyle[m.style.transitionTimingFunction] = t }, refresh: function () { this.transitionTime(), this.options.listenX && !this.options.listenY ? this.indicatorStyle.display = this.scroller.hasHorizontalScroll ? "block" : "none" : this.options.listenY && !this.options.listenX ? this.indicatorStyle.display = this.scroller.hasVerticalScroll ? "block" : "none" : this.indicatorStyle.display = this.scroller.hasHorizontalScroll || this.scroller.hasVerticalScroll ? "block" : "none", this.scroller.hasHorizontalScroll && this.scroller.hasVerticalScroll ? (m.addClass(this.wrapper, "iScrollBothScrollbars"), m.removeClass(this.wrapper, "iScrollLoneScrollbar"), this.options.defaultScrollbars && this.options.customStyle && (this.options.listenX ? this.wrapper.style.right = "8px" : this.wrapper.style.bottom = "8px")) : (m.removeClass(this.wrapper, "iScrollBothScrollbars"), m.addClass(this.wrapper, "iScrollLoneScrollbar"), this.options.defaultScrollbars && this.options.customStyle && (this.options.listenX ? this.wrapper.style.right = "2px" : this.wrapper.style.bottom = "2px")), m.getRect(this.wrapper), this.options.listenX && (this.wrapperWidth = this.wrapper.clientWidth, this.options.resize ? (this.indicatorWidth = d.max(d.round(this.wrapperWidth * this.wrapperWidth / (this.scroller.scrollerWidth || this.wrapperWidth || 1)), 8), this.indicatorStyle.width = this.indicatorWidth + "px") : this.indicatorWidth = this.indicator.clientWidth, this.maxPosX = this.wrapperWidth - this.indicatorWidth, "clip" == this.options.shrink ? (this.minBoundaryX = 8 - this.indicatorWidth, this.maxBoundaryX = this.wrapperWidth - 8) : (this.minBoundaryX = 0, this.maxBoundaryX = this.maxPosX), this.sizeRatioX = this.options.speedRatioX || this.scroller.maxScrollX && this.maxPosX / this.scroller.maxScrollX), this.options.listenY && (this.wrapperHeight = this.wrapper.clientHeight, this.options.resize ? (this.indicatorHeight = d.max(d.round(this.wrapperHeight * this.wrapperHeight / (this.scroller.scrollerHeight || this.wrapperHeight || 1)), 8), this.indicatorStyle.height = this.indicatorHeight + "px") : this.indicatorHeight = this.indicator.clientHeight, this.maxPosY = this.wrapperHeight - this.indicatorHeight, "clip" == this.options.shrink ? (this.minBoundaryY = 8 - this.indicatorHeight, this.maxBoundaryY = this.wrapperHeight - 8) : (this.minBoundaryY = 0, this.maxBoundaryY = this.maxPosY), this.maxPosY = this.wrapperHeight - this.indicatorHeight, this.sizeRatioY = this.options.speedRatioY || this.scroller.maxScrollY && this.maxPosY / this.scroller.maxScrollY), this.updatePosition() }, updatePosition: function () { var t = this.options.listenX && d.round(this.sizeRatioX * this.scroller.x) || 0, i = this.options.listenY && d.round(this.sizeRatioY * this.scroller.y) || 0; this.options.ignoreBoundaries || (t < this.minBoundaryX ? ("scale" == this.options.shrink && (this.width = d.max(this.indicatorWidth + t, 8), this.indicatorStyle.width = this.width + "px"), t = this.minBoundaryX) : t > this.maxBoundaryX ? "scale" == this.options.shrink ? (this.width = d.max(this.indicatorWidth - (t - this.maxPosX), 8), this.indicatorStyle.width = this.width + "px", t = this.maxPosX + this.indicatorWidth - this.width) : t = this.maxBoundaryX : "scale" == this.options.shrink && this.width != this.indicatorWidth && (this.width = this.indicatorWidth, this.indicatorStyle.width = this.width + "px"), i < this.minBoundaryY ? ("scale" == this.options.shrink && (this.height = d.max(this.indicatorHeight + 3 * i, 8), this.indicatorStyle.height = this.height + "px"), i = this.minBoundaryY) : i > this.maxBoundaryY ? "scale" == this.options.shrink ? (this.height = d.max(this.indicatorHeight - 3 * (i - this.maxPosY), 8), this.indicatorStyle.height = this.height + "px", i = this.maxPosY + this.indicatorHeight - this.height) : i = this.maxBoundaryY : "scale" == this.options.shrink && this.height != this.indicatorHeight && (this.height = this.indicatorHeight, this.indicatorStyle.height = this.height + "px")), this.x = t, this.y = i, this.scroller.options.useTransform ? this.indicatorStyle[m.style.transform] = "translate(" + t + "px," + i + "px)" + this.scroller.translateZ : (this.indicatorStyle.left = t + "px", this.indicatorStyle.top = i + "px") }, _pos: function (t, i) { t < 0 ? t = 0 : t > this.maxPosX && (t = this.maxPosX), i < 0 ? i = 0 : i > this.maxPosY && (i = this.maxPosY), t = this.options.listenX ? d.round(t / this.sizeRatioX) : this.scroller.x, i = this.options.listenY ? d.round(i / this.sizeRatioY) : this.scroller.y, this.scroller.scrollTo(t, i) }, fade: function (t, i) { if (!i || this.visible) { clearTimeout(this.fadeTimeout), this.fadeTimeout = null; var e = t ? 250 : 500, s = t ? 0 : 300; t = t ? "1" : "0", this.wrapperStyle[m.style.transitionDuration] = e + "ms", this.fadeTimeout = setTimeout(function (t) { this.wrapperStyle.opacity = t, this.visible = +t }.bind(this, t), s) } } }, t.utils = m, "undefined" != typeof module && module.exports ? module.exports = t : "function" == typeof define && define.amd ? define(function () { return t }) : o.IScroll = t }(window, document, Math), 16 /* 17 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 18 * 19 * Uses the built in easing capabilities added In jQuery 1.1 20 * to offer multiple easing options 21 * 22 * TERMS OF USE - jQuery Easing 23 * 24 * Open source under the BSD License. 25 * 26 * Copyright © 2008 George McGinley Smith 27 * All rights reserved. 28 * 29 * Redistribution and use in source and binary forms, with or without modification, 30 * are permitted provided that the following conditions are met: 31 * 32 * Redistributions of source code must retain the above copyright notice, this list of 33 * conditions and the following disclaimer. 34 * Redistributions in binary form must reproduce the above copyright notice, this list 35 * of conditions and the following disclaimer in the documentation and/or other materials 36 * provided with the distribution. 37 * 38 * Neither the name of the author nor the names of contributors may be used to endorse 39 * or promote products derived from this software without specific prior written permission. 40 * 41 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 42 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 43 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 44 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
45 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 46 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 47 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 48 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49 * OF THE POSSIBILITY OF SUCH DAMAGE. 50 * 51 */ 52 jQuery.easing.jswing = jQuery.easing.swing, jQuery.extend(jQuery.easing, { def: "easeOutQuad", swing: function (t, i, e, s, n) { return jQuery.easing[jQuery.easing.def](t, i, e, s, n) }, easeInQuad: function (t, i, e, s, n) { return s * (i /= n) * i + e }, easeOutQuad: function (t, i, e, s, n) { return -s * (i /= n) * (i - 2) + e }, easeInOutQuad: function (t, i, e, s, n) { return (i /= n / 2) < 1 ? s / 2 * i * i + e : -s / 2 * (--i * (i - 2) - 1) + e }, easeInCubic: function (t, i, e, s, n) { return s * (i /= n) * i * i + e }, easeOutCubic: function (t, i, e, s, n) { return s * ((i = i / n - 1) * i * i + 1) + e }, easeInOutCubic: function (t, i, e, s, n) { return (i /= n / 2) < 1 ? s / 2 * i * i * i + e : s / 2 * ((i -= 2) * i * i + 2) + e }, easeInQuart: function (t, i, e, s, n) { return s * (i /= n) * i * i * i + e }, easeOutQuart: function (t, i, e, s, n) { return -s * ((i = i / n - 1) * i * i * i - 1) + e }, easeInOutQuart: function (t, i, e, s, n) { return (i /= n / 2) < 1 ? s / 2 * i * i * i * i + e : -s / 2 * ((i -= 2) * i * i * i - 2) + e }, easeInQuint: function (t, i, e, s, n) { return s * (i /= n) * i * i * i * i + e }, easeOutQuint: function (t, i, e, s, n) { return s * ((i = i / n - 1) * i * i * i * i + 1) + e }, easeInOutQuint: function (t, i, e, s, n) { return (i /= n / 2) < 1 ? s / 2 * i * i * i * i * i + e : s / 2 * ((i -= 2) * i * i * i * i + 2) + e }, easeInSine: function (t, i, e, s, n) { return -s * Math.cos(i / n * (Math.PI / 2)) + s + e }, easeOutSine: function (t, i, e, s, n) { return s * Math.sin(i / n * (Math.PI / 2)) + e }, easeInOutSine: function (t, i, e, s, n) { return -s / 2 * (Math.cos(Math.PI * i / n) - 1) + e }, easeInExpo: function (t, i, e, s, n) { return 0 == i ? e : s * Math.pow(2, 10 * (i / n - 1)) + e }, easeOutExpo: function (t, i, e, s, n) { return i == n ? e + s : s * (1 - Math.pow(2, -10 * i / n)) + e }, easeInOutExpo: function (t, i, e, s, n) { return 0 == i ? e : i == n ? e + s : (i /= n / 2) < 1 ? s / 2 * Math.pow(2, 10 * (i - 1)) + e : s / 2 * (2 - Math.pow(2, -10 * --i)) + e }, easeInCirc: function (t, i, e, s, n) { return -s * (Math.sqrt(1 - (i /= n) * i) - 1) + e }, easeOutCirc: function (t, i, e, s, n) { return s * Math.sqrt(1 - (i = i / n - 1) * i) + e }, easeInOutCirc: function (t, i, e, s, n) { return (i /= n / 2) < 1 ? -s / 2 * (Math.sqrt(1 - i * i) - 1) + e : s / 2 * (Math.sqrt(1 - (i -= 2) * i) + 1) + e }, easeInElastic: function (t, i, e, s, n) { var o = 1.70158, r = 0, a = s; if (0 == i) return e; if (1 == (i /= n)) return e + s; if (r || (r = .3 * n), a < Math.abs(s)) { a = s; o = r / 4 } else o = r / (2 * Math.PI) * Math.asin(s / a); return -a * Math.pow(2, 10 * (i -= 1)) * Math.sin((i * n - o) * (2 * Math.PI) / r) + e }, easeOutElastic: function (t, i, e, s, n) { var o = 1.70158, r = 0, a = s; if (0 == i) return e; if (1 == (i /= n)) return e + s; if (r || (r = .3 * n), a < Math.abs(s)) { a = s; o = r / 4 } else o = r / (2 * Math.PI) * Math.asin(s / a); return a * Math.pow(2, -10 * i) * Math.sin((i * n - o) * (2 * Math.PI) / r) + s + e }, easeInOutElastic: function (t, i, e, s, n) { var o = 1.70158, r = 0, a = s; if (0 == i) return e; if (2 == (i /= n / 2)) return e + s; if (r || (r = n * (.3 * 1.5)), a < Math.abs(s)) { a = s; o = r / 4 } else o = r / (2 * Math.PI) * Math.asin(s / a); return i < 1 ? a * Math.pow(2, 10 * (i -= 1)) * Math.sin((i * n - o) * (2 * Math.PI) / r) * -.5 + e : a * Math.pow(2, -10 * (i -= 1)) * Math.sin((i * n - o) * (2 * Math.PI) / r) * .5 + s + e }, easeInBack: function (t, i, e, s, n, o) { return null == o && (o = 1.70158), s * (i /= n) * i * ((o + 1) * i - o) + e }, easeOutBack: function (t, i, e, s, n, o) { return null == o && (o = 1.70158), s * ((i = i / n - 1) * i * ((o + 1) * i + o) + 1) + e }, easeInOutBack: function (t, i, e, s, n, o) { return null == o && (o = 1.70158), (i /= n / 2) < 1 ? s / 2 * (i * i * ((1 + (o *= 1.525)) * i - o)) + e : s / 2 * ((i -= 2) * i * ((1 + (o *= 1.525)) * i + o) + 2) + e }, easeInBounce: function (t, i, e, s, n) { return s - jQuery.easing.easeOutBounce(t, n - i, 0, s, n) + e }, easeOutBounce: function (t, i, e, s, n) { return (i /= n) < 1 / 2.75 ? s * (7.5625 * i * i) + e : i < 2 / 2.75 ? s * (7.5625 * (i -= 1.5 / 2.75) * i + .75) + e : i < 2.5 / 2.75 ? s * (7.5625 * (i -= 2.25 / 2.75) * i + .9375) + e : s * (7.5625 * (i -= 2.625 / 2.75) * i + .984375) + e }, easeInOutBounce: function (t, i, e, s, n) { return i < n / 2 ? .5 * jQuery.easing.easeInBounce(t, 2 * i, 0, s, n) + e : .5 * jQuery.easing.easeOutBounce(t, 2 * i - n, 0, s, n) + .5 * s + e } }); var mediaQuery_mobile = 768, mediaQuery_tablet = 1023, _ua = function (t) { return -1 != t.indexOf("windows") && $("html").addClass("win"), { Tablet: -1 != t.indexOf("windows") && -1 != t.indexOf("touch") && -1 == t.indexOf("tablet pc") || -1 != t.indexOf("ipad") || -1 != t.indexOf("android") && -1 == t.indexOf("mobile") || -1 != t.indexOf("firefox") && -1 != t.indexOf("tablet") || -1 != t.indexOf("kindle") || -1 != t.indexOf("silk") || -1 != t.indexOf("playbook"), Mobile: -1 != t.indexOf("windows") && -1 != t.indexOf("phone") || -1 != t.indexOf("iphone") || -1 != t.indexOf("ipod") || -1 != t.indexOf("android") && -1 != t.indexOf("mobile") || -1 != t.indexOf("firefox") && -1 != t.indexOf("mobile") || -1 != t.indexOf("blackberry") } }(window.navigator.userAgent.toLowerCase()); function _header_scroll(t) { var i = document.documentElement.scrollTop || document.body.scrollTop, e = Array.prototype.slice.call(document.getElementsByTagName("html"))[0]; 140 <= i ? e.classList.add("scrolledPage") : e.classList.remove("scrolledPage"), (screen.width <= mediaQuery_tablet || getBrowserWidth() <= mediaQuery_tablet) && closeHeaderMenu() } $(window).on("load", function () { header_init() }), $(document).ready(function () { $(".kv").length, setTimeout(function () { $("html").removeClass("-loading"), $("html").addClass("-loaded-kv") }, 200) }), window.addEventListener("scroll", _header_scroll), _header_scroll(); var currentWidth = window.innerWidth; function header_init() { showHeaderMenu(), _header_scroll() } window.addEventListener("resize", function () { currentWidth != window.innerWidth && (currentWidth = window.innerWidth, header_init()) });
52 var classOpen = "-panel-open", classHtmlOpen = "-menu-open"; function openChildMenu(t, i) { var e = t, s = i; e.find(".menu__panel").length && (e.hasClass(classOpen) ? (e.removeClass(classOpen), $("html").removeClass(classHtmlOpen)) : (s.removeClass(classOpen), e.addClass(classOpen), $("html").addClass(classHtmlOpen))) } function showHeaderMenu() { getBrowserWidth() <= mediaQuery_mobile ? $(".menuFunc .menu__item .menu__link").on("click", function (t) { return openChildMenu($(this).parent(".menu__item"), $(".menuFunc").find(".menu__item")), !1 }) : (_ua.Tablet && $(".menu__link").on("touchstart", function (t) { return openChildMenu($(this).parent(".menu__item"), $(".menu").find(".menu__item")), !1 }), $('.menu__item:not(".search")').hover(function () { var t = $(this), i = $(".menu").find(".menu__item"); t.find(".menu__panel").length && (t.hasClass(classOpen) ? (t.removeClass(classOpen), $("html").removeClass(classHtmlOpen)) : (i.removeClass(classOpen), t.addClass(classOpen), $("html").addClass(classHtmlOpen))) }), $(".search .menu__link").on("click", function () { console.log("search2"); var t = $(this).parent(".search"), i = $(".menu").find(".menu__item"); t.find(".menu__panel").length && (t.hasClass(classOpen) ? (t.removeClass(classOpen), $("html").removeClass(classHtmlOpen)) : (i.removeClass(classOpen), t.addClass(classOpen), $("html").addClass(classHtmlOpen), setTimeout(function () { t.find('input[type="text"]').focus() }, 200))) })) } function keydown_header(t) { 27 == t.keyCode && closeHeaderMenu() } function closeHeaderMenu() { $("html").hasClass("-menu-open") && ($("html").removeClass("-menu-open"), $(".menu__item").removeClass("-panel-open")) } $(document).keydown(keydown_header), $(document).bind("click touchstart", function (t) { !$(t.target).parents(".-panel-open").length && $("html").hasClass(classHtmlOpen) && closeHeaderMenu() }); var movefun = function (t) { t.preventDefault() }; function elastic_header(t) { var i = "-opened", e = "easeOutQuint", s = t.parent(".elastic__item"), n = s.find(".elastic__detail"); s.hasClass(i) ? (s.removeClass(i), n.stop().animate({ opacity: 0, height: "toggle" }, { duration: 350, easing: e, complete: function () { t.hasClass("menu__link") && $(".drawer").drawer("refresh") } })) : (s.addClass(i), n.stop().animate({ opacity: 1, height: "toggle" }, { duration: 350, easing: e, complete: function () { t.hasClass("menu__link") && $(".drawer").drawer("refresh") } })) } function getBrowserWidth() { return window.innerWidth ? window.innerWidth : document.documentElement && 0 != document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body ? document.body.clientWidth : 0 } $(function () { ($(".drawer").drawer(), $(".drawer-toggle").click(function () { var t = $(this); $(".drawer").drawer("refresh"), closeHeaderMenu(), $("body").hasClass("drawer-open") ? (t.removeClass("-closed"), window.addEventListener("touchmove", movefun, { passive: !1 })) : (t.addClass("-closed"), $("body").removeClass("modal-flash-start"), window.removeEventListener("touchmove", movefun, { passive: !1 })) }), $(".elastic__item").length) && $(".elastic__header.menu__link").each(function (t) { $(this).click(function () { var t = $(this); t.parents(".elastic").hasClass("-only-sp") ? screen.width < mediaQuery_mobile && elastic_header(t) : elastic_header(t) }) }) }); 53 54 55/** 56 * Minified by jsDelivr using Terser v3.14.1. 57 * Original file: /npm/[email protected]/src/js.cookie.js 58 * 59 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 60 */ 61!function (e) { var n; if ("function" == typeof define && define.amd && (define(e), n = !0), "object" == typeof exports && (module.exports = e(), n = !0), !n) { var t = window.Cookies, o = window.Cookies = e(); o.noConflict = function () { return window.Cookies = t, o } } }(function () { function e() { for (var e = 0, n = {}; e < arguments.length; e++) { var t = arguments[e]; for (var o in t) n[o] = t[o] } return n } function n(e) { return e.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent) } return function t(o) { function r() { } function i(n, t, i) { if ("undefined" != typeof document) { "number" == typeof (i = e({ path: "/" }, r.defaults, i)).expires && (i.expires = new Date(1 * new Date + 864e5 * i.expires)), i.expires = i.expires ? i.expires.toUTCString() : ""; try { var c = JSON.stringify(t); /^[\{\[]/.test(c) && (t = c) } catch (e) { } t = o.write ? o.write(t, n) : encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), n = encodeURIComponent(String(n)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape); var f = ""; for (var u in i) i[u] && (f += "; " + u, !0 !== i[u] && (f += "=" + i[u].split(";")[0])); return document.cookie = n + "=" + t + f } } function c(e, t) { if ("undefined" != typeof document) { for (var r = {}, i = document.cookie ? document.cookie.split("; ") : [], c = 0; c < i.length; c++) { var f = i[c].split("="), u = f.slice(1).join("="); t || '"' !== u.charAt(0) || (u = u.slice(1, -1)); try { var a = n(f[0]); if (u = (o.read || o)(u, a) || n(u), t) try { u = JSON.parse(u) } catch (e) { } if (r[a] = u, e === a) break } catch (e) { } } return e ? r[e] : r } } return r.set = i, r.get = function (e) { return c(e, !1) }, r.getJSON = function (e) { return c(e, !0) }, r.remove = function (n, t) { i(n, "", e(t, { expires: -1 })) }, r.defaults = {}, r.withConverter = t, r }(function () { }) }); 62//# sourceMappingURL=/sm/b0ce608ffc029736e9ac80a8dd6a7db2da8e1d45d2dcfc92043deb2214aa30d8.map 63 64/* 65$(function() { 66 //const date = new Date(); 67 //date.setDate(date.getDate() + 1); 68 //date.setHours(0, 0, 0); 69 let value = localStorage.getItem('access_flg'); 70 if (value == undefined) { 71 localStorage.setItem('access_flg', 'access');
72 //Cookies.set('access_flg', 'access', { expires: date }); 73 $('span.anc-in').append("<script>(function(w,d,s,u,f,m,n,o){o='https://survey.zohopublic.jp';w[f]=w[f]||function(){(w[f].p=w[f].p||[]).push(arguments);};m=d.createElement(s),n=d.getElementsByTagName(s)[0];m.async=1;m.src=o+u;n.parentNode.insertBefore(m,n);zs_intercept(o,'yLgcg4',{});})(window, document, 'script', '/api/v1/public/livesurveys/yLgcg4/popup/script', 'zs_intercept');</script>"); 74 } 75}); 76*/ 77//add ga 241003 78$(function() { 79 var lpn= location.pathname; 80 if (lpn.indexOf("/en") >= 0) { 81 if(lpn.indexOf("/public/") >= 0 || lpn.indexOf("/gb_shower/") >= 0 || lpn.indexOf("/project/") >= 0){ 82 $('.lang_en a').attr('href', 'javascript:void(0)'); 83 84 // æ¥æ¬èªãªã³ã¯ãé表示 85 $('.lang_jp').hide(); 86 87 // $('.lang_jp a').attr('href','javascript:void(0)'); 88 // $('.lang_en a').attr('onclick','$("#header-inc-en,#footer-inc-en").css("display","block");$("#header-inc-jp,#footer-inc-jp").css("display","none");return false;'); 89 // $('.lang_jp a').attr('onclick','$("#header-inc-en,#footer-inc-en").css("display","none");$("#header-inc-jp,#footer-inc-jp").css("display","block");return false;'); 90 }else{ 91 lpn = lpn.replace('/en', ''); 92 rnm(); 93 } 94 }else if(lpn.indexOf("/jp") >= 0){ 95 if(lpn === "/jp/" || lpn === "/jp/index.htm"){ 96 //æ¥æ¬èªããã 97 rnm_top(); 98 }else{ 99 lpn = lpn.replace('/jp', ''); 100 rnm(); 101 } 102 }else{ 103 if(lpn === "/" || lpn === "/index.htm"){ 104 //è±èªããã 105 rnm_top(); 106 } 107 } 108 function rnm(){ 109 setTimeout(function(){ 110 $('.lang_en a').attr('href','/en' + lpn); 111 $('.lang_jp a').attr('href','/jp' + lpn); 112 },300); 113 } 114 function rnm_top(){ 115 setTimeout(function(){ 116 $('.lang_en a').attr('href','/'); 117 $('.lang_jp a').attr('href','/jp/'); 118 },300); 119 } 120 function changeEn(){ 121 $("#header-inc-en,#footer-inc-en").css('display','block'); 122 $("#header-inc-jp,#footer-inc-jp").css('display','none'); 123 } 124 function changeJp(){ 125 $("#header-inc-en,#footer-inc-en").css('display','none'); 126 $("#header-inc-jp,#footer-inc-jp").css('display','block'); 127 } 128 console.log(lpn); 129});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.