added more preview pages and more templates
This commit is contained in:
1 parent
c6119ffdf5
commit
b19fdee30d
3726 files changed
+651487
-6169
No files matched your search
+402
@@ -0,0 +1,402 @@
|
||||
/**
|
||||
* jQuery
|
||||
* @see http://jquery.com/
|
||||
* @license MIT license
|
||||
*/
|
||||
!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="length"in e&&e.length,n=it.type(e);return"function"===n||it.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(it.isFunction(t))return it.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return it.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ft.test(t))return it.filter(t,e,n);t=it.filter(t,e)}return it.grep(e,function(e){return it.inArray(e,t)>=0!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t=xt[e]={};return it.each(e.match(bt)||[],function(e,n){t[n]=!0}),t}function a(){ht.addEventListener?(ht.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(ht.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(ht.addEventListener||"load"===event.type||"complete"===ht.readyState)&&(a(),it.ready())}function u(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Et,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Nt.test(n)?it.parseJSON(n):n}catch(i){}it.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!it.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(it.acceptData(e)){var i,o,a=it.expando,s=e.nodeType,u=s?it.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=J.pop()||it.guid++:a),u[l]||(u[l]=s?{}:{toJSON:it.noop}),("object"==typeof t||"function"==typeof t)&&(r?u[l]=it.extend(u[l],t):u[l].data=it.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[it.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[it.camelCase(t)])):i=o,i}}function d(e,t,n){if(it.acceptData(e)){var r,i,o=e.nodeType,a=o?it.cache:e,s=o?e[it.expando]:it.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){it.isArray(t)?t=t.concat(it.map(t,it.camelCase)):t in r?t=[t]:(t=it.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!it.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?it.cleanData([e],!0):nt.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function f(){return!0}function p(){return!1}function h(){try{return ht.activeElement}catch(e){}}function m(e){var t=Ft.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==Ct?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Ct?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||it.nodeName(r,t)?o.push(r):it.merge(o,g(r,t));return void 0===t||t&&it.nodeName(e,t)?it.merge([e],o):o}function v(e){jt.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return it.nodeName(e,"table")&&it.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==it.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Vt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)it._data(n,"globalEval",!t||it._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&it.hasData(e)){var n,r,i,o=it._data(e),a=it._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++)it.event.add(t,n,s[n][r])}a.data&&(a.data=it.extend({},a.data))}}function C(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!nt.noCloneEvent&&t[it.expando]){i=it._data(t);for(r in i.events)it.removeEvent(t,r,i.handle);t.removeAttribute(it.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,x(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),nt.html5Clone&&e.innerHTML&&!it.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&jt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function N(t,n){var r,i=it(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:it.css(i[0],"display");return i.detach(),o}function E(e){var t=ht,n=Zt[e];return n||(n=N(e,t),"none"!==n&&n||(Kt=(Kt||it("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Kt[0].contentWindow||Kt[0].contentDocument).document,t.write(),t.close(),n=N(e,t),Kt.detach()),Zt[e]=n),n}function k(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function S(e,t){if(t in e)return
Line truncated
|
||||
if(!r)break}return n?s.length:s?t.error(e):I(e,u).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=y(t[n]),o[B]?r.push(o):i.push(o);o=X(e,b(i,r)),o.selector=e}return o},S=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(wt,Tt),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ht.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(wt,Tt),bt.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&f(o),!e)return K.apply(n,r),n;break}}return(l||k(e,d))(r,t,!_,n,bt.test(e)&&c(t.parentNode)||t),n},w.sortStable=B.split("").sort(U).join("")===B,w.detectDuplicates=!!j,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(tt,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);it.find=lt,it.expr=lt.selectors,it.expr[":"]=it.expr.pseudos,it.unique=lt.uniqueSort,it.text=lt.getText,it.isXMLDoc=lt.isXML,it.contains=lt.contains;var ct=it.expr.match.needsContext,dt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ft=/^.[^:#\[\.,]*$/;it.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?it.find.matchesSelector(r,e)?[r]:[]:it.find.matches(e,it.grep(t,function(e){return 1===e.nodeType}))},it.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(it(e).filter(function(){for(t=0;i>t;t++)if(it.contains(r[t],this))return!0}));for(t=0;i>t;t++)it.find(e,r[t],n);return n=this.pushStack(i>1?it.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ct.test(e)?it(e):e||[],!1).length}});var pt,ht=e.document,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,gt=it.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:mt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||pt).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof it?t[0]:t,it.merge(this,it.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ht,!0)),dt.test(n[1])&&it.isPlainObject(t))for(n in t)it.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(r=ht.getElementById(n[2]),r&&r.parentNode){if(r.id!==n[2])return pt.find(e);this.length=1,this[0]=r}return this.context=ht,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):it.isFunction(e)?"undefined"!=typeof pt.ready?pt.ready(e):e(it):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),it.makeArray(e,this))};gt.prototype=it.fn,pt=it(ht);var vt=/^(?:parents|prev(?:Until|All))/,yt={children:!0,contents:!0,next:!0,prev:!0};it.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!it(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),it.fn.extend({has:function(e){var t,n=it(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(it.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=ct.test(e)||"string"!=typeof e?it(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&it.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?it.unique(o):o)},index:function(e){return e?"string"==typeof e?it.inArray(this[0],it(e)):it.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(it.unique(it.merge(this.get(),it(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),it.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return it.dir(e,"parentNode")},parentsUntil:function(e,t,n){return it.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return it.dir(e,"nextSibling")},pLine truncated
|
||||
/**
|
||||
* jQuery Migrate
|
||||
* @see https://github.com/jquery/jquery-migrate
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(e,t,n){function r(n){var r=t.console;o[n]||(o[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,n,a,o){if(Object.defineProperty)try{return void Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return r(o),a},set:function(e){r(o),a=e}})}catch(i){}e._definePropertyBroken=!0,t[n]=a}var o={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){o={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var i=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},d=/^(?:input|button)$/i,l=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",i||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,o,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(s.length<4&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!l.test(g)&&(i?a in i:e.isFunction(e.fn[a])))?e(t)[a](o):("type"===a&&o!==n&&d.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,o=e.prop(t,r);return o===!0||"boolean"!=typeof o&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,o))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?c.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value', val) no longer sets properties"),void(e.value=t))}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var o;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=y.exec(e.trim(t)))&&o[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),o[3]&&r("$(html) HTML text after last tag is ignored"),"#"===o[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(o[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,o,i=this[0];return!i||"events"!==t||1!==arguments.length||(a=e.data(i,t),o=e._data(i,t),a!==n&&a!==o||o===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),o)};var w=/\/(java|ecma)script/i,j=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),j.apply(this,arguments)},e.clean||(e.clean=function(t,n,a,o){n=n||document,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,r("jQuery.clean() is deprecated");var i,s,u,c,d=[];if(e.merge(d,e.buildFragment(t,n).childNodes),a)for(u=function(e){return!e.type||w.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):a.appendChild(e):void 0},i=0;null!=(s=d[i]);i++)e.nodeName(s,"script")&&u(s)||(a.appendChild(s),"undefined"!=typeof s.getElementsByTagName&&(c=e.grep(e.merge([],s.getElementsByTagName("script")),u),d.splice.apply(d,[i+1,0].concat(c)),i+=c.length));return d});var x=e.event.add,Q=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,S=e.fn.die,C="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSucceLine truncated
|
||||
/**
|
||||
* jQuery Cookie Plugin
|
||||
* @see https://github.com/carhartl/jquery-cookie
|
||||
* @license MIT license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function o(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function t(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(c," ")),u.json?JSON.parse(e):e}catch(n){}}function r(n,o){var i=u.raw?n:t(n);return e.isFunction(o)?o(i):i}var c=/\+/g,u=e.cookie=function(t,c,s){if(arguments.length>1&&!e.isFunction(c)){if(s=e.extend({},u.defaults,s),"number"==typeof s.expires){var a=s.expires,d=s.expires=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*a)}return document.cookie=[n(t),"=",i(c),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}for(var f=t?void 0:{},p=document.cookie?document.cookie.split("; "):[],l=0,m=p.length;m>l;l++){var x=p[l].split("="),g=o(x.shift()),j=x.join("=");if(t===g){f=r(j,c);break}t||void 0===(j=r(j))||(f[g]=j)}return f};u.defaults={},e.removeCookie=function(n,o){return e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n)}});
|
||||
/**
|
||||
* Device.js
|
||||
* @see https://github.com/matthewhudson/device.js
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(){var e,i,n,o,d,c,t,r,a,v;e=window.device,window.device={},n=window.document.documentElement,v=window.navigator.userAgent.toLowerCase(),device.ios=function(){return device.iphone()||device.ipod()||device.ipad()},device.iphone=function(){return o("iphone")},device.ipod=function(){return o("ipod")},device.ipad=function(){return o("ipad")},device.android=function(){return o("android")},device.androidPhone=function(){return device.android()&&o("mobile")},device.androidTablet=function(){return device.android()&&!o("mobile")},device.blackberry=function(){return o("blackberry")||o("bb10")||o("rim")},device.blackberryPhone=function(){return device.blackberry()&&!o("tablet")},device.blackberryTablet=function(){return device.blackberry()&&o("tablet")},device.windows=function(){return o("windows")},device.windowsPhone=function(){return device.windows()&&o("phone")},device.windowsTablet=function(){return device.windows()&&o("touch")&&!device.windowsPhone()},device.fxos=function(){return(o("(mobile;")||o("(tablet;"))&&o("; rv:")},device.fxosPhone=function(){return device.fxos()&&o("mobile")},device.fxosTablet=function(){return device.fxos()&&o("tablet")},device.meego=function(){return o("meego")},device.cordova=function(){return window.cordova&&"file:"===location.protocol},device.nodeWebkit=function(){return"object"==typeof window.process},device.mobile=function(){return device.androidPhone()||device.iphone()||device.ipod()||device.windowsPhone()||device.blackberryPhone()||device.fxosPhone()||device.meego()},device.tablet=function(){return device.ipad()||device.androidTablet()||device.blackberryTablet()||device.windowsTablet()||device.fxosTablet()},device.desktop=function(){return!device.tablet()&&!device.mobile()},device.portrait=function(){return window.innerHeight/window.innerWidth>1},device.landscape=function(){return window.innerHeight/window.innerWidth<1},device.noConflict=function(){return window.device=e,this},o=function(e){return-1!==v.indexOf(e)},c=function(e){var i;return i=new RegExp(e,"i"),n.className.match(i)},i=function(e){return c(e)?void 0:n.className+=" "+e},r=function(e){return c(e)?n.className=n.className.replace(e,""):void 0},device.ios()?device.ipad()?i("ios ipad tablet"):device.iphone()?i("ios iphone mobile"):device.ipod()&&i("ios ipod mobile"):i(device.android()?device.androidTablet()?"android tablet":"android mobile":device.blackberry()?device.blackberryTablet()?"blackberry tablet":"blackberry mobile":device.windows()?device.windowsTablet()?"windows tablet":device.windowsPhone()?"windows mobile":"desktop":device.fxos()?device.fxosTablet()?"fxos tablet":"fxos mobile":device.meego()?"meego mobile":device.nodeWebkit()?"node-webkit":"desktop"),device.cordova()&&i("cordova"),d=function(){return device.landscape()?(r("portrait"),i("landscape")):(r("landscape"),i("portrait"))},a="onorientationchange"in window,t=a?"orientationchange":"resize",window.addEventListener?window.addEventListener(t,d,!1):window.attachEvent?window.attachEvent(t,d):window[t]=d,d()}).call(this);
|
||||
/**
|
||||
* jQuery resize event
|
||||
* @see http://benalman.com/projects/jquery-resize-plugin/
|
||||
* @license MIT license
|
||||
*/
|
||||
(function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k="setTimeout",j="resize",d=j+"-special-event",b="delay",f="throttleWindow";e[b]=250;e[f]=true;$.event.special[j]={setup:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.add(l);$.data(this,d,{w:l.width(),h:l.height()});if(a.length===1){g()}},teardown:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.not(l);l.removeData(d);if(!a.length){clearTimeout(i)}},add:function(l){if(!e[f]&&this[k]){return false}var n;function m(s,o,p){var q=$(this),r=$.data(this,d);r.w=o!==c?o:q.width();r.h=p!==c?p:q.height();n.apply(this,arguments)}if($.isFunction(l)){n=l;return m}else{n=l.handler;l.handler=m}}};function g(){i=h[k](function(){a.each(function(){var n=$(this),m=n.width(),l=n.height(),o=$.data(this,d);if(m!==o.w||l!==o.h){n.trigger(j,[o.w=m,o.h=l])}});g()},e[b])}})(jQuery,this);
|
||||
/**
|
||||
* jQuery easing
|
||||
* @see http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
* @license BSD License
|
||||
*/
|
||||
jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,e,t,u,a){return jQuery.easing[jQuery.easing.def](n,e,t,u,a)},easeInQuad:function(n,e,t,u,a){return u*(e/=a)*e+t},easeOutQuad:function(n,e,t,u,a){return-u*(e/=a)*(e-2)+t},easeInOutQuad:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e+t:-u/2*(--e*(e-2)-1)+t},easeInCubic:function(n,e,t,u,a){return u*(e/=a)*e*e+t},easeOutCubic:function(n,e,t,u,a){return u*((e=e/a-1)*e*e+1)+t},easeInOutCubic:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e+t:u/2*((e-=2)*e*e+2)+t},easeInQuart:function(n,e,t,u,a){return u*(e/=a)*e*e*e+t},easeOutQuart:function(n,e,t,u,a){return-u*((e=e/a-1)*e*e*e-1)+t},easeInOutQuart:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e*e+t:-u/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(n,e,t,u,a){return u*(e/=a)*e*e*e*e+t},easeOutQuint:function(n,e,t,u,a){return u*((e=e/a-1)*e*e*e*e+1)+t},easeInOutQuint:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e*e*e+t:u/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(n,e,t,u,a){return-u*Math.cos(e/a*(Math.PI/2))+u+t},easeOutSine:function(n,e,t,u,a){return u*Math.sin(e/a*(Math.PI/2))+t},easeInOutSine:function(n,e,t,u,a){return-u/2*(Math.cos(Math.PI*e/a)-1)+t},easeInExpo:function(n,e,t,u,a){return 0==e?t:u*Math.pow(2,10*(e/a-1))+t},easeOutExpo:function(n,e,t,u,a){return e==a?t+u:u*(-Math.pow(2,-10*e/a)+1)+t},easeInOutExpo:function(n,e,t,u,a){return 0==e?t:e==a?t+u:(e/=a/2)<1?u/2*Math.pow(2,10*(e-1))+t:u/2*(-Math.pow(2,-10*--e)+2)+t},easeInCirc:function(n,e,t,u,a){return-u*(Math.sqrt(1-(e/=a)*e)-1)+t},easeOutCirc:function(n,e,t,u,a){return u*Math.sqrt(1-(e=e/a-1)*e)+t},easeInOutCirc:function(n,e,t,u,a){return(e/=a/2)<1?-u/2*(Math.sqrt(1-e*e)-1)+t:u/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(1==(e/=a))return t+u;if(i||(i=.3*a),s<Math.abs(u)){s=u;var r=i/4}else var r=i/(2*Math.PI)*Math.asin(u/s);return-(s*Math.pow(2,10*(e-=1))*Math.sin((e*a-r)*(2*Math.PI)/i))+t},easeOutElastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(1==(e/=a))return t+u;if(i||(i=.3*a),s<Math.abs(u)){s=u;var r=i/4}else var r=i/(2*Math.PI)*Math.asin(u/s);return s*Math.pow(2,-10*e)*Math.sin((e*a-r)*(2*Math.PI)/i)+u+t},easeInOutElastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(2==(e/=a/2))return t+u;if(i||(i=a*(.3*1.5)),s<Math.abs(u)){s=u;var r=i/4}else var r=i/(2*Math.PI)*Math.asin(u/s);return 1>e?-.5*(s*Math.pow(2,10*(e-=1))*Math.sin((e*a-r)*(2*Math.PI)/i))+t:s*Math.pow(2,-10*(e-=1))*Math.sin((e*a-r)*(2*Math.PI)/i)*.5+u+t},easeInBack:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),u*(e/=a)*e*((r+1)*e-r)+t},easeOutBack:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),u*((e=e/a-1)*e*((r+1)*e+r)+1)+t},easeInOutBack:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),(e/=a/2)<1?u/2*(e*e*(((r*=1.525)+1)*e-r))+t:u/2*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)+t},easeInBounce:function(n,e,t,u,a){return u-jQuery.easing.easeOutBounce(n,a-e,0,u,a)+t},easeOutBounce:function(n,e,t,u,a){return(e/=a)<1/2.75?u*(7.5625*e*e)+t:2/2.75>e?u*(7.5625*(e-=1.5/2.75)*e+.75)+t:2.5/2.75>e?u*(7.5625*(e-=2.25/2.75)*e+.9375)+t:u*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(n,e,t,u,a){return a/2>e?.5*jQuery.easing.easeInBounce(n,2*e,0,u,a)+t:.5*jQuery.easing.easeOutBounce(n,2*e-a,0,u,a)+.5*u+t}});
|
||||
/**
|
||||
* TouchSwipe
|
||||
* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var y="1.6.12",p="left",o="right",e="up",x="down",c="in",A="out",m="none",s="auto",l="swipe",t="pinch",B="tap",j="doubletap",b="longtap",z="hold",E="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,C="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:true};f.fn.swipe=function(H){var G=f(this),F=G.data(C);if(F&&typeof H==="string"){if(F[H]){return F[H].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+H+" does not exist on jQuery.swipe")}}else{if(F&&typeof H==="object"){F.option.apply(this,arguments)}else{if(!F&&(typeof H==="object"||!H)){return w.apply(this,arguments)}}}return G};f.fn.swipe.version=y;f.fn.swipe.defaults=n;f.fn.swipe.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipe.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:A};f.fn.swipe.pageScroll={NONE:m,HORIZONTAL:E,VERTICAL:u,AUTO:s};f.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:i};function w(F){if(F&&(F.allowPageScroll===undefined&&(F.swipe!==undefined||F.swipeStatus!==undefined))){F.allowPageScroll=m}if(F.click!==undefined&&F.tap===undefined){F.tap=F.click}if(!F){F={}}F=f.extend({},f.fn.swipe.defaults,F);return this.each(function(){var H=f(this);var G=H.data(C);if(!G){G=new D(this,F);H.data(C,G)}})}function D(a4,au){var au=f.extend({},au);var az=(a||d||!au.fallbackToMouseEvents),K=az?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",ax=az?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",V=az?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",T=az?null:"mouseleave",aD=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ag=0,aP=null,ac=0,a1=0,aZ=0,H=1,ap=0,aJ=0,N=null;var aR=f(a4);var aa="start";var X=0;var aQ={};var U=0,a2=0,a5=0,ay=0,O=0;var aW=null,af=null;try{aR.bind(K,aN);aR.bind(aD,a9)}catch(aj){f.error("events not supported "+K+","+aD+" on jQuery.swipe")}this.enable=function(){aR.bind(K,aN);aR.bind(aD,a9);return aR};this.disable=function(){aK();return aR};this.destroy=function(){aK();aR.data(C,null);aR=null};this.option=function(bc,bb){if(typeof bc==="object"){au=f.extend(au,bc)}else{if(au[bc]!==undefined){if(bb===undefined){return au[bc]}else{au[bc]=bb}}else{if(!bc){return au}else{f.error("Option "+bc+" does not exist on jQuery.swipe.options")}}}return null};function aN(bd){if(aB()){return}if(f(bd.target).closest(au.excludedElements,aR).length>0){return}var be=bd.originalEvent?bd.originalEvent:bd;var bc,bf=be.touches,bb=bf?bf[0]:be;aa=g;if(bf){X=bf.length}else{if(au.preventDefaultEvents!==false){bd.preventDefault()}}ag=0;aP=null;aJ=null;ac=0;a1=0;aZ=0;H=1;ap=0;N=ab();S();ai(0,bb);if(!bf||(X===au.fingers||au.fingers===i)||aX()){U=ar();if(X==2){ai(1,bf[1]);a1=aZ=at(aQ[0].start,aQ[1].start)}if(au.swipeStatus||au.pinchStatus){bc=P(be,aa)}}else{bc=false}if(bc===false){aa=q;P(be,aa);return bc}else{if(au.hold){af=setTimeout(f.proxy(function(){aR.trigger("hold",[be.target]);if(au.hold){bc=au.hold.call(aR,be,be.target)}},this),au.longTapThreshold)}an(true)}return null}function a3(be){var bh=be.originalEvent?be.originalEvent:be;if(aa===h||aa===q||al()){return}var bd,bi=bh.touches,bc=bi?bi[0]:bh;var bf=aH(bc);a2=ar();if(bi){X=bi.length}if(au.hold){clearTimeout(af)}aa=k;if(X==2){if(a1==0){ai(1,bi[1]);a1=aZ=at(aQ[0].start,aQ[1].start)}else{aH(bi[1]);aZ=at(aQ[0].end,aQ[1].end);aJ=aq(aQ[0].end,aQ[1].end)}H=a7(a1,aZ);ap=Math.abs(a1-aZ)}if((X===au.fingers||au.fingers===i)||!bi||aX()){aP=aL(bf.start,bf.end);ak(be,aP);ag=aS(bf.start,bf.end);ac=aM();aI(aP,ag);if(au.swipeStatus||au.pinchStatus){bd=P(bh,aa)}if(!au.triggerOnTouchEnd||au.triggerOnTouchLeave){var bb=true;if(au.triggerOnTouchLeave){var bg=aY(this);bb=F(bf.end,bg)}if(!au.triggerOnTouchEnd&&bb){aa=aC(k)}else{if(au.triggerOnTouchLeave&&!bb){aa=aC(h)}}if(aa==q||aa==h){P(bh,aa)}}}else{aa=q;P(bh,aa)}if(bd===false){aa=q;P(bh,aa)}}function M(bb){var bc=bb.originalEvent?bb.originalEvent:bb,bd=bc.touches;if(bd){if(bd.length&&!al()){G();return true}else{if(bd.length&&al()){return true}}}if(al()){X=ay}a2=ar();ac=aM();if(ba()||!am()){aa=q;P(bc,aa)}else{if(au.triggerOnTouchEnd||(au.triggerOnTouchEnd==false&&aa===k)){if(au.preventDefaultEvents!==false){bb.preventDefault()}aa=h;P(bc,aa)}else{if(!au.triggerOnTouLine truncated
|
||||
/**
|
||||
* Regula: An annotation-based form-validation framework in Javascript
|
||||
* @version 1.3.4
|
||||
* @license BSD License
|
||||
* @copyright Robert Nyman, http://www.robertnyman.com
|
||||
*/
|
||||
(function(e,t){typeof define=="function"&&define.amd?define("utils/MapUtils",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.MapUtils=t())})(this,function(){return{iterateOverMap:function(e,t){var n=0;for(var r in e)e.hasOwnProperty(r)&&r!=="__size__"&&(t.call(e,r,e[r],n),n++)},exists:function(e,t){var n=!1,r=0;while(!n&&r<e.length)n=t==e[r],r++;return n},put:function(e,t,n){e.__size__||(e.__size__=0),e[t]||e.__size__++,e[t]=n},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}}}),function(e,t){typeof define=="function"&&define.amd?define("utils/DOMUtils",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.DOMUtils=t())}(this,function(){function t(e,t,n,r){var i=t=="*"&&e.all?e.all:e.getElementsByTagName(t),s=[],o=typeof r!="undefined"?new RegExp("(^|\\s)"+r+"(\\s|$)"):null,u,a;for(var f=0;f<i.length;f++)u=i[f],a=u.getAttribute&&u.getAttribute(n),typeof a=="string"&&a.length>0&&(typeof r=="undefined"||o&&o.test(a))&&s.push(u);return s}function n(e,t){var n=e.getAttribute&&e.getAttribute(t)||null;if(!n){var r=e.attributes;for(var i=0;i<r.length;i++)r[i].nodeName===t&&(n=r[i].nodeValue)}return n}function r(){return"regula-generated-"+Math.floor(Math.random()*1e6)}function i(){return typeof document.createElement("input").checkValidity=="function"}var e={form:"The form",select:"The select box",textarea:"The text area",checkbox:"The checkbox",radio:"The radio button",text:"The text field",password:"The password",email:"The email",url:"The URL",number:"The number",datetime:"The datetime","datetime-local":"The local datetime",date:"The date",month:"The month",time:"The time",week:"The week",range:"The range",tel:"The telephone number",color:"The color"};return{friendlyInputNames:e,getElementsByAttribute:t,getAttributeValueForElement:n,generateRandomId:r,supportsHTML5Validation:i}}),function(e,t){typeof define=="function"&&define.amd?define("service/GroupService",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.GroupService=t())}(this,function(){var e={Default:0},t={0:"Default"},n=[],r=1;return{Group:e,ReverseGroup:t,deletedGroupIndices:n,firstCustomGroupIndex:r}}),function(e,t){typeof define=="function"&&define.amd?define("utils/ArrayUtils",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ArrayUtils=t())}(this,function(){function e(e,t){var n="";for(var r=0;r<e.length;r++)n+=e[r]+t;return n.replace(new RegExp(t+"$"),"")}return{explode:e}}),function(e,t){typeof define=="function"&&define.amd?define("service/ExceptionService",["utils/ArrayUtils"],t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ExceptionService=t(e.regulaModules.ArrayUtils))}(this,function(e){function i(e,t,n){var r="";return e!=null?(r=e.id,t==""||t==null||t==undefined?r+=": ":r+="."+t+": "):t!=""&&t!=null&&t!=undefined&&(r="@"+t+": "),r+n}function s(t){var n="Function received: {";for(var r in t)t.hasOwnProperty(r)&&(typeof t[r]=="string"?n+=r+": "+t[r]+", ":t[r]instanceof Array&&(n+=r+": ["+e.explode(t[r],", ")+"], "));return n=n.replace(/, $/,"")+"}",n}var t={IllegalArgumentException:function(e){this.name="IllegalArgumentException",this.message=e},ConstraintDefinitionException:function(e){this.name="ConstraintDefinitionException",this.message=e},BindException:function(e){this.name="BindException",this.message=e},MissingFeatureException:function(e){this.name="MissingFeatureException",this.message=e}};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.prototype=new Error,r.prototype.constructor=r}return{Exception:t,generateExceptionMessage:i,explodeParameters:s}}),function(e,t){typeof define=="function"&&define.amd?define("service/ValidationService",["utils/DOMUtils","utils/MapUtils","service/GroupService","service/ExceptionService","utils/ArrayUtils"],t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ValidationService=t(e.regulaModules.DOMUtils,e.regulaModules.MapUtils,e.regulaModules.GroupService,e.regulaModules.ExceptionService,e.regulaModules.ArrayUtils))}(this,function(e,t,n,r,i){function h(e){for(var t in e)e.hasOwnProperty(t)&&v(t,e)}function p(e){s=e.config,o=e.ReverseConstraint,u=e.constraintDefinitions,a=e.boundConstraints}function v(e,t){var n=t[e],i=e.replace(/(^[A-Z]+)/,function(e){return e.toLowerCase()});n.async?c[i]=function(t,i,s){if(typeof s=="undefined")throw new r.Exception.IllegalArgumentException(e+" is an asynchronous constraint, but you have not provided a callback.");return n.validator.call(t,i,c,s)}:c[i]=function(e,t){return n.validator.call(e,t,c)}}function m(e,n,r,i){function a(n,r){var i={};for(var s in n)n.hasOwnProperty(s)&&s!="__size__"&&t.put(i,s,n[s]);if(r.length>0)for(var s in e)e.hasOwnProperty(s)&&s!="__size__"&&t.put(i,s,e[s]);return i}function f(e,t,n,i){var s=o[y.constraintType],a=W(t,s,i),f={group:n,constraintName:e.constraintName,custom:u[s].custom,compound:u[s].compound,async:u[s].async,constraintParameters:yLine truncated
|
||||
/**
|
||||
* @module jQuery Form Plugin
|
||||
* @version 3.51
|
||||
* @author M. Alsup
|
||||
* @see http://malsup.com/jquery/form/
|
||||
* @license MIT and GPL licenses
|
||||
*/
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["../jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e("<input type='file'/>").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;i<a.length;i++)n.append(a[i].name,a[i].value);if(t.extraData){var o=r(t.extraData);for(i=0;i<o.length;i++)o[i]&&n.append(o[i][0],o[i][1])}t.data=null;var s=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:u||"POST"});t.uploadProgress&&(s.xhr=function(){var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,a=e.loaded||e.position,n=e.total;e.lengthComputable&&(r=Math.ceil(a/n*100)),t.uploadProgress(e,a,n,r)},!1),r}),s.data=null;var c=s.beforeSend;return s.beforeSend=function(e,r){r.data=t.formData?t.formData:n,c&&c.call(this,e,r)},e.ajax(s)}function s(r){function n(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(r){a("cannot get iframe.contentWindow document: "+r)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(r){a("cannot get iframe.contentDocument: "+r),t=e.document}return t}function o(){function t(){try{var e=n(g).readyState;a("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(r){a("Server abort: ",r," (",r.name,")"),s(k),j&&clearTimeout(j),j=void 0}}var r=f.attr2("target"),i=f.attr2("action"),o="multipart/form-data",c=f.attr("enctype")||f.attr("encoding")||o;w.setAttribute("target",p),(!u||/post/i.test(u))&&w.setAttribute("method","POST"),i!=m.url&&w.setAttribute("action",m.url),m.skipEncodingOverride||u&&!/post/i.test(u)||f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),m.timeout&&(j=setTimeout(function(){T=!0,s(D)},m.timeout));var l=[];try{if(m.extraData)for(var d in m.extraData)m.extraData.hasOwnProperty(d)&&l.push(e.isPlainObject(m.extraData[d])&&m.extraData[d].hasOwnProperty("name")&&m.extraData[d].hasOwnProperty("value")?e('<input type="hidden" name="'+m.extraData[d].name+'">').val(m.extraData[d].value).appendTo(w)[0]:e('<input type="hidden" name="'+d+'">').val(m.extraData[d]).appendTo(w)[0]);m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(h){var x=document.createElement("form").submit;x.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",c),r?w.setAttribute("target",r):f.removeAttr("target"),e(l).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t==k&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(m.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(l){var p=M.getElementsByTagName("prLine truncated
|
||||
/**
|
||||
* @module jQuery Count To
|
||||
* @author Matt Huggins
|
||||
* @see https://github.com/mhuggins/jquery-countTo
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(t){function e(t,e){return t.toFixed(e.decimals)}var o=function(e,i){this.$element=t(e),this.options=t.extend({},o.DEFAULTS,this.dataOptions(),i),this.init()};o.DEFAULTS={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:e,onUpdate:null,onComplete:null},o.prototype.init=function(){this.value=this.options.from,this.loops=Math.ceil(this.options.speed/this.options.refreshInterval),this.loopCount=0,this.increment=(this.options.to-this.options.from)/this.loops},o.prototype.dataOptions=function(){var t={from:this.$element.data("from"),to:this.$element.data("to"),speed:this.$element.data("speed"),refreshInterval:this.$element.data("refresh-interval"),decimals:this.$element.data("decimals")},e=Object.keys(t);for(var o in e){var i=e[o];"undefined"==typeof t[i]&&delete t[i]}return t},o.prototype.update=function(){this.value+=this.increment,this.loopCount++,this.render(),"function"==typeof this.options.onUpdate&&this.options.onUpdate.call(this.$element,this.value),this.loopCount>=this.loops&&(clearInterval(this.interval),this.value=this.options.to,"function"==typeof this.options.onComplete&&this.options.onComplete.call(this.$element,this.value))},o.prototype.render=function(){var t=this.options.formatter.call(this.$element,this.value,this.options);this.$element.text(t)},o.prototype.restart=function(){this.stop(),this.init(),this.start()},o.prototype.start=function(){this.stop(),this.render(),this.interval=setInterval(this.update.bind(this),this.options.refreshInterval)},o.prototype.stop=function(){this.interval&&clearInterval(this.interval)},o.prototype.toggle=function(){this.interval?this.stop():this.start()},t.fn.countTo=function(e){return this.each(function(){var i=t(this),n=i.data("countTo"),s=!n||"object"==typeof e,r="object"==typeof e?e:{},a="string"==typeof e?e:"start";s&&(n&&n.stop(),i.data("countTo",n=new o(this,r))),n[a].call(n)})}}(jQuery);
|
||||
/**
|
||||
* @module SmoothScroll
|
||||
* @author Balazs Galambosi, Patrick Brunner, Michael Herf
|
||||
* @license MIT license
|
||||
* @version v0.9.9
|
||||
*/
|
||||
if ($("html").hasClass("smoothscroll")) {function ssc_init(){if(document.body){var a=document.body,b=document.documentElement,c=window.innerHeight,d=a.scrollHeight;(ssc_root=0<=document.compatMode.indexOf("CSS")?b:a,ssc_activeElement=a,ssc_initdone=!0,top!=self)?ssc_frame=!0:d>c&&(a.offsetHeight<=c||b.offsetHeight<=c)&&(ssc_root.style.height="auto",ssc_root.offsetHeight<=c)&&(c=document.createElement("div"),c.style.clear="both",a.appendChild(c));ssc_fixedback||(a.style.backgroundAttachment="scroll",b.style.backgroundAttachment="scroll");ssc_keyboardsupport&&ssc_addEvent("keydown",ssc_keydown)}}function ssc_scrollArray(a,b,c,d){if(d||(d=1E3),ssc_directionCheck(b,c),ssc_que.push({x:b,y:c,lastX:0>b?.99:-.99,lastY:0>c?.99:-.99,start:+new Date}),!ssc_pending){var e=function(){for(var n=+new Date,h=0,m=0,k=0;k<ssc_que.length;k++){var f=ssc_que[k],l=n-f.start,p=l>=ssc_animtime,g=p?1:l/ssc_animtime;ssc_pulseAlgorithm&&(g=ssc_pulse(g));l=f.x*g-f.lastX>>0;g=f.y*g-f.lastY>>0;h+=l;m+=g;f.lastX+=l;f.lastY+=g;p&&(ssc_que.splice(k,1),k--)}b&&(n=a.scrollLeft,a.scrollLeft+=h,h&&a.scrollLeft===n&&(b=0));c&&(h=a.scrollTop,a.scrollTop+=m,m&&a.scrollTop===h&&(c=0));b||c||(ssc_que=[]);ssc_que.length?setTimeout(e,d/ssc_framerate+1):ssc_pending=!1};setTimeout(e,0);ssc_pending=!0}}function ssc_wheel(a){ssc_initdone||ssc_init();var b=a.target,c=ssc_overflowingAncestor(b);if(!c||a.defaultPrevented||ssc_isNodeName(ssc_activeElement,"embed")||ssc_isNodeName(b,"embed")&&/\.pdf/i.test(b.src))return!0;var b=a.wheelDeltaX||0,d=a.wheelDeltaY||0;b||d||(d=a.wheelDelta||0);1.2<Math.abs(b)&&(b*=ssc_stepsize/120);1.2<Math.abs(d)&&(d*=ssc_stepsize/120);ssc_scrollArray(c,-b,-d);a.preventDefault()}function ssc_keydown(a){var b=a.target,c=a.ctrlKey||a.altKey||a.metaKey;if(/input|textarea|embed/i.test(b.nodeName)||b.isContentEditable||a.defaultPrevented||c||ssc_isNodeName(b,"button")&&a.keyCode===ssc_key.spacebar)return!0;var d;d=b=0;var c=ssc_overflowingAncestor(ssc_activeElement),e=c.clientHeight;switch(c==document.body&&(e=window.innerHeight),a.keyCode){case ssc_key.up:d=-ssc_arrowscroll;break;case ssc_key.down:d=ssc_arrowscroll;break;case ssc_key.spacebar:d=a.shiftKey?1:-1;d=-d*e*.9;break;case ssc_key.pageup:d=.9*-e;break;case ssc_key.pagedown:d=.9*e;break;case ssc_key.home:d=-c.scrollTop;break;case ssc_key.end:e=c.scrollHeight-c.scrollTop-e;d=0<e?e+10:0;break;case ssc_key.left:b=-ssc_arrowscroll;break;case ssc_key.right:b=ssc_arrowscroll;break;default:return!0}ssc_scrollArray(c,b,d);a.preventDefault()}function ssc_mousedown(a){ssc_activeElement=a.target}function ssc_setCache(a,b){for(var c=a.length;c--;)ssc_cache[ssc_uniqueID(a[c])]=b;return b}function ssc_overflowingAncestor(a){var b=[],c=ssc_root.scrollHeight;do{var d=ssc_cache[ssc_uniqueID(a)];if(d)return ssc_setCache(b,d);if(b.push(a),c===a.scrollHeight){if(!ssc_frame||ssc_root.clientHeight+10<c)return ssc_setCache(b,document.body)}else if(a.clientHeight+10<a.scrollHeight&&(overflow=getComputedStyle(a,"").getPropertyValue("overflow"),"scroll"===overflow||"auto"===overflow))return ssc_setCache(b,a)}while(a=a.parentNode)}function ssc_addEvent(a,b,c){window.addEventListener(a,b,c||!1)}function ssc_removeEvent(a,b,c){window.removeEventListener(a,b,c||!1)}function ssc_isNodeName(a,b){return a.nodeName.toLowerCase()===b.toLowerCase()}function ssc_directionCheck(a,b){a=0<a?1:-1;b=0<b?1:-1;(ssc_direction.x!==a||ssc_direction.y!==b)&&(ssc_direction.x=a,ssc_direction.y=b,ssc_que=[])}function ssc_pulse_(a){var b,c,d;return a*=ssc_pulseScale,1>a?b=a-(1-Math.exp(-a)):(c=Math.exp(-1),--a,d=1-Math.exp(-a),b=c+d*(1-c)),b*ssc_pulseNormalize}function ssc_pulse(a){return 1<=a?1:0>=a?0:(1==ssc_pulseNormalize&&(ssc_pulseNormalize/=ssc_pulse_(1)),ssc_pulse_(a))}if(-1===navigator.platform.toUpperCase().indexOf("MAC")&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini|BlackBerry)/)){var ssc_framerate=150,ssc_animtime=700,ssc_stepsize=100,ssc_pulseAlgorithm=!0,ssc_pulseScale=8,ssc_pulseNormalize=1,ssc_keyboardsupport=!0,ssc_arrowscroll=50,ssc_frame=!1,ssc_direction={x:0,y:0},ssc_initdone=!1,ssc_fixedback=!0,ssc_root=document.documentElement,ssc_activeElement,ssc_key={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},ssc_que=[],ssc_pending=!1,ssc_cache={};setInterval(function(){ssc_cache={}},1E4);var ssc_uniqueID=function(){var a=0;return function(b){return b.ssc_uniqueID||(b.ssc_uniqueID=a++)}}(),ischrome=/chrome/.test(navigator.userAgent.toLowerCase());ischrome&&(ssc_addEvent("mousedown",ssc_mousedown),ssc_addEvent("mousewheel",ssc_wheel),ssc_addEvent("load",ssc_init))};}
|
||||
/**
|
||||
* @module Swiper 3.1.7
|
||||
* @description Most modern mobile touch slider and framework with hardware accelerated transitions
|
||||
* @author Vladimir Kharlampidi
|
||||
* @see http://www.idangero.us/swiper/
|
||||
* @licesne MIT License
|
||||
*/
|
||||
!function(){"use strict";function e(e){e.fn.swiper=function(a){var s;return e(this).each(function(){var e=new t(this,a);s||(s=e)}),s}}var a,t=function(e,s){function r(){return"horizontal"===v.params.direction}function i(e){return Math.floor(e)}function n(){v.autoplayTimeoutId=setTimeout(function(){v.params.loop?(v.fixLoop(),v._slideNext()):v.isEnd?s.autoplayStopOnLast?v.stopAutoplay():v._slideTo(0):v._slideNext()},v.params.autoplay)}function o(e,t){var s=a(e.target);if(!s.is(t))if("string"==typeof t)s=s.parents(t);else if(t.nodeType){var r;return s.parents().each(function(e,a){a===t&&(r=t)}),r?t:void 0}return 0===s.length?void 0:s[0]}function l(e,a){a=a||{};var t=window.MutationObserver||window.WebkitMutationObserver,s=new t(function(e){e.forEach(function(e){v.onResize(!0),v.emit("onObserverUpdate",v,e)})});s.observe(e,{attributes:"undefined"==typeof a.attributes?!0:a.attributes,childList:"undefined"==typeof a.childList?!0:a.childList,characterData:"undefined"==typeof a.characterData?!0:a.characterData}),v.observers.push(s)}function p(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;if(!v.params.allowSwipeToNext&&(r()&&39===a||!r()&&40===a))return!1;if(!v.params.allowSwipeToPrev&&(r()&&37===a||!r()&&38===a))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(v.container.parents(".swiper-slide").length>0&&0===v.container.parents(".swiper-slide-active").length)return;var s={left:window.pageXOffset,top:window.pageYOffset},i=window.innerWidth,n=window.innerHeight,o=v.container.offset();v.rtl&&(o.left=o.left-v.container[0].scrollLeft);for(var l=[[o.left,o.top],[o.left+v.width,o.top],[o.left,o.top+v.height],[o.left+v.width,o.top+v.height]],p=0;p<l.length;p++){var d=l[p];d[0]>=s.left&&d[0]<=s.left+i&&d[1]>=s.top&&d[1]<=s.top+n&&(t=!0)}if(!t)return}r()?((37===a||39===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===a&&!v.rtl||37===a&&v.rtl)&&v.slideNext(),(37===a&&!v.rtl||39===a&&v.rtl)&&v.slidePrev()):((38===a||40===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&v.slideNext(),38===a&&v.slidePrev())}}function d(e){e.originalEvent&&(e=e.originalEvent);var a=v.mousewheel.event,t=0;if(e.detail)t=-e.detail;else if("mousewheel"===a)if(v.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;t=e.wheelDeltaX}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;t=e.wheelDeltaY}else t=e.wheelDelta;else if("DOMMouseScroll"===a)t=-e.detail;else if("wheel"===a)if(v.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;t=-e.deltaX}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;t=-e.deltaY}else t=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX:-e.deltaY;if(v.params.mousewheelInvert&&(t=-t),v.params.freeMode){var s=v.getWrapperTranslate()+t*v.params.mousewheelSensitivity;if(s>v.minTranslate()&&(s=v.minTranslate()),s<v.maxTranslate()&&(s=v.maxTranslate()),v.setWrapperTransition(0),v.setWrapperTranslate(s),v.updateProgress(),v.updateActiveIndex(),v.params.freeModeSticky&&(clearTimeout(v.mousewheel.timeout),v.mousewheel.timeout=setTimeout(function(){v.slideReset()},300)),0===s||s===v.maxTranslate())return}else{if((new window.Date).getTime()-v.mousewheel.lastScrollTime>60)if(0>t)if(v.isEnd&&!v.params.loop||v.animating){if(v.params.mousewheelReleaseOnEdges)return!0}else v.slideNext();else if(v.isBeginning&&!v.params.loop||v.animating){if(v.params.mousewheelReleaseOnEdges)return!0}else v.slidePrev();v.mousewheel.lastScrollTime=(new window.Date).getTime()}return v.params.autoplay&&v.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}function c(e,t){e=a(e);var s,i,n;s=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),n=e.attr("data-swiper-parallax-y"),i||n?(i=i||"0",n=n||"0"):r()?(i=s,n="0"):(n=s,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*t+"%":i*t+"px",n=n.indexOf("%")>=0?parseInt(n,10)*t+"%":n*t+"px",e.transform("translate3d("+i+", "+n+",0px)")}function u(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(e,s);var m={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnReLine truncated
|
||||
if("undefined"==typeof a&&(a=v.params.speed),v.previousIndex=v.activeIndex||0,v.activeIndex=e,i===v.translate)return v.updateClasses(),!1;v.updateClasses(),v.onTransitionStart(t);r()?i:0,r()?0:i;return 0===a?(v.setWrapperTransition(0),v.setWrapperTranslate(i),v.onTransitionEnd(t)):(v.setWrapperTransition(a),v.setWrapperTranslate(i),v.animating||(v.animating=!0,v.wrapper.transitionEnd(function(){v&&v.onTransitionEnd(t)}))),!0},v.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),v.lazy&&v.lazy.onTransitionStart(),e&&(v.emit("onTransitionStart",v),v.activeIndex!==v.previousIndex&&v.emit("onSlideChangeStart",v))},v.onTransitionEnd=function(e){v.animating=!1,v.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),v.lazy&&v.lazy.onTransitionEnd(),e&&(v.emit("onTransitionEnd",v),v.activeIndex!==v.previousIndex&&v.emit("onSlideChangeEnd",v)),v.params.hashnav&&v.hashnav&&v.hashnav.setHash()},v.slideNext=function(e,a,t){if(v.params.loop){if(v.animating)return!1;v.fixLoop();{v.container[0].clientLeft}return v.slideTo(v.activeIndex+v.params.slidesPerGroup,a,e,t)}return v.slideTo(v.activeIndex+v.params.slidesPerGroup,a,e,t)},v._slideNext=function(e){return v.slideNext(!0,e,!0)},v.slidePrev=function(e,a,t){if(v.params.loop){if(v.animating)return!1;v.fixLoop();{v.container[0].clientLeft}return v.slideTo(v.activeIndex-1,a,e,t)}return v.slideTo(v.activeIndex-1,a,e,t)},v._slidePrev=function(e){return v.slidePrev(!0,e,!0)},v.slideReset=function(e,a){return v.slideTo(v.activeIndex,a,e)},v.setWrapperTransition=function(e,a){v.wrapper.transition(e),"slide"!==v.params.effect&&v.effects[v.params.effect]&&v.effects[v.params.effect].setTransition(e),v.params.parallax&&v.parallax&&v.parallax.setTransition(e),v.params.scrollbar&&v.scrollbar&&v.scrollbar.setTransition(e),v.params.control&&v.controller&&v.controller.setTransition(e,a),v.emit("onSetTransition",v,e)},v.setWrapperTranslate=function(e,a,t){var s=0,n=0,o=0;r()?s=v.rtl?-e:e:n=e,v.params.roundLengths&&(s=i(s),n=i(n)),v.params.virtualTranslate||v.wrapper.transform(v.support.transforms3d?"translate3d("+s+"px, "+n+"px, "+o+"px)":"translate("+s+"px, "+n+"px)"),v.translate=r()?s:n,a&&v.updateActiveIndex(),"slide"!==v.params.effect&&v.effects[v.params.effect]&&v.effects[v.params.effect].setTranslate(v.translate),v.params.parallax&&v.parallax&&v.parallax.setTranslate(v.translate),v.params.scrollbar&&v.scrollbar&&v.scrollbar.setTranslate(v.translate),v.params.control&&v.controller&&v.controller.setTranslate(v.translate,t),v.emit("onSetTranslate",v,v.translate)},v.getTranslate=function(e,a){var t,s,r,i;return"undefined"==typeof a&&(a="x"),v.params.virtualTranslate?v.rtl?-v.translate:v.translate:(r=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.WebKitCSSMatrix("none"===s?"":s)):(i=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=i.toString().split(",")),"x"===a&&(s=window.WebKitCSSMatrix?i.m41:parseFloat(16===t.length?t[12]:t[4])),"y"===a&&(s=window.WebKitCSSMatrix?i.m42:parseFloat(16===t.length?t[13]:t[5])),v.rtl&&s&&(s=-s),s||0)},v.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=r()?"x":"y"),v.getTranslate(v.wrapper[0],e)},v.observers=[],v.initObservers=function(){if(v.params.observeParents)for(var e=v.container.parents(),a=0;a<e.length;a++)l(e[a]);l(v.container[0],{childList:!1}),l(v.wrapper[0],{attributes:!1})},v.disconnectObservers=function(){for(var e=0;e<v.observers.length;e++)v.observers[e].disconnect();v.observers=[]},v.createLoop=function(){v.wrapper.children("."+v.params.slideClass+"."+v.params.slideDuplicateClass).remove();var e=v.wrapper.children("."+v.params.slideClass);"auto"!==v.params.slidesPerView||v.params.loopedSlides||(v.params.loopedSlides=e.length),v.loopedSlides=parseInt(v.params.loopedSlides||v.params.slidesPerView,10),v.loopedSlides=v.loopedSlides+v.params.loopAdditionalSlides,v.loopedSlides>e.length&&(v.loopedSlides=e.length);var t,s=[],r=[];for(e.each(function(t,i){var n=a(this);t<v.loopedSlides&&r.push(i),t<e.length&&t>=e.length-v.loopedSlides&&s.push(i),n.attr("data-swiper-slide-index",t)}),t=0;t<r.length;t++)v.wrapper.append(a(r[t].cloneNode(!0)).addClass(v.params.slideDuplicateClass));for(t=s.length-1;t>=0;t--)v.wrapper.prepend(a(s[t].cloneNode(!0)).addClass(v.params.slideDuplicateClass))},v.destroyLoop=function(){v.wrapper.children("."+v.params.slideClass+"."+v.params.slideDuplicateClass).remove(),v.slides.removeAttr("data-swiper-slide-index")},v.fixLoop=function(){var e;v.activeIndex<v.loopedSlides?(e=v.slides.length-3*v.loopedSlides+v.activeIndex,e+=v.loopedSlides,v.slideTo(e,0,!1,!0)):("auto"===v.params.slidesPerView&&v.activeIndex>=2*v.loopedSlides||v.activeIndex>v.slides.length-2*v.params.slidesPerView)&&(e=-v.slides.length+v.activeIndex+v.loopedSlides,e+=v.loopedSlidesLine truncated
|
||||
/**
|
||||
* @module RD Parallax
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @version 3.6.4
|
||||
*/
|
||||
(function(){(function(p,n,d){var t,x,y,v,k,m,w,r,u;m=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);y=/Chrome/.test(navigator.userAgent);r=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)||/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor);v=m&&/crios/i.test(navigator.userAgent);w=/iPhone|iPad|iPod/i.test(navigator.userAgent)&&!!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);k=-1!==navigator.appVersion.indexOf("MSIE")|| -1 <navigator.appVersion.indexOf("Trident/");u=/windows nt 6.2/.test(navigator.userAgent.toLowerCase())||/windows nt 6.3/.test(navigator.userAgent.toLowerCase());x=null!=n.body.classList;(function(){var k,m,n,b,a;m=0;a=["ms","moz","webkit","o"];k=0;for(n=a.length;k<n;k++)b=a[k],d.requestAnimationFrame=d[b+"RequestAnimationFrame"],d.cancelAnimationFrame=d[b+"CancelAnimationFrame"]||d[b+"CancelRequestAnimationFrame"];d.requestAnimationFrame||(d.requestAnimationFrame=function(a,c){var e,b,f;e=(new Date).getTime(); f=Math.max(0,16-(e-m));b=d.setTimeout(function(){a(e+f)},f);m=e+f;return b});if(!d.cancelAnimationFrame)return d.cancelAnimationFrame=function(a){return clearTimeout(a)}});t=function(){function q(b){this.options=p.extend(!0,{},this.Defaults,b);this.scenes=[];this.initialize();this.scrollY=d.scrollY||d.pageYOffset;this.lastScrollY=-1;this.lastDocHeight=0;this.checkLayerHeight=this.inputFocus=!1}var z,t;z=function(){function b(a,g,c,e,b,f,h){this.amend=r||k||m?60:0;this.element=a;this.aliases=g;this.type= a.getAttribute("data-type")||"html";"html"===this.type&&(this.holder=this.createHolder());this.direction="normal"===a.getAttribute("data-direction")||null==a.getAttribute("data-direction")?1:-1;this.fade="true"===a.getAttribute("data-fade");this.blur="true"===a.getAttribute("data-blur");this.boundTo=n.querySelector(a.getAttribute("data-bound-to"));"media"===this.type&&(this.url=a.getAttribute("data-url"));this.responsive=this.getResponsiveOptions();this.element.style.position=!k&&!m||m||u&&k?"absolute": "fixed";switch(this.type){case "media":null!=this.url&&(this.element.style["background-image"]="url("+this.url+")");break;case "html":k&&m&&(this.element.style["z-index"]=1)}this.refresh(c,e,b,f,h)}b.prototype.refresh=function(a,g,c,e,b){this.speed=this.getOption("speed",a)||0;this.offset=this.getOption("offset",a)||0;m||u&&k||(this.element.style.position=b?"fixed":"absolute");k&&"html"===this.type&&(this.element.style.position="absolute");switch(this.type){case "media":if(!k)return this.offsetHeight= this.getMediaHeight(g,e,this.speed,this.direction),this.element.style.height=this.offsetHeight+"px";break;case "html":this.element.style.width=this.holder.offsetWidth+"px";this.offsetHeight=this.element.offsetHeight;this.holder.style.height=this.offsetHeight+"px";if(!(!k&&!m||m||u&&k))return k?this.element.style.position="static":b&&(this.element.style.left=this.getOffset(this.holder).left+"px",this.element.style.top=this.getOffset(this.holder).top-c+"px"),this.holder.style.position="static";break; case "custom":return this.offsetHeight=this.element.offsetHeight}};b.prototype.createHolder=function(){var a;a=n.createElement("div");x?a.classList.add("rd-parallax-layer-holder"):a.className="rd-parallax-layer-holder";this.element.parentNode.insertBefore(a,this.element);a.appendChild(this.element);if(!k&&!m||v)a.style.position="relative";return a};b.prototype.isHolderWrong=function(){return"html"===this.type&&this.holder.offsetHeight!==this.element.offsetHeight?!0:!1};b.prototype.getOption=function(a, g) { var c, e; for (c in this.responsive)c <= g && (e = c); return this.responsive[e][a] }; b.prototype.getResponsiveOptions = function () { var a, g, c, e, b, f, h, l, d; l = {}; h = []; g = []; e = this.aliases; for (c in e)a = e[c], h.push(c), g.push(a); c = e = 0; for (b = h.length; e < b; c = ++e)for (f = h[c], l[f] = {}; -1 <= (a = c);)!l[f].speed && (d = this.element.getAttribute("data" + g[a] + "speed")) && (l[f].speed = this.getSpeed(d)), !l[f].offset && (d = this.element.getAttribute("data" + g[a] + "offset")) && (l[f].offset = parseInt(d)), !l[f].fade && (d = this.element.getAttribute("data"+ g[a]+"fade"))&&(l[f].fade="true"===d),c--;return l};b.prototype.fuse=function(a,g){var c,e,b;c=this.getOffset(this.element).top+this.element.getBoundingClientRect().top;e=a+g/2;c+=this.offsetHeight/2;b=g/6;e+b>c&&e-b<c?this.element.style.opacity=1:(e=e-b<c?1+(e+b-c)/g/3*10:1-(e-b-c)/g/3*10,this.element.style.opacity=0>e?0:1<e?1:e.toFixed(2))};b.prototype.move=function(a,g,c,b,d,f,h,l,n){k&&"media"===this.type||m||u&&k||(h?(h=!m||"html"===this.type&&n||v?this.speed*this.direction:this.speed*this.direction- 1,g=this.offsetHeight,null!=l?f=(b+c-(l+c))/(c-d):"media"!==this.type?b<c||b>f-c?(f=b<c?b/(c-d):(b+c-f)/(c-d),isFinite(f)||(f=0)):f=.5:f=.5,a=v||k?(d-g)/2+(c-d)*f*h+this.offset:m?-(b-a)*h+(d-g)/2+(c-d)*f*(h+1)+this.offset:-(b-a)*h+(d-g)/2+(c-d)*f*h+this.offset,m&&null!=l&&(this.element.style.top=b-lLine truncated
|
||||
/**
|
||||
* @module RDVideo
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.2
|
||||
*/
|
||||
(function(){(function(g,n,u){var q,v,k;k=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);v=0<=navigator.platform.toUpperCase().indexOf("MAC");q=function(){function d(a,c){this.options=g.extend(!0,{},this.Defaults,c);this.$element=g(a);this.$win=g(u);this.$doc=g(n);this.interval=null;this.classNames={playBtn:'[data-rd-video-btn="play"]',muteBtn:'[data-rd-video-btn="mute"]',playing:"playing",paused:"paused",muted:"muted"};this.$playBtn=this.$element.find(this.classNames.playBtn); this.$muteBtn=this.$element.find(this.classNames.muteBtn);this.initialize()}d.prototype.Defaults={position:"50% 50%",volume:.5,playbackRate:1,muted:!0,loop:!0,autoplay:!0,preload:"auto",fps:30,transitionTime:300,posterType:"jpg",path:"video/video",background:!0,controls:!1,hideWhenSlow:!1,imgSize:{xs:"",sm:"",md:"",lg:"",xlg:""},onLoad:!1};d.prototype.initialize=function(){var a;a=this;a.path=this.$element.attr("data-rd-video-path")?a.$element.attr("data-rd-video-path"):a.options.path;a.imgSize={xs:this.$element.attr("data-rd-video-image-xs")? a.$element.attr("data-rd-video-image-xs"):a.options.imgSize.xs,sm:this.$element.attr("data-rd-video-image-sm")?a.$element.attr("data-rd-video-image-sm"):a.options.imgSize.sm,md:this.$element.attr("data-rd-video-image-md")?a.$element.attr("data-rd-video-image-md"):a.options.imgSize.md,lg:this.$element.attr("data-rd-video-image-lg")?a.$element.attr("data-rd-video-image-lg"):a.options.imgSize.lg,xlg:this.$element.attr("data-rd-video-image-xlg")?a.$element.attr("data-rd-video-image-xlg"):a.options.imgSize.xlg}; a.suffix=a.getSuffix();a.getConnectionSpeed(a.path,function(){return a.init(a)})};d.prototype.init=function(a){a.position=a.parsePosition(this.$element.attr("data-rd-video-position")?a.$element.attr("data-rd-video-position"):a.options.position);a.isBG=this.$element.attr("data-rd-video-background")?"true"===a.$element.attr("data-rd-video-background"):a.options.background;a.hideWhenSlow=this.$element.attr("data-rd-video-hide")?"true"===a.$element.attr("data-rd-video-hide"):a.options.hideWhenSlow;a.posterType= this.$element.attr("data-rd-video-poster")?a.$element.attr("data-rd-video-poster"):a.options.posterType;a.createDOM(a);k&&a.isBG||(a.createVideo(a),a.applyPlayButton(),a.applyMuteButton(),a.isBG||a.contextMenuBuilder());a.options.onLoad&&a.options.onLoad.call(this,a);a.$win.on("resize",g.proxy(a.resize,this,a));a.$element.on("resize",g.proxy(a.resize,this,a));a.$win.on("scroll",g.proxy(a.onScroll,this,a))};d.prototype.parsePosition=function(a){var c,b,f,h,e,d;c=a.split(/\s+/);d=e="50%";b=f=0;for(h= c.length; f < h; b = ++f)a = c[b], "left" === a ? e = "0%" : "right" === a ? e = "100%" : "top" === a ? d = "0%" : "bottom" === a ? d = "100%" : "center" === a ? 0 === b ? e = "50%" : d = "50%" : 0 === b ? e = a : d = a; return {x: e, y: d} }; d.prototype.getConnectionSpeed = function (a, c) { var b, f, h; b = this; a += "-" + b.suffix + "." + b.options.posterType; f = new Image; f.onload = function () { var a; a = Date.now(); b.speed = Math.round(b.imgSize[b.suffix] / ((a - h) / 1E3)); return c() }; h = Date.now(); a += "?t=" + h; setTimeout(function () { f.src = a; return h = Date.now() }, 300) }; d.prototype.getVideoSuffix = function (a) {return 50> a?"xs":100>a?"sm":200>a?"md":800>a?"lg":"xlg"};d.prototype.createDOM=function(a){var c,b,f;a.isBG&&a.$element.addClass("rd-video-bg");b=a.$preloader=g('<div class="rd-video-preloader">');a.isBG||(c=a.$context=g('<div class="rd-video-context-wrapper"> <div class="rd-video-context">'));f=a.$wrapper=g('<div class="rd-video-wrapper">').css({"background-position":a.position.x+" "+a.position.y,"background-image":"url("+a.path+"-"+a.suffix+"."+a.options.posterType+")"});a.$element.prepend(f);a.$wrapper.prepend(c); a.$wrapper.prepend(b)};d.prototype.createVideo=function(a){var c,b,f,h,e,d,k,l,m,p,n;l=a.options;h="";f=!1;b=["xs","sm","md","lg","xlg"];m=a.getSuffixArray();if(null!=a.$video)for(e=d=0,k=m.length;d<k;e=++d){if(n=m[e],n===a.suffix){if(0!==e)p=m[e-1];else if(a.hideWhenSlow){a.removeVideo(a);return}break}}else p=a.getVideoSuffix(a.speed);for(;-1===m.indexOf(p);)if(e=b.indexOf(p),0!==e)p=b[e-1];else return;a.suffix=p;b=a.path+"-"+p;if("undefined"!==typeof b){"object"===typeof b?(b.mp4&&(h+='<source src="'+ b.mp4+'.mp4" type="video/mp4">'),b.webm&&(h+='<source src="'+b.webm+'.webm" type="video/webm">'),b.ogv&&(h+='<source src="'+b.ogv+'.ogv" type="video/ogg">',c=g("<video>"+h+"</video>"))):c=g('<video><source src="'+b+'.mp4" type="video/mp4"><source src="'+b+'.webm" type="video/webm"><source src="'+b+'.ogv" type="video/ogg"></video>');null!=a.$video?a.$video2=c:a.$video=c;null!=a.$video2?f=!a.$video[0].paused:a.isBG&&(f=this.$element.attr("data-rd-video-autoplay")?"true"===a.$element.attr("data-rd-video-autoplay"): l.autoplay);e=this.$element.attr("data-rd-video-volume")?a.$element.attr("data-rd-video-volume"):l.volume;b=this.$element.attr("data-rd-video-muted")?"true"===a.$element.attr("data-rd-video-muLine truncated
|
||||
/**
|
||||
* @module WOW
|
||||
* @author Matthieu Aussaguel
|
||||
* @version v1.1.2
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(){var t,e,n,i,o,r=function(t,e){return function(){return t.apply(e,arguments)}},s=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var n,i;for(n in e)i=e[n],null==t[n]&&(t[n]=i);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t.prototype.createEvent=function(t,e,n,i){var o;return null==e&&(e=!1),null==n&&(n=!1),null==i&&(i=null),null!=document.createEvent?(o=document.createEvent("CustomEvent"),o.initCustomEvent(t,e,n,i)):null!=document.createEventObject?(o=document.createEventObject(),o.eventType=t):o.eventName=t,o},t.prototype.emitEvent=function(t,e){return null!=t.dispatchEvent?t.dispatchEvent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)?t["on"+e]():void 0},t.prototype.addEvent=function(t,e,n){return null!=t.addEventListener?t.addEventListener(e,n,!1):null!=t.attachEvent?t.attachEvent("on"+e,n):t[e]=n},t.prototype.removeEvent=function(t,e,n){return null!=t.removeEventListener?t.removeEventListener(e,n,!1):null!=t.detachEvent?t.detachEvent("on"+e,n):delete t[e]},t.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t}(),n=this.WeakMap||this.MozWeakMap||(n=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,n,i,o,r;for(r=this.keys,e=i=0,o=r.length;o>i;e=++i)if(n=r[e],n===t)return this.values[e]},t.prototype.set=function(t,e){var n,i,o,r,s;for(s=this.keys,n=o=0,r=s.length;r>o;n=++o)if(i=s[n],i===t)return void(this.values[n]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=function(){function t(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),i=this.getComputedStyle||function(t){return this.getPropertyValue=function(e){var n;return"float"===e&&(e="styleFloat"),o.test(e)&&e.replace(o,function(t,e){return e.toUpperCase()}),(null!=(n=t.currentStyle)?n[e]:void 0)||null},this},o=/(\-([a-z]){1})/g,this.WOW=function(){function o(t){null==t&&(t={}),this.scrollCallback=r(this.scrollCallback,this),this.scrollHandler=r(this.scrollHandler,this),this.resetAnimation=r(this.resetAnimation,this),this.start=r(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new n,this.wowEvent=this.util().createEvent(this.config.boxClass)}return o.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},o.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},o.prototype.start=function(){var e,n,i,o;if(this.stopped=!1,this.boxes=function(){var t,n,i,o;for(i=this.element.querySelectorAll("."+this.config.boxClass),o=[],t=0,n=i.length;n>t;t++)e=i[t],o.push(e);return o}.call(this),this.all=function(){var t,n,i,o;for(i=this.boxes,o=[],t=0,n=i.length;n>t;t++)e=i[t],o.push(e);return o}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(o=this.boxes,n=0,i=o.length;i>n;n++)e=o[n],this.applyStyle(e,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new t(function(t){return function(e){var n,i,o,r,s;for(s=[],n=0,i=e.length;i>n;n++)r=e[n],s.push(function(){var t,e,n,i;for(n=r.addedNodes||[],i=[],t=0,e=n.length;e>t;t++)o=n[t],i.push(this.doSync(o));return i}.call(t));return s}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},o.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},o.prototype.sync=function(){return t.notSupported?this.doSync(this.element):void 0},o.prototype.doSync=function(t){var e,n,i,o,r;if(null==t&&(t=this.element),1===t.nodeType){for(t=t.parentNode||t,o=t.querySelectorAll("."+this.config.boxClass),r=[],n=0,i=o.length;i>n;n++)e=o[n],s.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),r.push(this.scrolled=!0)):r.push(void 0);return r}},o.prototype.show=function(t){return this.applyStyle(t)Line truncated
|
||||
/**
|
||||
* @module Owl carousel
|
||||
* @version 2.0.0
|
||||
* @author Bartosz Wojciechowski
|
||||
* @license The MIT License (MIT)
|
||||
*/
|
||||
!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this.drag=a.extend({},m),this.state=a.extend({},n),this.e=a.extend({},o),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a[0].toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Pipe,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}function f(a){if(a.touches!==d)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(a.touches===d){if(a.pageX!==d)return{x:a.pageX,y:a.pageY};if(a.pageX===d)return{x:a.clientX,y:a.clientY}}}function g(a){var b,d,e=c.createElement("div"),f=a;for(b in f)if(d=f[b],"undefined"!=typeof e.style[d])return e=null,[d,b];return[!1]}function h(){return g(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function i(){return g(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function j(){return g(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function k(){return"ontouchstart"in b||!!navigator.msMaxTouchPoints}function l(){return b.navigator.msPointerEnabled}var m,n,o;m={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},n={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},o={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},e.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Plugins={},e.Pipe=[{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var a=this._clones,b=this.$stage.children(".cloned");(b.length!==a.length||!this.settings.loop&&a.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var a,b,c=this._clones,d=this._items,e=this.settings.loop?c.length-Math.max(2*this.settings.items,4):0;for(a=0,b=Math.abs(e/2);b>a;a++)e>0?(this.$stage.children().eq(d.length+c.length-1).remove(),c.pop(),this.$stage.children().eq(0).remove(),c.pop()):(c.push(c.length/2),this.$stage.append(d[c[c.length-1]].clone().addClass("cloned")),c.push(d.length-1-(c.length-1)/2),this.$stage.prepend(d[c[c.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var a,b,c,d=this.settings.rtl?1:-1,e=(this.width()/this.settings.items).toFixed(3),f=0;for(this._coordinates=[],b=0,c=this._clones.length+this._items.length;c>b;b++)a=this._mergers[this.relative(b)],a=this.settings.mergeFit&&Math.min(a,this.settings.items)||a,f+=(this.settings.autoWidth?this._items[this.relative(b)].width()+this.settings.margin:e*a)*d,this._coordinates.push(f)}},{filter:["width","items","settings"],run:function(){var b,c,d=(this.width()/this.settings.items).toFixed(3),e={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(e),e={width:this.settings.autoWidth?"auto":d-this.settings.margin},e[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&a.grep(this._mergers,function(a){return a>1}).length>0)for(b=0,c=this._coordinates.length;c>b;b++)e.width=Math.abs(this._coordinates[b])-Math.abs(this._coordinates[b-1]||0)-this.settings.margin,this.$stage.children().eq(b).css(e);else this.$stage.children().css(e)}},{filter:["width","items","settings"],run:function(a){a.current&&this.reset(this.$stage.children().index(a.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;d>c;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$sLine truncated
|
||||
},this),"play.owl.autoplay":a.proxy(function(a,b,c){this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};d.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},d.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(b.clearInterval(this.interval),this.interval=b.setInterval(a.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):b.clearInterval(this.interval)},d.prototype.play=function(){return c.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void b.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},d.prototype.stop=function(){b.clearInterval(this.interval)},d.prototype.pause=function(){b.clearInterval(this.interval)},d.prototype.destroy=function(){var a,c;b.clearInterval(this.interval);for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=d}(window.Zepto||window.jQuery,window,document),function(a){"use strict";var b=function(c){this._core=c,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.push(a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.splice(b.position,0,a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":a.proxy(function(a){this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"change.owl.carousel":a.proxy(function(a){if("position"==a.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var b=this._core.current(),c=this._core.maximum(),d=this._core.minimum();a.data=a.property.value>c?b>=c?d:c:a.property.value<d?c:a.property.value}},this),"changed.owl.carousel":a.proxy(function(a){"position"==a.property.name&&this.draw()},this),"refreshed.owl.carousel":a.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this.$element.on(this._handlers)};b.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},b.prototype.initialize=function(){var b,c,d=this._core.settings;d.dotsData||(this._templates=[a("<div>").addClass(d.dotClass).append(a("<span>")).prop("outerHTML")]),d.navContainer&&d.dotsContainer||(this._controls.$container=a("<div>").addClass(d.controlsClass).appendTo(this.$element)),this._controls.$indicators=d.dotsContainer?a(d.dotsContainer):a("<div>").hide().addClass(d.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",a.proxy(function(b){var c=a(b.target).parent().is(this._controls.$indicators)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(c,d.dotsSpeed)},this)),b=d.navContainer?a(d.navContainer):a("<div>").addClass(d.navContainerClass).prependTo(this._controls.$container),this._controls.$next=a("<"+d.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(d.navClass[0]).html(d.navText[0]).hide().prependTo(b).on("click",a.proxy(function(){this.prev(d.navSpeed)},this)),this._controls.$next.addClass(d.navClass[1]).html(d.navText[1]).hide().appendTo(b).on("click",a.proxy(function(){this.next(d.navSpeed)},this));for(c in this._overrides)this._core[c]=a.proxy(this[c],this)},b.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},b.prototype.update=function(){var a,b,c,d=this._core.settings,e=this._core.clones().length/2,f=e+this._core.items().length,g=d.center||d.autoWidth||d.dotData?1:d.dotsEach||d.items;if("page"!==d.slideBy&&(d.slideBy=Math.min(d.slideBy,d.items)),d.dots||"paLine truncated
|
||||
/**
|
||||
* @module Isotope PACKAGED
|
||||
* @version v2.2.2
|
||||
* @license GPLv3
|
||||
* @see http://isotope.metafizzy.co
|
||||
*/
|
||||
!function(a){function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}function e(b,c){a.fn[b]=function(e){if("string"==typeof e){for(var g=d.call(arguments,1),h=0,i=this.length;i>h;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if(a instanceof RegExp)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:e.EventEmitter=a}.call(this),function(a){function b(a){if(a){if("string"==typeof d[a])return a;a=a.charAt(0).toUpperCase()+a.slice(1);for(var b,e=0,f=c.length;f>e;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),fuLine truncated
|
||||
c(d.prototype,b.prototype),d.prototype._getElementOffset=e,d.prototype.layout=f,d.prototype._getMeasurement=g;var h=d.prototype.measureColumns;d.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)};var i=d.prototype._manageStamp;return d.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,i.apply(this,arguments)},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("fitRows");return b.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},b.prototype._getContainerSize=function(){return{height:this.maxY}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("vertical",{horizontalAlignment:0});return b.prototype._resetLayout=function(){this.y=0},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},b.prototype._getContainerSize=function(){return{height:this.y}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(c,d,e,f,g,h){return b(a,c,d,e,f,g,h)}):"object"==typeof exports?module.exports=b(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=b(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,b,c,d,e,f,g){function h(a,b){return function(c,d){for(var e=0,f=a.length;f>e;e++){var g=a[e],h=c.sortData[g],i=d.sortData[g];if(h>i||i>h){var j=void 0!==b[g]?b[g]:b,k=j?1:-1;return(h>i?1:-1)*k}}return 0}}var i=a.jQuery,j=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},k=document.documentElement,l=k.textContent?function(a){return a.textContent}:function(a){return a.innerText},m=b.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});m.Item=f,m.LayoutMode=g,m.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),b.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var a in g.modes)this._initLayoutMode(a)},m.prototype.reloadItems=function(){this.itemGUID=0,b.prototype.reloadItems.call(this)},m.prototype._itemize=function(){for(var a=b.prototype._itemize.apply(this,arguments),c=0,d=a.length;d>c;c++){var e=a[c];e.id=this.itemGUID++}return this._updateItemsSortData(a),a},m.prototype._initLayoutMode=function(a){var b=g.modes[a],c=this.options[a]||{};this.options[a]=b.options?e.extend(b.options,c):c,this.modes[a]=new b(this)},m.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},m.prototype._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},m.prototype.arrange=function(a){function b(){d.reveal(c.needReveal),d.hide(c.needHide)}this.option(a),this._getIsInstant();var c=this._filter(this.items);this.filteredItems=c.matches;var d=this;this._bindArrangeComplete(),this._isInstant?this._noTransition(b):b(),this._sort(),this._layout()},m.prototype._init=m.prototype.arrange,m.prototype._getIsInstant=function(){var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=a,a},m.prototype._bindArrangeComplete=function(){function a(){b&&c&&d&&e.dispatchEvent("arrangeComplete",null,[e.filteredItems])}var b,c,d,e=this;this.once("layoutComplete",function(){b=!0,a()}),this.once("hideComplete",function(){c=!0,a()}),this.once("revealComplete",function(){d=!0,a()})},m.prototype._filter=function(a){var b=this.options.filter;b=b||"*";for(var c=[],d=[],e=[],f=this._getLine truncated
|
||||
/**
|
||||
* @module PhotoSwipe
|
||||
* @author Dmitry Semenov
|
||||
* @see http://photoswipe.com
|
||||
* @version 4.1.1
|
||||
*/
|
||||
!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipe=b()}(this,function(){"use strict";var a=function(a,b,c,d){var e={features:null,bind:function(a,b,c,d){var e=(d?"remove":"add")+"EventListener";b=b.split(" ");for(var f=0;f<b.length;f++)b[f]&&a[e](b[f],c,!1)},isArray:function(a){return a instanceof Array},createEl:function(a,b){var c=document.createElement(b||"div");return a&&(c.className=a),c},getScrollY:function(){var a=window.pageYOffset;return void 0!==a?a:document.documentElement.scrollTop},unbind:function(a,b,c){e.bind(a,b,c,!0)},removeClass:function(a,b){var c=new RegExp("(\\s|^)"+b+"(\\s|$)");a.className=a.className.replace(c," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(a,b){e.hasClass(a,b)||(a.className+=(a.className?" ":"")+b)},hasClass:function(a,b){return a.className&&new RegExp("(^|\\s)"+b+"(\\s|$)").test(a.className)},getChildByClass:function(a,b){for(var c=a.firstChild;c;){if(e.hasClass(c,b))return c;c=c.nextSibling}},arraySearch:function(a,b,c){for(var d=a.length;d--;)if(a[d][c]===b)return d;return-1},extend:function(a,b,c){for(var d in b)if(b.hasOwnProperty(d)){if(c&&a.hasOwnProperty(d))continue;a[d]=b[d]}},easing:{sine:{out:function(a){return Math.sin(a*(Math.PI/2))},inOut:function(a){return-(Math.cos(Math.PI*a)-1)/2}},cubic:{out:function(a){return--a*a*a+1}}},detectFeatures:function(){if(e.features)return e.features;var a=e.createEl(),b=a.style,c="",d={};if(d.oldIE=document.all&&!document.addEventListener,d.touch="ontouchstart"in window,window.requestAnimationFrame&&(d.raf=window.requestAnimationFrame,d.caf=window.cancelAnimationFrame),d.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!d.pointerEvent){var f=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var g=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);g&&g.length>0&&(g=parseInt(g[1],10),g>=1&&8>g&&(d.isOldIOSPhone=!0))}var h=f.match(/Android\s([0-9\.]*)/),i=h?h[1]:0;i=parseFloat(i),i>=1&&(4.4>i&&(d.isOldAndroid=!0),d.androidVersion=i),d.isMobileOpera=/opera mini|opera mobi/i.test(f)}for(var j,k,l=["transform","perspective","animationName"],m=["","webkit","Moz","ms","O"],n=0;4>n;n++){c=m[n];for(var o=0;3>o;o++)j=l[o],k=c+(c?j.charAt(0).toUpperCase()+j.slice(1):j),!d[j]&&k in b&&(d[j]=k);c&&!d.raf&&(c=c.toLowerCase(),d.raf=window[c+"RequestAnimationFrame"],d.raf&&(d.caf=window[c+"CancelAnimationFrame"]||window[c+"CancelRequestAnimationFrame"]))}if(!d.raf){var p=0;d.raf=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-p)),d=window.setTimeout(function(){a(b+c)},c);return p=b+c,d},d.caf=function(a){clearTimeout(a)}}return d.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,e.features=d,d}};e.detectFeatures(),e.features.oldIE&&(e.bind=function(a,b,c,d){b=b.split(" ");for(var e,f=(d?"detach":"attach")+"Event",g=function(){c.handleEvent.call(c)},h=0;h<b.length;h++)if(e=b[h])if("object"==typeof c&&c.handleEvent){if(d){if(!c["oldIE"+e])return!1}else c["oldIE"+e]=g;a[f]("on"+e,c["oldIE"+e])}else a[f]("on"+e,c)});var f=this,g=25,h=3,i={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(a){return"A"===a.tagName},getDoubleTapZoom:function(a,b){return a?1:b.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};e.extend(i,d);var j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la=function(){return{x:0,y:0}},ma=la(),na=la(),oa=la(),pa={},qa=0,ra={},sa=la(),ta=0,ua=!0,va=[],wa={},xa=!1,ya=function(a,b){e.extend(f,b.publicMethods),va.push(a)},za=function(a){var b=_b();return a>b-1?a-b:0>a?b+a:a},Aa={},Ba=function(a,b){return Aa[a]||(Aa[a]=[]),Aa[a].push(b)},Ca=function(a){var b=Aa[a];if(b){var c=Array.prototype.slice.call(arguments);c.shift();for(var d=0;d<b.length;d++)b[d].apply(f,c)}},Da=function(){return(new Date).getTime()},Ea=function(a){ia=a,f.bg.style.opacity=a*i.bgOpacity},Fa=function(a,b,c,d,e){(!xa||e&&e!==f.currItem)&&(d/=e?e.fitRatio:f.currItem.fitRatio),a[E]=u+b+"px, "+c+"px"+v+" scale("+d+")"},Ga=function(a){da&&(a&&(s>f.currItem.fitRatio?xa||(lc(f.currItem,!1,!0),xa=!0):xa&&(lc(f.currItem),xa=!1)),Fa(da,oa.x,oa.y,s))},Ha=function(a){a.container&&Fa(a.container.style,a.initialPosition.x,a.initialPosition.y,a.initialZoomLevel,a)},Ia=function(a,b){b[E]=u+a+"px, 0px"+v},Ja=function(a,b){if(!i.loop&&b){var c=m+(sa.x*qa-a)/sa.x,d=Math.round(a-sb.x);(0>c&&d>0||c>=_b()-1&&0>d)&&(a=sb.x+d*i.mainScrollEndFriction)}sb.x=a,Ia(a,n)},Ka=function(a,b){var c=tb[a]-ra[a];return na[a]+ma[a]+c-c*(b/t)},La=function(a,b){a.x=b.x,a.y=b.y,b.id&&(a.id=b.id)},Ma=function(a){a.x=Math.round(a.x),a.y=Math.round(a.y)},NaLine truncated
|
||||
/**
|
||||
* @module PhotoSwipe Default UI
|
||||
* @author Dmitry Semenov
|
||||
* @see http://photoswipe.com
|
||||
* @version 4.1.1
|
||||
*/
|
||||
!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipeUI_Default=b()}(this,function(){"use strict";var a=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=this,w=!1,x=!0,y=!0,z={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(a,b){return a.title?(b.children[0].innerHTML=a.title,!0):(b.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/dialog/share?app_id=871247336313831&href={{url}}&picture={{raw_image_url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){var b=a.currItem.src;if(!b.startsWith("http")){var c=this.getPageURLForShare();c=c.substr(0,c.lastIndexOf("/")),b=c+"/"+b}return b||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return a.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},A=function(a){if(r)return!0;a=a||window.event,q.timeToIdle&&q.mouseUsed&&!k&&K();for(var c,d,e=a.target||a.srcElement,f=e.getAttribute("class")||"",g=0;g<S.length;g++)c=S[g],c.onTap&&f.indexOf("pswp__"+c.name)>-1&&(c.onTap(),d=!0);if(d){a.stopPropagation&&a.stopPropagation(),r=!0;var h=b.features.isOldAndroid?600:30;s=setTimeout(function(){r=!1},h)}},B=function(){return!a.likelyTouchDevice||q.mouseUsed||screen.width>q.fitControlsWidth},C=function(a,c,d){b[(d?"add":"remove")+"Class"](a,"pswp__"+c)},D=function(){var a=1===q.getNumItemsFn();a!==p&&(C(d,"ui--one-slide",a),p=a)},E=function(){C(i,"share-modal--hidden",y)},F=function(){return y=!y,y?(b.removeClass(i,"pswp__share-modal--fade-in"),setTimeout(function(){y&&E()},300)):(E(),setTimeout(function(){y||b.addClass(i,"pswp__share-modal--fade-in")},30)),y||H(),!1},G=function(b){b=b||window.event;var c=b.target||b.srcElement;return a.shout("shareLinkClick",b,c),!!c.href&&(!!c.hasAttribute("download")||(window.open(c.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),y||F(),!1))},H=function(){for(var a,b,c,d,e,f="",g=0;g<q.shareButtons.length;g++)a=q.shareButtons[g],c=q.getImageURLForShare(a),d=q.getPageURLForShare(a),e=q.getTextForShare(a),b=a.url.replace("{{url}}",encodeURIComponent(d)).replace("{{image_url}}",encodeURIComponent(c)).replace("{{raw_image_url}}",c).replace("{{text}}",encodeURIComponent(e)),f+='<a href="'+b+'" target="_blank" class="pswp__share--'+a.id+'"'+(a.download?"download":"")+">"+a.label+"</a>",q.parseShareButtonOut&&(f=q.parseShareButtonOut(a,f));i.children[0].innerHTML=f,i.children[0].onclick=G},I=function(a){for(var c=0;c<q.closeElClasses.length;c++)if(b.hasClass(a,"pswp__"+q.closeElClasses[c]))return!0},J=0,K=function(){clearTimeout(u),J=0,k&&v.setIdle(!1)},L=function(a){a=a?a:window.event;var b=a.relatedTarget||a.toElement;b&&"HTML"!==b.nodeName||(clearTimeout(u),u=setTimeout(function(){v.setIdle(!0)},q.timeToIdleOutside))},M=function(){q.fullscreenEl&&!b.features.isOldAndroid&&(c||(c=v.getFullscreenAPI()),c?(b.bind(document,c.eventK,v.updateFullscreen),v.updateFullscreen(),b.addClass(a.template,"pswp--supports-fs")):b.removeClass(a.template,"pswp--supports-fs"))},N=function(){q.preloaderEl&&(O(!0),l("beforeChange",function(){clearTimeout(o),o=setTimeout(function(){a.currItem&&a.currItem.loading?(!a.allowProgressiveImg()||a.currItem.img&&!a.currItem.img.naturalWidth)&&O(!1):O(!0)},q.loadingIndicatorDelay)}),l("imageLoadComplete",function(b,c){a.currItem===c&&O(!0)}))},O=function(a){n!==a&&(C(m,"preloader--active",!a),n=a)},P=function(a){var c=a.vGap;if(B()){var g=q.barsSize;if(q.captionEl&&"auto"===g.bottom)if(f||(f=b.createEl("pswp__caption pswp__caption--fake"),f.appendChild(b.createEl("pswp__caption__center")),d.insertBefore(f,e),b.addClass(d,"pswp__ui--fit")),q.addCaptionHTMLFn(a,f,!0)){var h=f.clientHeight;c.bottom=parseInt(h,10)||44}else c.bottom=g.top;else c.bottom="auto"===g.bottom?0:g.bottom;c.top=g.top}else c.top=c.bottom=0},Q=function(){q.timeToIdle&&l("mouseUsed",function(){b.bind(document,"mousemove",K),b.bind(document,"mouseout",L),t=setInterval(function(){J++,2===J&&v.setIdle(!0)},q.timeToIdle/2)})},R=function(){l("onVerticalDrag",function(a){x&&.95>a?v.hideControls():!x&&a>=.95&&v.showControls()});var a;l("onPinchClose",function(b){x&&.9>b?(v.hideControls(),a=!0):a&&!x&&b>.9&&v.showControls()}),l("zoomGestureEnded",function(){a=!1,a&&!x&&v.showContLine truncated
|
||||
|
||||
/**
|
||||
* @module RD Navbar
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @version 2.1.7
|
||||
*/
|
||||
(function(){var t;t="ontouchstart"in window,function(o,e,n){var s;return s=function(){function s(t,s){this.options=o.extend(!1,{},this.Defaults,s),this.$element=o(t),this.$clone=null,this.$win=o(n),this.$doc=o(e),this.currentLayout=this.options.layout,this.loaded=!1,this.focusOnHover=this.options.focusOnHover,this.focusTimer=!1,this.cloneTimer=!1,this.isStuck=!1,this.initialize()}return s.prototype.Defaults={layout:"rd-navbar-static",deviceLayout:"rd-navbar-fixed",focusOnHover:!0,focusOnHoverTimeout:800,linkedElements:["html"],domAppend:!0,stickUp:!0,stickUpClone:!0,stickUpOffset:"100%",anchorNavSpeed:400,anchorNavOffset:0,anchorNavEasing:"swing",autoHeight:!0,responsive:{0:{layout:"rd-navbar-fixed",deviceLayout:"rd-navbar-fixed",focusOnHover:!1,stickUp:!1},992:{layout:"rd-navbar-static",deviceLayout:"rd-navbar-static",focusOnHover:!0,stickUp:!0}},callbacks:{onToggleSwitch:!1,onToggleClose:!1,onDomAppend:!1,onDropdownOver:!1,onDropdownOut:!1,onDropdownToggle:!1,onDropdownClose:!1,onStuck:!1,onUnstuck:!1,onAnchorChange:!1}},s.prototype.initialize=function(){var o;return o=this,o.$element.addClass("rd-navbar").addClass(o.options.layout),t&&o.$element.addClass("rd-navbar--is-touch"),o.setDataAPI(o),o.options.domAppend&&o.createNav(o),o.options.stickUpClone&&o.createClone(o),o.$element.addClass("rd-navbar-original"),o.addAdditionalClassToToggles(".rd-navbar-original","toggle-original","toggle-original-elements"),o.applyHandlers(o),o.offset=o.$element.offset().top,o.height=o.$element.outerHeight(),o.loaded=!0,o},s.prototype.resize=function(e,n){var s,a;return a=t?e.getOption("deviceLayout"):e.getOption("layout"),s=e.$element.add(e.$clone),a===e.currentLayout&&e.loaded||(e.switchClass(s,e.currentLayout,a),null!=e.options.linkedElements&&o.grep(e.options.linkedElements,function(t,o){return e.switchClass(t,e.currentLayout+"-linked",a+"-linked")}),e.currentLayout=a),e.focusOnHover=e.getOption("focusOnHover"),e},s.prototype.stickUp=function(t,e){var n,s,a,r,i;return s=t.getOption("stickUp"),n=t.$doc.scrollTop(),r=null!=t.$clone?t.$clone:t.$element,a=t.getOption("stickUpOffset"),i="string"==typeof a?a.indexOf("%")>0?parseFloat(a)*t.height/100:parseFloat(a):a,s?(n>=i&&!t.isStuck||i>n&&t.isStuck)&&(t.$element.add(t.$clone).find("[data-rd-navbar-toggle]").each(function(){o.proxy(t.closeToggle,this)(t,!1)}).end().find(".rd-navbar-submenu").removeClass("opened").removeClass("focus"),n>=i&&!t.isStuck&&!t.$element.hasClass("rd-navbar-fixed")?("resize"===e.type?t.switchClass(r,"","rd-navbar--is-stuck"):r.addClass("rd-navbar--is-stuck"),t.isStuck=!0,t.options.callbacks.onStuck&&t.options.callbacks.onStuck.call(t)):("resize"===e.type?t.switchClass(r,"rd-navbar--is-stuck",""):r.removeClass("rd-navbar--is-stuck").one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",o.proxy(t.resizeWrap,t,e)),t.isStuck=!1,t.options.callbacks.onUnstuck&&t.options.callbacks.onUnstuck.call(t))):t.isStuck&&(t.switchClass(r,"rd-navbar--is-stuck",""),t.isStuck=!1,t.resizeWrap(e)),t},s.prototype.resizeWrap=function(t){var o,e;return e=this,null!=e.$clone||e.isStuck?void 0:(o=e.$element.parent(),e.getOption("autoHeight")?(e.height=e.$element.outerHeight(),"resize"===t.type?(o.addClass("rd-navbar--no-transition").css("height",e.height),o[0].offsetHeight,o.removeClass("rd-navbar--no-transition")):o.css("height",e.height)):void o.css("height","auto"))},s.prototype.createNav=function(t){return t.$element.find(".rd-navbar-dropdown, .rd-navbar-megamenu").each(function(){var t,e;return t=o(this),e=this.getBoundingClientRect(),e.left+t.outerWidth()>=n.innerWidth-10?this.className+=" rd-navbar-open-left":e.left-t.outerWidth()<=10&&(this.className+=" rd-navbar-open-right"),t.hasClass("rd-navbar-megamenu")?t.parent().addClass("rd-navbar--has-megamenu"):t.parent().addClass("rd-navbar--has-dropdown")}).parents("li").addClass("rd-navbar-submenu").append(o("<span/>",{"class":"rd-navbar-submenu-toggle"})),t.options.callbacks.onDomAppend&&t.options.callbacks.onDomAppend.call(this),t},s.prototype.createClone=function(t){return t.$clone=t.$element.clone().insertAfter(t.$element).addClass("rd-navbar--is-clone"),t.addAdditionalClassToToggles(".rd-navbar--is-clone","toggle-cloned","toggle-cloned-elements"),t},s.prototype.closeToggle=function(t,e){var n,s,a,r,i,l,c;return s=o(e.target),i=!1,l=this.getAttribute("data-rd-navbar-toggle"),t.options.stickUpClone&&t.isStuck?(r=".toggle-cloned",a=".toggle-cloned-elements",c=!s.hasClass("toggle-cloned")):(r=".toggle-original",a=".toggle-original-elements",c=!s.hasClass("toggle-original")),e.target!==this&&!s.parents(r+"[data-rd-navbar-toggle]").length&&!s.parents(a).length&&l&&c&&(n=o(this).parents("body").find(l).add(o(this).parents(".rd-navbar")[0]),n.each(function(){return i?void 0:i=(e.target===this||o.contains(this,e.target))===!0}),i||(n.add(this).removeClass("active"),t.options.callbacks.onToggleClose&&t.options.callbacks.onToggleClose.call(this,t))),this},s.prototype.switchToggle=function(t,e){var n,s,a;returLine truncated
|
||||
|
||||
/**
|
||||
* @module jQuery RD Twitter Feed
|
||||
* @author Rafael Shayvolodyan (raffa)
|
||||
* @version 1.0.3
|
||||
*/
|
||||
(function(){!function(t,e,a){var i;return i=function(){function i(e,a){this.options=t.extend(!0,{},this.Defaults,a),this.$element=t(e),this.initialize()}return i.prototype.Defaults={username:"templatemonster",list:null,hashtag:null,hideReplies:!0,dateFormat:"%b/%d/%Y",apiPath:"bat/twitter_api/tweet.php",loadingText:"Loading...",localTemplate:{message:"This is sample tweet for local testing. Upload your project to the live hosting server for get data from twitter.com",serverMessage:"RD Twitter Feed: Please upload project to the server for enable plugin!",user_name:"TemplateMonster",date:"Fri Nov 06 11:20:43 +0000 2015",tweet:"Check Out NEW #Photographer Portfolio Responsive Photo - goo.gl/ECjPvq",avatar:"http://pbs.twimg.com/profile_images/611164752396419072/hJYLqLJR_normal.jpg",url:"https://twitter.com/templatemonster/status/660069673464160256",screen_name:"@templatemonster",media_url:["https://pbs.twimg.com/media/CS6HxzwUEAALx0y.jpg","http://pbs.twimg.com/media/CShUCIYUcAABb53.jpg"]},dateText:{seconds:"less 1m",minutes:"m",hours:"h",yesterday:"yd"},callback:!1},i.prototype.initialize=function(){var t;if(t=this.$element,this.options.list&&!this.options.username&&console.error("If you want to fetch tweets from a list, you must define the username of the list owner."),this.isLocal())t.prepend("<h6>"+this.options.localTemplate.message+"</h6>");else if(!this.isServer())return void t.prepend("<h6>"+this.options.localTemplate.serverMessage+"</h6>");t.append('<span id="loading_tweet">'+(t.attr("data-twitter-loading")?t.attr("data-twitter-loading"):this.options.loadingText+"</span>")),this.fetch()},i.prototype.linking=function(t,e){var a,i,r,n,s,o,l,d,p,h;if(p=t.replace(/#([a-zA-Z0-9_]+)/g,'<a href="https://twitter.com/search?q=%23$1&src=hash" target="_blank" title="Search for #$1">#$1</a>').replace(/@([a-zA-Z0-9_]+)/g,'<a href="https://twitter.com/$1" target="_blank" title="$1 on Twitter">@$1</a>'),l=t.match(/(https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w\/_\.]*(\?\S+)?)?)?)/gi),null!==l)for(i=0,n=l.length;n>i;i++){for(o=l[i],a=!1,d=e.entities.urls,r=0,s=d.length;s>r;r++)h=d[r],p=p.replace(o,'<a href="'+h.expanded_url+'" target="_blank">'+h.display_url+"</a> ");a||(p=p.replace(o,""))}return p},i.prototype.dating=function(t,e){var a,i,r,n,s,o,l,d,p,h;if(h=t.split(" "),t=new Date(Date.parse(h[1]+" "+h[2]+", "+h[5]+" "+h[3]+" UTC")),i=new Date,n=(i.getTime()-t.getTime())/1e3,p=["January","February","March","April","May","June","July","August","September","October","November","December"],a={"%d":t.getDate(),"%m":t.getMonth()+1,"%b":p[t.getMonth()].substr(0,3),"%B":p[t.getMonth()],"%y":String(t.getFullYear()).slice(-2),"%Y":t.getFullYear()},r=e?"%Y-%m-%d":this.$element.attr("data-twitter-date-format")?this.$element.attr("data-twitter-date-format"):this.options.dateFormat,60>n)return this.$element.attr("data-twitter-date-seconds")?this.$element.attr("data-twitter-date-seconds"):this.options.dateText.seconds;if(60>n/60)return Math.round(n/60)+(this.$element.attr("data-twitter-date-minutes")?this.$element.attr("data-twitter-date-minutes"):this.options.dateText.minutes);if(24>n/60/60)return Math.round(n/60/60)+(this.$element.attr("data-twitter-date-hours")?this.$element.attr("data-twitter-date-hours"):this.options.dateText.hours);if(2>n/60/60/24)return this.$element.attr("data-twitter-date-yesterday")?this.$element.attr("data-twitter-date-yesterday"):this.options.dateText.yesterday;for(o=r.match(/%[dmbByY]/g),l=0,d=o.length;d>l;l++)s=o[l],r=r.replace(s,a[s]);return r},i.prototype.isLocal=function(){var t,a,i,r;for(r=["127.0.0.1","192.168","localhost"],a=0,i=r.length;i>a;a++)if(t=r[a],e.location.hostname.indexOf(t)>-1)return!0;return!1},i.prototype.isServer=function(){var t;return t=a.location.href,t.indexOf("http://")>-1||t.indexOf("https://")>-1?!0:!1},i.prototype.getMedia=function(t){var e,a,i,r,n;if(!t.extended_entities)return t.entities&&t.entities.media?t.entities.media[0].media_url:null;if(t.extended_entities.media){for(r=[],n=t.extended_entities.media,a=0,i=n.length;i>a;a++)e=n[a],r.push(e.media_url);return r}},i.prototype.getTempData=function(t,e){var a,i,r,n,s,o,l,d,p;if(s=t.$element.find('[data-twitter-type="tweet"]').length,d=Array(),t.isLocal())for(i=r=0,o=s;o>=0?o>r:r>o;i=o>=0?++r:--r)a={user_name:t.options.localTemplate.user_name,date:t.dating(t.options.localTemplate.date,!1),datetime:t.dating(t.options.localTemplate.date,!0),tweet:t.linking(t.options.localTemplate.tweet),avatar:t.options.localTemplate.avatar,url:t.options.localTemplate.url,retweeted:!1,screen_name:t.linking(t.options.localTemplate.screen_name),media_url:t.options.localTemplate.media_url},d.push(a);else for(i=n=0,l=s;l>=0?l>n:n>l;i=l>=0?++n:--n){if(p=!1,e[i])p=e[i];else{if(!e.statuses||!e.statuses[i])break;p=e.statuses[i]}a={user_name:p.user.name,date:t.dating(p.created_at,!1),datetime:t.dating(p.created_at,!0),tweet:t.linking(p.text,p),avatar:p.user.profile_image_url,url:"https://twitter.com/"+p.user.screen_name+"/status/"+p.id_str,retweeted:p.rLine truncated
|
||||
/**
|
||||
* @module Custom Waypoints
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(t){var o=t("[data-waypoint-to]");o.length&&t(document).ready(function(){o.each(function(){var o=t(this);o.on("click",function(n){n.preventDefault(),t("body, html").stop().animate({scrollTop:t(o.attr("data-waypoint-to")).offset().top},800)})})})}(jQuery);
|
||||
/**
|
||||
* @module Text Rotator
|
||||
* @author Lukasz Lelek
|
||||
* @see http://ht2.pl/scripts/rotator/
|
||||
* @license MIT license
|
||||
* @version 0.2.1
|
||||
*/
|
||||
"function"!=typeof Object.create&&(Object.create=function(t){function a(){}return a.prototype=t,new a}),function(t,a,e){var i={init:function(e,i){var n=this;n.rotatelist=e,n.options=t.extend({},t.fn.rotator.options,i),n.options.textClass=e.attr("data-text-class")?e.attr("data-text-class"):"",n.options.enable=e.attr("data-enable")?parseInt(e.attr("data-enable")):0,n.options.words=e.attr("data-words")?e.attr("data-words").split(","):"",n.enable=!1,n.first=!0,n.item=new Array;for(var r=0,o=n.rotatelist.length;o>r;r++){n.item[r]=new Array,n.item[r].rotateElem=e,n.item[r].list=t("<span />",{"class":"rotate-list"});for(var s=0;s<n.options.words.length;s++)n.item[r].list.append("<span>"+n.options.words[s]+"</span>");n.item[r].rotateElem.append(n.item[r].list),n.item[r].terms=n.item[r].list.find("span"),n.item[r].animate=n.valid_anim(t(n.item[r].rotateElem).attr("data-rotate-animation").split(",")),n.item[r].area=n.item[r].rotateElem.find(".rotate-area").css({display:"inline-block"}).addClass(n.options.textClass),n.item[r].interval=n.valid_interval(n.item[r].rotateElem.attr("data-rotate-interval")),n.first&&n.item[r].area.html(n.item[0].terms.eq(0).html())}t(a).on("resize load",function(){this.innerWidth>=n.options.enable&&!n.enable?(n.enable=!0,n.rotatePlay(0)):this.innerWidth<n.options.enable&&(n.enable=!1,n.item[0].area.css("width","auto")),n.first=!1})},rotatePlay:function(t){var a=this,e=a.item[t];setTimeout(function(){var i=e.area.data("term")||0;e.area.data("term",i===e.terms.length-1?0:i+1).html(e.terms.eq([i]).html()),e.area.css("width",e.terms.eq([i]).outerWidth()+8+"px"),a.anim(e.area,e.animate[0]),setTimeout(function(){a.enable&&(a.anim(e.area,e.animate[1]),a.rotatePlay(t))},e.interval)},e.interval/4)},valid_anim:function(a){var e=this;return a?a:t("#"+e.options.interval).attr("data-rotate-animation").split(",")},valid_interval:function(t){var a=this;return isNaN(t)?a.options.interval:t},anim:function(t,a){var e=this;t.removeClass().addClass("rotate-area "+a+" "+e.options.animateClass+" "+e.options.textClass).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend")}};t.fn.rotator=function(a){var e=Object.create(i);e.init(this,a),t.data(this,"rotator",i)},t.fn.rotator.options={animateClass:"animated",interval:"3000",animate:"fadeInUp,fadeOutDown"}}(jQuery,window,document);
|
||||
/**
|
||||
* @module UIToTop
|
||||
* @author Matt Varone
|
||||
* @see http://www.mattvarone.com/web-design/uitotop-jquery-plugin/
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(o){o.fn.UItoTop=function(n){var e={text:"",min:500,scrollSpeed:800,containerID:"ui-to-top",containerClass:"ui-to-top fa fa-angle-up",easingType:"easeIn"},t=o.extend(e,n),i="#"+t.containerID;o("body").append('<a href="#" id="'+t.containerID+'" class="'+t.containerClass+'" >'+t.text+"</a>"),o(i).click(function(){return o("html, body").stop().animate({scrollTop:0},t.scrollSpeed,t.easingType),!1}),o(window).scroll(function(){var n=o(window).scrollTop();"undefined"==typeof document.body.style.maxHeight&&o(i).css({position:"absolute",top:o(window).scrollTop()+o(window).height()-50}),n>t.min?o(i).stop(!0,!0).addClass("active"):o(i).removeClass("active")})}}(jQuery);
|
||||
/**
|
||||
* @module ScrollTo
|
||||
* @license MIT License
|
||||
* @version 1.0.0
|
||||
*/
|
||||
!function(o){o.fn.scrollTo=function(e){function n(e){if(e.preventDefault(),a.hasClass("toTop"))return o("html, body").stop().animate({scrollTop:0},s.scrollSpeed),o(a).removeClass("toTop"),!1;for(var n=0;n<r.length;n++)if(window.scrollY<r[n].offsetTop+r[n].offsetHeight){var t=r[n+1].offsetTop;return t>o(document).height()-window.innerHeight&&!a.hasClass("toTop")&&a.addClass("toTop"),void 0===r[n+2]&&a.addClass("toTop"),o("html, body").stop().animate({scrollTop:t},s.scrollSpeed,function(){void 0===r[n+2]&&a.addClass("toTop")}),!1}return!1}var t={containerID:"scrollTo",containerHoverID:"scrollTopHover",scrollSpeed:1200,easingType:"linear"},s=o.extend(t,e),l=o(window),r=this;o("body").append('<a href="#" id="'+s.containerID+'" class="'+s.containerClass+'"></a>');var a=o("#"+s.containerID);a.hide().on("click",n),l.on("scroll",function(e){window.scrollY>window.innerHeight?o(a).fadeIn():o(a).fadeOut(),window.scrollY>r[r.length-1].offsetTop-1?a.addClass("toTop"):a.removeClass("toTop"),window.scrollY===o(document).height()-window.innerHeight&&a.addClass("toTop")})}}(jQuery);
|
||||
/**
|
||||
* @module RD Flickr Gallery
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.0
|
||||
*/
|
||||
(function(){(function(f,l,k){var h;h=function(){function d(a,c){this.options=f.extend(!0,{},this.Defaults,c);this.$element=f(a);this.initialize()}d.prototype.Defaults={flickrbase:"http://api.flickr.com/services/feeds/",feedapi:"photos_public.gne",qstrings:{ids:"",tags:"",tagmode:"",lang:"en-us",format:"json",jsoncallback:"?"},dateFormat:"%b/%d/%Y",cleanDescription:!0,callback:!1};d.prototype.initialize=function(){this.fetchData(this.makeUrl())};d.prototype.makeUrl=function(){var a,c,b,e;e=this.options.flickrbase+this.options.feedapi+"?";a=!0;b={ids:this.$element.attr("data-flickr-id")?this.$element.attr("data-flickr-id"):this.options.qstrings.ids,tags:this.$element.attr("data-flickr-tags")?this.$element.attr("data-flickr-tags"):this.options.qstrings.tags,tagmode:this.$element.attr("data-flickr-tagmode")?this.$element.attr("data-flickr-tagmode"):this.options.qstrings.tagmode,lang:this.$element.attr("data-flickr-lang")?this.$element.attr("data-flickr-lang"):this.options.qstrings.lang,format:"json",jsoncallback:"?"};for(c in b)b[c]&&(a||(e+="&"),e+=c+"="+b[c],a=!1);return e};d.prototype.fetchData=function(a){var c;c=this;return f.getJSON(a,function(a){f.each(a.items,function(a,b){a<c.$element.find('[data-type="flickr-item"]').length&&(c.options.cleanDescription&&c.cleanDescription(b),c.setImageSizes(b),b.author_name=c.getAuthor(b.author),b.dating=c.dating(b.date_taken,!1),b.datetime=c.dating(b.date_taken,!0),c.setHTML(b,a))});"function"===typeof c.options.callback&&c.options.callback()})};d.prototype.cleanDescription=function(a){var c,b;b=/<p>(.*?)<\/p>/g;c=a.description;b.test(c)&&(a.description=c.match(b)[2],null!=a.description&&(a.description=a.description.replace("<p>","").replace("</p>","")));return a};d.prototype.setImageSizes=function(a){var c,b,e,d;d="_s _q _t _m _n _- _z _c _b _h _k _o ".split(" ");c=0;for(b=d.length;c<b;c++)e=d[c],a["image"+e]=a.media.m.replace("_m",e);delete a.media;return a};d.prototype.getAuthor=function(a){a=/\(([^]+)\)/.exec(a);return null!=a[1]?a[1]:!1};d.prototype.dating=function(a,c){var b,e,d,g,f;b=new Date(Date.parse(a));e="January February March April May June July August September October November December".split(" ");b={"%d":b.getDate(),"%m":b.getMonth()+1,"%b":e[b.getMonth()].substr(0,3),"%B":e[b.getMonth()],"%y":String(b.getFullYear()).slice(-2),"%Y":b.getFullYear()};a=c?"%Y-%m-%d":this.$element.attr("data-flickr-date-format")?this.$element.attr("data-flickr-date-format"):this.options.dateFormat;d=a.match(/%[dmbByY]/g);g=0;for(f=d.length;g<f;g++)e=d[g],a=a.replace(e,b[e]);return a};d.prototype.setHTML=function(a,c){var b,e;e=this;b=this.$element.find('[data-type="flickr-item"]');e.parseAttributes(b.eq(c),a);b.eq(c).find("*").each(function(){e.parseAttributes(f(this),a)})};d.prototype.parseAttributes=function(a,c){var b,e,d,g,f,h;d=a.data();for(g in d)if(d.hasOwnProperty(g)&&"string"===typeof d[g])for(e=d[g].split(/\s?,\s?/i),f=0,h=e.length;f<h;f++)b=e[f],"text"===b.toLowerCase()?a.html(c[g]):a.attr(b,c[g])};return d}();f.fn.extend({RDFlickr:function(d){return this.each(function(){var a;a=f(this);if(!a.data("RDFlickr"))return a.data("RDFlickr",new h(this,d))})}});return k.RDFlickr=h})(window.jQuery,document,window);"undefined"!==typeof module&&null!==module?module.exports=window.RDFlickr:"function"===typeof define&&define.amd&&define(["jquery"],function(){return window.RDFlickr})}).call(this);
|
||||
/**
|
||||
* @module jquery-circle-progress
|
||||
* @author Rostyslav Bryzgunov
|
||||
* @see http://kottenator.github.io/jquery-circle-progress/
|
||||
* @version v1.1.3
|
||||
*/
|
||||
!function(i){function t(i){this.init(i)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){i.extend(this,t),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw()},initWidget:function(){var t=this.canvas=this.canvas||i("<canvas>").prependTo(this.el)[0];t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d")},initFill:function(){function t(){var t=i("<canvas>")[0];t.width=e.size,t.height=e.size,t.getContext("2d").drawImage(g,0,0,r,r),e.arcFill=e.ctx.createPattern(t,"no-repeat"),e.drawFrame(e.lastFrameValue)}var e=this,a=this.fill,n=this.ctx,r=this.size;if(!a)throw Error("The fill is not specified!");if(a.color&&(this.arcFill=a.color),a.gradient){var s=a.gradient;if(1==s.length)this.arcFill=s[0];else if(s.length>1){for(var l=a.gradientAngle||0,h=a.gradientDirection||[r/2*(1-Math.cos(l)),r/2*(1+Math.sin(l)),r/2*(1+Math.cos(l)),r/2*(1-Math.sin(l))],o=n.createLinearGradient.apply(n,h),c=0;c<s.length;c++){var d=s[c],u=c/(s.length-1);i.isArray(d)&&(u=d[1],d=d[0]),o.addColorStop(u,d)}this.arcFill=o}}if(a.image){var g;a.image instanceof Image?g=a.image:(g=new Image,g.src=a.image),g.complete?t():g.onload=t}},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(i){this.lastFrameValue=i,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(i),this.drawArc(i)},drawArc:function(i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;t.save(),t.beginPath(),this.reverse?t.arc(e,e,e-a/2,n-2*Math.PI*i,n):t.arc(e,e,e-a/2,n,n+2*Math.PI*i),t.lineWidth=a,t.lineCap=this.lineCap,t.strokeStyle=this.arcFill,t.stroke(),t.restore()},drawEmptyArc:function(i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;1>i&&(t.save(),t.beginPath(),0>=i?t.arc(e,e,e-a/2,0,2*Math.PI):this.reverse?t.arc(e,e,e-a/2,n,n-2*Math.PI*i):t.arc(e,e,e-a/2,n+2*Math.PI*i,n),t.lineWidth=a,t.strokeStyle=this.emptyFill,t.stroke(),t.restore())},drawAnimated:function(t){var e=this,a=this.el,n=i(this.canvas);n.stop(!0,!1),a.trigger("circle-animation-start"),n.css({animationProgress:0}).animate({animationProgress:1},i.extend({},this.animation,{step:function(i){var n=e.animationStartValue*(1-i)+t*i;e.drawFrame(n),a.trigger("circle-animation-progress",[i,n])}})).promise().always(function(){a.trigger("circle-animation-end")})},getThickness:function(){return i.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(i){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=i,this.draw()}},i.circleProgress={defaults:t.prototype},i.easing.circleProgressEasing=function(i,t,e,a,n){return(t/=n/2)<1?a/2*t*t*t+e:a/2*((t-=2)*t*t+2)+e},i.fn.circleProgress=function(e,a){var n="circle-progress",r=this.data(n);if("widget"==e){if(!r)throw Error('Calling "widget" method on not initialized instance is forbidden');return r.canvas}if("value"==e){if(!r)throw Error('Calling "value" method on not initialized instance is forbidden');if("undefined"==typeof a)return r.getValue();var s=arguments[1];return this.each(function(){i(this).data(n).setValue(s)})}return this.each(function(){var a=i(this),r=a.data(n),s=i.isPlainObject(e)?e:{};if(r)r.init(s);else{var l=i.extend({},a.data());"string"==typeof l.fill&&(l.fill=JSON.parse(l.fill)),"string"==typeof l.animation&&(l.animation=JSON.parse(l.animation)),s=i.extend(l,s),s.el=a,r=new t(s),a.data(n,r)}})}}(jQuery);
|
||||
/**
|
||||
* @module RDMaterialTabs
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.3
|
||||
*/
|
||||
(function(){(function(e,m,h){var l,n,p,f;n=(p=-1!==navigator.appVersion.indexOf("MSIE"))?parseInt(navigator.appVersion.split("MSIE")[1]):null;f="ontouchstart"in h;l=function(){function d(a,b){this.options=e.extend(!0,{},this.Defaults,b);this.$element=e(a);this.$list=this.$element.find(".rd-material-tabs__list");this.$content=this.$element.find(".rd-material-tabs__container");this.$win=e(h);this.$doc=e(m);this.activeIndex=0;this.settings={stageClass:"rd-material-tabs__stage",stageOuterClass:"rd-material-tabs__stage-outer", itemClass:"rd-material-tab"};this.state={isTouched:!1,isDragged:!1,isSwiping:!1};this.touches={prevX:null,list:!1};this.initialize()}d.prototype.Defaults={itemSelector:"div",margin:20,marginContent:0,items:3,touchRatio:1,speed:500,easing:"cubic-bezier(0.005, 0.300, 0.200, 1.000)",stagePadding:0,dragContent:!0,dragList:!0,responsive:null,callbacks:{onDragStart:!1,onDragEnd:!1,onChangeStart:!1,onChangeEnd:!1,onBeforeInit:!1,onInit:!1}};d.prototype.initialize=function(){this.options.callbacks.onBeforeInit&& this.options.callbacks.onBeforeInit.call(this,this);this.setVendor(this);this.createDOM(this);this.initHandlers(this);f||this.canMoveCursor();this.setWidth(this,!0);this.setWidth(this,!1);this.moveTo(this.activeIndex);this.options.callbacks.onInit&&this.options.callbacks.onInit.call(this,this)};d.prototype.createDOM=function(a){var b;a.$content.find(">"+a.options.itemSelector).addClass(a.settings.itemClass);b=a.transform(a,0);a.$content.wrapInner(e("<div/>",{"class":a.settings.stageClass,style:a.vendorName+ "transform:"+b[a.vendorName+"transform"]})).wrapInner(e("<div/>",{"class":a.settings.stageOuterClass}));a.$list.find("li").addClass(a.settings.itemClass);return a.$list.wrapInner(e("<div/>",{"class":a.settings.stageClass,style:a.vendorName+"transform:"+b[a.vendorName+"transform"]})).wrapInner(e("<div/>",{"class":a.settings.stageOuterClass}))};d.prototype.setWidth=function(a,b){var c,k,d,e,f,g;b?(g=a.$list.find("."+a.settings.stageClass),f=a.getOption("stagePadding"),0<f&&a.getOption("dragList")&& g.css({"padding-left":f,"padding-right":f}),c=a.getWidth(a,a.$list.find("."+a.settings.stageOuterClass)),e=a.getOption("margin"),d=(c-a.getOption("items")*e)/a.getOption("items")):(g=a.$content.find("."+a.settings.stageClass),f=0,d=a.getWidth(a,a.$content.find("."+a.settings.stageOuterClass)),e=a.getOption("marginContent"));k=g.find("."+a.settings.itemClass);b&&!a.getOption("dragList")?(a.setListTranslate(a,0),g.css({"padding-left":0,"padding-right":0,width:"auto"}),k.removeAttr("style")):(c=k.length, k.css({width:a.px(d),"margin-right":a.px(e)}),g[0].style.width=a.px((d+e)*c+e+f))};d.prototype.resize=function(a){a.setWidth(a,!0);a.setWidth(a,!1);return setTimeout(function(){return a.moveTo(a.activeIndex)},300)};d.prototype.initHandlers=function(a){a.$win.on("resize",e.proxy(a.resize,this,a));if(f)a.$element.on("touchstart.rd.mt",e.proxy(a.onTouchStart,this,a));else a.$element.on("mousedown.rd.mt",e.proxy(a.onTouchStart,this,a)),a.$element.on("mouseleave.rd.mt",e.proxy(a.onTouchEnd,this,a))};d.prototype.onTouchEnd= function(a,b){var c,d;if(a.state.isTouched){a.$doc.off(".rd.mt");a.changing=!1;b.originalEvent&&(b=b.originalEvent);a.state.isTrigerred=!1;if(a.state.isDragged)if(f||a.$element.removeClass("rd-material-tabs-grab"),e(a.touches.targetEl).one("click.rd.mt",function(){return!1}),a.touches.endTime=Date.now(),d=a.touches.endTime-a.touches.startTime,a.touches.prevX=null,a.state.isDragged=!1,a.touches.list&&a.getOption("dragList"))c=a.state.isSwiping?20<d?a.touches.diff/(d/200):a.touches.diff:100<d?a.touches.diff/ (d /1E3):d/15*a.touches.diff,a.touches.velocity=0,a.touches.velocity=c/(d/50)*a.getOption("touchRatio"),0!==a.touches.velocity&&(a.setListTransition(a,a.options.speed),c=a.getListTranslate(a)+a.touches.velocity,0<c?c=0:c<a.getMaxTranslate(a,a.$list)&&(c=a.getMaxTranslate(a,a.$list)),a.setListTranslate(a,c));else{if(!a.touches.list&&a.getOption("dragContent")){a.setContentTransition(a,a.options.speed);a.setListTransition(a,a.options.speed);if("left"===a.touches.direction&&0===a.activeIndex||"right"=== a.touches.direction&&a.activeIndex===a.$content.find("."+a.settings.itemClass).length-1){a.moveTo(a.activeIndex);return}c=a.activeIndex;a.state.isSwiping?"left"===a.touches.direction?c=a.activeIndex-1:"right"===a.touches.direction&&(c=a.activeIndex+1):Math.abs(a.touches.diff)>a.getContentItemWidth(a)/3&&("left"===a.touches.direction?c=a.activeIndex-1:"right"===a.touches.direction&&(c=a.activeIndex+1));a.moveTo(c)}}else!a.state.isDragged&&a.touches.list&&(c=e(b.target),"A"===b.target.tagName||c.parents("."+ a.settings.itemClass+" a").length)&&(a.setContentTransition(a,a.options.speed),a.setListTransition(a,a.options.speed),c=c.parents("."+a.settings.itemClass).index(),a.moveTo(c));a.state.isTouched=!1;a.options.callbacks.onDragEnd&&a.options.callbacks.onDragEnd.call(this,a)}};d.prototype.onDrag=function(a,b){var c,d,e;if(a.state.isTouched){b.originalEvent&&(b=b.originalEvent);a.touchesLine truncated
|
||||
/**
|
||||
* @module Easy Responsive Tabs Plugin
|
||||
* @author Samson.Onna (samson3d@gmail.com)
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(t){t.fn.extend({easyResponsiveTabs:function(a){var e={type:"default",width:"auto",fit:!0,closed:!1,activate:function(){}},a=t.extend(e,a),s=a,i=s.type,n=s.fit,r=s.width,c="vertical",o="accordion",d=window.location.hash,l=!(!window.history||!history.replaceState);t(this).bind("tabactivate",function(t,e){"function"==typeof a.activate&&a.activate.call(e,t)}),this.each(function(){function e(){i==c&&s.addClass("resp-vtabs"),1==n&&s.css({width:"100%"}),i==o&&(s.addClass("resp-easy-accordion"),s.find(".resp-tabs-list").css("display","none"))}var s=t(this),p=s.find("ul.resp-tabs-list"),b=s.attr("id");s.find("ul.resp-tabs-list li").addClass("resp-tab-item"),s.css({display:"block",width:r}),s.find(".resp-tabs-container > div").addClass("resp-tab-content"),e();var v;s.find(".resp-tab-content").before("<div class='resp-accordion' role='tab'><span class='resp-arrow'></span></div>");var f=0;s.find(".resp-accordion").each(function(){v=t(this);var a=s.find(".resp-tab-item:eq("+f+")"),e=s.find(".resp-accordion:eq("+f+")");e.append(a.html()),e.data(a.data()),v.attr("aria-controls","tab_item-"+f),f++});var h,u=0;s.find(".resp-tab-item").each(function(){$tabItem=t(this),$tabItem.attr("aria-controls","tab_item-"+u),$tabItem.attr("role","tab");var a=0;s.find(".resp-tab-content").each(function(){h=t(this),h.attr("aria-labelledby","tab_item-"+a),a++}),u++});var C=0;if(""!=d){var m=d.match(new RegExp(b+"([0-9]+)"));null!==m&&2===m.length&&(C=parseInt(m[1],10)-1,C>u&&(C=0))}t(s.find(".resp-tab-item")[C]).addClass("resp-tab-active"),a.closed===!0||"accordion"===a.closed&&!p.is(":visible")||"tabs"===a.closed&&p.is(":visible")?t(s.find(".resp-tab-content")[C]).addClass("resp-tab-content-active resp-accordion-closed"):(t(s.find(".resp-accordion")[C]).addClass("resp-tab-active"),t(s.find(".resp-tab-content")[C]).addClass("resp-tab-content-active").attr("style","display:block")),s.find("[role=tab]").each(function(){var a=t(this);a.click(function(){var a=t(this),e=a.attr("aria-controls");if(a.hasClass("resp-accordion")&&a.hasClass("resp-tab-active"))return s.find(".resp-tab-content-active").slideUp("",function(){t(this).addClass("resp-accordion-closed")}),a.removeClass("resp-tab-active"),!1;if(!a.hasClass("resp-tab-active")&&a.hasClass("resp-accordion")?(s.find(".resp-tab-active").removeClass("resp-tab-active"),s.find(".resp-tab-content-active").slideUp().removeClass("resp-tab-content-active resp-accordion-closed"),s.find("[aria-controls="+e+"]").addClass("resp-tab-active"),s.find(".resp-tab-content[aria-labelledby = "+e+"]").slideDown().addClass("resp-tab-content-active")):(s.find(".resp-tab-active").removeClass("resp-tab-active"),s.find(".resp-tab-content-active").removeAttr("style").removeClass("resp-tab-content-active").removeClass("resp-accordion-closed"),s.find("[aria-controls="+e+"]").addClass("resp-tab-active"),s.find(".resp-tab-content[aria-labelledby = "+e+"]").addClass("resp-tab-content-active").attr("style","display:block")),a.trigger("tabactivate",a),t(window).trigger("lookup.unveil"),l){var i=window.location.hash,n=b+(parseInt(e.substring(9),10)+1).toString();if(""!=i){var r=new RegExp(b+"[0-9]+");n=null!=i.match(r)?i.replace(r,n):i+"|"+n}else n="#"+n;history.replaceState(null,null,n)}})}),t(window).resize(function(){s.find(".resp-accordion-closed").removeAttr("style")})})}})}(jQuery);
|
||||
/**
|
||||
* Bootstrap v3.3.6 (http://getbootstrap.com)
|
||||
* Copyright 2011-2015 Twitter, Inc.
|
||||
* Licensed under the MIT license
|
||||
*/
|
||||
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b|Line truncated
|
||||
d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
|
||||
/**
|
||||
* @module RDInputLabel
|
||||
* @author Evgeniy Gusarov
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(){!function(t,e,i){var s,n;return n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isWebkit=/safari|chrome/i.test(navigator.userAgent),s=function(){function s(s,n){this.options=t.extend(!0,{},this.Defaults,n),this.$element=t(s).addClass("rd-input-label"),this.$target=t("#"+this.$element.attr("for")),this.$win=t(i),this.$doc=t(e),this.initialize()}return s.prototype.Defaults={callbacks:null},s.prototype.initialize=function(){return this.$target.on("input",t.proxy(this.change,this)).on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("hover",t.proxy(this.hover,this)).parents("form").on("reset",t.proxy(this.reset,this)),this.change(),this.hover(),this},s.prototype.hover=function(){return isWebkit&&(this.$target.is(":-webkit-autofill")?this.$element.addClass("auto-fill"):this.$element.removeClass("auto-fill")),this},s.prototype.change=function(){return isWebkit&&(this.$target.is(":-webkit-autofill")?this.$element.addClass("auto-fill"):this.$element.removeClass("auto-fill")),""!==this.$target.val()?(this.$element.hasClass("focus")||this.focus(),this.$element.addClass("not-empty")):this.$element.removeClass("not-empty"),this},s.prototype.focus=function(){return this.$element.addClass("focus"),this},s.prototype.reset=function(){return setTimeout(t.proxy(this.blur,this)),this},s.prototype.blur=function(t){return""===this.$target.val()&&this.$element.removeClass("focus").removeClass("not-empty"),this},s}(),t.fn.extend({RDInputLabel:function(e){return this.each(function(){var i;return i=t(this),i.data("RDInputLabel")?void 0:i.data("RDInputLabel",new s(this,e))})}}),i.RDInputLabel=s}(window.jQuery,document,window),"undefined"!=typeof module&&null!==module?module.exports=window.RDInputLabel:"function"==typeof define&&define.amd&&define(["jquery"],function(){"use strict";return window.RDInputLabel})}).call(this);
|
||||
/**
|
||||
* @module Select2
|
||||
* @version 4.0.2
|
||||
* @license MIT License
|
||||
* @link https://github.com/select2/select2/blob/master/
|
||||
*/
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.slice(0,n.length-1).concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=v.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),n.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice;this.listeners=this.listeners||{},a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(Line truncated
|
||||
c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&""!==a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(Line truncated
|
||||
/**
|
||||
* @module RD-Google Map
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @version 0.1.5
|
||||
*/
|
||||
!function(a){"use strict";var t={cntClass:"map",mapClass:"map_model",locationsClass:"map_locations",marker:{basic:"images/gmap_marker.png",active:"images/gmap_marker_active.png"},styles:[],onInit:!1},o={map:{x:-73.9924068,y:40.646197,zoom:14},locations:[]},n=function(t,o){var n=t.parent().find("."+o.locationsClass).find("li"),e=[];return n.length>0&&n.each(function(t){var n=a(this);n.data("x")&&n.data("y")&&(e[t]={x:n.data("x"),y:n.data("y"),basic:n.data("basic")?n.data("basic"):o.marker.basic,active:n.data("active")?n.data("active"):o.marker.active},a.trim(n.html())?e[t].content='<div class="iw-content">'+n.html()+"</div>":e[t].content=!1)}),e};a.fn.googleMap=function(e){e=a.extend(!0,{},t,e),a(this).each(function(){var t=a(this),s=a.extend(!0,{},o,{map:{x:t.data("x"),y:t.data("y"),zoom:t.data("zoom")},locations:n(t,e)}),i=new google.maps.Map(this,{center:new google.maps.LatLng(parseFloat(s.map.y),parseFloat(s.map.x)),styles:e.styles,zoom:s.map.zoom,scrollwheel:!1});e.onInit&&e.onInit.call(this,i);var c=new google.maps.InfoWindow,l=[];for(var r in s.locations)l[r]=new google.maps.Marker({position:new google.maps.LatLng(parseFloat(s.locations[r].y),parseFloat(s.locations[r].x)),map:i,icon:s.locations[r].basic,index:r}),s.locations[r].content&&(google.maps.event.addListener(l[r],"click",function(){for(var t in l)l[t].setIcon(s.locations[t].basic);c.setContent(s.locations[this.index].content),c.open(i,this),a(".gm-style-iw").parent().parent().addClass("gm-wrapper"),this.setIcon(s.locations[this.index].active)}),google.maps.event.addListener(c,"closeclick",function(){for(var a in l)l[a].setIcon(s.locations[a].basic)}));google.maps.event.addDomListener(window,"resize",function(){i.setCenter(new google.maps.LatLng(parseFloat(s.map.y),parseFloat(s.map.x)))})})}}(jQuery);
|
||||
/**
|
||||
* @module Stepper
|
||||
* @version 3.0.8
|
||||
* @license MIT License
|
||||
* @link http://classic.formstone.it/stepper/
|
||||
*/
|
||||
!function(a,b){"use strict";function c(b){b=a.extend({},m,b||{});for(var c=a(this),e=0,f=c.length;f>e;e++)d(c.eq(e),b);return c}function d(b,c){if(!b.hasClass("stepper-input")){c=a.extend({},c,b.data("stepper-options"));var d=parseFloat(b.attr("min")),g=parseFloat(b.attr("max")),h=parseFloat(b.attr("step"))||1;b.addClass("stepper-input").wrap('<div class="stepper '+c.customClass+'" />').after('<span class="stepper-arrow up">'+c.labels.up+'</span><span class="stepper-arrow down">'+c.labels.down+"</span>");var i=b.parent(".stepper"),j=a.extend({$stepper:i,$input:b,$arrow:i.find(".stepper-arrow"),min:void 0===typeof d||isNaN(d)?!1:d,max:void 0===typeof g||isNaN(g)?!1:g,step:void 0===typeof h||isNaN(h)?1:h,timer:null},c);j.digits=k(j.step),b.is(":disabled")&&i.addClass("disabled"),i.on("keypress",".stepper-input",j,e),i.on("touchstart.stepper mousedown.stepper",".stepper-arrow",j,f).data("stepper",j)}}function e(a){var b=a.data;(38===a.keyCode||40===a.keyCode)&&(a.preventDefault(),h(b,38===a.keyCode?b.step:-b.step))}function f(b){b.preventDefault(),b.stopPropagation(),g(b);var c=b.data;if(!c.$input.is(":disabled")&&!c.$stepper.hasClass("disabled")){var d=a(b.target).hasClass("up")?c.step:-c.step;c.timer=i(c.timer,125,function(){h(c,d,!1)}),h(c,d),a("body").on("touchend.stepper mouseup.stepper",c,g)}}function g(b){b.preventDefault(),b.stopPropagation();var c=b.data;j(c.timer),a("body").off(".stepper")}function h(a,b){var c=parseFloat(a.$input.val()),d=b;void 0===typeof c||isNaN(c)?d=a.min!==!1?a.min:0:a.min!==!1&&c<a.min?d=a.min:d+=c;var e=(d-a.min)%a.step;0!==e&&(d-=e),a.min!==!1&&d<a.min&&(d=a.min),a.max!==!1&&d>a.max&&(d-=a.step),d!==c&&(d=l(d,a.digits),a.$input.val(d).trigger("change"))}function i(a,b,c){return j(a),setInterval(c,b)}function j(a){a&&(clearInterval(a),a=null)}function k(a){var b=String(a);return b.indexOf(".")>-1?b.length-b.indexOf(".")-1:0}function l(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c}var m={customClass:"",labels:{up:"Up",down:"Down"}},n={defaults:function(b){return m=a.extend(m,b||{}),"object"==typeof this?a(this):!0},destroy:function(){return a(this).each(function(b){var c=a(this).data("stepper");c&&(c.$stepper.off(".stepper").find(".stepper-arrow").remove(),c.$input.unwrap().removeClass("stepper-input"))})},disable:function(){return a(this).each(function(b){var c=a(this).data("stepper");c&&(c.$input.attr("disabled","disabled"),c.$stepper.addClass("disabled"))})},enable:function(){return a(this).each(function(b){var c=a(this).data("stepper");c&&(c.$input.attr("disabled",null),c.$stepper.removeClass("disabled"))})}};a.fn.stepper=function(a){return n[a]?n[a].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof a&&a?this:c.apply(this,arguments)},a.stepper=function(a){"defaults"===a&&n.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,this);
|
||||
/**
|
||||
* @module Abstract base class for collection plugins v1.0.1.
|
||||
* @author Keith Wood
|
||||
* @see http://keith-wood.name/countdown.html
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(){var j=false;window.JQClass=function(){};JQClass.classes={};JQClass.extend=function extender(f){var g=this.prototype;j=true;var h=new this();j=false;for(var i in f){h[i]=typeof f[i]=='function'&&typeof g[i]=='function'?(function(d,e){return function(){var b=this._super;this._super=function(a){return g[d].apply(this,a||[])};var c=e.apply(this,arguments);this._super=b;return c}})(i,f[i]):f[i]}function JQClass(){if(!j&&this._init){this._init.apply(this,arguments)}}JQClass.prototype=h;JQClass.prototype.constructor=JQClass;JQClass.extend=extender;return JQClass}})();(function($){JQClass.classes.JQPlugin=JQClass.extend({name:'plugin',defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return'is-'+this.name},_init:function(){$.extend(this.defaultOptions,(this.regionalOptions&&this.regionalOptions[''])||{});var c=camelCase(this.name);$[c]=this;$.fn[c]=function(a){var b=Array.prototype.slice.call(arguments,1);if($[c]._isNotChained(a,b)){return $[c][a].apply($[c],[this[0]].concat(b))}return this.each(function(){if(typeof a==='string'){if(a[0]==='_'||!$[c][a]){throw'Unknown method: '+a;}$[c][a].apply($[c],[this].concat(b))}else{$[c]._attach(this,a)}})}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_isNotChained:function(a,b){if(a==='option'&&(b.length===0||(b.length===1&&typeof b[0]==='string'))){return true}return $.inArray(a,this._getters)>-1},_attach:function(a,b){a=$(a);if(a.hasClass(this._getMarker())){return}a.addClass(this._getMarker());b=$.extend({},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c);this._postAttach(a,c);this.option(a,b)},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||'';f=f.replace(/'/g,'"');f=f.replace(/([a-zA-Z0-9]+):/g,function(a,b,i){var c=f.substring(0,i).match(/"/g);return(!c||c.length%2===0?'"'+b+'":':b+':')});f=$.parseJSON('{'+f+'}');for(var g in f){var h=f[g];if(typeof h==='string'&&h.match(/^new Date\((.*)\)$/)){f[g]=eval(h)}}return f}catch(e){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name);if(!b||(typeof b==='string'&&c==null)){var e=(d||{}).options;return(e&&b?e[b]:e)}if(!a.hasClass(this._getMarker())){return}var e=b||{};if(typeof b==='string'){e={};e[b]=c}this._optionsChanged(a,d,e);$.extend(d.options,e)},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a);if(!a.hasClass(this._getMarker())){return}this._preDestroy(a,this._getInst(a));a.removeData(this.name).removeClass(this._getMarker())},_preDestroy:function(a,b){}});function camelCase(c){return c.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}$.JQPlugin={createPlugin:function(a,b){if(typeof a==='object'){b=a;a='JQPlugin'}a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b);new JQClass.classes[c]()}}})(jQuery);
|
||||
/**
|
||||
* @module Countdown for jQuery v2.0.2.
|
||||
* @author Keith Wood
|
||||
* @see http://keith-wood.name/countdown.html
|
||||
* @license MIT License
|
||||
*/
|
||||
(function($){var w='countdown';var Y=0;var O=1;var W=2;var D=3;var H=4;var M=5;var S=6;$.JQPlugin.createPlugin({name:w,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:'dHMS',layout:'',compact:false,padZeroes:false,significant:0,description:'',expiryUrl:'',expiryText:'',alwaysExpire:false,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{'':{labels:['Years','Months','Weeks','Days','Hours','Minutes','Seconds'],labels1:['Year','Month','Week','Day','Hour','Minute','Second'],compactLabels:['y','m','w','d'],whichLabels:null,digits:['0','1','2','3','4','5','6','7','8','9'],timeSeparator:':',isRTL:false}},_getters:['getTimes'],_rtlClass:w+'-rtl',_sectionClass:w+'-section',_amountClass:w+'-amount',_periodClass:w+'-period',_rowClass:w+'-row',_holdingClass:w+'-holding',_showClass:w+'-show',_descrClass:w+'-descr',_timerElems:[],_init:function(){var c=this;this._super();this._serverSyncs=[];var d=(typeof Date.now=='function'?Date.now:function(){return new Date().getTime()});var e=(window.performance&&typeof window.performance.now=='function');function timerCallBack(a){var b=(a<1e12?(e?(performance.now()+performance.timing.navigationStart):d()):a||d());if(b-g>=1000){c._updateElems();g=b}f(timerCallBack)}var f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null;var g=0;if(!f||$.noRequestAnimationFrame){$.noRequestAnimationFrame=null;setInterval(function(){c._updateElems()},980)}else{g=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||d();f(timerCallBack)}},UTCDate:function(a,b,c,e,f,g,h,i){if(typeof b=='object'&&b.constructor==Date){i=b.getMilliseconds();h=b.getSeconds();g=b.getMinutes();f=b.getHours();e=b.getDate();c=b.getMonth();b=b.getFullYear()}var d=new Date();d.setUTCFullYear(b);d.setUTCDate(1);d.setUTCMonth(c||0);d.setUTCDate(e||1);d.setUTCHours(f||0);d.setUTCMinutes((g||0)-(Math.abs(a)<30?a*60:a));d.setUTCSeconds(h||0);d.setUTCMilliseconds(i||0);return d},periodsToSeconds:function(a){return a[0]*31557600+a[1]*2629800+a[2]*604800+a[3]*86400+a[4]*3600+a[5]*60+a[6]},resync:function(){var d=this;$('.'+this._getMarker()).each(function(){var a=$.data(this,d.name);if(a.options.serverSync){var b=null;for(var i=0;i<d._serverSyncs.length;i++){if(d._serverSyncs[i][0]==a.options.serverSync){b=d._serverSyncs[i];break}}if(b[2]==null){var c=($.isFunction(a.options.serverSync)?a.options.serverSync.apply(this,[]):null);b[2]=(c?new Date().getTime()-c.getTime():0)-b[1]}if(a._since){a._since.setMilliseconds(a._since.getMilliseconds()+b[2])}a._until.setMilliseconds(a._until.getMilliseconds()+b[2])}});for(var i=0;i<d._serverSyncs.length;i++){if(d._serverSyncs[i][2]!=null){d._serverSyncs[i][1]+=d._serverSyncs[i][2];delete d._serverSyncs[i][2]}}},_instSettings:function(a,b){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(a){if(!this._hasElem(a)){this._timerElems.push(a)}},_hasElem:function(a){return($.inArray(a,this._timerElems)>-1)},_removeElem:function(b){this._timerElems=$.map(this._timerElems,function(a){return(a==b?null:a)})},_updateElems:function(){for(var i=this._timerElems.length-1;i>=0;i--){this._updateCountdown(this._timerElems[i])}},_optionsChanged:function(a,b,c){if(c.layout){c.layout=c.layout.replace(/</g,'<').replace(/>/g,'>')}this._resetExtraLabels(b.options,c);var d=(b.options.timezone!=c.timezone);$.extend(b.options,c);this._adjustSettings(a,b,c.until!=null||c.since!=null||d);var e=new Date();if((b._since&&b._since<e)||(b._until&&b._until>e)){this._addElem(a[0])}this._updateCountdown(a,b)},_updateCountdown:function(a,b){a=a.jquery?a:$(a);b=b||this._getInst(a);if(!b){return}a.html(this._generateHTML(b)).toggleClass(this._rtlClass,b.options.isRTL);if($.isFunction(b.options.onTick)){var c=b._hold!='lap'?b._periods:this._calculatePeriods(b,b._show,b.options.significant,new Date());if(b.options.tickInterval==1||this.periodsToSeconds(c)%b.options.tickInterval==0){b.options.onTick.apply(a[0],[c])}}var d=b._hold!='pause'&&(b._since?b._now.getTime()<b._since.getTime():b._now.getTime()>=b._until.getTime());if(d&&!b._expiring){b._expiring=true;if(this._hasElem(a[0])||b.options.alwaysExpire){this._removeElem(a[0]);if($.isFunction(b.options.onExpiry)){b.options.onExpiry.apply(a[0],[])}if(b.options.expiryText){var e=b.options.layout;b.options.layout=b.options.expiryText;this._updateCountdown(a[0],b);b.options.layout=e}if(b.options.expiryUrl){window.location=b.options.expiryUrl}}b._expiring=false}else if(b._hold=='pause'){this._removeElem(a[0])}},_resetExtraLabels:function(a,b){for(var n in b){if(n.match(/[Ll]abels[02-9]|compactLabels1/)){a[n]=b[n]}}for(var n in a){if(n.match(/[Ll]abels[02-9]|compactLabels1/)&&typeof b[n]==='undefined'){a[n]=null}}},_adjustSettings:function(a,b,c){var d=null;for(var i=0;i<this._serverSyncs.length;i++){if(this._serverSyncs[i][0]==b.options.serverSynLine truncated
|
||||
/**
|
||||
* @module Stacktable
|
||||
* @author John Polacek
|
||||
* @see http://johnpolacek.github.com/stacktable.js
|
||||
* @license MIT & GPL license
|
||||
*/
|
||||
(function(a){a.fn.cardtable=function(b){var c=a.extend({},{id:"stacktable small-only",hideOriginal:!0,headIndex:0},b);headIndex=b&&b.headIndex?b.headIndex:0;return this.each(function(){$table=a(this);if(!$table.hasClass("stacktable")){var k=a(this).prop("class"),d=a("<div></div>");"undefined"!==typeof c.myClass&&d.addClass(c.myClass);var b="";$table.addClass("stacktable large-only");$caption=$table.find("caption").clone();$topRow=$table.find("tr").eq(0);$table.find("tbody tr").each(function(d,h){bodyMarkup= headMarkup="";tr_class=a(this).prop("class");a(this).find("td,th").each(function(b,c){""!==a(this).html()&&(bodyMarkup+='<tr class="'+tr_class+'">',bodyMarkup=$topRow.find("td,th").eq(b).html()?bodyMarkup+('<td class="st-key">'+$topRow.find("td,th").eq(b).html()+"</td>"):bodyMarkup+'<td class="st-key"></td>',bodyMarkup+='<td class="st-val '+a(this).prop("class")+'">'+a(this).html()+"</td>",bodyMarkup+="</tr>")});b+='<table class=" '+k+" "+c.id+'"><tbody>'+headMarkup+bodyMarkup+"</tbody></table>"}); $table.find("tfoot tr td").each(function(d,h){""!==a.trim(a(h).text())&&(b+='<table class="'+k+" "+c.id+'"><tbody><tr><td>'+a(h).html()+"</td></tr></tbody></table>")});d.prepend($caption);d.append(a(b));$table.before(d);c.hideOriginal||$table.show()}})};a.fn.stacktable=function(b){var c=a.extend({},{id:"stacktable small-only",hideOriginal:!0,headIndex:0},b);headIndex=b&&b.headIndex?b.headIndex:0;return this.each(function(){var b=a(this).prop("class"),b=a('<table class="'+b+" "+c.id+'"><tbody></tbody></table>'); "undefined"!==typeof c.myClass&&b.addClass(c.myClass);var d="";$table=a(this);$table.addClass("stacktable large-only");$caption=$table.find("caption").clone();$topRow=$table.find("tr").eq(0);$table.find("tr").each(function(b,c){bodyMarkup=headMarkup="";tr_class=a(this).prop("class");0===b?d+='<tr class="st-head-row-wrap '+tr_class+' "><th class="st-head-row st-head-row-main" colspan="2">'+a(this).find("th,td").eq(headIndex).html()+"</th></tr>":(a(this).find("td,th").each(function(b,c){b===headIndex?headMarkup='<tr class="st-head-row-wrap '+ tr_class+'"><th class="st-head-row" colspan="2">'+a(this).html()+"</th></tr>":""!==a(this).html()&&(bodyMarkup+='<tr class="'+tr_class+'">',bodyMarkup=$topRow.find("td,th").eq(b).html()?bodyMarkup+('<td class="st-key">'+$topRow.find("td,th").eq(b).html()+"</td>"):bodyMarkup+'<td class="st-key"></td>',bodyMarkup+='<td class="st-val '+a(this).prop("class")+'">'+a(this).html()+"</td>",bodyMarkup+="</tr>")}),d+=headMarkup+bodyMarkup)});b.prepend($caption);b.append(a(d));$table.before(b);c.hideOriginal|| $table.show()})};a.fn.stackcolumns=function(b){var c=a.extend({},{id:"stacktable small-only",hideOriginal:!0},b);return this.each(function(){$table=a(this);var b=$table.find("tr").eq(0).find("td,th").length;if(!(3>b)){var d=a('<table class="'+c.id+'"></table>');"undefined"!==typeof c.myClass&&d.addClass(c.myClass);$table.addClass("stacktable large-only");for(var l=a("<tbody></tbody>"),e=1;e<b;)$table.find("tr").each(function(b,c){var d=a("<tr></tr>");0===b&&d.addClass("st-head-row st-head-row-main"); first=a(this).find("td,th").eq(0).clone().addClass("st-key");var g=e;if(a(this).find("*[colspan]").length){var f=0;a(this).find("td,th").each(function(b,d){var c=a(this).attr("colspan");c?(c=parseInt(c,10),g-=c-1,f+c>e&&(g+=f+c-e-1),f+=c):f++;if(f>e)return!1})}second=a(this).find("td,th").eq(g).clone().addClass("st-val").removeAttr("colspan");d.append(first,second);l.append(d)}),++e;d.append(a(l));$table.before(d);c.hideOriginal||$table.show()}})}})(jQuery);
|
||||
/**
|
||||
* @module RD Calendar
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @version 1.0.0
|
||||
*/
|
||||
!function(e,t,a,n){"use strict";function s(t,a){this.options=e.extend({},s.Defaults,a),this.$element=e(t);var n=this.$element.find("."+this.options.classes.table).data("date");this.$element.data("currentDate",n?new Date(n):new Date),this.$element.data("todayDate",new Date),this.evt={},this._handlers={"rdc.next":this.next,"rdc.prev":this.prev,"rdc.refresh":e.proxy(this.refresh,this)},this.initialize()}s.Defaults={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],classes:{base:"rd-calendar",next:"rdc-next",prev:"rdc-prev",year:"rdc-fullyear",date:"rdc-date",day:"rdc-day",month:"rdc-month",time:"rdc-time",event:"rdc-event",events:"rdc-events",events_close:"rdc-events_close",table:"rdc-table",table_today:"rdc-table_today",table_event:"rdc-table_event",table_events:"rdc-table_events",table_has_events:"rdc-table_has-events",table_events_count:"rdc-table_events-count",table_day:"rdc-table_day",table_date:"rdc-table_date",table_next:"rdc-table_next",table_prev:"rdc-table_prev",today_date:"rdc-today_date",today_month:"rdc-today_month",today_year:"rdc-today_fullyear",today_day:"rdc-today_day"}},s.prototype.initialize=function(){this.$element.trigger("rdc.initialize"),this.read(),this.create(),this.watch(),this.$element.trigger("rdc.initialized")},s.prototype.create=function(){var t=this;t.$element.find("."+t.options.classes.today_date).each(function(){e(this).text(t.getTodayDate())}).end().find("."+t.options.classes.today_month).each(function(){e(this).text(t.getTodayMonth())}).end().find("."+t.options.classes.today_year).each(function(){e(this).text(t.getTodayYear())}).end().find("."+t.options.classes.today_day).each(function(){e(this).text(t.getTodayDay())}),t.refresh()},s.prototype.watch=function(){var t=this;t.$element.on(t._handlers).find("."+t.options.classes.next).on("click",function(){t.$element.trigger("rdc.next"),t.$element.trigger("rdc.refresh")}).end().find("."+t.options.classes.prev).on("click",function(){t.$element.trigger("rdc.prev"),t.$element.trigger("rdc.refresh")}).end().find("."+t.options.classes.events_close).on("click",function(){t.$element.removeClass("show-events"),t.$element.find("."+t.options.classes.event+", ."+t.options.classes.table_event).removeClass("active")}).end().delegate("."+t.options.classes.table_has_events,"click",function(){t.$element.find("."+t.options.classes.table_has_eventsm+", ."+t.options.classes.event).removeClass("active");var a=e(this).find("."+t.options.classes.table_date).data("date");for(var n in t.evt[a])t.evt[a][n].addClass("active");e(this).addClass("active"),t.$element.addClass("show-events")})},s.prototype.read=function(){var t=this.options,a=this;this.$element.find("."+t.classes.event).each(function(){var t=e(this),n=new Date(t.data("date")).valueOf();n in a.evt||(a.evt[n]=[]),a.evt[n].push(t)})},s.prototype.next=function(){var t=e(this),a=t.data("currentDate");a=11==a.getMonth()?new Date(a.getFullYear()+1,0,1):new Date(a.getFullYear(),a.getMonth()+1,1),t.data("currentDate",a)},s.prototype.prev=function(){var t=e(this),a=t.data("currentDate");a=0==a.getMonth()?new Date(a.getFullYear()-1,11,1):new Date(a.getFullYear(),a.getMonth()-1,1),t.data("currentDate",a)},s.prototype.getTodayYear=function(){return this.$element.data("todayDate").getFullYear()},s.prototype.getTodayDay=function(){return this.options.days[this.$element.data("todayDate").getDay()]},s.prototype.getTodayDate=function(){return this.$element.data("todayDate").getDate()},s.prototype.getTodayMonth=function(){return this.options.months[this.$element.data("todayDate").getMonth()]},s.prototype.getMonth=function(){return this.options.months[this.$element.data("currentDate").getMonth()]},s.prototype.getYear=function(){return this.$element.data("currentDate").getFullYear()},s.prototype.refresh=function(){var t=this,a=this.options,s=this.$element.find("."+a.classes.table),r=e("<table/>");t.$element.find("."+t.options.classes.month).each(function(){var a=e(this);a.text(t.getMonth())}).end().find("."+t.options.classes.year).each(function(){var a=e(this);a.text(t.getYear())});for(var d=e("<tr/>"),o=0;o<a.days.length;o++)d.append(e("<th/>",{"class":a.classes.table_day,text:a.days[o]}));r.append(d);for(var l=this.$element.data("currentDate"),i=new Date(l.getFullYear(),l.getMonth()+1,0).getDate(),c=new Date(l.getFullYear(),l.getMonth(),0).getDate(),h=new Date(l.getFullYear(),l.getMonth(),1).getDay(),u=1,o=0;7>o;o++){d=e("<tr/>");for(var p=0;7>p;p++){var v,y=7*o+p+1,f=e("<td/>"),g=n,_=n,m=e("<div/>",{"class":a.classes.table_date}),b=new Date;if(b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),0==p&&y>i+h)break;1>y-h?(m.text(c+(y-h)).addClass(a.classes.table_prev),v=new Date(l.getFullYear(),l.getMonth()-1,c+(y-h))):i+h>=y?(m.text(y-h),v=new Date(l.getFullYear(),l.getMonth(),y-h)):(m.text(u).addClass(a.classes.table_next),v=new Date(l.getFullYear(),l.gLine truncated
|
||||
/**
|
||||
* @module RD Range
|
||||
* @author Roman Kholiavko
|
||||
* @see http://cms.devoffice.com/coding-demo/marathoner/rd-range/documentation
|
||||
* @version 1.0
|
||||
*/
|
||||
(function(){!function(t,e,n){var o,i;return i="ontouchstart"in n,o=function(){function o(n,o){this.$element=t(n),this.options=t.extend(!0,{},this.Defaults,o),this.setClientOptions(this),this.createDOM(this),this.$pointer=t(n).find(".rd-range__pointer-1"),this.options.tooltip&&(this.$pointerTooltip=this.$pointer.find(".rd-range__pointer-tooltip"),this.$element.addClass("hasTooltip")),this.$line=t(n).find(".rd-range__line"),null!=t(n).attr("data-input")?this.$input=t(t(n).attr("data-input")):this.$input=t(this.Defaults.inputClassName),this.range&&(this.$pointer2=t(n).find(".rd-range__pointer-2"),null!=t(n).attr("data-input-2")?this.$input2=t(t(n).attr("data-input-2")):this.$input2=t(this.Defaults.inputClassName2),this.options.tooltip&&(this.$pointerTooltip2=this.$pointer2.find(".rd-range__pointer-tooltip"))),this.$doc=t(e),this.isMove=!1,this.initialization()}return o.prototype.Defaults={min:0,start:0,max:100,start2:0,step:1,minDiff:0,inputClassName:".rd-range-input-value",inputClassName2:".rd-range-input-value-2",tooltip:!1,callbacks:{onInit:!1,onChange:!1,onInputChange:!1,onMoveStart:!1,onMoveEnd:!1}},o.prototype.initialization=function(){var t;return t=this,t.setRange(t),t.applyHandlers(t),t.options.callbacks.onInit&&t.options.callbacks.onInit.call(this,t),t},o.prototype.createDOM=function(t){var e;e='<div class="rd-range__pointer rd-range__pointer-1">',t.options.tooltip&&(e+='<div class="rd-range__pointer-tooltip"></div>'),e+="</div>",t.range&&(e+='<div class="rd-range__pointer rd-range__pointer-2">',t.options.tooltip&&(e+='<div class="rd-range__pointer-tooltip"></div>'),e+="</div>"),t.$element.wrapInner('<div class="rd-range__wrap">'+e+'<div class="rd-range__line"></div> </div>')},o.prototype.setClientOptions=function(t){var e;e={min:t.$element.attr("data-min"),max:t.$element.attr("data-max"),step:t.$element.attr("data-step"),start:t.$element.data("start"),minDiff:t.$element.attr("data-min-diff"),precision:t.$element.attr("data-precision"),tooltip:t.$element.attr("data-tooltip")},t.options.start=[],(null!=e.start&&e.start.length>1||null!=t.options.start&&t.options.start.length>1)&&(t.range=!0),null!=e.min&&(t.options.min=Number(e.min)),null!=e.max&&(t.options.max=Number(e.max)),null!=e.start?t.options.start=e.start:t.options.start.push(t.options.min),t.currentValue=t.options.start[0],null!=e.step&&(t.options.step=Number(e.step)),null!=e.tooltip&&(t.options.tooltip=e.tooltip),null!=e.precision?t.options.precision=t.getNumDigitsAfterDecimalPlace(Number(e.precision)):t.options.precision=t.getNumDigitsAfterDecimalPlace(t.options.step),t.range&&(t.currentValue2=t.options.start[1],null!=e.minDiff?t.options.minDiff=Number(e.minDiff):null!=t.options.minDiff&&(t.options.minDiff=t.options.step))},o.prototype.setRange=function(t){return t.diff=t.options.max-t.options.min,t.delta=100*t.options.step/t.diff,t.currentPercentage=t.getPercentageByValue(t,t.currentValue),t.updatePointer1(t,t.currentPercentage,t.currentValue),t.range?(t.currentPercentage2=t.getPercentageByValue(t,t.currentValue2),t.updatePointer2(t,t.currentPercentage2,t.currentValue2)):void 0},o.prototype.applyHandlers=function(e){return e.$pointer.on(i?"touchstart":"mousedown",function(n){var o,r,a,u;if(!e.isMove)return e.isMove=!0,o=t(this),o.addClass("active"),a="touchmove"===n.type?n.originalEvent.targetTouches[0].pageX:n.pageX,r=e.getCoords(e.$element),u=e.getPercentage(e,a,r.left),e.options.callbacks.onMoveStart&&e.options.callbacks.onMoveStart.call(this,e),e.$doc.on(i?"touchmove":"mousemove",function(t){var n;return a="touchmove"===t.type?t.originalEvent.targetTouches[0].pageX:t.pageX,n=e.getPercentage(e,a,r.left),n!==u?(u=n,e.currentValue=e.getCurrentValue(e,u),e.range&&e.currentValue>=e.currentValue2-e.options.minDiff&&(n=e.checkPointer1Bounds(e)),e.updatePointer1(e,n,e.currentValue)):void 0}).on(i?"touchend":"mouseup",function(t){return setTimeout(function(){return e.isMove=!1},100),o.removeClass("active"),e.options.callbacks.onMoveEnd&&e.options.callbacks.onMoveEnd.call(this,e),i?e.$doc.off("touchmove"):e.$doc.off("mousemove"),e.$doc.off(t.type)}),!1}),"hidden"!==e.$input.attr("type")&&"readonly"!==e.$input.attr("readOnly")&&e.$input.on("keypress",function(t){return e.isAllowTyped(t.which)}).on("change",function(n){var o;return o=Math.abs(Number(t(this).val())),e.range&&(o>=e.currentValue2||o>e.currentValue2-e.options.minDiff)&&(e.checkPointer1Bounds(e),o=e.currentValue),o<e.options.min&&(o=e.options.min),e.currentValue=o,e.setRange(e),e.options.callbacks.onInputChange?e.options.callbacks.onInputChange.call(this,e):void 0}),e.range&&(e.$pointer2.on(i?"touchstart":"mousedown",function(n){var o,r,a,u;if(!e.isMove)return e.isMove=!0,o=t(this),o.addClass("active"),a="touchmove"===n.type?n.originalEvent.targetTouches[0].pageX:n.pageX,r=e.getCoords(e.$element),u=e.getPercentage(e,a,r.left),e.options.callbacks.onMoveStart&&e.options.callbacks.onMoveStart.call(this,e),e.$doc.on(i?"touchmove":"mousemove",function(t){var n;return a="touchmove"===t.type?Line truncated
|
||||
/**
|
||||
* @module Moment JS
|
||||
* @authors Tim Wood, Iskren Chernev, Moment.js contributors
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 2.12.0
|
||||
* @license MIT license
|
||||
*/
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Xn.apply(null,arguments)}function e(t){Xn=t}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function s(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t,e){for(var n in e)r(e,n)&&(t[n]=e[n]);return r(e,"toString")&&(t.toString=e.toString),r(e,"valueOf")&&(t.valueOf=e.valueOf),t}function o(t,e,n,i){return Ct(t,e,n,i,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function d(t){return null==t._pf&&(t._pf=u()),t._pf}function l(t){if(null==t._isValid){var e=d(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function h(t){var e=o(NaN);return null!=t?a(d(e),t):d(e).userInvalidated=!0,e}function c(t){return void 0===t}function f(t,e){var n,i,s;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=d(e)),c(e._locale)||(t._locale=e._locale),Kn.length>0)for(n in Kn)i=Kn[n],s=e[i],c(s)||(t[i]=s);return t}function m(e){f(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),ti===!1&&(ti=!0,t.updateOffset(this),ti=!1)}function _(t){return t instanceof m||null!=t&&null!=t._isAMomentObject}function y(t){return 0>t?Math.ceil(t):Math.floor(t)}function g(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=y(e)),n}function p(t,e,n){var i,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),a=0;for(i=0;s>i;i++)(n&&t[i]!==e[i]||!n&&g(t[i])!==g(e[i]))&&a++;return a+r}function v(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(t,e){var n=!0;return a(function(){return n&&(v(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}function M(t,e){ei[t]||(v(e),ei[t]=!0)}function S(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t){return"[object Object]"===Object.prototype.toString.call(t)}function w(t){var e,n;for(n in t)e=t[n],S(e)?this[n]=e:this["_"+n]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function k(t,e){var n,i=a({},t);for(n in e)r(e,n)&&(Y(t[n])&&Y(e[n])?(i[n]={},a(i[n],t[n]),a(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);return i}function T(t){null!=t&&this.set(t)}function b(t){return t?t.toLowerCase().replace("_","-"):t}function O(t){for(var e,n,i,s,r=0;r<t.length;){for(s=b(t[r]).split("-"),e=s.length,n=b(t[r+1]),n=n?n.split("-"):null;e>0;){if(i=W(s.slice(0,e).join("-")))return i;if(n&&n.length>=e&&p(s,n,!0)>=e-1)break;e--}r++}return null}function W(t){var e=null;if(!ii[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=ni._abbr,require("./locale/"+t),x(e)}catch(n){}return ii[t]}function x(t,e){var n;return t&&(n=c(e)?P(t):U(t,e),n&&(ni=n)),ni._abbr}function U(t,e){return null!==e?(e.abbr=t,null!=ii[t]?(M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),e=k(ii[t]._config,e)):null!=e.parentLocale&&(null!=ii[e.parentLocale]?e=k(ii[e.parentLocale]._config,e):M("parentLocaleUndefined","specified parentLocale is not defined yet")),ii[t]=new T(e),x(t),ii[t]):(delete ii[t],null)}function G(t,e){if(null!=e){var n;null!=ii[t]&&(e=k(ii[t]._config,e)),n=new T(e),n.parentLocale=ii[t],ii[t]=n,x(t)}else null!=ii[t]&&(null!=ii[t].parentLocale?ii[t]=ii[t].parentLocale:null!=ii[t]&&delete ii[t]);return ii[t]}function P(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ni;if(!n(t)){if(e=W(t))return e;t=[t]}return O(t)}function C(){return Object.keys(ii)}function F(t,e){var n=t.toLowerCase();si[n]=si[n+"s"]=si[e]=t}function H(t){return"string"==typeof t?si[t]||si[t.toLowerCase()]:void 0}function L(t){var e,n,i={};for(n in t)r(t,n)&&(e=H(n),e&&(i[e]=t[n]));return i}function V(e,n){return function(i){return null!=i?(I(this,e,i),t.updateOffset(this,n),this):N(this,e)}}function N(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function I(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function A(t,e){var n;if(Line truncated
|
||||
/**
|
||||
* @module Bootstrap Material Datetimepicker
|
||||
* @see https://github.com/T00rk/bootstrap-material-datetimepicker
|
||||
* @version 2.0
|
||||
*/
|
||||
!function(a,b){function c(b,c){this.currentView=0,this.minDate,this.maxDate,this._attachedEvents=[],this.element=b,this.$element=a(b),this.params={date:!0,time:!0,format:"YYYY-MM-DD",minDate:null,maxDate:null,currentDate:null,lang:"en",weekStart:0,shortTime:!1,cancelText:"Cancel",okText:"OK"},this.params=a.fn.extend(this.params,c),this.name="dtp_"+this.setName(),this.$element.attr("data-dtp",this.name),this.init()}var d="bootstrapMaterialDatePicker",e="plugin_"+d;b.locale("en"),a.fn[d]=function(b,d){return this.each(function(){a.data(this,e)?("function"==typeof a.data(this,e)[b]&&a.data(this,e)[b](d),"destroy"===b&&delete a.data(this,e)):a.data(this,e,new c(this,b))}),this},c.prototype={init:function(){this.initDays(),this.initDates(),this.initTemplate(),this.initButtons(),this._attachEvent(a(window),"resize",this._centerBox(this)),this._attachEvent(this.$dtpElement.find(".dtp-content"),"click",this._onElementClick.bind(this)),this._attachEvent(this.$dtpElement,"click",this._onBackgroundClick.bind(this)),this._attachEvent(this.$dtpElement.find(".dtp-close > a"),"click",this._onCloseClick.bind(this)),this._attachEvent(this.$element,"click",this._onClick.bind(this))},initDays:function(){this.days=[];for(var a=this.params.weekStart;this.days.length<7;a++)a>6&&(a=0),this.days.push(a.toString())},initDates:function(){if(this.$element.val().length>0)"undefined"!=typeof this.params.format&&null!==this.params.format?this.currentDate=b(this.$element.val(),this.params.format).locale(this.params.lang):this.currentDate=b(this.$element.val()).locale(this.params.lang);else if("undefined"!=typeof this.$element.attr("value")&&null!==this.$element.attr("value")&&""!==this.$element.attr("value"))"string"==typeof this.$element.attr("value")&&("undefined"!=typeof this.params.format&&null!==this.params.format?this.currentDate=b(this.$element.attr("value"),this.params.format).locale(this.params.lang):this.currentDate=b(this.$element.attr("value")).locale(this.params.lang));else if("undefined"!=typeof this.params.currentDate&&null!==this.params.currentDate){if("string"==typeof this.params.currentDate)"undefined"!=typeof this.params.format&&null!==this.params.format?this.currentDate=b(this.params.currentDate,this.params.format).locale(this.params.lang):this.currentDate=b(this.params.currentDate).locale(this.params.lang);else if("undefined"==typeof this.params.currentDate.isValid||"function"!=typeof this.params.currentDate.isValid){var a=this.params.currentDate.getTime();this.currentDate=b(a,"x").locale(this.params.lang)}else this.currentDate=this.params.currentDate;this.$element.val(this.currentDate.format(this.params.format))}else this.currentDate=b();if("undefined"!=typeof this.params.minDate&&null!==this.params.minDate)if("string"==typeof this.params.minDate)"undefined"!=typeof this.params.format&&null!==this.params.format?this.minDate=b(this.params.minDate,this.params.format).locale(this.params.lang):this.minDate=b(this.params.minDate).locale(this.params.lang);else if("undefined"==typeof this.params.minDate.isValid||"function"!=typeof this.params.minDate.isValid){var a=this.params.minDate.getTime();this.minDate=b(a,"x").locale(this.params.lang)}else this.minDate=this.params.minDate;if("undefined"!=typeof this.params.maxDate&&null!==this.params.maxDate)if("string"==typeof this.params.maxDate)"undefined"!=typeof this.params.format&&null!==this.params.format?this.maxDate=b(this.params.maxDate,this.params.format).locale(this.params.lang):this.maxDate=b(this.params.maxDate).locale(this.params.lang);else if("undefined"==typeof this.params.maxDate.isValid||"function"!=typeof this.params.maxDate.isValid){var a=this.params.maxDate.getTime();this.maxDate=b(a,"x").locale(this.params.lang)}else this.maxDate=this.params.maxDate;this.isAfterMinDate(this.currentDate)||(this.currentDate=b(this.minDate)),this.isBeforeMaxDate(this.currentDate)||(this.currentDate=b(this.maxDate))},initTemplate:function(){this.template='<div class="dtp hidden" id="'+this.name+'"><div class="dtp-content"><div class="dtp-date-view"><header class="dtp-header"><div class="dtp-actual-day">Lundi</div><div class="dtp-close"><a href="javascript:void(0);"><span class="mdi mdi-close"></span></</div></header><div class="dtp-date hidden"><div><div class="left center p10"><a href="javascript:void(0);" class="dtp-select-month-before"><span class="mdi mdi-chevron-left"></span></a></div><div class="dtp-actual-month p80">MAR</div><div class="right center p10"><a href="javascript:void(0);" class="dtp-select-month-after"><span class="mdi mdi-chevron-right"></span></a></div><div class="clearfix"></div></div><div class="dtp-actual-num">13</div><div><div class="left center p10"><a href="javascript:void(0);" class="dtp-select-year-before"><span class="mdi mdi-chevron-left"></span></a></div><div class="dtp-actual-year p80">2014</div><div class="right center p10"><a href="javascript:void(0);" class="dtp-select-year-after"><span class="mdi mdi-chevron-right"></span></a></div><div class="Line truncated
|
||||
/**
|
||||
* @module RDFacebookFeed
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.2
|
||||
*/
|
||||
(function(){!function(t,e,i){var s;return s=function(){function s(s,o){this.options=t.extend(!0,{},this.Defaults,o),this.element=s,this.$element=t(s),this.$win=t(i),this.$doc=t(e),this.$items=this.$element.find("[data-fb-post]"),this.$user=this.$element.find("[data-fb-user]"),this.initialize()}return s.prototype.Defaults={id:"",accessToken:"",showLog:!1,dateFormat:{seconds:"less than a minute ago",minute:"about a minute ago",minutes:" minutes ago",hour:"about an hour ago",hours:" hours ago",day:"1 day ago",days:"%b/%d/%Y"},callbacks:{userLoaded:!1,postsLoaded:!1}},s.prototype.initialize=function(){var e,i,s,o,n,a;if(i=this,n=this.element.getAttribute("data-fb-id")?this.element.getAttribute("data-fb-id"):this.options.id,e=this.element.getAttribute("data-fb-access")?this.element.getAttribute("data-fb-access"):this.options.accessToken,!n)throw new Error("You need to provide an user/page id!");if(!e)throw new Error("You need to provide an access token!");a=i.$items.length,o="https://graph.facebook.com/"+n+"/?fields=name,picture&access_token="+e+"&callback=?",s="https://graph.facebook.com/"+n+"/posts/?&fields=id,from,message,story,story_tags,picture,link,name,icon,privacy,actions,type,status_type,object_id,created_time,updated_time,shares,is_hidden,is_expired,likes.limit(0).summary(true),comments.limit(9999).summary(true)&access_token="+e+"&callback=?&date_format=U&limit="+a,t.when(t.getJSON(o),t.getJSON(s)).done(function(e,s){var o,n;n="true"===i.element.getAttribute("data-fb-showlog")?i.element.getAttribute("data-fb-showlog"):i.options.showLog,n&&(console.log("User: "),console.log(e[0]),console.log("Posts: "),console.log(s[0].data)),o={user:e[0],posts:[]},t.each(s[0].data,function(){var t,e,s,n;if(!this.message)return!0;if(this.from.picture=o.user.picture.data.url,this.message=i.urlHyperlinks(this.message),this.likes?this.likes.count=this.likes.summary.total_count:(this.likes=[],this.likes.count=0),this.comments?this.comments.count=this.comments.summary.total_count:(this.comments=[],this.comments.count=0),null!=this.actions?null!=this.actions[0]&&"Share"===this.actions[0].name&&(this.postlink=this.actions[0].link):this.postlink=this.link,null!=this.comments.data)for(n=this.comments.data,e=0,s=n.length;s>e;e++)t=n[e],t.from.link="https://facebook.com/"+t.from.id;o.posts.push(this)}),i.loopData(o.user,!0),i.loopData(o.posts,!1)})},s.prototype.dating=function(t,e){var i,s,o,n,a,r,u,l,c,d,h,m;if(o=new Date(1e3*t),s=new Date,a=parseInt((s.getTime()-o.getTime())/1e3),a+=60*(-120-s.getTimezoneOffset()),m=["January","February","March","April","May","June","July","August","September","October","November","December"],i={"%d":o.getDate(),"%m":o.getMonth()+1,"%b":m[o.getMonth()].substring(0,3),"%B":m[o.getMonth()],"%y":String(o.getFullYear()).slice(-2),"%Y":o.getFullYear()},e){for(n="%Y-%m-%d",u=n.match(/%[dmbByY]/g),l=0,d=u.length;d>l;l++)r=u[l],n=n.replace(r,i[r]);return n}if(n=this.element.getAttribute("data-fb-date-format")?this.element.getAttribute("data-fb-date-format"):this.options.dateFormat.days,60>a)return this.options.dateFormat.seconds;if(120>a)return this.options.dateFormat.minute;if(3600>a)return parseInt(a/60).toString()+this.options.dateFormat.minutes;if(7200>a)return this.options.dateFormat.hour;if(86400>a)return"about "+parseInt(a/3600).toString()+this.options.dateFormat.hours;if(172800>a)return this.options.dateFormat.day;for(u=n.match(/%[dmbByY]/g),c=0,h=u.length;h>c;c++)r=u[c],n=n.replace(r,i[r]);return n},s.prototype.urlHyperlinks=function(t){return t.replace(/\b((http|https):\/\/\S+)/g,'<a href="$1" target="_blank">$1</a>')},s.prototype.loopData=function(t,e){var i,s,o;if(i=this,null!=i.interval&&clearInterval(i.interval),e)i.$user.find("*").each(function(){return i.parseAttributes(this,t,0)}),i.options.callbacks.userLoaded&&i.options.callbacks.userLoaded.call(this,i);else{if(Array.isArray(t))for(s=0;s<t.length;)o={likes:-1,comments:-1},i.$items.eq(s).find("*").each(function(){return i.checkAttribute(this,"data-fb-like")?void o.likes++:i.checkAttribute(this,"data-fb-comment")?void o.comments++:void(i.checkAttribute(this,"data-likes")?i.parseAttributes(this,t[s],o.likes):i.checkAttribute(this,"data-comments")?i.parseAttributes(this,t[s],o.comments):i.parseAttributes(this,t[s],0))}),s++;i.options.callbacks.postsLoaded&&i.options.callbacks.postsLoaded.call(this,i)}},s.prototype.checkAttribute=function(t,e){var i,s,o,n;for(n=t.attributes,s=0,o=n.length;o>s;s++)if(i=n[s],i.name.indexOf(e)>-1)return!0;return!1},s.prototype.parseAttributes=function(e,i,s){var o,n,a,r,u,l,c,d,h,m,f,p,b,g;a=e.attributes;for(r in a)if(null!=a[r]&&"data-remove"!==a[r].name&&"object"==typeof a[r]&&-1!==a[r].name.indexOf("data-")&&-1===a[r].name.indexOf("data-fb-")){if(g=a[r].name.substring(5),p=null,-1!==g.indexOf("-"))for(b=g.split("-"),p=i,l=0,d=b.length;d>l;l++)if(f=b[l],"data"===f&&null!=p[f]&&null!=p[f][s])p=p[f][s];else if(null!=p[f])p=p[f];else{if(!e.hasAttribute("data-remove"))continue;t(e).remove()}if("string"==typeofLine truncated
|
||||
/**
|
||||
* @module RD Audio
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.3
|
||||
*/
|
||||
(function(){(function(g,l,m){var n,h;navigator.appVersion.indexOf("MSIE");h="ontouchstart"in m;n=function(){function d(a,b){this.options=g.extend(!0,{},this.Defaults,b);this.element=a;this.$element=g(a);this.state=0;this.$win=g(m);this.$doc=g(l);this.classes={playPause:"rd-audio-play-pause",stopButton:"rd-audio-stop",nextButton:"rd-audio-next",prevButton:"rd-audio-prev",volume:"rd-audio-volume",volumeBar:"rd-audio-volume-bar",volumeBarSlider:"rd-audio-volume-bar-slider",progressBar:"rd-audio-progress-bar", progressBarSlider:"rd-audio-progress-bar-slider",duration:"rd-audio-duration",currentTime:"rd-audio-current-time",playlist:"rd-audio-playlist",author:"rd-audio-author",title:"rd-audio-title"};this.initialize()}d.prototype.Defaults={src:"audio/sound_1.mp3",volumeBarType:"horizontal",playListName:"",author:"",title:"",autoplay:!1,loop:!1};d.prototype.initialize=function(){this.createDataApi();this.createAudio();this.createProgressBar();this.createVolumeBar();this.updateState(this);this.attachPlayerEvents(); this.attachPlayPauseButtonListener();this.attachVolumeButtonListener();this.attachStopButtonListener();this.initPlaylistClickListener();this.triggerPlaylistClick();this.attachNextTrackButtonListener();this.attachPrevTrackButtonListener();this.updateDuration();this.updateAuthorName();this.updateTitle()};d.prototype.createAudio=function(){this.audio=new Audio;this.$element.append(this.audio);0===this.options.playListName.length&&(this.loadTrack(this.options.src),this.getOption("autoplay")&&this.audio.play())}; d.prototype.updateState=function(a){var b;b=a.isErrored()?0:a.isLoading()?1:2;a.state!==b&&(a.state=b)};d.prototype.attachPlayPauseButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.playPause).on("click",function(b){b.preventDefault();2===a.state&&null==a.playListName&&(a.isPlaying()?a.audio.pause():a.audio.play());a.$doc.trigger("playlistClick",[a.playListName,a.index])})};d.prototype.attachStopButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.stopButton).on("click", function(b){b.preventDefault();a.audio.currentTime=0;a.$doc.trigger("playlistClick",[a.playListName,a.index,!1])})};d.prototype.updateDuration=function(){var a,b;a=this;(b=a.$element.find("."+a.classes.duration)[0])&&a.audio.addEventListener("durationchange",function(){var c,e,f;c=a.getDuration();f=("0"+Math.floor(c)%60).slice(-2);e=("0"+Math.floor(c/60%60)).slice(-2);c=3600>=c?"":("0"+Math.floor(c/3600%60)+":").slice(-2);return b.innerHTML=""+c+e+":"+f})};d.prototype.updateAuthorName=function(){var a, b; b = this;(a=b.$element.find("."+b.classes.author)[0])&&b.audio.addEventListener("durationchange",function(){var c;b.playListName?(c=b.$doc.find('[data-rd-audio-playlist="'+b.playListName+'"] li[data-index="'+b.index+'"]'),c=c[0].getAttribute("data-rd-audio-author")):c=b.options.author;return a.innerHTML=c})};d.prototype.updateTitle=function(){var a,b;a=this;(b=a.$element.find("."+a.classes.title)[0])&&a.audio.addEventListener("durationchange",function(){var c;a.playListName?(c=a.$doc.find('[data-rd-audio-playlist="'+ a.playListName+'"] li[data-index="'+a.index+'"]'),c=c[0].getAttribute("data-rd-audio-title")):c=a.options.title;return b.innerHTML=c})};d.prototype.updateCurrentTime=function(a){var b,c,e;b=this.audio.currentTime;e=("0"+Math.floor(b)%60).slice(-2);c=("0"+Math.floor(b/60%60)).slice(-2);b=3600>=b?"":("0"+Math.floor(b/3600%60)+":").slice(-2);a.innerHTML=""+b+c+":"+e};d.prototype.attachVolumeButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.volume).on("click",function(b){b.preventDefault(); a.audio.muted=!a.isMuted()})};d.prototype.attachNextTrackButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.nextButton).on("click",function(b){b.preventDefault();b=a.$doc.find('[data-rd-audio-playlist="'+a.playListName+'"] li[data-index="'+(parseInt(a.index)+1)+'"]').length?[a.playListName,parseInt(a.index)+1]:[a.playListName,0];a.$doc.trigger("playlistClick",b)})};d.prototype.attachPrevTrackButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.prevButton).on("click", function(b){b.preventDefault();0<=parseInt(a.index)-1?b=[a.playListName,parseInt(a.index)-1]:(b=a.$doc.find('[data-rd-audio-playlist="'+a.playListName+'"]'),b=[a.playListName,b.eq(b.length-1).find("li").last().attr("data-index")]);a.$doc.trigger("playlistClick",b)})};d.prototype.removeStateClass=function(a){var b,c,e,f;c=a.element.className.split(/\s+/);e=0;for(f=c.length;e<f;e++)b=c[e],-1!==b.indexOf("state-")&&a.element.classList.remove(b)};d.prototype.createProgressBar=function(){var a,b,c,e;c= this;c.$element.find("."+c.classes.progressBar).length&&(c.currentProgress=e=l.createElement("div"),e.classList.add("current"),c.attachProgressBarSlider(),a=c.$element.find("."+c.classes.progressBar)[0],b=!1,g(a).on("mousedown.rd touchstart.rd",function(e){if(1===e.which||h)b=!0,c.audio.currentTime=c.getClickBarPosition(e,a,"horizontal")*c.getDuration(),c.$doc.on("mouseup.rd touchend.rd touchcanLine truncated
|
||||
/**
|
||||
* @module RD Video Player
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.1
|
||||
*/
|
||||
(function(){(function(e,f,k){var m,n,q,r,p,l,g;l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);p=/iphone|ipod|ipad/.test(k.navigator.userAgent.toLowerCase());g="ontouchstart"in k;n=-1<navigator.userAgent.toLowerCase().indexOf("chrome");q=-1<navigator.userAgent.toLowerCase().indexOf("firefox");r=-1<navigator.userAgent.indexOf("Trident/")||-1<navigator.userAgent.indexOf("Edge/");m=function(){function c(b,d){this.options=e.extend(!0,{},this.Defaults,d);this.element= b; this.$element=e(b);this.state=0;this.$win=e(k);this.$doc=e(f);this.isFullscreen=!1;this.thread=null;this.loaded=!1;this.classes={playPause:"rd-video-play-pause",stopButton:"rd-video-stop",nextButton:"rd-video-next",prevButton:"rd-video-prev",volume:"rd-video-volume",volumeBar:"rd-video-volume-bar",volumeBarSlider:"rd-video-volume-bar-slider",progressBar:"rd-video-progress-bar",progressBarSlider:"rd-video-progress-bar-slider",duration:"rd-video-duration",currentTime:"rd-video-current-time",playlist:"rd-video-playlist", title:"rd-video-title",fullscreen:"rd-video-fullscreen",preview:"rd-video-preview"};this.initialize()}c.prototype.Defaults={path:"",volumeBarType:"vertical",title:"",ieFullScreenClass:"rd-video-wrap",volume:1,dblClickFull:!0,playPauseOnClick:!0,hideControls:!0,preload:!0,preview:"",muted:!1,callbacks:{onEnded:null,onPaused:null,onPlay:null}};c.prototype.initialize=function(){this.createDataApi();this.initPlaylistClickListener();this.createVideo();this.createProgressBar();this.createVolumeBar();this.attachPlayerEvents(); this.attachPlayPauseButtonListener();this.attachVolumeButtonListener();this.attachStopButtonListener();this.updateDuration();this.updateTitle();this.attachNextTrackButtonListener();this.attachPrevTrackButtonListener();this.attachFullScreenButtonListener()};c.prototype.createVideo=function(){this.video=this.$element.find("video")[0];this.options.muted&&(this.video.muted=!0);e(this.video).append('<source type="video/mp4">');null!=this.playlist?this.loadVideo(0):this.loadVideo(this.options.path);this.options.preload&& (this.video.load(),this.loaded=!0)};c.prototype.updateState=function(b){var d;d=b.isErrored()?0:b.isLoading()?1:2;b.state!==d&&(b.state=d)};c.prototype.attachPlayPauseButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.playPause).on("click",function(d){d.preventDefault();b.loaded||(b.video.load(),b.loaded=!0);e.proxy(b.playPause(),b,this)})};c.prototype.playPause=function(){this.isPlaying()?this.video.pause():this.video.play()};c.prototype.attachStopButtonListener=function(){var b; b=this;b.$element.find("."+b.classes.stopButton).on("click",function(d){d.preventDefault();b.video.pause();b.video.currentTime=0})};c.prototype.updateDuration=function(){var b,d;b=this;(d=b.$element.find("."+b.classes.duration)[0])&&b.video.addEventListener("durationchange",function(){var a,c,e;a=b.getDuration();e=("0"+Math.floor(a)%60).slice(-2);c=("0"+Math.floor(a/60%60)).slice(-2);a=3600>=a?"":("0"+Math.floor(a/3600%60)+":").slice(-2);return d.innerHTML=""+a+c+":"+e})};c.prototype.updateTitle= function(){var b,d;b=this;(d=b.$element.find("."+b.classes.title)[0])&&b.video.addEventListener("durationchange",function(){var a;null!=b.playlist?(a=e("."+b.classes.playlist+" .video-active"),a=a[0].getAttribute("data-rd-video-title")):a=b.options.title;return d.innerHTML=a})};c.prototype.updateCurrentTime=function(b){var d,a,c;d=this.video.currentTime;c=("0"+Math.floor(d)%60).slice(-2);a=("0"+Math.floor(d/60%60)).slice(-2);d=3600>=d?"":("0"+Math.floor(d/3600%60)+":").slice(-2);b.innerHTML=""+d+ a + ":"+c};c.prototype.attachVolumeButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.volume).on("click",function(d){d.preventDefault();b.video.muted=!b.isMuted()})};c.prototype.attachNextTrackButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.nextButton).on("click",function(d){d.preventDefault();return b.playNextVideo(!0)})};c.prototype.playNextVideo=function(b){var d;d=parseInt(e(this.playlist).find(".video-active").attr("data-index"));e(this.playlist).find('li[data-index="'+ (d +1)+'"]').length?(this.loadVideo(d+1),this.video.load(),this.loaded=!0,this.video.play()):b&&(this.loadVideo(0),this.video.load(),this.loaded=!0,this.video.play())};c.prototype.attachPrevTrackButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.prevButton).on("click",function(d){var a,c;d.preventDefault();d=parseInt(e(b.playlist).find(".video-active").attr("data-index"));a=e(b.playlist).find("[data-index]").length;c=b.isPlaying();0!==d?b.loadVideo(d-1):b.loadVideo(a-1);b.loaded= !0;b.video.load();c?b.video.play():b.video.pause()})};c.prototype.attachFullScreenButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.fullscreen).on("click",function(d){d.preventDefault();b.makeFullscreen(b)})};c.prototype.makeFullscreen=function(b){b.isFullscreen?f.cancelFullScreen?f.cancelFullScreen():f.mozCancelFullScreen?f.mozCancelFullScreen():f.webkitCancelLine truncated
|
||||
/**
|
||||
* @module RD MaterialTabs
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.2
|
||||
*/
|
||||
(function(){(function(e,m,k){var l,n,p,f;n=(p=-1!==navigator.appVersion.indexOf("MSIE"))?parseInt(navigator.appVersion.split("MSIE")[1]):null;f="ontouchstart"in k;l=function(){function d(a,b){this.options=e.extend(!0,{},this.Defaults,b);this.$element=e(a);this.$list=this.$element.find(".rd-material-tabs__list");this.$content=this.$element.find(".rd-material-tabs__container");this.$win=e(k);this.$doc=e(m);this.activeIndex=0;this.settings={stageClass:"rd-material-tabs__stage",stageOuterClass:"rd-material-tabs__stage-outer", itemClass:"rd-material-tab"};this.state={isTouched:!1,isDragged:!1,isSwiping:!1};this.touches={prevX:null,list:!1};this.initialize()}d.prototype.Defaults={itemSelector:"div",margin:20,marginContent:0,items:3,touchRatio:1,speed:500,easing:"cubic-bezier(0.005, 0.300, 0.200, 1.000)",stagePadding:0,dragContent:!0,dragList:!0,responsive:null,callbacks:{onDragStart:!1,onDragEnd:!1,onChangeStart:!1,onChangeEnd:!1,onBeforeInit:!1,onInit:!1}};d.prototype.initialize=function(){this.options.callbacks.onBeforeInit&&this.options.callbacks.onBeforeInit.call(this,this);this.setVendor(this);this.createDOM(this);this.initHandlers(this);f||this.canMoveCursor();this.setWidth(this,!0);this.setWidth(this,!1);this.moveTo(this.activeIndex);this.options.callbacks.onInit&&this.options.callbacks.onInit.call(this,this)};d.prototype.createDOM=function(a){var b;a.$content.find(">"+a.options.itemSelector).addClass(a.settings.itemClass);b=a.transform(a,0);a.$content.wrapInner(e("<div/>",{"class":a.settings.stageClass,style:a.vendorName+"transform:"+b[a.vendorName+"transform"]})).wrapInner(e("<div/>",{"class":a.settings.stageOuterClass}));a.$list.find("li").addClass(a.settings.itemClass);return a.$list.wrapInner(e("<div/>",{"class":a.settings.stageClass,style:a.vendorName+"transform:"+b[a.vendorName+"transform"]})).wrapInner(e("<div/>",{"class":a.settings.stageOuterClass}))};d.prototype.setWidth=function(a,b){var c,h,d,e,f,g;b?(g=a.$list.find("."+a.settings.stageClass),f=a.getOption("stagePadding"),0<f&&a.getOption("dragList")&&g.css({"padding-left":f,"padding-right":f}),c=a.getWidth(a,a.$list.find("."+a.settings.stageOuterClass)),e=a.getOption("margin"),d=(c-a.getOption("items")*e)/a.getOption("items")):(g=a.$content.find("."+a.settings.stageClass),f=0,d=a.getWidth(a,a.$content.find("."+a.settings.stageOuterClass)),e=a.getOption("marginContent"));h=g.find("."+a.settings.itemClass);b&&!a.getOption("dragList")?(a.setListTranslate(a,0),g.css({"padding-left":0,"padding-right":0,width:"auto"}),h.removeAttr("style")):(c=h.length, h.css({width:a.px(d),"margin-right":a.px(e)}),g[0].style.width=a.px((d+e)*c+e+f))};d.prototype.resize=function(a){a.setWidth(a,!0);a.setWidth(a,!1);return setTimeout(function(){return a.moveTo(a.activeIndex)},300)};d.prototype.initHandlers=function(a){a.$win.on("resize",e.proxy(a.resize,this,a));if(f)a.$element.on("touchstart.rd.mt",e.proxy(a.onTouchStart,this,a));else a.$element.on("mousedown.rd.mt",e.proxy(a.onTouchStart,this,a)),a.$element.on("mouseleave.rd.mt",e.proxy(a.onTouchEnd,this,a))};d.prototype.onTouchEnd= function(a,b){var c,d;if(a.state.isTouched){a.$doc.off(".rd.mt");a.changing=!1;b.originalEvent&&(b=b.originalEvent);a.state.isTrigerred=!1;if(a.state.isDragged)if(f||a.$element.removeClass("rd-material-tabs-grab"),e(a.touches.targetEl).one("click.rd.mt",function(){return!1}),a.touches.endTime=Date.now(),d=a.touches.endTime-a.touches.startTime,a.touches.prevX=null,a.state.isDragged=!1,a.touches.list&&a.getOption("dragList"))c=a.state.isSwiping?20<d?a.touches.diff/(d/200):a.touches.diff:100<d?a.touches.diff/(d/1E3):d/15*a.touches.diff,a.touches.velocity=0,a.touches.velocity=c/(d/50)*a.getOption("touchRatio"),0!==a.touches.velocity&&(a.setListTransition(a,a.options.speed),c=a.getListTranslate(a)+a.touches.velocity,0<c?c=0:c<a.getMaxTranslate(a,a.$list)&&(c=a.getMaxTranslate(a,a.$list)),a.setListTranslate(a,c));else{if(!a.touches.list&&a.getOption("dragContent")){a.setContentTransition(a,a.options.speed);a.setListTransition(a,a.options.speed);if("left"===a.touches.direction&&0===a.activeIndex||"right"===a.touches.direction&&a.activeIndex===a.$content.find("."+a.settings.itemClass).length-1){a.moveTo(a.activeIndex);return}c=a.activeIndex;a.state.isSwiping?"left"===a.touches.direction?c=a.activeIndex-1:"right"===a.touches.direction&&(c=a.activeIndex+1):Math.abs(a.touches.diff)>a.getContentItemWidth(a)/3&&("left"===a.touches.direction?c=a.activeIndex-1:"right"===a.touches.direction&&(c=a.activeIndex+1));a.moveTo(c)}}else!a.state.isDragged&&a.touches.list&&(c=e(b.target),"A"===b.target.tagName||c.parents("."+a.settings.itemClass+" a").length)&&(a.setContentTransition(a,a.options.speed),a.setListTransition(a,a.options.speed),c=c.parents("."+a.settings.itemClass).index(),a.moveTo(c));a.state.isTouched=!1;a.options.callbacks.onDragEnd&&a.options.callbacks.onDragEnd.call(this,a)}};d.prototype.onDrag=function(a,b){var c,d,e;if(a.state.isTouched){b.originalEvent&&(b=b.originalEvent);a.touches.currenLine truncated
|
||||
/**
|
||||
* @module RD FilePicker
|
||||
* @author Aleksey Patsurkovskiy
|
||||
* @version 1.0.2
|
||||
* @license MIT License
|
||||
* @link http://cms.devoffice.com/coding-demo/mnemon1k/rd-filepicker/demo/
|
||||
*/
|
||||
(function(){(function(c,f,e){var d;d=function(){function b(a,b){this.options=c.extend(!0,{},this.Defaults,b);this.$element=c(a);this.$dropZone=c("."+this.options.dropZoneClass);this.$button=c("."+this.options.buttonClass);this.$meta=c("."+this.options.metaFieldClass);this.$input=this.$element.find("input[type='file']");this.initialize()}b.prototype.Defaults={buttonClass:null,dropZoneClass:null,metaFieldClass:null,"multiple\u0421aption":"{count} files selected",mouseOverClass:"file-grabbing",callbacks:{onInit:!1, onValueChange:!1,onFileDrop:!1}};b.prototype.initialize=function(){this.applyHandlers();this.options.callbacks.onInit&&this.options.callbacks.onInit.call(this,this);return this};b.prototype.applyHandlers=function(){var a;a=this;if(0!==a.$button.length)a.$button.on("click",function(b){b.preventDefault();b.stopPropagation();return a.$input.trigger("click")});else a.$element.on("click",function(b){b.stopPropagation();return a.$input.trigger("click")});if(0!==a.$dropZone.length)a.$dropZone.on("drag dragstart dragend dragover dragenter dragleave drop", function(a){a.preventDefault();return a.stopPropagation()}).on("dragover dragenter",c.proxy(a.dragEnterHandler,a)).on("dragleave dragend drop",c.proxy(a.dragEndHandler,a)).on("drop",c.proxy(a.dropHandler,a));a.$input.on("click",function(a){return a.stopPropagation()});a.$input.on("change",c.proxy(a.changeHandler,a));return a};b.prototype.dragEnterHandler=function(a){this.$element.addClass(this.options.mouseOverClass);return this};b.prototype.dragEndHandler=function(a){this.$element.removeClass(this.options.mouseOverClass); return this};b.prototype.dropHandler=function(a){this.updateMeta(a.originalEvent.dataTransfer.files);this.$input[0].files=a.originalEvent.dataTransfer.files;this.options.callbacks.onFileDrop&&this.options.callbacks.onFileDrop.call(this,this,a.originalEvent.dataTransfer.files);return this};b.prototype.changeHandler=function(a){this.updateMeta(this.$input[0].files);this.options.callbacks.onValueChange&&this.options.callbacks.onValueChange.call(this,this,this.$input[0].files);return this};b.prototype.updateMeta=function(a){this.$meta.text(1<a.length?this.options.multiple\u0421aption.replace("{count}",a.length+""):a[0].name);return this};return b}();c.fn.extend({RDFilepicker:function(b){return this.each(function(){var a;a=c(this);if(!a.data("RDFilepicker"))return a.data("RDFilepicker",new d(this,b))})}});return e.RDFilepicker=d})(window.jQuery,document,window);"undefined"!==typeof module&&null!==module?module.exports=window.RDFilepicker:"function"===typeof define&&define.amd&&define(["jquery"],function(){return window.RDFilepicker})}).call(this);
|
||||
/**
|
||||
* @module TimeCircles
|
||||
* @author Wim Barelds
|
||||
* @version 1.5.3
|
||||
* @see http://www.wimbarelds.nl/
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(f){function A(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,b,d,e){return b+b+d+d+e+e});return(a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null}function B(){var a=document.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))}function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function z(a,c,b,d,e){for(var h={},l={},f={},g={},m={},k={},r=null,q=0;q<d.length;q++){var p= d[q],r=null===r?b/t[p]:t[r]/t[p],u=a/t[p],v=c/t[p];e&&(u=0<u?Math.floor(u):Math.ceil(u),v=0<v?Math.floor(v):Math.ceil(v));"Days"!==p&&(u%=r,v%=r);h[p]=u;f[p]=Math.abs(u);l[p]=v;k[p]=Math.abs(v);g[p]=Math.abs(u)/r;m[p]=Math.abs(v)/r;r=p}return{raw_time:h,raw_old_time:l,time:f,old_time:k,pct:g,old_pct:m}}function C(a){for(var c=["webkit","moz"],b=0;b<c.length&&!a.requestAnimationFrame;++b)a.requestAnimationFrame=a[c[b]+"RequestAnimationFrame"],a.cancelAnimationFrame=a[c[b]+"CancelAnimationFrame"];a.requestAnimationFrame&& a.cancelAnimationFrame||(a.requestAnimationFrame=function(c,b,h){"undefined"===typeof h&&(h={data:{last_frame:0}});var l=(new Date).getTime(),f=Math.max(0,16-(l-h.data.last_frame));b=a.setTimeout(function(){c(l+f)},f);h.data.last_frame=l+f;return b},a.cancelAnimationFrame=function(a){clearTimeout(a)})}var m=window;Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,c=!{toString:null}.propertyIsEnumerable("toString"),b="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "), d = b.length;return function(e){if("object"!==typeof e&&("function"!==typeof e||null===e))throw new TypeError("Object.keys called on non-object");var h=[],l;for(l in e)a.call(e,l)&&h.push(l);if(c)for(l=0;l<d;l++)a.call(e,b[l])&&h.push(b[l]);return h}}());var x=!1,y=["Days","Hours","Minutes","Seconds"],D={Seconds:"Minutes",Minutes:"Hours",Hours:"Days",Days:"Years"},t={Seconds:1,Minutes:60,Hours:3600,Days:86400,Months:2678400,Years:31536E3};Array.prototype.indexOf||(Array.prototype.indexOf=function(a, c) { var b = this.length >>> 0, d = Number(c) || 0, d = 0 > d ? Math.ceil(d) : Math.floor(d); for (0 > d && (d += b); d < b; d++)if (d in this && this[d] === a)return d; return -1 }); var w = {}, g = function (a, c) { this.element = a; this.container; this.listeners = null; this.data = { paused: !1, last_frame: 0, animation_frame: null, interval_fallback: null, timer: !1, total_duration: null, prev_time: null, drawn_units: [], text_elements: {Days: null, Hours: null, Minutes: null, Seconds: null}, attributes: {canvas: null, context: null, item_size: null, line_width: null, radius: null, outer_radius:null}, state:{fading:{Days:!1,Hours:!1,Minutes:!1,Seconds:!1}}};this.config=null;this.setOptions(c);this.initialize()};g.prototype.clearListeners=function(){this.listeners={all:[],visible:[]}};g.prototype.addTime=function(a){if(this.data.attributes.ref_date instanceof Date){var c=this.data.attributes.ref_date;c.setSeconds(c.getSeconds()+a)}else isNaN(this.data.attributes.ref_date)||(this.data.attributes.ref_date+=1E3*a)};g.prototype.initialize=function(a){this.data.drawn_units=[];for(var c=0;c<Object.keys(this.config.time).length;c++){var b= Object.keys(this.config.time)[c];this.config.time[b].show&&this.data.drawn_units.push(b)}f(this.element).children("div.time_circles").remove();"undefined"===typeof a&&(a=!0);(a||null===this.listeners)&&this.clearListeners();this.container=f("<div>");this.container.addClass("time_circles");this.container.appendTo(this.element);c=this.element.offsetHeight;a=this.element.offsetWidth;0===c&&(c=f(this.element).height());0===a&&(a=f(this.element).width());0===c&&0<a?c=a/this.data.drawn_units.length:0=== a&&0<c&&(a=c*this.data.drawn_units.length);b=document.createElement("canvas");b.width=a;b.height=c;this.data.attributes.canvas=f(b);this.data.attributes.canvas.appendTo(this.container);var d=B();d||"undefined"===typeof G_vmlCanvasManager||(G_vmlCanvasManager.initElement(b),d=x=!0);d&&(this.data.attributes.context=b.getContext("2d"));this.data.attributes.item_size=Math.min(a/this.data.drawn_units.length,c);this.data.attributes.line_width=this.data.attributes.item_size*this.config.fg_width;this.data.attributes.radius= (.8*this.data.attributes.item_size-this.data.attributes.line_width)/2;this.data.attributes.outer_radius=this.data.attributes.radius+.5*Math.max(this.data.attributes.line_width,this.data.attributes.line_width*this.config.bg_width);var c=0,e;for(e in this.data.text_elements)this.config.time[e].show&&(a=f("<div>"),a.addClass("textDiv_"+e),a.css("top",Math.round(.35*this.data.attributes.item_size)),a.css("left",Math.round(c++*this.data.attributes.item_size)),a.css("width",this.data.attributes.item_size), a.appendTo(this.container),b=f("<h4>"),b.text(this.config.time[e].text),b.css("font-size",Math.round(this.config.text_size*this.data.attributes.item_size)),b.css("line-height",Math.round(this.config.text_size*this.dLine truncated
|
||||
/**
|
||||
* @module Slick
|
||||
* @author Ken Wheeler
|
||||
* @see http://kenwheeler.github.io/slick
|
||||
* @version 1.6.0
|
||||
*/
|
||||
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(Line truncated
|
||||
d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototypLine truncated
|
||||
/**
|
||||
* @module jquery mousewheel plugin
|
||||
* @author malihu
|
||||
* @license MIT
|
||||
* @version 3.1.13
|
||||
* @see http://manos.malihu.gr/jquery-custom-content-scroller/
|
||||
*/
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).heighLine truncated
|
||||
!function(e){"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&N(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),X.call(thisLine truncated
|
||||
/**
|
||||
* @module Socialite
|
||||
* @author David Bushell
|
||||
* @license MIT
|
||||
* @version 2.0
|
||||
* @see http://socialitejs.co
|
||||
*/
|
||||
window.Socialite=(function(f,g,d){var e=0,a=[],i={},h={},b=/^($|loaded|complete)/,j=f.encodeURIComponent;var c={settings:{},trim:function(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")},hasClass:function(k,l){return(" "+k.className+" ").indexOf(" "+l+" ")!==-1},addClass:function(k,l){if(!c.hasClass(k,l)){k.className=(k.className==="")?l:k.className+" "+l}},removeClass:function(k,l){k.className=c.trim(" "+k.className+" ".replace(" "+l+" "," "))},extendObject:function(o,n,k){for(var m in n){var l=o[m]!==d;if(l&&typeof n[m]==="object"){c.extendObject(o[m],n[m],k)}else{if(k||!l){o[m]=n[m]}}}},getElements:function(l,p){var k=0,o=[],n=!!l.getElementsByClassName,m=n?l.getElementsByClassName(p):l.getElementsByTagName("*");for(;k<m.length;k++){if(n||c.hasClass(m[k],p)){o.push(m[k])}}return o},getDataAttributes:function(l,s,k){var o=0,q="",n={},p=l.attributes;for(;o<p.length;o++){var r=p[o].name,m=p[o].value;if(m.length&&r.indexOf("data-")===0){if(s){r=r.substring(5)}if(k){n[r]=m}else{q+=j(r)+"="+j(m)+"&"}}}return k?n:q},copyDataAttributes:function(p,o,n,m){var k=c.getDataAttributes(p,n,true);for(var l in k){o.setAttribute(m?l.replace(/-/g,"_"):l,k[l])}},createIframe:function(m,k){var l=g.createElement("iframe");l.style.cssText="overflow: hidden; border: none;";c.extendObject(l,{src:m,allowtransparency:"true",frameborder:"0",scrolling:"no"},true);if(k){l.onload=l.onreadystatechange=function(){if(b.test(l.readyState||"")){l.onload=l.onreadystatechange=null;c.activateInstance(k)}}}return l},networkReady:function(k){return i[k]?i[k].loaded:d},appendNetwork:function(k){if(!k||k.appended){return}if(typeof k.append==="function"&&k.append(k)===false){k.appended=k.loaded=true;c.activateAll(k);return}if(k.script){k.el=g.createElement("script");c.extendObject(k.el,k.script,true);k.el.async=true;k.el.onload=k.el.onreadystatechange=function(){if(b.test(k.el.readyState||"")){k.el.onload=k.el.onreadystatechange=null;k.loaded=true;if(typeof k.onload==="function"&&k.onload(k)===false){return}c.activateAll(k)}};g.body.appendChild(k.el)}k.appended=true},removeNetwork:function(k){if(!c.networkReady(k.name)){return false}if(k.el.parentNode){k.el.parentNode.removeChild(k.el)}return !(k.appended=k.loaded=false)},reloadNetwork:function(k){var l=i[k];if(l&&c.removeNetwork(l)){c.appendNetwork(l)}},createInstance:function(l,n){var m=true,k={el:l,uid:e++,widget:n};a.push(k);if(n.process!==d){m=(typeof n.process==="function")?n.process(k):false}if(m){c.processInstance(k)}k.el.setAttribute("data-socialite",k.uid);k.el.className="socialite "+n.name+" socialite-instance";return k},processInstance:function(k){var m=k.el;k.el=g.createElement("div");k.el.className=m.className;c.copyDataAttributes(m,k.el);if(m.nodeName.toLowerCase()==="a"&&!m.getAttribute("data-default-href")){k.el.setAttribute("data-default-href",m.getAttribute("href"))}var l=m.parentNode;l.insertBefore(k.el,m);l.removeChild(m)},activateInstance:function(k){if(k&&!k.loaded){k.loaded=true;if(typeof k.widget.activate==="function"){k.widget.activate(k)}c.addClass(k.el,"socialite-loaded");return k.onload?k.onload(k.el):null}},activateAll:function(m){if(typeof m==="string"){m=i[m]}for(var l=0;l<a.length;l++){var k=a[l];if(k.init&&k.widget.network===m){c.activateInstance(k)}}},load:function(m,n,s,p,l){m=(m&&typeof m==="object"&&m.nodeType===1)?m:g;if(!n||typeof n!=="object"){c.load(m,c.getElements(m,"socialite"),s,p,l);return}var q;if(/Array/.test(Object.prototype.toString.call(n))){for(q=0;q<n.length;q++){c.load(m,n[q],s,p,l)}return}if(n.nodeType!==1){return}if(!s||!h[s]){s=null;var o=n.className.split(" ");for(q=0;q<o.length;q++){if(h[o[q]]){s=o[q];break}}if(!s){return}}var u,r=h[s],k=parseInt(n.getAttribute("data-socialite"),10);if(!isNaN(k)){for(q=0;q<a.length;q++){if(a[q].uid===k){u=a[q];break}}}else{u=c.createInstance(n,r)}if(l||!u){return}if(!u.init){u.init=true;u.onload=(typeof p==="function")?p:null;r.init(u)}if(!r.network.appended){c.appendNetwork(r.network)}else{if(c.networkReady(r.network.name)){c.activateInstance(u)}}},activate:function(l,k,m){f.Socialite.load(null,l,k,m)},process:function(l,m,k){f.Socialite.load(l,m,k,null,true)},network:function(l,k){i[l]={name:l,el:null,appended:false,loaded:false,widgets:{}};if(k){c.extendObject(i[l],k)}},widget:function(m,k,l){l.name=m+"-"+k;if(!i[m]||h[l.name]){return}l.network=i[m];i[m].widgets[k]=h[l.name]=l},setup:function(k){c.extendObject(c.settings,k,true)}};return c})(window,window.document);(function(g,h,d,c){d.setup({facebook:{lang:"en_GB",appId:null},twitter:{lang:"en"},googleplus:{lang:"en-GB"}});d.network("facebook",{script:{src:"//connect.facebook.net/{{language}}/all.js",id:"facebook-jssdk"},append:function(o){var n=h.createElement("div"),m=d.settings.facebook,l={onlike:"edge.create",onunlike:"edge.remove",onsend:"message.send"};n.id="fb-root";h.body.appendChild(n);o.script.src=o.script.src.replace("{{language}}",m.lang);g.fbAsyncInit=function(){g.FB.init({appId:m.appId,xfbml:true});for(var p in l){if(typeof m[p]==="Line truncated
|
||||
/**
|
||||
* @module ProgressBar.js
|
||||
* @see https://kimmobrunfeldt.github.io/progressbar.js
|
||||
* @license: MIT License
|
||||
* @version 0.9.0
|
||||
*/
|
||||
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.ProgressBar=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(b,c,d){(function(){var b=this,e=function(){"use strict";function e(){}function f(a,b){var c;for(c in a)Object.hasOwnProperty.call(a,c)&&b(c)}function g(a,b){return f(b,function(c){a[c]=b[c]}),a}function h(a,b){f(b,function(c){"undefined"==typeof a[c]&&(a[c]=b[c])})}function i(a,b,c,d,e,f,g){var h,i,k,l=f>a?0:(a-f)/e;for(h in b)b.hasOwnProperty(h)&&(i=g[h],k="function"==typeof i?i:o[i],b[h]=j(c[h],d[h],k,l));return b}function j(a,b,c,d){return a+(b-a)*c(d)}function k(a,b){var c=n.prototype.filter,d=a._filterArgs;f(c,function(e){"undefined"!=typeof c[e][b]&&c[e][b].apply(a,d)})}function l(a,b,c,d,e,f,g,h,j,l,m){v=b+c+d,w=Math.min(m||u(),v),x=w>=v,y=d-(v-w),a.isPlaying()&&!x?(a._scheduleId=l(a._timeoutHandler,s),k(a,"beforeTween"),b+c>w?i(1,e,f,g,1,1,h):i(w,e,f,g,d,b+c,h),k(a,"afterTween"),j(e,a._attachment,y)):a.isPlaying()&&x&&(j(g,a._attachment,y),a.stop(!0))}function m(a,b){var c={},d=typeof b;return"string"===d||"function"===d?f(a,function(a){c[a]=b}):f(a,function(a){c[a]||(c[a]=b[a]||q)}),c}function n(a,b){this._currentState=a||{},this._configured=!1,this._scheduleFunction=p,"undefined"!=typeof b&&this.setConfig(b)}var o,p,q="linear",r=500,s=1e3/60,t=Date.now?Date.now:function(){return+new Date},u="undefined"!=typeof SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:t;p="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout:setTimeout;var v,w,x,y;return n.prototype.tween=function(a){return this._isTweening?this:(void 0===a&&this._configured||this.setConfig(a),this._timestamp=u(),this._start(this.get(),this._attachment),this.resume())},n.prototype.setConfig=function(a){a=a||{},this._configured=!0,this._attachment=a.attachment,this._pausedAtTime=null,this._scheduleId=null,this._delay=a.delay||0,this._start=a.start||e,this._step=a.step||e,this._finish=a.finish||e,this._duration=a.duration||r,this._currentState=g({},a.from)||this.get(),this._originalState=this.get(),this._targetState=g({},a.to)||this.get();var b=this;this._timeoutHandler=function(){l(b,b._timestamp,b._delay,b._duration,b._currentState,b._originalState,b._targetState,b._easing,b._step,b._scheduleFunction)};var c=this._currentState,d=this._targetState;return h(d,c),this._easing=m(c,a.easing||q),this._filterArgs=[c,this._originalState,d,this._easing],k(this,"tweenCreated"),this},n.prototype.get=function(){return g({},this._currentState)},n.prototype.set=function(a){this._currentState=a},n.prototype.pause=function(){return this._pausedAtTime=u(),this._isPaused=!0,this},n.prototype.resume=function(){return this._isPaused&&(this._timestamp+=u()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0,this._timeoutHandler(),this},n.prototype.seek=function(a){a=Math.max(a,0);var b=u();return this._timestamp+a===0?this:(this._timestamp=b-a,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,l(this,this._timestamp,this._delay,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction,b),this.pause()),this)},n.prototype.stop=function(a){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=e,(b.cancelAnimationFrame||b.webkitCancelAnimationFrame||b.oCancelAnimationFrame||b.msCancelAnimationFrame||b.mozCancelRequestAnimationFrame||b.clearTimeout)(this._scheduleId),a&&(k(this,"beforeTween"),i(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),k(this,"afterTween"),k(this,"afterTweenEnd"),this._finish.call(this,this._currentState,this._attachment)),this},n.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},n.prototype.setScheduleFunction=function(a){this._scheduleFunction=a},n.prototype.dispose=function(){var a;for(a in this)this.hasOwnProperty(a)&&delete this[a]},n.prototype.filter={},n.prototype.formula={linear:function(a){return a}},o=n.prototype.formula,g(n,{now:u,each:f,tweenProps:i,tweenProp:j,applyFilter:k,shallowCopy:g,defaults:h,composeEasingObject:m}),"function"==typeof SHIFTY_DEBUG_NOW&&(b.timeoutHandler=l),"object"==typeof d?c.exports=n:"function"==typeof a&&a.amd?a(function(){return n}):"undefined"==typeof b.TweeLine truncated
|
||||
/**
|
||||
* @module Prevent click events after a touchend.
|
||||
* @author Anders Johnson
|
||||
* @license MIT
|
||||
* @version 0.0.0
|
||||
* @see https://github.com/adjohnson916/prevent-ghost-click.js
|
||||
*/
|
||||
!function(t,n,e){function i(t){for(var n=0;n<u.length;n++){var e=u[n][0],i=u[n][1];if(Math.abs(t.clientX-e)<r&&Math.abs(t.clientY-i)<r){t.stopPropagation(),t.preventDefault();break}}}function c(){u=[]}function o(){u.splice(0,1)}function a(t){if(t.touches.length-t.changedTouches.length<=0){var n=t.changedTouches[0];u.push([n.clientX,n.clientY]),setTimeout(o,h)}}var u=[],r=25,h=2500;return"ontouchstart"in t?(t[e]=function(t){t.addEventListener("touchstart",c,!0),t.addEventListener("touchend",a,!0)},void n.addEventListener("click",i,!0)):void(t[e]=function(){})}(window,document,"PreventGhostClick");
|
||||
/**
|
||||
* @module Hammer.js
|
||||
* @author Alexander Schmitz
|
||||
* @license MIT
|
||||
* @version 2.0.7
|
||||
* @see http://hammerjs.github.io/
|
||||
*/
|
||||
!function(t,e,i,n){"use strict";function r(t,e,i){return setTimeout(c(t,i),e)}function s(t,e,i){return Array.isArray(t)?(o(t,i[e],i),!0):!1}function o(t,e,i){var r;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(r=0;r<t.length;)e.call(i,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function a(t,e,i){for(var r=Object.keys(e),s=0;s<r.length;)(!i||i&&t[r[s]]===n)&&(t[r[s]]=e[r[s]]),s++;return t}function h(t,e){return a(t,e,!0)}function u(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&&a(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function l(t,e){return typeof t==ct?t.apply(e?e[0]||n:n,e):t}function p(t,e){return t===n?e:t}function f(t,e,i){o(g(e),function(e){t.addEventListener(e,i,!1)})}function d(t,e,i){o(g(e),function(e){t.removeEventListener(e,i,!1)})}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function g(t){return t.trim().split(/\s+/g)}function T(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function y(t){return Array.prototype.slice.call(t,0)}function E(t,e,i){for(var n=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];T(r,o)<0&&n.push(t[s]),r[s]=o,s++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function I(t,e){for(var i,r,s=e[0].toUpperCase()+e.slice(1),o=0;o<ht.length;){if(i=ht[o],r=i?i+s:e,r in t)return r;o++}return n}function A(){return dt++}function _(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function D(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){l(t.options.enable,[t])&&i.handler(e)},this.init()}function S(t){var e,i=t.options.inputClass;return new(e=i?i:gt?W:Tt?H:mt?U:F)(t,w)}function w(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=e&Dt&&n-r===0,o=e&(wt|bt)&&n-r===0;i.isFirst=!!s,i.isFinal=!!o,s&&(t.session={}),i.eventType=e,b(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function b(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=z(e)),r>1&&!i.firstMultiple?i.firstMultiple=z(e):1===r&&(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,a=o?o.center:s.center,h=e.center=N(n);e.timeStamp=ft(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=x(a,h),e.distance=O(a,h),C(i,e),e.offsetDirection=M(e.deltaX,e.deltaY),e.scale=o?Y(o.pointers,n):1,e.rotation=o?X(o.pointers,n):0,R(i,e);var u=t.element;v(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function C(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};(e.eventType===Dt||s.eventType===wt)&&(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function R(t,e){var i,r,s,o,a=t.lastInterval||e,h=e.timeStamp-a.timeStamp;if(e.eventType!=bt&&(h>_t||a.velocity===n)){var u=a.deltaX-e.deltaX,c=a.deltaY-e.deltaY,l=P(h,u,c);r=l.x,s=l.y,i=pt(l.x)>pt(l.y)?l.x:l.y,o=M(u,c),t.lastInterval=e}else i=a.velocity,r=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=r,e.velocityY=s,e.direction=o}function z(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:lt(t.pointers[i].clientX),clientY:lt(t.pointers[i].clientY)},i++;return{timeStamp:ft(),pointers:e,center:N(e),deltaX:t.deltaX,deltaY:t.deltaY}}function N(t){var e=t.length;if(1===e)return{x:lt(t[0].clientX),y:lt(t[0].clientY)};for(var i=0,n=0,r=0;e>r;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:lt(i/e),y:lt(n/e)}}function P(t,e,i){return{x:e/t||0,y:i/t||0}}function M(t,e){return t===e?Ct:pt(t)>=pt(e)?t>0?Rt:zt:e>0?Nt:Pt}function O(t,e,i){i||(i=Xt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function x(t,e,i){i||(i=Xt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function X(t,e){return x(e[1],e[0],Yt)-x(t[1],t[0],Yt)}function Y(t,e){return O(e[0],e[1],Yt)/O(t[0],t[1],Yt)}function F(){this.evEl=Wt,this.evWin=qt,this.allow=!0,this.pressed=!1,D.apply(this,arguments)}function W(){this.evEl=kt,this.evWin=Ut,D.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function q(){this.evTarget=Vt,this.evWin=jt,this.started=!1,D.apply(this,arguments)}function L(t,e){var i=y(t.touches),n=y(t.changedTouches);return e&(wt|bt)&&(i=E(i.concat(n),"identifier",!0)),[i,n]}function H(){this.evTarget=Bt,this.targetIds={},D.apply(this,arguments)}function k(t,e){var i=y(t.touches),n=this.targetIds;if(e&(Dt|St)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=y(t.changedTouches),a=[],h=this.target;if(s=i.filter(function(t){return v(t.target,h)}),e===Dt)for(r=0;r<s.length;)n[s[r].identifier]=!0,r++;for(r=0;r<o.length;)n[o[r].identifier]&&a.push(o[r]),e&(wt|bt)&&delete n[o[r].identifier],r++;return a.length?[E(s.concat(a),"identifier",!0),a]:void 0}function U(){D.apply(this,arguments);var t=c(this.handler,this);this.touch=new H(this.managLine truncated
|
||||
/**
|
||||
* @module Bridget makes jQuery widgets
|
||||
* @author David DeSandro
|
||||
* @license MIT
|
||||
* @version 2.0.0
|
||||
* @see https://github.com/desandro/jquery-bridget
|
||||
*/
|
||||
!function(t,n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(i){n(t,i)}):"object"==typeof module&&module.exports?module.exports=n(t,require("jquery")):t.jQueryBridget=n(t,t.jQuery)}(window,function(t,n){"use strict";function i(i,r,a){function f(t,n,e){var o,r="$()."+i+'("'+n+'")';return t.each(function(t,f){var c=a.data(f,i);if(!c)return void u(i+" not initialized. Cannot call methods, i.e. "+r);var d=c[n];if(!d||"_"==n.charAt(0))return void u(r+" is not a valid method");var s=d.apply(c,e);o=void 0===o?s:o}),void 0!==o?o:t}function c(t,n){t.each(function(t,e){var o=a.data(e,i);o?(o.option(n),o._init()):(o=new r(e,n),a.data(e,i,o))})}a=a||n||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var n=o.call(arguments,1);return f(this,t,n)}return c(this,t),this},e(a))}function e(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,u="undefined"==typeof r?function(){}:function(t){r.error(t)};return e(n||t.jQuery),i});
|
||||
/**
|
||||
* @module mag.js
|
||||
* @author Anders Johnson
|
||||
* @license MIT
|
||||
* @version 2.1.4
|
||||
* @see https://github.com/adjohnson916/magnificent.js
|
||||
*/
|
||||
!function(o,n){var i="Mag";"function"==typeof define&&define.amd?define(["./mag-analytics"],function(t){return o[i]=n(t)}):"object"==typeof exports?module.exports=n(require("./mag-analytics")):o[i]=n(o.MagnificentAnalytics)}(this,function(o){var n=function(o){o=o||{},o.model=o.model||{},o.zoomMin=o.zoomMin||1,o.zoomMax=o.zoomMax||10,o.constrainLens=o.constrainLens!==!1,o.constrainZoomed=o.constrainZoomed!==!1,this.id=o.id,this.model=o.model,this.options=o,this.fillModel()};return n.prototype.fillXY=function(o){return o=o||{},o.x=o.x||0,o.y=o.y||0,o},n.prototype.fillWH=function(o){return o=o||{},o.w=o.w||0,o.h=o.h||0,o},n.prototype.fillModel=function(){var o=this.model;o.mode=o.mode||"lag",o.focus=this.fillXY(o.focus),o.lens=this.fillXY(this.fillWH(o.lens)),o.zoomed=this.fillXY(this.fillWH(o.zoomed)),o.boundedLens=this.fillXY(this.fillWH(o.boundedLens)),o.zoom=o.zoom||1,o.ratio=o.ratio||1},n.prototype.compute=function(){var o,n,i,t,s,e,a=this.options,r=this.model;o=r.lens,n=r.focus,i=r.zoomed,t=r.zoom,t=this.minMax(t,a.zoomMin,a.zoomMax),n.x=this.minMax(n.x,0,1),n.y=this.minMax(n.y,0,1),s=1/t,e=1/t,e/=r.ratio,o.w=s,o.h=e,a.constrainLens&&(o=this.constrainLensWH(o)),o.x=n.x-o.w/2,o.y=n.y-o.h/2,a.constrainLens&&(o=this.constrainLensXY(o)),i.w=1/s,i.h=1/e;var h=this.constrainZoomed(i,a);h.w!==i.w&&(t*=h.w/i.w),i=h,i.x=.5-n.x*i.w,i.y=.5-n.y*i.h,a.constrainZoomed&&(i.x=this.minMax(i.x,1-t,0),i.y=this.minMax(i.y,1-t,0)),r.lens=o,r.focus=n,r.zoomed=i,r.zoom=t},n.prototype.minMax=function(o,n,i){return n>o?n:o>i?i:o},n.prototype.minMax1=function(o,n){return this.minMax(o,n,1)},n.prototype.constrainZoomed=function(o,n){var i,t;return i=this.minMax(o.w,n.zoomMin,n.zoomMax),i!==o.w?(t*=i/o.w,t=this.minMax(t,n.zoomMin,n.zoomMax)):(t=this.minMax(o.h,n.zoomMin,n.zoomMax),t!==o.h&&(i*=t/o.h,i=this.minMax(i,n.zoomMin,n.zoomMax))),{w:i,h:t,x:o.x,y:o.y}},n.prototype.constrainLensWH=function(o){var n,i;return n=this.minMax1(o.w,.1),n!==o.w?(i*=n/o.w,i=this.minMax1(i,.1)):(i=this.minMax1(o.h,.1),i!==o.h&&(n*=i/o.h,n=this.minMax1(n,.1))),{w:n,h:i,x:o.x,y:o.y}},n.prototype.constrainLensXY=function(o){return{x:this.minMax(o.x,0,1-o.w),y:this.minMax(o.y,0,1-o.h),w:o.w,h:o.h}},n.prototype.constrainLens=function(o){var n=this.constrainLensXY(this.constrainLensWH(o));return n.w+n.x>1&&(n.x=Math.max(0,1-n.w)),n.h+n.y>1&&(n.y=Math.max(0,1-n.h)),n},n.prototype.project=function(o){var n=this.model,i=n.lens;return{x:i.x*o.w,y:i.y*o.h,w:i.w*o.w,h:i.h*o.h}},o&&o.track("mag.js"),n});
|
||||
/**
|
||||
* @module mag-jquery.js
|
||||
* @author Anders Johnson
|
||||
* @license MIT
|
||||
* @version 2.1.4
|
||||
* @see https://github.com/adjohnson916/magnificent.js
|
||||
*/
|
||||
!function(o,e){var t="Magnificent";"function"==typeof define&&define.amd?define(["./mag","./mag-analytics","jquery","hammerjs","prevent-ghost-click","jquery-bridget"],function(n,i,a,r){return o[t]=e(n,i,a,r,PreventGhostClick)}):"object"==typeof exports?module.exports=e(require("./mag"),require("./mag-analytics"),require("jquery"),require("hammerjs"),require("prevent-ghost-click"),require("jquery-bridget")):o[t]=e(o.Mag,o.MagnificentAnalytics,o.$,o.Hammer,o.PreventGhostClick)}(this,function(o,e,t,n){t(":root").addClass("mag-js");var i=function(o,e){e=e||t(o.target);var n=e.offset();return{x:o.pageX-n.left,y:o.pageY-n.top}},a=function(o,e){e=e||t(o.target);var n=i(o,e);return{x:n.x/e.width(),y:n.y/e.height()}},r=function(o,e,t){return{x:e/o.width(),y:t/o.height()}},s=function(o){return 100*o+"%"},m=function(o,e,t){return"3d"===e?c(o,t):"2d"===e?f(o,t):d(o,t)},d=function(o,e){var t={};return void 0!==o.x&&(t.left=s(o.x)),void 0!==o.y&&(t.top=s(o.y)),void 0!==o.w&&(t.width=s(o.w)),void 0!==o.h&&(t.height=s(o.h)),t},f=function(o,e){var t,n,i,a,r={},m=o.x,d=o.y,f=o.w,c=o.h;m+=(f-1)*(.5-m)/f,d+=(c-1)*(.5-d)/c,void 0!==m&&(t=s(m)),void 0!==d&&(n=s(d)),void 0!==f&&(i=f),void 0!==c&&(a=c);var l="";return i&&(l+=" scaleX("+i+")"),a&&(l+=" scaleY("+a+")"),t&&(l+=" translateX("+t+")"),n&&(l+=" translateY("+n+")"),r["-webkit-transform"]=l,r["-moz-transform"]=l,r["-ms-transform"]=l,r["-o-transform"]=l,r.transform=l,r},c=function(o,e){var t,n,i,a,r={},m=o.x,d=o.y,f=o.w,c=o.h;m+=(f-1)*(.5-m)/f,d+=(c-1)*(.5-d)/c,void 0!==m&&(t=s(m)),void 0!==d&&(n=s(d)),void 0!==f&&(i=f),void 0!==c&&(a=c);var l="";return l+=" scale3d("+(void 0!==i?i:0)+","+(void 0!==a?a:0)+",1)",l+=" translate3d("+(void 0!==t?t:0)+","+(void 0!==n?n:0)+",0)",r["-webkit-transform"]=l,r["-moz-transform"]=l,r["-ms-transform"]=l,r["-o-transform"]=l,r.transform=l,r.width="100%",r.height="100%",r.position="absolute",r.top="0",r.left="0",r},l=function(o,e){this.element=t(o),this.options=t.extend(!0,{},this.options,e),this._init()};return l.prototype.options={mode:"inner",position:"mirror",positionEvent:"move",theme:"default",initialShow:"thumb",constrainLens:!0,constrainZoomed:!1,zoomMin:1,zoomMax:10,zoomRate:.2,dragRate:.2,ratio:1,toggle:!0,smooth:!0,renderIntervalTime:20,cssMode:"3d",eventNamespace:"magnificent",dataNamespace:"magnificent"},l.prototype.toggle=function(o){o?(this.$zoomedContainer.fadeIn(),this.$lens&&this.$lens.fadeIn()):(this.$zoomedContainer.fadeOut(),this.$lens&&this.$lens.fadeOut())},l.prototype.compute=function(){var o=this;o.mag.compute(),o.$el.trigger("compute",o)},l.prototype.render=function(){var o,e,t=this,n=this.$lens,i=this.$zoomed;if(n){o=this.modelLazy.lens;var a=m(o,t.options.cssMode,t.id);n.css(a)}e=this.modelLazy.zoomed;var r=m(e,t.options.cssMode,t.id);i.css(r),this.$el.trigger("render",t)},l.prototype.eventName=function(o){o=o||"";var e=this.options.eventNamespace;return o+(e?"."+e:"")},l.prototype.dataName=function(o){o=o||"";var e=this.options.dataNamespace;return(e?e+".":"")+o},l.prototype._init=function(){var e=this,i=this.$el=this.element;this.$originalEl=i.clone();var s=this.options,m=i.attr("mag-thumb");this.id=m,t.isFunction(s.toggle)&&(this.toggle=s.toggle);var d=this.$lens,f=s.ratio,c=s.initial||{},l="undefined"!=typeof c.zoom?c.zoom:2,u="undefined"!=typeof c.focus?c.focus:{x:.5,y:.5},g="undefined"!=typeof c.lens?c.lens:{w:0,h:0},p=this.model={focus:u,zoom:l,lens:g,ratio:f},v=this.mag=new o({zoomMin:s.zoomMin,zoomMax:s.zoomMax,constrainLens:s.constrainLens,constrainZoomed:s.constrainZoomed,model:p}),h=this.modelLazy={focus:{x:p.focus.x,y:p.focus.y},zoom:p.zoom,lens:{w:p.lens.w,h:p.lens.h},ratio:f},y=this.magLazy=new o({zoomMin:s.zoomMin,zoomMax:s.zoomMax,constrainLens:s.constrainLens,constrainZoomed:s.constrainZoomed,model:h});v.compute(),y.compute();var z,x,w,$;x=i.children(),i.empty(),i.addClass("mag-host"),s.zoomedContainer||(s.zoomedContainer=t('[mag-zoom="'+e.id+'"]')),s.zoomedContainer&&($=t(s.zoomedContainer),e.$originalZoomedContainer=$.clone(),z=$.children(),$.empty(),"inner"===s.mode&&$.remove()),"outer"===s.mode&&"undefined"==typeof s.showLens&&(s.showLens=!0),z&&z.length||(z=x.clone()),s.mode&&i.attr("mag-mode",s.mode),s.theme&&i.attr("mag-theme","default"),s.position?i.attr("mag-position",s.position):s.position===!1&&(s.positionEvent=!1),s.positionEvent&&i.attr("mag-position-event",s.positionEvent),i.attr("mag-toggle",s.toggle),s.showLens&&(d=this.$lens=t('<div class="mag-lens"></div>'),i.append(d));var C=t('<div class="mag-noflow" mag-theme="'+s.theme+'"></div>');if(i.append(C),"inner"===s.mode)$=C;else{if("outer"!==s.mode)throw new Error("Invalid 'mode' option.");if(!s.zoomedContainer)throw new Error("Required 'zoomedContainer' option.");$=t(s.zoomedContainer)}$.attr("mag-theme",s.theme),$.addClass("mag-zoomed-container"),$.addClass("mag-zoomed-bg");var b=t('<div class="mag-thumb"></div>');b.html(x),i.append(b),w=this.$zoomed=t('<div class="mag-zoomed"></div>'),w.html(z),$.append(w),$.attr("mag-toggle",sLine truncated
|
||||
@@ -0,0 +1,403 @@
|
||||
/**
|
||||
* jQuery
|
||||
* @see http://jquery.com/
|
||||
* @license MIT license
|
||||
*/
|
||||
!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="length"in e&&e.length,n=it.type(e);return"function"===n||it.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(it.isFunction(t))return it.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return it.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ft.test(t))return it.filter(t,e,n);t=it.filter(t,e)}return it.grep(e,function(e){return it.inArray(e,t)>=0!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t=xt[e]={};return it.each(e.match(bt)||[],function(e,n){t[n]=!0}),t}function a(){ht.addEventListener?(ht.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(ht.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(ht.addEventListener||"load"===event.type||"complete"===ht.readyState)&&(a(),it.ready())}function u(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Et,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Nt.test(n)?it.parseJSON(n):n}catch(i){}it.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!it.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(it.acceptData(e)){var i,o,a=it.expando,s=e.nodeType,u=s?it.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=J.pop()||it.guid++:a),u[l]||(u[l]=s?{}:{toJSON:it.noop}),("object"==typeof t||"function"==typeof t)&&(r?u[l]=it.extend(u[l],t):u[l].data=it.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[it.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[it.camelCase(t)])):i=o,i}}function d(e,t,n){if(it.acceptData(e)){var r,i,o=e.nodeType,a=o?it.cache:e,s=o?e[it.expando]:it.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){it.isArray(t)?t=t.concat(it.map(t,it.camelCase)):t in r?t=[t]:(t=it.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!it.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?it.cleanData([e],!0):nt.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function f(){return!0}function p(){return!1}function h(){try{return ht.activeElement}catch(e){}}function m(e){var t=Ft.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==Ct?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Ct?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||it.nodeName(r,t)?o.push(r):it.merge(o,g(r,t));return void 0===t||t&&it.nodeName(e,t)?it.merge([e],o):o}function v(e){jt.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return it.nodeName(e,"table")&&it.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==it.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Vt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)it._data(n,"globalEval",!t||it._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&it.hasData(e)){var n,r,i,o=it._data(e),a=it._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++)it.event.add(t,n,s[n][r])}a.data&&(a.data=it.extend({},a.data))}}function C(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!nt.noCloneEvent&&t[it.expando]){i=it._data(t);for(r in i.events)it.removeEvent(t,r,i.handle);t.removeAttribute(it.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,x(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),nt.html5Clone&&e.innerHTML&&!it.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&jt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function N(t,n){var r,i=it(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:it.css(i[0],"display");return i.detach(),o}function E(e){var t=ht,n=Zt[e];return n||(n=N(e,t),"none"!==n&&n||(Kt=(Kt||it("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Kt[0].contentWindow||Kt[0].contentDocument).document,t.write(),t.close(),n=N(e,t),Kt.detach()),Zt[e]=n),n}function k(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function S(e,t){if(t in e)return
Line truncated
|
||||
if(!r)break}return n?s.length:s?t.error(e):I(e,u).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=y(t[n]),o[B]?r.push(o):i.push(o);o=X(e,b(i,r)),o.selector=e}return o},S=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(wt,Tt),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ht.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(wt,Tt),bt.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&f(o),!e)return K.apply(n,r),n;break}}return(l||k(e,d))(r,t,!_,n,bt.test(e)&&c(t.parentNode)||t),n},w.sortStable=B.split("").sort(U).join("")===B,w.detectDuplicates=!!j,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(tt,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);it.find=lt,it.expr=lt.selectors,it.expr[":"]=it.expr.pseudos,it.unique=lt.uniqueSort,it.text=lt.getText,it.isXMLDoc=lt.isXML,it.contains=lt.contains;var ct=it.expr.match.needsContext,dt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ft=/^.[^:#\[\.,]*$/;it.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?it.find.matchesSelector(r,e)?[r]:[]:it.find.matches(e,it.grep(t,function(e){return 1===e.nodeType}))},it.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(it(e).filter(function(){for(t=0;i>t;t++)if(it.contains(r[t],this))return!0}));for(t=0;i>t;t++)it.find(e,r[t],n);return n=this.pushStack(i>1?it.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ct.test(e)?it(e):e||[],!1).length}});var pt,ht=e.document,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,gt=it.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:mt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||pt).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof it?t[0]:t,it.merge(this,it.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ht,!0)),dt.test(n[1])&&it.isPlainObject(t))for(n in t)it.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(r=ht.getElementById(n[2]),r&&r.parentNode){if(r.id!==n[2])return pt.find(e);this.length=1,this[0]=r}return this.context=ht,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):it.isFunction(e)?"undefined"!=typeof pt.ready?pt.ready(e):e(it):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),it.makeArray(e,this))};gt.prototype=it.fn,pt=it(ht);var vt=/^(?:parents|prev(?:Until|All))/,yt={children:!0,contents:!0,next:!0,prev:!0};it.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!it(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),it.fn.extend({has:function(e){var t,n=it(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(it.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=ct.test(e)||"string"!=typeof e?it(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&it.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?it.unique(o):o)},index:function(e){return e?"string"==typeof e?it.inArray(this[0],it(e)):it.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(it.unique(it.merge(this.get(),it(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),it.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return it.dir(e,"parentNode")},parentsUntil:function(e,t,n){return it.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return it.dir(e,"nextSibling")},pLine truncated
|
||||
/**
|
||||
* jQuery Migrate
|
||||
* @see https://github.com/jquery/jquery-migrate
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(e,t,n){function r(n){var r=t.console;o[n]||(o[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,n,a,o){if(Object.defineProperty)try{return void Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return r(o),a},set:function(e){r(o),a=e}})}catch(i){}e._definePropertyBroken=!0,t[n]=a}var o={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){o={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var i=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},d=/^(?:input|button)$/i,l=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",i||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,o,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(s.length<4&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!l.test(g)&&(i?a in i:e.isFunction(e.fn[a])))?e(t)[a](o):("type"===a&&o!==n&&d.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,o=e.prop(t,r);return o===!0||"boolean"!=typeof o&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,o))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?c.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value', val) no longer sets properties"),void(e.value=t))}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var o;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=y.exec(e.trim(t)))&&o[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),o[3]&&r("$(html) HTML text after last tag is ignored"),"#"===o[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(o[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,o,i=this[0];return!i||"events"!==t||1!==arguments.length||(a=e.data(i,t),o=e._data(i,t),a!==n&&a!==o||o===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),o)};var w=/\/(java|ecma)script/i,j=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),j.apply(this,arguments)},e.clean||(e.clean=function(t,n,a,o){n=n||document,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,r("jQuery.clean() is deprecated");var i,s,u,c,d=[];if(e.merge(d,e.buildFragment(t,n).childNodes),a)for(u=function(e){return!e.type||w.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):a.appendChild(e):void 0},i=0;null!=(s=d[i]);i++)e.nodeName(s,"script")&&u(s)||(a.appendChild(s),"undefined"!=typeof s.getElementsByTagName&&(c=e.grep(e.merge([],s.getElementsByTagName("script")),u),d.splice.apply(d,[i+1,0].concat(c)),i+=c.length));return d});var x=e.event.add,Q=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,S=e.fn.die,C="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSucceLine truncated
|
||||
/**
|
||||
* jQuery Cookie Plugin
|
||||
* @see https://github.com/carhartl/jquery-cookie
|
||||
* @license MIT license
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function o(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function t(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(c," ")),u.json?JSON.parse(e):e}catch(n){}}function r(n,o){var i=u.raw?n:t(n);return e.isFunction(o)?o(i):i}var c=/\+/g,u=e.cookie=function(t,c,s){if(arguments.length>1&&!e.isFunction(c)){if(s=e.extend({},u.defaults,s),"number"==typeof s.expires){var a=s.expires,d=s.expires=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*a)}return document.cookie=[n(t),"=",i(c),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}for(var f=t?void 0:{},p=document.cookie?document.cookie.split("; "):[],l=0,m=p.length;m>l;l++){var x=p[l].split("="),g=o(x.shift()),j=x.join("=");if(t===g){f=r(j,c);break}t||void 0===(j=r(j))||(f[g]=j)}return f};u.defaults={},e.removeCookie=function(n,o){return e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n)}});
|
||||
/**
|
||||
* Device.js
|
||||
* @see https://github.com/matthewhudson/device.js
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(){var e,i,n,o,d,c,t,r,a,v;e=window.device,window.device={},n=window.document.documentElement,v=window.navigator.userAgent.toLowerCase(),device.ios=function(){return device.iphone()||device.ipod()||device.ipad()},device.iphone=function(){return o("iphone")},device.ipod=function(){return o("ipod")},device.ipad=function(){return o("ipad")},device.android=function(){return o("android")},device.androidPhone=function(){return device.android()&&o("mobile")},device.androidTablet=function(){return device.android()&&!o("mobile")},device.blackberry=function(){return o("blackberry")||o("bb10")||o("rim")},device.blackberryPhone=function(){return device.blackberry()&&!o("tablet")},device.blackberryTablet=function(){return device.blackberry()&&o("tablet")},device.windows=function(){return o("windows")},device.windowsPhone=function(){return device.windows()&&o("phone")},device.windowsTablet=function(){return device.windows()&&o("touch")&&!device.windowsPhone()},device.fxos=function(){return(o("(mobile;")||o("(tablet;"))&&o("; rv:")},device.fxosPhone=function(){return device.fxos()&&o("mobile")},device.fxosTablet=function(){return device.fxos()&&o("tablet")},device.meego=function(){return o("meego")},device.cordova=function(){return window.cordova&&"file:"===location.protocol},device.nodeWebkit=function(){return"object"==typeof window.process},device.mobile=function(){return device.androidPhone()||device.iphone()||device.ipod()||device.windowsPhone()||device.blackberryPhone()||device.fxosPhone()||device.meego()},device.tablet=function(){return device.ipad()||device.androidTablet()||device.blackberryTablet()||device.windowsTablet()||device.fxosTablet()},device.desktop=function(){return!device.tablet()&&!device.mobile()},device.portrait=function(){return window.innerHeight/window.innerWidth>1},device.landscape=function(){return window.innerHeight/window.innerWidth<1},device.noConflict=function(){return window.device=e,this},o=function(e){return-1!==v.indexOf(e)},c=function(e){var i;return i=new RegExp(e,"i"),n.className.match(i)},i=function(e){return c(e)?void 0:n.className+=" "+e},r=function(e){return c(e)?n.className=n.className.replace(e,""):void 0},device.ios()?device.ipad()?i("ios ipad tablet"):device.iphone()?i("ios iphone mobile"):device.ipod()&&i("ios ipod mobile"):i(device.android()?device.androidTablet()?"android tablet":"android mobile":device.blackberry()?device.blackberryTablet()?"blackberry tablet":"blackberry mobile":device.windows()?device.windowsTablet()?"windows tablet":device.windowsPhone()?"windows mobile":"desktop":device.fxos()?device.fxosTablet()?"fxos tablet":"fxos mobile":device.meego()?"meego mobile":device.nodeWebkit()?"node-webkit":"desktop"),device.cordova()&&i("cordova"),d=function(){return device.landscape()?(r("portrait"),i("landscape")):(r("landscape"),i("portrait"))},a="onorientationchange"in window,t=a?"orientationchange":"resize",window.addEventListener?window.addEventListener(t,d,!1):window.attachEvent?window.attachEvent(t,d):window[t]=d,d()}).call(this);
|
||||
/**
|
||||
* jQuery resize event
|
||||
* @see http://benalman.com/projects/jquery-resize-plugin/
|
||||
* @license MIT license
|
||||
*/
|
||||
(function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k="setTimeout",j="resize",d=j+"-special-event",b="delay",f="throttleWindow";e[b]=250;e[f]=true;$.event.special[j]={setup:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.add(l);$.data(this,d,{w:l.width(),h:l.height()});if(a.length===1){g()}},teardown:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.not(l);l.removeData(d);if(!a.length){clearTimeout(i)}},add:function(l){if(!e[f]&&this[k]){return false}var n;function m(s,o,p){var q=$(this),r=$.data(this,d);r.w=o!==c?o:q.width();r.h=p!==c?p:q.height();n.apply(this,arguments)}if($.isFunction(l)){n=l;return m}else{n=l.handler;l.handler=m}}};function g(){i=h[k](function(){a.each(function(){var n=$(this),m=n.width(),l=n.height(),o=$.data(this,d);if(m!==o.w||l!==o.h){n.trigger(j,[o.w=m,o.h=l])}});g()},e[b])}})(jQuery,this);
|
||||
/**
|
||||
* jQuery easing
|
||||
* @see http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
* @license BSD License
|
||||
*/
|
||||
jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,e,t,u,a){return jQuery.easing[jQuery.easing.def](n,e,t,u,a)},easeInQuad:function(n,e,t,u,a){return u*(e/=a)*e+t},easeOutQuad:function(n,e,t,u,a){return-u*(e/=a)*(e-2)+t},easeInOutQuad:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e+t:-u/2*(--e*(e-2)-1)+t},easeInCubic:function(n,e,t,u,a){return u*(e/=a)*e*e+t},easeOutCubic:function(n,e,t,u,a){return u*((e=e/a-1)*e*e+1)+t},easeInOutCubic:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e+t:u/2*((e-=2)*e*e+2)+t},easeInQuart:function(n,e,t,u,a){return u*(e/=a)*e*e*e+t},easeOutQuart:function(n,e,t,u,a){return-u*((e=e/a-1)*e*e*e-1)+t},easeInOutQuart:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e*e+t:-u/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(n,e,t,u,a){return u*(e/=a)*e*e*e*e+t},easeOutQuint:function(n,e,t,u,a){return u*((e=e/a-1)*e*e*e*e+1)+t},easeInOutQuint:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e*e*e+t:u/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(n,e,t,u,a){return-u*Math.cos(e/a*(Math.PI/2))+u+t},easeOutSine:function(n,e,t,u,a){return u*Math.sin(e/a*(Math.PI/2))+t},easeInOutSine:function(n,e,t,u,a){return-u/2*(Math.cos(Math.PI*e/a)-1)+t},easeInExpo:function(n,e,t,u,a){return 0==e?t:u*Math.pow(2,10*(e/a-1))+t},easeOutExpo:function(n,e,t,u,a){return e==a?t+u:u*(-Math.pow(2,-10*e/a)+1)+t},easeInOutExpo:function(n,e,t,u,a){return 0==e?t:e==a?t+u:(e/=a/2)<1?u/2*Math.pow(2,10*(e-1))+t:u/2*(-Math.pow(2,-10*--e)+2)+t},easeInCirc:function(n,e,t,u,a){return-u*(Math.sqrt(1-(e/=a)*e)-1)+t},easeOutCirc:function(n,e,t,u,a){return u*Math.sqrt(1-(e=e/a-1)*e)+t},easeInOutCirc:function(n,e,t,u,a){return(e/=a/2)<1?-u/2*(Math.sqrt(1-e*e)-1)+t:u/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(1==(e/=a))return t+u;if(i||(i=.3*a),s<Math.abs(u)){s=u;var r=i/4}else var r=i/(2*Math.PI)*Math.asin(u/s);return-(s*Math.pow(2,10*(e-=1))*Math.sin((e*a-r)*(2*Math.PI)/i))+t},easeOutElastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(1==(e/=a))return t+u;if(i||(i=.3*a),s<Math.abs(u)){s=u;var r=i/4}else var r=i/(2*Math.PI)*Math.asin(u/s);return s*Math.pow(2,-10*e)*Math.sin((e*a-r)*(2*Math.PI)/i)+u+t},easeInOutElastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(2==(e/=a/2))return t+u;if(i||(i=a*(.3*1.5)),s<Math.abs(u)){s=u;var r=i/4}else var r=i/(2*Math.PI)*Math.asin(u/s);return 1>e?-.5*(s*Math.pow(2,10*(e-=1))*Math.sin((e*a-r)*(2*Math.PI)/i))+t:s*Math.pow(2,-10*(e-=1))*Math.sin((e*a-r)*(2*Math.PI)/i)*.5+u+t},easeInBack:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),u*(e/=a)*e*((r+1)*e-r)+t},easeOutBack:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),u*((e=e/a-1)*e*((r+1)*e+r)+1)+t},easeInOutBack:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),(e/=a/2)<1?u/2*(e*e*(((r*=1.525)+1)*e-r))+t:u/2*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)+t},easeInBounce:function(n,e,t,u,a){return u-jQuery.easing.easeOutBounce(n,a-e,0,u,a)+t},easeOutBounce:function(n,e,t,u,a){return(e/=a)<1/2.75?u*(7.5625*e*e)+t:2/2.75>e?u*(7.5625*(e-=1.5/2.75)*e+.75)+t:2.5/2.75>e?u*(7.5625*(e-=2.25/2.75)*e+.9375)+t:u*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(n,e,t,u,a){return a/2>e?.5*jQuery.easing.easeInBounce(n,2*e,0,u,a)+t:.5*jQuery.easing.easeOutBounce(n,2*e-a,0,u,a)+.5*u+t}});
|
||||
/**
|
||||
* TouchSwipe
|
||||
* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var y="1.6.12",p="left",o="right",e="up",x="down",c="in",A="out",m="none",s="auto",l="swipe",t="pinch",B="tap",j="doubletap",b="longtap",z="hold",E="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,C="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:true};f.fn.swipe=function(H){var G=f(this),F=G.data(C);if(F&&typeof H==="string"){if(F[H]){return F[H].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+H+" does not exist on jQuery.swipe")}}else{if(F&&typeof H==="object"){F.option.apply(this,arguments)}else{if(!F&&(typeof H==="object"||!H)){return w.apply(this,arguments)}}}return G};f.fn.swipe.version=y;f.fn.swipe.defaults=n;f.fn.swipe.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipe.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:A};f.fn.swipe.pageScroll={NONE:m,HORIZONTAL:E,VERTICAL:u,AUTO:s};f.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:i};function w(F){if(F&&(F.allowPageScroll===undefined&&(F.swipe!==undefined||F.swipeStatus!==undefined))){F.allowPageScroll=m}if(F.click!==undefined&&F.tap===undefined){F.tap=F.click}if(!F){F={}}F=f.extend({},f.fn.swipe.defaults,F);return this.each(function(){var H=f(this);var G=H.data(C);if(!G){G=new D(this,F);H.data(C,G)}})}function D(a4,au){var au=f.extend({},au);var az=(a||d||!au.fallbackToMouseEvents),K=az?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",ax=az?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",V=az?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",T=az?null:"mouseleave",aD=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ag=0,aP=null,ac=0,a1=0,aZ=0,H=1,ap=0,aJ=0,N=null;var aR=f(a4);var aa="start";var X=0;var aQ={};var U=0,a2=0,a5=0,ay=0,O=0;var aW=null,af=null;try{aR.bind(K,aN);aR.bind(aD,a9)}catch(aj){f.error("events not supported "+K+","+aD+" on jQuery.swipe")}this.enable=function(){aR.bind(K,aN);aR.bind(aD,a9);return aR};this.disable=function(){aK();return aR};this.destroy=function(){aK();aR.data(C,null);aR=null};this.option=function(bc,bb){if(typeof bc==="object"){au=f.extend(au,bc)}else{if(au[bc]!==undefined){if(bb===undefined){return au[bc]}else{au[bc]=bb}}else{if(!bc){return au}else{f.error("Option "+bc+" does not exist on jQuery.swipe.options")}}}return null};function aN(bd){if(aB()){return}if(f(bd.target).closest(au.excludedElements,aR).length>0){return}var be=bd.originalEvent?bd.originalEvent:bd;var bc,bf=be.touches,bb=bf?bf[0]:be;aa=g;if(bf){X=bf.length}else{if(au.preventDefaultEvents!==false){bd.preventDefault()}}ag=0;aP=null;aJ=null;ac=0;a1=0;aZ=0;H=1;ap=0;N=ab();S();ai(0,bb);if(!bf||(X===au.fingers||au.fingers===i)||aX()){U=ar();if(X==2){ai(1,bf[1]);a1=aZ=at(aQ[0].start,aQ[1].start)}if(au.swipeStatus||au.pinchStatus){bc=P(be,aa)}}else{bc=false}if(bc===false){aa=q;P(be,aa);return bc}else{if(au.hold){af=setTimeout(f.proxy(function(){aR.trigger("hold",[be.target]);if(au.hold){bc=au.hold.call(aR,be,be.target)}},this),au.longTapThreshold)}an(true)}return null}function a3(be){var bh=be.originalEvent?be.originalEvent:be;if(aa===h||aa===q||al()){return}var bd,bi=bh.touches,bc=bi?bi[0]:bh;var bf=aH(bc);a2=ar();if(bi){X=bi.length}if(au.hold){clearTimeout(af)}aa=k;if(X==2){if(a1==0){ai(1,bi[1]);a1=aZ=at(aQ[0].start,aQ[1].start)}else{aH(bi[1]);aZ=at(aQ[0].end,aQ[1].end);aJ=aq(aQ[0].end,aQ[1].end)}H=a7(a1,aZ);ap=Math.abs(a1-aZ)}if((X===au.fingers||au.fingers===i)||!bi||aX()){aP=aL(bf.start,bf.end);ak(be,aP);ag=aS(bf.start,bf.end);ac=aM();aI(aP,ag);if(au.swipeStatus||au.pinchStatus){bd=P(bh,aa)}if(!au.triggerOnTouchEnd||au.triggerOnTouchLeave){var bb=true;if(au.triggerOnTouchLeave){var bg=aY(this);bb=F(bf.end,bg)}if(!au.triggerOnTouchEnd&&bb){aa=aC(k)}else{if(au.triggerOnTouchLeave&&!bb){aa=aC(h)}}if(aa==q||aa==h){P(bh,aa)}}}else{aa=q;P(bh,aa)}if(bd===false){aa=q;P(bh,aa)}}function M(bb){var bc=bb.originalEvent?bb.originalEvent:bb,bd=bc.touches;if(bd){if(bd.length&&!al()){G();return true}else{if(bd.length&&al()){return true}}}if(al()){X=ay}a2=ar();ac=aM();if(ba()||!am()){aa=q;P(bc,aa)}else{if(au.triggerOnTouchEnd||(au.triggerOnTouchEnd==false&&aa===k)){if(au.preventDefaultEvents!==false){bb.preventDefault()}aa=h;P(bc,aa)}else{if(!au.triggerOnTouLine truncated
|
||||
/**
|
||||
* Regula: An annotation-based form-validation framework in Javascript
|
||||
* @version 1.3.4
|
||||
* @license BSD License
|
||||
* @copyright Robert Nyman, http://www.robertnyman.com
|
||||
*/
|
||||
(function(e,t){typeof define=="function"&&define.amd?define("utils/MapUtils",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.MapUtils=t())})(this,function(){return{iterateOverMap:function(e,t){var n=0;for(var r in e)e.hasOwnProperty(r)&&r!=="__size__"&&(t.call(e,r,e[r],n),n++)},exists:function(e,t){var n=!1,r=0;while(!n&&r<e.length)n=t==e[r],r++;return n},put:function(e,t,n){e.__size__||(e.__size__=0),e[t]||e.__size__++,e[t]=n},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}}}),function(e,t){typeof define=="function"&&define.amd?define("utils/DOMUtils",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.DOMUtils=t())}(this,function(){function t(e,t,n,r){var i=t=="*"&&e.all?e.all:e.getElementsByTagName(t),s=[],o=typeof r!="undefined"?new RegExp("(^|\\s)"+r+"(\\s|$)"):null,u,a;for(var f=0;f<i.length;f++)u=i[f],a=u.getAttribute&&u.getAttribute(n),typeof a=="string"&&a.length>0&&(typeof r=="undefined"||o&&o.test(a))&&s.push(u);return s}function n(e,t){var n=e.getAttribute&&e.getAttribute(t)||null;if(!n){var r=e.attributes;for(var i=0;i<r.length;i++)r[i].nodeName===t&&(n=r[i].nodeValue)}return n}function r(){return"regula-generated-"+Math.floor(Math.random()*1e6)}function i(){return typeof document.createElement("input").checkValidity=="function"}var e={form:"The form",select:"The select box",textarea:"The text area",checkbox:"The checkbox",radio:"The radio button",text:"The text field",password:"The password",email:"The email",url:"The URL",number:"The number",datetime:"The datetime","datetime-local":"The local datetime",date:"The date",month:"The month",time:"The time",week:"The week",range:"The range",tel:"The telephone number",color:"The color"};return{friendlyInputNames:e,getElementsByAttribute:t,getAttributeValueForElement:n,generateRandomId:r,supportsHTML5Validation:i}}),function(e,t){typeof define=="function"&&define.amd?define("service/GroupService",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.GroupService=t())}(this,function(){var e={Default:0},t={0:"Default"},n=[],r=1;return{Group:e,ReverseGroup:t,deletedGroupIndices:n,firstCustomGroupIndex:r}}),function(e,t){typeof define=="function"&&define.amd?define("utils/ArrayUtils",t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ArrayUtils=t())}(this,function(){function e(e,t){var n="";for(var r=0;r<e.length;r++)n+=e[r]+t;return n.replace(new RegExp(t+"$"),"")}return{explode:e}}),function(e,t){typeof define=="function"&&define.amd?define("service/ExceptionService",["utils/ArrayUtils"],t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ExceptionService=t(e.regulaModules.ArrayUtils))}(this,function(e){function i(e,t,n){var r="";return e!=null?(r=e.id,t==""||t==null||t==undefined?r+=": ":r+="."+t+": "):t!=""&&t!=null&&t!=undefined&&(r="@"+t+": "),r+n}function s(t){var n="Function received: {";for(var r in t)t.hasOwnProperty(r)&&(typeof t[r]=="string"?n+=r+": "+t[r]+", ":t[r]instanceof Array&&(n+=r+": ["+e.explode(t[r],", ")+"], "));return n=n.replace(/, $/,"")+"}",n}var t={IllegalArgumentException:function(e){this.name="IllegalArgumentException",this.message=e},ConstraintDefinitionException:function(e){this.name="ConstraintDefinitionException",this.message=e},BindException:function(e){this.name="BindException",this.message=e},MissingFeatureException:function(e){this.name="MissingFeatureException",this.message=e}};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.prototype=new Error,r.prototype.constructor=r}return{Exception:t,generateExceptionMessage:i,explodeParameters:s}}),function(e,t){typeof define=="function"&&define.amd?define("service/ValidationService",["utils/DOMUtils","utils/MapUtils","service/GroupService","service/ExceptionService","utils/ArrayUtils"],t):(typeof e.regulaModules=="undefined"&&(e.regulaModules={}),e.regulaModules.ValidationService=t(e.regulaModules.DOMUtils,e.regulaModules.MapUtils,e.regulaModules.GroupService,e.regulaModules.ExceptionService,e.regulaModules.ArrayUtils))}(this,function(e,t,n,r,i){function h(e){for(var t in e)e.hasOwnProperty(t)&&v(t,e)}function p(e){s=e.config,o=e.ReverseConstraint,u=e.constraintDefinitions,a=e.boundConstraints}function v(e,t){var n=t[e],i=e.replace(/(^[A-Z]+)/,function(e){return e.toLowerCase()});n.async?c[i]=function(t,i,s){if(typeof s=="undefined")throw new r.Exception.IllegalArgumentException(e+" is an asynchronous constraint, but you have not provided a callback.");return n.validator.call(t,i,c,s)}:c[i]=function(e,t){return n.validator.call(e,t,c)}}function m(e,n,r,i){function a(n,r){var i={};for(var s in n)n.hasOwnProperty(s)&&s!="__size__"&&t.put(i,s,n[s]);if(r.length>0)for(var s in e)e.hasOwnProperty(s)&&s!="__size__"&&t.put(i,s,e[s]);return i}function f(e,t,n,i){var s=o[y.constraintType],a=W(t,s,i),f={group:n,constraintName:e.constraintName,custom:u[s].custom,compound:u[s].compound,async:u[s].async,constraintParameters:yLine truncated
|
||||
/**
|
||||
* @module jQuery Form Plugin
|
||||
* @version 3.51
|
||||
* @author M. Alsup
|
||||
* @see http://malsup.com/jquery/form/
|
||||
* @license MIT and GPL licenses
|
||||
*/
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["../jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e("<input type='file'/>").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;i<a.length;i++)n.append(a[i].name,a[i].value);if(t.extraData){var o=r(t.extraData);for(i=0;i<o.length;i++)o[i]&&n.append(o[i][0],o[i][1])}t.data=null;var s=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:u||"POST"});t.uploadProgress&&(s.xhr=function(){var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,a=e.loaded||e.position,n=e.total;e.lengthComputable&&(r=Math.ceil(a/n*100)),t.uploadProgress(e,a,n,r)},!1),r}),s.data=null;var c=s.beforeSend;return s.beforeSend=function(e,r){r.data=t.formData?t.formData:n,c&&c.call(this,e,r)},e.ajax(s)}function s(r){function n(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(r){a("cannot get iframe.contentWindow document: "+r)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(r){a("cannot get iframe.contentDocument: "+r),t=e.document}return t}function o(){function t(){try{var e=n(g).readyState;a("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(r){a("Server abort: ",r," (",r.name,")"),s(k),j&&clearTimeout(j),j=void 0}}var r=f.attr2("target"),i=f.attr2("action"),o="multipart/form-data",c=f.attr("enctype")||f.attr("encoding")||o;w.setAttribute("target",p),(!u||/post/i.test(u))&&w.setAttribute("method","POST"),i!=m.url&&w.setAttribute("action",m.url),m.skipEncodingOverride||u&&!/post/i.test(u)||f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),m.timeout&&(j=setTimeout(function(){T=!0,s(D)},m.timeout));var l=[];try{if(m.extraData)for(var d in m.extraData)m.extraData.hasOwnProperty(d)&&l.push(e.isPlainObject(m.extraData[d])&&m.extraData[d].hasOwnProperty("name")&&m.extraData[d].hasOwnProperty("value")?e('<input type="hidden" name="'+m.extraData[d].name+'">').val(m.extraData[d].value).appendTo(w)[0]:e('<input type="hidden" name="'+d+'">').val(m.extraData[d]).appendTo(w)[0]);m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(h){var x=document.createElement("form").submit;x.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",c),r?w.setAttribute("target",r):f.removeAttr("target"),e(l).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t==k&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(m.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(l){var p=M.getElementsByTagName("prLine truncated
|
||||
/**
|
||||
* @module jQuery Count To
|
||||
* @author Matt Huggins
|
||||
* @see https://github.com/mhuggins/jquery-countTo
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(t){function e(t,e){return t.toFixed(e.decimals)}var o=function(e,i){this.$element=t(e),this.options=t.extend({},o.DEFAULTS,this.dataOptions(),i),this.init()};o.DEFAULTS={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:e,onUpdate:null,onComplete:null},o.prototype.init=function(){this.value=this.options.from,this.loops=Math.ceil(this.options.speed/this.options.refreshInterval),this.loopCount=0,this.increment=(this.options.to-this.options.from)/this.loops},o.prototype.dataOptions=function(){var t={from:this.$element.data("from"),to:this.$element.data("to"),speed:this.$element.data("speed"),refreshInterval:this.$element.data("refresh-interval"),decimals:this.$element.data("decimals")},e=Object.keys(t);for(var o in e){var i=e[o];"undefined"==typeof t[i]&&delete t[i]}return t},o.prototype.update=function(){this.value+=this.increment,this.loopCount++,this.render(),"function"==typeof this.options.onUpdate&&this.options.onUpdate.call(this.$element,this.value),this.loopCount>=this.loops&&(clearInterval(this.interval),this.value=this.options.to,"function"==typeof this.options.onComplete&&this.options.onComplete.call(this.$element,this.value))},o.prototype.render=function(){var t=this.options.formatter.call(this.$element,this.value,this.options);this.$element.text(t)},o.prototype.restart=function(){this.stop(),this.init(),this.start()},o.prototype.start=function(){this.stop(),this.render(),this.interval=setInterval(this.update.bind(this),this.options.refreshInterval)},o.prototype.stop=function(){this.interval&&clearInterval(this.interval)},o.prototype.toggle=function(){this.interval?this.stop():this.start()},t.fn.countTo=function(e){return this.each(function(){var i=t(this),n=i.data("countTo"),s=!n||"object"==typeof e,r="object"==typeof e?e:{},a="string"==typeof e?e:"start";s&&(n&&n.stop(),i.data("countTo",n=new o(this,r))),n[a].call(n)})}}(jQuery);
|
||||
/**
|
||||
* @module SmoothScroll
|
||||
* @author Balazs Galambosi, Patrick Brunner, Michael Herf
|
||||
* @license MIT license
|
||||
* @version v0.9.9
|
||||
*/
|
||||
if ($("html").hasClass("smoothscroll")) {function ssc_init(){if(document.body){var a=document.body,b=document.documentElement,c=window.innerHeight,d=a.scrollHeight;(ssc_root=0<=document.compatMode.indexOf("CSS")?b:a,ssc_activeElement=a,ssc_initdone=!0,top!=self)?ssc_frame=!0:d>c&&(a.offsetHeight<=c||b.offsetHeight<=c)&&(ssc_root.style.height="auto",ssc_root.offsetHeight<=c)&&(c=document.createElement("div"),c.style.clear="both",a.appendChild(c));ssc_fixedback||(a.style.backgroundAttachment="scroll",b.style.backgroundAttachment="scroll");ssc_keyboardsupport&&ssc_addEvent("keydown",ssc_keydown)}}function ssc_scrollArray(a,b,c,d){if(d||(d=1E3),ssc_directionCheck(b,c),ssc_que.push({x:b,y:c,lastX:0>b?.99:-.99,lastY:0>c?.99:-.99,start:+new Date}),!ssc_pending){var e=function(){for(var n=+new Date,h=0,m=0,k=0;k<ssc_que.length;k++){var f=ssc_que[k],l=n-f.start,p=l>=ssc_animtime,g=p?1:l/ssc_animtime;ssc_pulseAlgorithm&&(g=ssc_pulse(g));l=f.x*g-f.lastX>>0;g=f.y*g-f.lastY>>0;h+=l;m+=g;f.lastX+=l;f.lastY+=g;p&&(ssc_que.splice(k,1),k--)}b&&(n=a.scrollLeft,a.scrollLeft+=h,h&&a.scrollLeft===n&&(b=0));c&&(h=a.scrollTop,a.scrollTop+=m,m&&a.scrollTop===h&&(c=0));b||c||(ssc_que=[]);ssc_que.length?setTimeout(e,d/ssc_framerate+1):ssc_pending=!1};setTimeout(e,0);ssc_pending=!0}}function ssc_wheel(a){ssc_initdone||ssc_init();var b=a.target,c=ssc_overflowingAncestor(b);if(!c||a.defaultPrevented||ssc_isNodeName(ssc_activeElement,"embed")||ssc_isNodeName(b,"embed")&&/\.pdf/i.test(b.src))return!0;var b=a.wheelDeltaX||0,d=a.wheelDeltaY||0;b||d||(d=a.wheelDelta||0);1.2<Math.abs(b)&&(b*=ssc_stepsize/120);1.2<Math.abs(d)&&(d*=ssc_stepsize/120);ssc_scrollArray(c,-b,-d);a.preventDefault()}function ssc_keydown(a){var b=a.target,c=a.ctrlKey||a.altKey||a.metaKey;if(/input|textarea|embed/i.test(b.nodeName)||b.isContentEditable||a.defaultPrevented||c||ssc_isNodeName(b,"button")&&a.keyCode===ssc_key.spacebar)return!0;var d;d=b=0;var c=ssc_overflowingAncestor(ssc_activeElement),e=c.clientHeight;switch(c==document.body&&(e=window.innerHeight),a.keyCode){case ssc_key.up:d=-ssc_arrowscroll;break;case ssc_key.down:d=ssc_arrowscroll;break;case ssc_key.spacebar:d=a.shiftKey?1:-1;d=-d*e*.9;break;case ssc_key.pageup:d=.9*-e;break;case ssc_key.pagedown:d=.9*e;break;case ssc_key.home:d=-c.scrollTop;break;case ssc_key.end:e=c.scrollHeight-c.scrollTop-e;d=0<e?e+10:0;break;case ssc_key.left:b=-ssc_arrowscroll;break;case ssc_key.right:b=ssc_arrowscroll;break;default:return!0}ssc_scrollArray(c,b,d);a.preventDefault()}function ssc_mousedown(a){ssc_activeElement=a.target}function ssc_setCache(a,b){for(var c=a.length;c--;)ssc_cache[ssc_uniqueID(a[c])]=b;return b}function ssc_overflowingAncestor(a){var b=[],c=ssc_root.scrollHeight;do{var d=ssc_cache[ssc_uniqueID(a)];if(d)return ssc_setCache(b,d);if(b.push(a),c===a.scrollHeight){if(!ssc_frame||ssc_root.clientHeight+10<c)return ssc_setCache(b,document.body)}else if(a.clientHeight+10<a.scrollHeight&&(overflow=getComputedStyle(a,"").getPropertyValue("overflow"),"scroll"===overflow||"auto"===overflow))return ssc_setCache(b,a)}while(a=a.parentNode)}function ssc_addEvent(a,b,c){window.addEventListener(a,b,c||!1)}function ssc_removeEvent(a,b,c){window.removeEventListener(a,b,c||!1)}function ssc_isNodeName(a,b){return a.nodeName.toLowerCase()===b.toLowerCase()}function ssc_directionCheck(a,b){a=0<a?1:-1;b=0<b?1:-1;(ssc_direction.x!==a||ssc_direction.y!==b)&&(ssc_direction.x=a,ssc_direction.y=b,ssc_que=[])}function ssc_pulse_(a){var b,c,d;return a*=ssc_pulseScale,1>a?b=a-(1-Math.exp(-a)):(c=Math.exp(-1),--a,d=1-Math.exp(-a),b=c+d*(1-c)),b*ssc_pulseNormalize}function ssc_pulse(a){return 1<=a?1:0>=a?0:(1==ssc_pulseNormalize&&(ssc_pulseNormalize/=ssc_pulse_(1)),ssc_pulse_(a))}if(-1===navigator.platform.toUpperCase().indexOf("MAC")&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini|BlackBerry)/)){var ssc_framerate=150,ssc_animtime=700,ssc_stepsize=100,ssc_pulseAlgorithm=!0,ssc_pulseScale=8,ssc_pulseNormalize=1,ssc_keyboardsupport=!0,ssc_arrowscroll=50,ssc_frame=!1,ssc_direction={x:0,y:0},ssc_initdone=!1,ssc_fixedback=!0,ssc_root=document.documentElement,ssc_activeElement,ssc_key={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},ssc_que=[],ssc_pending=!1,ssc_cache={};setInterval(function(){ssc_cache={}},1E4);var ssc_uniqueID=function(){var a=0;return function(b){return b.ssc_uniqueID||(b.ssc_uniqueID=a++)}}(),ischrome=/chrome/.test(navigator.userAgent.toLowerCase());ischrome&&(ssc_addEvent("mousedown",ssc_mousedown),ssc_addEvent("mousewheel",ssc_wheel),ssc_addEvent("load",ssc_init))};}
|
||||
/**
|
||||
* @module Swiper 3.1.7
|
||||
* @description Most modern mobile touch slider and framework with hardware accelerated transitions
|
||||
* @author Vladimir Kharlampidi
|
||||
* @see http://www.idangero.us/swiper/
|
||||
* @licesne MIT License
|
||||
*/
|
||||
!function(){"use strict";function e(e){e.fn.swiper=function(a){var s;return e(this).each(function(){var e=new t(this,a);s||(s=e)}),s}}var a,t=function(e,s){function r(){return"horizontal"===v.params.direction}function i(e){return Math.floor(e)}function n(){v.autoplayTimeoutId=setTimeout(function(){v.params.loop?(v.fixLoop(),v._slideNext()):v.isEnd?s.autoplayStopOnLast?v.stopAutoplay():v._slideTo(0):v._slideNext()},v.params.autoplay)}function o(e,t){var s=a(e.target);if(!s.is(t))if("string"==typeof t)s=s.parents(t);else if(t.nodeType){var r;return s.parents().each(function(e,a){a===t&&(r=t)}),r?t:void 0}return 0===s.length?void 0:s[0]}function l(e,a){a=a||{};var t=window.MutationObserver||window.WebkitMutationObserver,s=new t(function(e){e.forEach(function(e){v.onResize(!0),v.emit("onObserverUpdate",v,e)})});s.observe(e,{attributes:"undefined"==typeof a.attributes?!0:a.attributes,childList:"undefined"==typeof a.childList?!0:a.childList,characterData:"undefined"==typeof a.characterData?!0:a.characterData}),v.observers.push(s)}function p(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;if(!v.params.allowSwipeToNext&&(r()&&39===a||!r()&&40===a))return!1;if(!v.params.allowSwipeToPrev&&(r()&&37===a||!r()&&38===a))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(v.container.parents(".swiper-slide").length>0&&0===v.container.parents(".swiper-slide-active").length)return;var s={left:window.pageXOffset,top:window.pageYOffset},i=window.innerWidth,n=window.innerHeight,o=v.container.offset();v.rtl&&(o.left=o.left-v.container[0].scrollLeft);for(var l=[[o.left,o.top],[o.left+v.width,o.top],[o.left,o.top+v.height],[o.left+v.width,o.top+v.height]],p=0;p<l.length;p++){var d=l[p];d[0]>=s.left&&d[0]<=s.left+i&&d[1]>=s.top&&d[1]<=s.top+n&&(t=!0)}if(!t)return}r()?((37===a||39===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===a&&!v.rtl||37===a&&v.rtl)&&v.slideNext(),(37===a&&!v.rtl||39===a&&v.rtl)&&v.slidePrev()):((38===a||40===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&v.slideNext(),38===a&&v.slidePrev())}}function d(e){e.originalEvent&&(e=e.originalEvent);var a=v.mousewheel.event,t=0;if(e.detail)t=-e.detail;else if("mousewheel"===a)if(v.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;t=e.wheelDeltaX}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;t=e.wheelDeltaY}else t=e.wheelDelta;else if("DOMMouseScroll"===a)t=-e.detail;else if("wheel"===a)if(v.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;t=-e.deltaX}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;t=-e.deltaY}else t=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX:-e.deltaY;if(v.params.mousewheelInvert&&(t=-t),v.params.freeMode){var s=v.getWrapperTranslate()+t*v.params.mousewheelSensitivity;if(s>v.minTranslate()&&(s=v.minTranslate()),s<v.maxTranslate()&&(s=v.maxTranslate()),v.setWrapperTransition(0),v.setWrapperTranslate(s),v.updateProgress(),v.updateActiveIndex(),v.params.freeModeSticky&&(clearTimeout(v.mousewheel.timeout),v.mousewheel.timeout=setTimeout(function(){v.slideReset()},300)),0===s||s===v.maxTranslate())return}else{if((new window.Date).getTime()-v.mousewheel.lastScrollTime>60)if(0>t)if(v.isEnd&&!v.params.loop||v.animating){if(v.params.mousewheelReleaseOnEdges)return!0}else v.slideNext();else if(v.isBeginning&&!v.params.loop||v.animating){if(v.params.mousewheelReleaseOnEdges)return!0}else v.slidePrev();v.mousewheel.lastScrollTime=(new window.Date).getTime()}return v.params.autoplay&&v.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}function c(e,t){e=a(e);var s,i,n;s=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),n=e.attr("data-swiper-parallax-y"),i||n?(i=i||"0",n=n||"0"):r()?(i=s,n="0"):(n=s,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*t+"%":i*t+"px",n=n.indexOf("%")>=0?parseInt(n,10)*t+"%":n*t+"px",e.transform("translate3d("+i+", "+n+",0px)")}function u(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(e,s);var m={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnReLine truncated
|
||||
if("undefined"==typeof a&&(a=v.params.speed),v.previousIndex=v.activeIndex||0,v.activeIndex=e,i===v.translate)return v.updateClasses(),!1;v.updateClasses(),v.onTransitionStart(t);r()?i:0,r()?0:i;return 0===a?(v.setWrapperTransition(0),v.setWrapperTranslate(i),v.onTransitionEnd(t)):(v.setWrapperTransition(a),v.setWrapperTranslate(i),v.animating||(v.animating=!0,v.wrapper.transitionEnd(function(){v&&v.onTransitionEnd(t)}))),!0},v.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),v.lazy&&v.lazy.onTransitionStart(),e&&(v.emit("onTransitionStart",v),v.activeIndex!==v.previousIndex&&v.emit("onSlideChangeStart",v))},v.onTransitionEnd=function(e){v.animating=!1,v.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),v.lazy&&v.lazy.onTransitionEnd(),e&&(v.emit("onTransitionEnd",v),v.activeIndex!==v.previousIndex&&v.emit("onSlideChangeEnd",v)),v.params.hashnav&&v.hashnav&&v.hashnav.setHash()},v.slideNext=function(e,a,t){if(v.params.loop){if(v.animating)return!1;v.fixLoop();{v.container[0].clientLeft}return v.slideTo(v.activeIndex+v.params.slidesPerGroup,a,e,t)}return v.slideTo(v.activeIndex+v.params.slidesPerGroup,a,e,t)},v._slideNext=function(e){return v.slideNext(!0,e,!0)},v.slidePrev=function(e,a,t){if(v.params.loop){if(v.animating)return!1;v.fixLoop();{v.container[0].clientLeft}return v.slideTo(v.activeIndex-1,a,e,t)}return v.slideTo(v.activeIndex-1,a,e,t)},v._slidePrev=function(e){return v.slidePrev(!0,e,!0)},v.slideReset=function(e,a){return v.slideTo(v.activeIndex,a,e)},v.setWrapperTransition=function(e,a){v.wrapper.transition(e),"slide"!==v.params.effect&&v.effects[v.params.effect]&&v.effects[v.params.effect].setTransition(e),v.params.parallax&&v.parallax&&v.parallax.setTransition(e),v.params.scrollbar&&v.scrollbar&&v.scrollbar.setTransition(e),v.params.control&&v.controller&&v.controller.setTransition(e,a),v.emit("onSetTransition",v,e)},v.setWrapperTranslate=function(e,a,t){var s=0,n=0,o=0;r()?s=v.rtl?-e:e:n=e,v.params.roundLengths&&(s=i(s),n=i(n)),v.params.virtualTranslate||v.wrapper.transform(v.support.transforms3d?"translate3d("+s+"px, "+n+"px, "+o+"px)":"translate("+s+"px, "+n+"px)"),v.translate=r()?s:n,a&&v.updateActiveIndex(),"slide"!==v.params.effect&&v.effects[v.params.effect]&&v.effects[v.params.effect].setTranslate(v.translate),v.params.parallax&&v.parallax&&v.parallax.setTranslate(v.translate),v.params.scrollbar&&v.scrollbar&&v.scrollbar.setTranslate(v.translate),v.params.control&&v.controller&&v.controller.setTranslate(v.translate,t),v.emit("onSetTranslate",v,v.translate)},v.getTranslate=function(e,a){var t,s,r,i;return"undefined"==typeof a&&(a="x"),v.params.virtualTranslate?v.rtl?-v.translate:v.translate:(r=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.WebKitCSSMatrix("none"===s?"":s)):(i=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=i.toString().split(",")),"x"===a&&(s=window.WebKitCSSMatrix?i.m41:parseFloat(16===t.length?t[12]:t[4])),"y"===a&&(s=window.WebKitCSSMatrix?i.m42:parseFloat(16===t.length?t[13]:t[5])),v.rtl&&s&&(s=-s),s||0)},v.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=r()?"x":"y"),v.getTranslate(v.wrapper[0],e)},v.observers=[],v.initObservers=function(){if(v.params.observeParents)for(var e=v.container.parents(),a=0;a<e.length;a++)l(e[a]);l(v.container[0],{childList:!1}),l(v.wrapper[0],{attributes:!1})},v.disconnectObservers=function(){for(var e=0;e<v.observers.length;e++)v.observers[e].disconnect();v.observers=[]},v.createLoop=function(){v.wrapper.children("."+v.params.slideClass+"."+v.params.slideDuplicateClass).remove();var e=v.wrapper.children("."+v.params.slideClass);"auto"!==v.params.slidesPerView||v.params.loopedSlides||(v.params.loopedSlides=e.length),v.loopedSlides=parseInt(v.params.loopedSlides||v.params.slidesPerView,10),v.loopedSlides=v.loopedSlides+v.params.loopAdditionalSlides,v.loopedSlides>e.length&&(v.loopedSlides=e.length);var t,s=[],r=[];for(e.each(function(t,i){var n=a(this);t<v.loopedSlides&&r.push(i),t<e.length&&t>=e.length-v.loopedSlides&&s.push(i),n.attr("data-swiper-slide-index",t)}),t=0;t<r.length;t++)v.wrapper.append(a(r[t].cloneNode(!0)).addClass(v.params.slideDuplicateClass));for(t=s.length-1;t>=0;t--)v.wrapper.prepend(a(s[t].cloneNode(!0)).addClass(v.params.slideDuplicateClass))},v.destroyLoop=function(){v.wrapper.children("."+v.params.slideClass+"."+v.params.slideDuplicateClass).remove(),v.slides.removeAttr("data-swiper-slide-index")},v.fixLoop=function(){var e;v.activeIndex<v.loopedSlides?(e=v.slides.length-3*v.loopedSlides+v.activeIndex,e+=v.loopedSlides,v.slideTo(e,0,!1,!0)):("auto"===v.params.slidesPerView&&v.activeIndex>=2*v.loopedSlides||v.activeIndex>v.slides.length-2*v.params.slidesPerView)&&(e=-v.slides.length+v.activeIndex+v.loopedSlides,e+=v.loopedSlidesLine truncated
|
||||
/**
|
||||
* @module RD Parallax
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @version 3.6.4
|
||||
*/
|
||||
(function(){(function(p,n,d){var t,x,y,v,k,m,w,r,u;m=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);y=/Chrome/.test(navigator.userAgent);r=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)||/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor);v=m&&/crios/i.test(navigator.userAgent);w=/iPhone|iPad|iPod/i.test(navigator.userAgent)&&!!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);k=-1!==navigator.appVersion.indexOf("MSIE")|| -1 <navigator.appVersion.indexOf("Trident/");u=/windows nt 6.2/.test(navigator.userAgent.toLowerCase())||/windows nt 6.3/.test(navigator.userAgent.toLowerCase());x=null!=n.body.classList;(function(){var k,m,n,b,a;m=0;a=["ms","moz","webkit","o"];k=0;for(n=a.length;k<n;k++)b=a[k],d.requestAnimationFrame=d[b+"RequestAnimationFrame"],d.cancelAnimationFrame=d[b+"CancelAnimationFrame"]||d[b+"CancelRequestAnimationFrame"];d.requestAnimationFrame||(d.requestAnimationFrame=function(a,c){var e,b,f;e=(new Date).getTime(); f=Math.max(0,16-(e-m));b=d.setTimeout(function(){a(e+f)},f);m=e+f;return b});if(!d.cancelAnimationFrame)return d.cancelAnimationFrame=function(a){return clearTimeout(a)}});t=function(){function q(b){this.options=p.extend(!0,{},this.Defaults,b);this.scenes=[];this.initialize();this.scrollY=d.scrollY||d.pageYOffset;this.lastScrollY=-1;this.lastDocHeight=0;this.checkLayerHeight=this.inputFocus=!1}var z,t;z=function(){function b(a,g,c,e,b,f,h){this.amend=r||k||m?60:0;this.element=a;this.aliases=g;this.type= a.getAttribute("data-type")||"html";"html"===this.type&&(this.holder=this.createHolder());this.direction="normal"===a.getAttribute("data-direction")||null==a.getAttribute("data-direction")?1:-1;this.fade="true"===a.getAttribute("data-fade");this.blur="true"===a.getAttribute("data-blur");this.boundTo=n.querySelector(a.getAttribute("data-bound-to"));"media"===this.type&&(this.url=a.getAttribute("data-url"));this.responsive=this.getResponsiveOptions();this.element.style.position=!k&&!m||m||u&&k?"absolute": "fixed";switch(this.type){case "media":null!=this.url&&(this.element.style["background-image"]="url("+this.url+")");break;case "html":k&&m&&(this.element.style["z-index"]=1)}this.refresh(c,e,b,f,h)}b.prototype.refresh=function(a,g,c,e,b){this.speed=this.getOption("speed",a)||0;this.offset=this.getOption("offset",a)||0;m||u&&k||(this.element.style.position=b?"fixed":"absolute");k&&"html"===this.type&&(this.element.style.position="absolute");switch(this.type){case "media":if(!k)return this.offsetHeight= this.getMediaHeight(g,e,this.speed,this.direction),this.element.style.height=this.offsetHeight+"px";break;case "html":this.element.style.width=this.holder.offsetWidth+"px";this.offsetHeight=this.element.offsetHeight;this.holder.style.height=this.offsetHeight+"px";if(!(!k&&!m||m||u&&k))return k?this.element.style.position="static":b&&(this.element.style.left=this.getOffset(this.holder).left+"px",this.element.style.top=this.getOffset(this.holder).top-c+"px"),this.holder.style.position="static";break; case "custom":return this.offsetHeight=this.element.offsetHeight}};b.prototype.createHolder=function(){var a;a=n.createElement("div");x?a.classList.add("rd-parallax-layer-holder"):a.className="rd-parallax-layer-holder";this.element.parentNode.insertBefore(a,this.element);a.appendChild(this.element);if(!k&&!m||v)a.style.position="relative";return a};b.prototype.isHolderWrong=function(){return"html"===this.type&&this.holder.offsetHeight!==this.element.offsetHeight?!0:!1};b.prototype.getOption=function(a, g) { var c, e; for (c in this.responsive)c <= g && (e = c); return this.responsive[e][a] }; b.prototype.getResponsiveOptions = function () { var a, g, c, e, b, f, h, l, d; l = {}; h = []; g = []; e = this.aliases; for (c in e)a = e[c], h.push(c), g.push(a); c = e = 0; for (b = h.length; e < b; c = ++e)for (f = h[c], l[f] = {}; -1 <= (a = c);)!l[f].speed && (d = this.element.getAttribute("data" + g[a] + "speed")) && (l[f].speed = this.getSpeed(d)), !l[f].offset && (d = this.element.getAttribute("data" + g[a] + "offset")) && (l[f].offset = parseInt(d)), !l[f].fade && (d = this.element.getAttribute("data"+ g[a]+"fade"))&&(l[f].fade="true"===d),c--;return l};b.prototype.fuse=function(a,g){var c,e,b;c=this.getOffset(this.element).top+this.element.getBoundingClientRect().top;e=a+g/2;c+=this.offsetHeight/2;b=g/6;e+b>c&&e-b<c?this.element.style.opacity=1:(e=e-b<c?1+(e+b-c)/g/3*10:1-(e-b-c)/g/3*10,this.element.style.opacity=0>e?0:1<e?1:e.toFixed(2))};b.prototype.move=function(a,g,c,b,d,f,h,l,n){k&&"media"===this.type||m||u&&k||(h?(h=!m||"html"===this.type&&n||v?this.speed*this.direction:this.speed*this.direction- 1,g=this.offsetHeight,null!=l?f=(b+c-(l+c))/(c-d):"media"!==this.type?b<c||b>f-c?(f=b<c?b/(c-d):(b+c-f)/(c-d),isFinite(f)||(f=0)):f=.5:f=.5,a=v||k?(d-g)/2+(c-d)*f*h+this.offset:m?-(b-a)*h+(d-g)/2+(c-d)*f*(h+1)+this.offset:-(b-a)*h+(d-g)/2+(c-d)*f*h+this.offset,m&&null!=l&&(this.element.style.top=b-lLine truncated
|
||||
/**
|
||||
* @module RDVideo
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.2
|
||||
*/
|
||||
(function(){(function(g,n,u){var q,v,k;k=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);v=0<=navigator.platform.toUpperCase().indexOf("MAC");q=function(){function d(a,c){this.options=g.extend(!0,{},this.Defaults,c);this.$element=g(a);this.$win=g(u);this.$doc=g(n);this.interval=null;this.classNames={playBtn:'[data-rd-video-btn="play"]',muteBtn:'[data-rd-video-btn="mute"]',playing:"playing",paused:"paused",muted:"muted"};this.$playBtn=this.$element.find(this.classNames.playBtn); this.$muteBtn=this.$element.find(this.classNames.muteBtn);this.initialize()}d.prototype.Defaults={position:"50% 50%",volume:.5,playbackRate:1,muted:!0,loop:!0,autoplay:!0,preload:"auto",fps:30,transitionTime:300,posterType:"jpg",path:"video/video",background:!0,controls:!1,hideWhenSlow:!1,imgSize:{xs:"",sm:"",md:"",lg:"",xlg:""},onLoad:!1};d.prototype.initialize=function(){var a;a=this;a.path=this.$element.attr("data-rd-video-path")?a.$element.attr("data-rd-video-path"):a.options.path;a.imgSize={xs:this.$element.attr("data-rd-video-image-xs")? a.$element.attr("data-rd-video-image-xs"):a.options.imgSize.xs,sm:this.$element.attr("data-rd-video-image-sm")?a.$element.attr("data-rd-video-image-sm"):a.options.imgSize.sm,md:this.$element.attr("data-rd-video-image-md")?a.$element.attr("data-rd-video-image-md"):a.options.imgSize.md,lg:this.$element.attr("data-rd-video-image-lg")?a.$element.attr("data-rd-video-image-lg"):a.options.imgSize.lg,xlg:this.$element.attr("data-rd-video-image-xlg")?a.$element.attr("data-rd-video-image-xlg"):a.options.imgSize.xlg}; a.suffix=a.getSuffix();a.getConnectionSpeed(a.path,function(){return a.init(a)})};d.prototype.init=function(a){a.position=a.parsePosition(this.$element.attr("data-rd-video-position")?a.$element.attr("data-rd-video-position"):a.options.position);a.isBG=this.$element.attr("data-rd-video-background")?"true"===a.$element.attr("data-rd-video-background"):a.options.background;a.hideWhenSlow=this.$element.attr("data-rd-video-hide")?"true"===a.$element.attr("data-rd-video-hide"):a.options.hideWhenSlow;a.posterType= this.$element.attr("data-rd-video-poster")?a.$element.attr("data-rd-video-poster"):a.options.posterType;a.createDOM(a);k&&a.isBG||(a.createVideo(a),a.applyPlayButton(),a.applyMuteButton(),a.isBG||a.contextMenuBuilder());a.options.onLoad&&a.options.onLoad.call(this,a);a.$win.on("resize",g.proxy(a.resize,this,a));a.$element.on("resize",g.proxy(a.resize,this,a));a.$win.on("scroll",g.proxy(a.onScroll,this,a))};d.prototype.parsePosition=function(a){var c,b,f,h,e,d;c=a.split(/\s+/);d=e="50%";b=f=0;for(h= c.length; f < h; b = ++f)a = c[b], "left" === a ? e = "0%" : "right" === a ? e = "100%" : "top" === a ? d = "0%" : "bottom" === a ? d = "100%" : "center" === a ? 0 === b ? e = "50%" : d = "50%" : 0 === b ? e = a : d = a; return {x: e, y: d} }; d.prototype.getConnectionSpeed = function (a, c) { var b, f, h; b = this; a += "-" + b.suffix + "." + b.options.posterType; f = new Image; f.onload = function () { var a; a = Date.now(); b.speed = Math.round(b.imgSize[b.suffix] / ((a - h) / 1E3)); return c() }; h = Date.now(); a += "?t=" + h; setTimeout(function () { f.src = a; return h = Date.now() }, 300) }; d.prototype.getVideoSuffix = function (a) {return 50> a?"xs":100>a?"sm":200>a?"md":800>a?"lg":"xlg"};d.prototype.createDOM=function(a){var c,b,f;a.isBG&&a.$element.addClass("rd-video-bg");b=a.$preloader=g('<div class="rd-video-preloader">');a.isBG||(c=a.$context=g('<div class="rd-video-context-wrapper"> <div class="rd-video-context">'));f=a.$wrapper=g('<div class="rd-video-wrapper">').css({"background-position":a.position.x+" "+a.position.y,"background-image":"url("+a.path+"-"+a.suffix+"."+a.options.posterType+")"});a.$element.prepend(f);a.$wrapper.prepend(c); a.$wrapper.prepend(b)};d.prototype.createVideo=function(a){var c,b,f,h,e,d,k,l,m,p,n;l=a.options;h="";f=!1;b=["xs","sm","md","lg","xlg"];m=a.getSuffixArray();if(null!=a.$video)for(e=d=0,k=m.length;d<k;e=++d){if(n=m[e],n===a.suffix){if(0!==e)p=m[e-1];else if(a.hideWhenSlow){a.removeVideo(a);return}break}}else p=a.getVideoSuffix(a.speed);for(;-1===m.indexOf(p);)if(e=b.indexOf(p),0!==e)p=b[e-1];else return;a.suffix=p;b=a.path+"-"+p;if("undefined"!==typeof b){"object"===typeof b?(b.mp4&&(h+='<source src="'+ b.mp4+'.mp4" type="video/mp4">'),b.webm&&(h+='<source src="'+b.webm+'.webm" type="video/webm">'),b.ogv&&(h+='<source src="'+b.ogv+'.ogv" type="video/ogg">',c=g("<video>"+h+"</video>"))):c=g('<video><source src="'+b+'.mp4" type="video/mp4"><source src="'+b+'.webm" type="video/webm"><source src="'+b+'.ogv" type="video/ogg"></video>');null!=a.$video?a.$video2=c:a.$video=c;null!=a.$video2?f=!a.$video[0].paused:a.isBG&&(f=this.$element.attr("data-rd-video-autoplay")?"true"===a.$element.attr("data-rd-video-autoplay"): l.autoplay);e=this.$element.attr("data-rd-video-volume")?a.$element.attr("data-rd-video-volume"):l.volume;b=this.$element.attr("data-rd-video-muted")?"true"===a.$element.attr("data-rd-video-muLine truncated
|
||||
/**
|
||||
* @module WOW
|
||||
* @author Matthieu Aussaguel
|
||||
* @version v1.1.2
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(){var t,e,n,i,o,r=function(t,e){return function(){return t.apply(e,arguments)}},s=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var n,i;for(n in e)i=e[n],null==t[n]&&(t[n]=i);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t.prototype.createEvent=function(t,e,n,i){var o;return null==e&&(e=!1),null==n&&(n=!1),null==i&&(i=null),null!=document.createEvent?(o=document.createEvent("CustomEvent"),o.initCustomEvent(t,e,n,i)):null!=document.createEventObject?(o=document.createEventObject(),o.eventType=t):o.eventName=t,o},t.prototype.emitEvent=function(t,e){return null!=t.dispatchEvent?t.dispatchEvent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)?t["on"+e]():void 0},t.prototype.addEvent=function(t,e,n){return null!=t.addEventListener?t.addEventListener(e,n,!1):null!=t.attachEvent?t.attachEvent("on"+e,n):t[e]=n},t.prototype.removeEvent=function(t,e,n){return null!=t.removeEventListener?t.removeEventListener(e,n,!1):null!=t.detachEvent?t.detachEvent("on"+e,n):delete t[e]},t.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t}(),n=this.WeakMap||this.MozWeakMap||(n=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,n,i,o,r;for(r=this.keys,e=i=0,o=r.length;o>i;e=++i)if(n=r[e],n===t)return this.values[e]},t.prototype.set=function(t,e){var n,i,o,r,s;for(s=this.keys,n=o=0,r=s.length;r>o;n=++o)if(i=s[n],i===t)return void(this.values[n]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=function(){function t(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),i=this.getComputedStyle||function(t){return this.getPropertyValue=function(e){var n;return"float"===e&&(e="styleFloat"),o.test(e)&&e.replace(o,function(t,e){return e.toUpperCase()}),(null!=(n=t.currentStyle)?n[e]:void 0)||null},this},o=/(\-([a-z]){1})/g,this.WOW=function(){function o(t){null==t&&(t={}),this.scrollCallback=r(this.scrollCallback,this),this.scrollHandler=r(this.scrollHandler,this),this.resetAnimation=r(this.resetAnimation,this),this.start=r(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new n,this.wowEvent=this.util().createEvent(this.config.boxClass)}return o.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},o.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},o.prototype.start=function(){var e,n,i,o;if(this.stopped=!1,this.boxes=function(){var t,n,i,o;for(i=this.element.querySelectorAll("."+this.config.boxClass),o=[],t=0,n=i.length;n>t;t++)e=i[t],o.push(e);return o}.call(this),this.all=function(){var t,n,i,o;for(i=this.boxes,o=[],t=0,n=i.length;n>t;t++)e=i[t],o.push(e);return o}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(o=this.boxes,n=0,i=o.length;i>n;n++)e=o[n],this.applyStyle(e,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new t(function(t){return function(e){var n,i,o,r,s;for(s=[],n=0,i=e.length;i>n;n++)r=e[n],s.push(function(){var t,e,n,i;for(n=r.addedNodes||[],i=[],t=0,e=n.length;e>t;t++)o=n[t],i.push(this.doSync(o));return i}.call(t));return s}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},o.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},o.prototype.sync=function(){return t.notSupported?this.doSync(this.element):void 0},o.prototype.doSync=function(t){var e,n,i,o,r;if(null==t&&(t=this.element),1===t.nodeType){for(t=t.parentNode||t,o=t.querySelectorAll("."+this.config.boxClass),r=[],n=0,i=o.length;i>n;n++)e=o[n],s.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),r.push(this.scrolled=!0)):r.push(void 0);return r}},o.prototype.show=function(t){return this.applyStyle(t)Line truncated
|
||||
/**
|
||||
* @module Owl carousel
|
||||
* @version 2.0.0
|
||||
* @author Bartosz Wojciechowski
|
||||
* @license The MIT License (MIT)
|
||||
*/
|
||||
!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this.drag=a.extend({},m),this.state=a.extend({},n),this.e=a.extend({},o),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a[0].toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Pipe,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}function f(a){if(a.touches!==d)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(a.touches===d){if(a.pageX!==d)return{x:a.pageX,y:a.pageY};if(a.pageX===d)return{x:a.clientX,y:a.clientY}}}function g(a){var b,d,e=c.createElement("div"),f=a;for(b in f)if(d=f[b],"undefined"!=typeof e.style[d])return e=null,[d,b];return[!1]}function h(){return g(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function i(){return g(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function j(){return g(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function k(){return"ontouchstart"in b||!!navigator.msMaxTouchPoints}function l(){return b.navigator.msPointerEnabled}var m,n,o;m={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},n={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},o={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},e.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Plugins={},e.Pipe=[{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var a=this._clones,b=this.$stage.children(".cloned");(b.length!==a.length||!this.settings.loop&&a.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var a,b,c=this._clones,d=this._items,e=this.settings.loop?c.length-Math.max(2*this.settings.items,4):0;for(a=0,b=Math.abs(e/2);b>a;a++)e>0?(this.$stage.children().eq(d.length+c.length-1).remove(),c.pop(),this.$stage.children().eq(0).remove(),c.pop()):(c.push(c.length/2),this.$stage.append(d[c[c.length-1]].clone().addClass("cloned")),c.push(d.length-1-(c.length-1)/2),this.$stage.prepend(d[c[c.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var a,b,c,d=this.settings.rtl?1:-1,e=(this.width()/this.settings.items).toFixed(3),f=0;for(this._coordinates=[],b=0,c=this._clones.length+this._items.length;c>b;b++)a=this._mergers[this.relative(b)],a=this.settings.mergeFit&&Math.min(a,this.settings.items)||a,f+=(this.settings.autoWidth?this._items[this.relative(b)].width()+this.settings.margin:e*a)*d,this._coordinates.push(f)}},{filter:["width","items","settings"],run:function(){var b,c,d=(this.width()/this.settings.items).toFixed(3),e={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(e),e={width:this.settings.autoWidth?"auto":d-this.settings.margin},e[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&a.grep(this._mergers,function(a){return a>1}).length>0)for(b=0,c=this._coordinates.length;c>b;b++)e.width=Math.abs(this._coordinates[b])-Math.abs(this._coordinates[b-1]||0)-this.settings.margin,this.$stage.children().eq(b).css(e);else this.$stage.children().css(e)}},{filter:["width","items","settings"],run:function(a){a.current&&this.reset(this.$stage.children().index(a.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;d>c;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$sLine truncated
|
||||
},this),"play.owl.autoplay":a.proxy(function(a,b,c){this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};d.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},d.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(b.clearInterval(this.interval),this.interval=b.setInterval(a.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):b.clearInterval(this.interval)},d.prototype.play=function(){return c.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void b.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},d.prototype.stop=function(){b.clearInterval(this.interval)},d.prototype.pause=function(){b.clearInterval(this.interval)},d.prototype.destroy=function(){var a,c;b.clearInterval(this.interval);for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=d}(window.Zepto||window.jQuery,window,document),function(a){"use strict";var b=function(c){this._core=c,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.push(a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.splice(b.position,0,a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":a.proxy(function(a){this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"change.owl.carousel":a.proxy(function(a){if("position"==a.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var b=this._core.current(),c=this._core.maximum(),d=this._core.minimum();a.data=a.property.value>c?b>=c?d:c:a.property.value<d?c:a.property.value}},this),"changed.owl.carousel":a.proxy(function(a){"position"==a.property.name&&this.draw()},this),"refreshed.owl.carousel":a.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this.$element.on(this._handlers)};b.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},b.prototype.initialize=function(){var b,c,d=this._core.settings;d.dotsData||(this._templates=[a("<div>").addClass(d.dotClass).append(a("<span>")).prop("outerHTML")]),d.navContainer&&d.dotsContainer||(this._controls.$container=a("<div>").addClass(d.controlsClass).appendTo(this.$element)),this._controls.$indicators=d.dotsContainer?a(d.dotsContainer):a("<div>").hide().addClass(d.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",a.proxy(function(b){var c=a(b.target).parent().is(this._controls.$indicators)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(c,d.dotsSpeed)},this)),b=d.navContainer?a(d.navContainer):a("<div>").addClass(d.navContainerClass).prependTo(this._controls.$container),this._controls.$next=a("<"+d.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(d.navClass[0]).html(d.navText[0]).hide().prependTo(b).on("click",a.proxy(function(){this.prev(d.navSpeed)},this)),this._controls.$next.addClass(d.navClass[1]).html(d.navText[1]).hide().appendTo(b).on("click",a.proxy(function(){this.next(d.navSpeed)},this));for(c in this._overrides)this._core[c]=a.proxy(this[c],this)},b.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},b.prototype.update=function(){var a,b,c,d=this._core.settings,e=this._core.clones().length/2,f=e+this._core.items().length,g=d.center||d.autoWidth||d.dotData?1:d.dotsEach||d.items;if("page"!==d.slideBy&&(d.slideBy=Math.min(d.slideBy,d.items)),d.dots||"paLine truncated
|
||||
/**
|
||||
* @module Isotope PACKAGED
|
||||
* @version v2.2.2
|
||||
* @license GPLv3
|
||||
* @see http://isotope.metafizzy.co
|
||||
*/
|
||||
!function(a){function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}function e(b,c){a.fn[b]=function(e){if("string"==typeof e){for(var g=d.call(arguments,1),h=0,i=this.length;i>h;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if(a instanceof RegExp)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:e.EventEmitter=a}.call(this),function(a){function b(a){if(a){if("string"==typeof d[a])return a;a=a.charAt(0).toUpperCase()+a.slice(1);for(var b,e=0,f=c.length;f>e;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),fuLine truncated
|
||||
c(d.prototype,b.prototype),d.prototype._getElementOffset=e,d.prototype.layout=f,d.prototype._getMeasurement=g;var h=d.prototype.measureColumns;d.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)};var i=d.prototype._manageStamp;return d.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,i.apply(this,arguments)},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("fitRows");return b.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},b.prototype._getContainerSize=function(){return{height:this.maxY}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("vertical",{horizontalAlignment:0});return b.prototype._resetLayout=function(){this.y=0},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},b.prototype._getContainerSize=function(){return{height:this.y}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(c,d,e,f,g,h){return b(a,c,d,e,f,g,h)}):"object"==typeof exports?module.exports=b(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=b(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,b,c,d,e,f,g){function h(a,b){return function(c,d){for(var e=0,f=a.length;f>e;e++){var g=a[e],h=c.sortData[g],i=d.sortData[g];if(h>i||i>h){var j=void 0!==b[g]?b[g]:b,k=j?1:-1;return(h>i?1:-1)*k}}return 0}}var i=a.jQuery,j=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},k=document.documentElement,l=k.textContent?function(a){return a.textContent}:function(a){return a.innerText},m=b.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});m.Item=f,m.LayoutMode=g,m.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),b.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var a in g.modes)this._initLayoutMode(a)},m.prototype.reloadItems=function(){this.itemGUID=0,b.prototype.reloadItems.call(this)},m.prototype._itemize=function(){for(var a=b.prototype._itemize.apply(this,arguments),c=0,d=a.length;d>c;c++){var e=a[c];e.id=this.itemGUID++}return this._updateItemsSortData(a),a},m.prototype._initLayoutMode=function(a){var b=g.modes[a],c=this.options[a]||{};this.options[a]=b.options?e.extend(b.options,c):c,this.modes[a]=new b(this)},m.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},m.prototype._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},m.prototype.arrange=function(a){function b(){d.reveal(c.needReveal),d.hide(c.needHide)}this.option(a),this._getIsInstant();var c=this._filter(this.items);this.filteredItems=c.matches;var d=this;this._bindArrangeComplete(),this._isInstant?this._noTransition(b):b(),this._sort(),this._layout()},m.prototype._init=m.prototype.arrange,m.prototype._getIsInstant=function(){var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=a,a},m.prototype._bindArrangeComplete=function(){function a(){b&&c&&d&&e.dispatchEvent("arrangeComplete",null,[e.filteredItems])}var b,c,d,e=this;this.once("layoutComplete",function(){b=!0,a()}),this.once("hideComplete",function(){c=!0,a()}),this.once("revealComplete",function(){d=!0,a()})},m.prototype._filter=function(a){var b=this.options.filter;b=b||"*";for(var c=[],d=[],e=[],f=this._getLine truncated
|
||||
/**
|
||||
* @module PhotoSwipe
|
||||
* @author Dmitry Semenov
|
||||
* @see http://photoswipe.com
|
||||
* @version 4.1.1
|
||||
*/
|
||||
!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipe=b()}(this,function(){"use strict";var a=function(a,b,c,d){var e={features:null,bind:function(a,b,c,d){var e=(d?"remove":"add")+"EventListener";b=b.split(" ");for(var f=0;f<b.length;f++)b[f]&&a[e](b[f],c,!1)},isArray:function(a){return a instanceof Array},createEl:function(a,b){var c=document.createElement(b||"div");return a&&(c.className=a),c},getScrollY:function(){var a=window.pageYOffset;return void 0!==a?a:document.documentElement.scrollTop},unbind:function(a,b,c){e.bind(a,b,c,!0)},removeClass:function(a,b){var c=new RegExp("(\\s|^)"+b+"(\\s|$)");a.className=a.className.replace(c," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(a,b){e.hasClass(a,b)||(a.className+=(a.className?" ":"")+b)},hasClass:function(a,b){return a.className&&new RegExp("(^|\\s)"+b+"(\\s|$)").test(a.className)},getChildByClass:function(a,b){for(var c=a.firstChild;c;){if(e.hasClass(c,b))return c;c=c.nextSibling}},arraySearch:function(a,b,c){for(var d=a.length;d--;)if(a[d][c]===b)return d;return-1},extend:function(a,b,c){for(var d in b)if(b.hasOwnProperty(d)){if(c&&a.hasOwnProperty(d))continue;a[d]=b[d]}},easing:{sine:{out:function(a){return Math.sin(a*(Math.PI/2))},inOut:function(a){return-(Math.cos(Math.PI*a)-1)/2}},cubic:{out:function(a){return--a*a*a+1}}},detectFeatures:function(){if(e.features)return e.features;var a=e.createEl(),b=a.style,c="",d={};if(d.oldIE=document.all&&!document.addEventListener,d.touch="ontouchstart"in window,window.requestAnimationFrame&&(d.raf=window.requestAnimationFrame,d.caf=window.cancelAnimationFrame),d.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!d.pointerEvent){var f=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var g=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);g&&g.length>0&&(g=parseInt(g[1],10),g>=1&&8>g&&(d.isOldIOSPhone=!0))}var h=f.match(/Android\s([0-9\.]*)/),i=h?h[1]:0;i=parseFloat(i),i>=1&&(4.4>i&&(d.isOldAndroid=!0),d.androidVersion=i),d.isMobileOpera=/opera mini|opera mobi/i.test(f)}for(var j,k,l=["transform","perspective","animationName"],m=["","webkit","Moz","ms","O"],n=0;4>n;n++){c=m[n];for(var o=0;3>o;o++)j=l[o],k=c+(c?j.charAt(0).toUpperCase()+j.slice(1):j),!d[j]&&k in b&&(d[j]=k);c&&!d.raf&&(c=c.toLowerCase(),d.raf=window[c+"RequestAnimationFrame"],d.raf&&(d.caf=window[c+"CancelAnimationFrame"]||window[c+"CancelRequestAnimationFrame"]))}if(!d.raf){var p=0;d.raf=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-p)),d=window.setTimeout(function(){a(b+c)},c);return p=b+c,d},d.caf=function(a){clearTimeout(a)}}return d.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,e.features=d,d}};e.detectFeatures(),e.features.oldIE&&(e.bind=function(a,b,c,d){b=b.split(" ");for(var e,f=(d?"detach":"attach")+"Event",g=function(){c.handleEvent.call(c)},h=0;h<b.length;h++)if(e=b[h])if("object"==typeof c&&c.handleEvent){if(d){if(!c["oldIE"+e])return!1}else c["oldIE"+e]=g;a[f]("on"+e,c["oldIE"+e])}else a[f]("on"+e,c)});var f=this,g=25,h=3,i={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(a){return"A"===a.tagName},getDoubleTapZoom:function(a,b){return a?1:b.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};e.extend(i,d);var j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la=function(){return{x:0,y:0}},ma=la(),na=la(),oa=la(),pa={},qa=0,ra={},sa=la(),ta=0,ua=!0,va=[],wa={},xa=!1,ya=function(a,b){e.extend(f,b.publicMethods),va.push(a)},za=function(a){var b=_b();return a>b-1?a-b:0>a?b+a:a},Aa={},Ba=function(a,b){return Aa[a]||(Aa[a]=[]),Aa[a].push(b)},Ca=function(a){var b=Aa[a];if(b){var c=Array.prototype.slice.call(arguments);c.shift();for(var d=0;d<b.length;d++)b[d].apply(f,c)}},Da=function(){return(new Date).getTime()},Ea=function(a){ia=a,f.bg.style.opacity=a*i.bgOpacity},Fa=function(a,b,c,d,e){(!xa||e&&e!==f.currItem)&&(d/=e?e.fitRatio:f.currItem.fitRatio),a[E]=u+b+"px, "+c+"px"+v+" scale("+d+")"},Ga=function(a){da&&(a&&(s>f.currItem.fitRatio?xa||(lc(f.currItem,!1,!0),xa=!0):xa&&(lc(f.currItem),xa=!1)),Fa(da,oa.x,oa.y,s))},Ha=function(a){a.container&&Fa(a.container.style,a.initialPosition.x,a.initialPosition.y,a.initialZoomLevel,a)},Ia=function(a,b){b[E]=u+a+"px, 0px"+v},Ja=function(a,b){if(!i.loop&&b){var c=m+(sa.x*qa-a)/sa.x,d=Math.round(a-sb.x);(0>c&&d>0||c>=_b()-1&&0>d)&&(a=sb.x+d*i.mainScrollEndFriction)}sb.x=a,Ia(a,n)},Ka=function(a,b){var c=tb[a]-ra[a];return na[a]+ma[a]+c-c*(b/t)},La=function(a,b){a.x=b.x,a.y=b.y,b.id&&(a.id=b.id)},Ma=function(a){a.x=Math.round(a.x),a.y=Math.round(a.y)},NaLine truncated
|
||||
/**
|
||||
* @module PhotoSwipe Default UI
|
||||
* @author Dmitry Semenov
|
||||
* @see http://photoswipe.com
|
||||
* @version 4.1.1
|
||||
*/
|
||||
!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipeUI_Default=b()}(this,function(){"use strict";var a=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=this,w=!1,x=!0,y=!0,z={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(a,b){return a.title?(b.children[0].innerHTML=a.title,!0):(b.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!1,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return a.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return a.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},A=function(a){if(r)return!0;a=a||window.event,q.timeToIdle&&q.mouseUsed&&!k&&K();for(var c,d,e=a.target||a.srcElement,f=e.getAttribute("class")||"",g=0;g<S.length;g++)c=S[g],c.onTap&&f.indexOf("pswp__"+c.name)>-1&&(c.onTap(),d=!0);if(d){a.stopPropagation&&a.stopPropagation(),r=!0;var h=b.features.isOldAndroid?600:30;s=setTimeout(function(){r=!1},h)}},B=function(){return!a.likelyTouchDevice||q.mouseUsed||screen.width>q.fitControlsWidth},C=function(a,c,d){b[(d?"add":"remove")+"Class"](a,"pswp__"+c)},D=function(){var a=1===q.getNumItemsFn();a!==p&&(C(d,"ui--one-slide",a),p=a)},E=function(){C(i,"share-modal--hidden",y)},F=function(){return y=!y,y?(b.removeClass(i,"pswp__share-modal--fade-in"),setTimeout(function(){y&&E()},300)):(E(),setTimeout(function(){y||b.addClass(i,"pswp__share-modal--fade-in")},30)),y||H(),!1},G=function(b){b=b||window.event;var c=b.target||b.srcElement;return a.shout("shareLinkClick",b,c),c.href?c.hasAttribute("download")?!0:(window.open(c.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),y||F(),!1):!1},H=function(){for(var a,b,c,d,e,f="",g=0;g<q.shareButtons.length;g++)a=q.shareButtons[g],c=q.getImageURLForShare(a),d=q.getPageURLForShare(a),e=q.getTextForShare(a),b=a.url.replace("{{url}}",encodeURIComponent(d)).replace("{{image_url}}",encodeURIComponent(c)).replace("{{raw_image_url}}",c).replace("{{text}}",encodeURIComponent(e)),f+='<a href="'+b+'" target="_blank" class="pswp__share--'+a.id+'"'+(a.download?"download":"")+">"+a.label+"</a>",q.parseShareButtonOut&&(f=q.parseShareButtonOut(a,f));i.children[0].innerHTML=f,i.children[0].onclick=G},I=function(a){for(var c=0;c<q.closeElClasses.length;c++)if(b.hasClass(a,"pswp__"+q.closeElClasses[c]))return!0},J=0,K=function(){clearTimeout(u),J=0,k&&v.setIdle(!1)},L=function(a){a=a?a:window.event;var b=a.relatedTarget||a.toElement;b&&"HTML"!==b.nodeName||(clearTimeout(u),u=setTimeout(function(){v.setIdle(!0)},q.timeToIdleOutside))},M=function(){q.fullscreenEl&&!b.features.isOldAndroid&&(c||(c=v.getFullscreenAPI()),c?(b.bind(document,c.eventK,v.updateFullscreen),v.updateFullscreen(),b.addClass(a.template,"pswp--supports-fs")):b.removeClass(a.template,"pswp--supports-fs"))},N=function(){q.preloaderEl&&(O(!0),l("beforeChange",function(){clearTimeout(o),o=setTimeout(function(){a.currItem&&a.currItem.loading?(!a.allowProgressiveImg()||a.currItem.img&&!a.currItem.img.naturalWidth)&&O(!1):O(!0)},q.loadingIndicatorDelay)}),l("imageLoadComplete",function(b,c){a.currItem===c&&O(!0)}))},O=function(a){n!==a&&(C(m,"preloader--active",!a),n=a)},P=function(a){var c=a.vGap;if(B()){var g=q.barsSize;if(q.captionEl&&"auto"===g.bottom)if(f||(f=b.createEl("pswp__caption pswp__caption--fake"),f.appendChild(b.createEl("pswp__caption__center")),d.insertBefore(f,e),b.addClass(d,"pswp__ui--fit")),q.addCaptionHTMLFn(a,f,!0)){var h=f.clientHeight;c.bottom=parseInt(h,10)||44}else c.bottom=g.top;else c.bottom="auto"===g.bottom?0:g.bottom;c.top=g.top}else c.top=c.bottom=0},Q=function(){q.timeToIdle&&l("mouseUsed",function(){b.bind(document,"mousemove",K),b.bind(document,"mouseout",L),t=setInterval(function(){J++,2===J&&v.setIdle(!0)},q.timeToIdle/2)})},R=function(){l("onVerticalDrag",function(a){x&&.95>a?v.hideControls():!x&&a>=.95&&v.showControls()});var a;l("onPinchClose",function(b){x&&.9>b?(v.hideControls(),a=!0):a&&!x&&b>.9&&v.showControls()}),l("zoomGestureEnded",function(){a=!1,a&&!x&&v.showControls()})},S=[{name:"caption",option:"captionEl",onInit:function(a){e=a}},{name:"share-modal",option:"shareEl",onInit:function(a){i=a},onTap:function(){F()}},{name:"buLine truncated
|
||||
|
||||
/**
|
||||
* @module RD Navbar
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @version 2.1.7
|
||||
*/
|
||||
(function(){var t;t="ontouchstart"in window,function(o,e,n){var s;return s=function(){function s(t,s){this.options=o.extend(!1,{},this.Defaults,s),this.$element=o(t),this.$clone=null,this.$win=o(n),this.$doc=o(e),this.currentLayout=this.options.layout,this.loaded=!1,this.focusOnHover=this.options.focusOnHover,this.focusTimer=!1,this.cloneTimer=!1,this.isStuck=!1,this.initialize()}return s.prototype.Defaults={layout:"rd-navbar-static",deviceLayout:"rd-navbar-fixed",focusOnHover:!0,focusOnHoverTimeout:800,linkedElements:["html"],domAppend:!0,stickUp:!0,stickUpClone:!0,stickUpOffset:"100%",anchorNavSpeed:400,anchorNavOffset:0,anchorNavEasing:"swing",autoHeight:!0,responsive:{0:{layout:"rd-navbar-fixed",deviceLayout:"rd-navbar-fixed",focusOnHover:!1,stickUp:!1},992:{layout:"rd-navbar-static",deviceLayout:"rd-navbar-static",focusOnHover:!0,stickUp:!0}},callbacks:{onToggleSwitch:!1,onToggleClose:!1,onDomAppend:!1,onDropdownOver:!1,onDropdownOut:!1,onDropdownToggle:!1,onDropdownClose:!1,onStuck:!1,onUnstuck:!1,onAnchorChange:!1}},s.prototype.initialize=function(){var o;return o=this,o.$element.addClass("rd-navbar").addClass(o.options.layout),t&&o.$element.addClass("rd-navbar--is-touch"),o.setDataAPI(o),o.options.domAppend&&o.createNav(o),o.options.stickUpClone&&o.createClone(o),o.$element.addClass("rd-navbar-original"),o.addAdditionalClassToToggles(".rd-navbar-original","toggle-original","toggle-original-elements"),o.applyHandlers(o),o.offset=o.$element.offset().top,o.height=o.$element.outerHeight(),o.loaded=!0,o},s.prototype.resize=function(e,n){var s,a;return a=t?e.getOption("deviceLayout"):e.getOption("layout"),s=e.$element.add(e.$clone),a===e.currentLayout&&e.loaded||(e.switchClass(s,e.currentLayout,a),null!=e.options.linkedElements&&o.grep(e.options.linkedElements,function(t,o){return e.switchClass(t,e.currentLayout+"-linked",a+"-linked")}),e.currentLayout=a),e.focusOnHover=e.getOption("focusOnHover"),e},s.prototype.stickUp=function(t,e){var n,s,a,r,i;return s=t.getOption("stickUp"),n=t.$doc.scrollTop(),r=null!=t.$clone?t.$clone:t.$element,a=t.getOption("stickUpOffset"),i="string"==typeof a?a.indexOf("%")>0?parseFloat(a)*t.height/100:parseFloat(a):a,s?(n>=i&&!t.isStuck||i>n&&t.isStuck)&&(t.$element.add(t.$clone).find("[data-rd-navbar-toggle]").each(function(){o.proxy(t.closeToggle,this)(t,!1)}).end().find(".rd-navbar-submenu").removeClass("opened").removeClass("focus"),n>=i&&!t.isStuck&&!t.$element.hasClass("rd-navbar-fixed")?("resize"===e.type?t.switchClass(r,"","rd-navbar--is-stuck"):r.addClass("rd-navbar--is-stuck"),t.isStuck=!0,t.options.callbacks.onStuck&&t.options.callbacks.onStuck.call(t)):("resize"===e.type?t.switchClass(r,"rd-navbar--is-stuck",""):r.removeClass("rd-navbar--is-stuck").one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",o.proxy(t.resizeWrap,t,e)),t.isStuck=!1,t.options.callbacks.onUnstuck&&t.options.callbacks.onUnstuck.call(t))):t.isStuck&&(t.switchClass(r,"rd-navbar--is-stuck",""),t.isStuck=!1,t.resizeWrap(e)),t},s.prototype.resizeWrap=function(t){var o,e;return e=this,null!=e.$clone||e.isStuck?void 0:(o=e.$element.parent(),e.getOption("autoHeight")?(e.height=e.$element.outerHeight(),"resize"===t.type?(o.addClass("rd-navbar--no-transition").css("height",e.height),o[0].offsetHeight,o.removeClass("rd-navbar--no-transition")):o.css("height",e.height)):void o.css("height","auto"))},s.prototype.createNav=function(t){return t.$element.find(".rd-navbar-dropdown, .rd-navbar-megamenu").each(function(){var t,e;return t=o(this),e=this.getBoundingClientRect(),e.left+t.outerWidth()>=n.innerWidth-10?this.className+=" rd-navbar-open-left":e.left-t.outerWidth()<=10&&(this.className+=" rd-navbar-open-right"),t.hasClass("rd-navbar-megamenu")?t.parent().addClass("rd-navbar--has-megamenu"):t.parent().addClass("rd-navbar--has-dropdown")}).parents("li").addClass("rd-navbar-submenu").append(o("<span/>",{"class":"rd-navbar-submenu-toggle"})),t.options.callbacks.onDomAppend&&t.options.callbacks.onDomAppend.call(this),t},s.prototype.createClone=function(t){return t.$clone=t.$element.clone().insertAfter(t.$element).addClass("rd-navbar--is-clone"),t.addAdditionalClassToToggles(".rd-navbar--is-clone","toggle-cloned","toggle-cloned-elements"),t},s.prototype.closeToggle=function(t,e){var n,s,a,r,i,l,c;return s=o(e.target),i=!1,l=this.getAttribute("data-rd-navbar-toggle"),t.options.stickUpClone&&t.isStuck?(r=".toggle-cloned",a=".toggle-cloned-elements",c=!s.hasClass("toggle-cloned")):(r=".toggle-original",a=".toggle-original-elements",c=!s.hasClass("toggle-original")),e.target!==this&&!s.parents(r+"[data-rd-navbar-toggle]").length&&!s.parents(a).length&&l&&c&&(n=o(this).parents("body").find(l).add(o(this).parents(".rd-navbar")[0]),n.each(function(){return i?void 0:i=(e.target===this||o.contains(this,e.target))===!0}),i||(n.add(this).removeClass("active"),t.options.callbacks.onToggleClose&&t.options.callbacks.onToggleClose.call(this,t))),this},s.prototype.switchToggle=function(t,e){var n,s,a;returLine truncated
|
||||
|
||||
/**
|
||||
* @module jQuery RD Twitter Feed
|
||||
* @author Rafael Shayvolodyan (raffa)
|
||||
* @version 1.0.3
|
||||
*/
|
||||
(function(){!function(t,e,a){var i;return i=function(){function i(e,a){this.options=t.extend(!0,{},this.Defaults,a),this.$element=t(e),this.initialize()}return i.prototype.Defaults={username:"templatemonster",list:null,hashtag:null,hideReplies:!0,dateFormat:"%b/%d/%Y",apiPath:"bat/twitter_api/tweet.php",loadingText:"Loading...",localTemplate:{message:"This is sample tweet for local testing. Upload your project to the live hosting server for get data from twitter.com",serverMessage:"RD Twitter Feed: Please upload project to the server for enable plugin!",user_name:"TemplateMonster",date:"Fri Nov 06 11:20:43 +0000 2015",tweet:"Check Out NEW #Photographer Portfolio Responsive Photo - goo.gl/ECjPvq",avatar:"http://pbs.twimg.com/profile_images/611164752396419072/hJYLqLJR_normal.jpg",url:"https://twitter.com/templatemonster/status/660069673464160256",screen_name:"@templatemonster",media_url:["https://pbs.twimg.com/media/CS6HxzwUEAALx0y.jpg","http://pbs.twimg.com/media/CShUCIYUcAABb53.jpg"]},dateText:{seconds:"less 1m",minutes:"m",hours:"h",yesterday:"yd"},callback:!1},i.prototype.initialize=function(){var t;if(t=this.$element,this.options.list&&!this.options.username&&console.error("If you want to fetch tweets from a list, you must define the username of the list owner."),this.isLocal())t.prepend("<h6>"+this.options.localTemplate.message+"</h6>");else if(!this.isServer())return void t.prepend("<h6>"+this.options.localTemplate.serverMessage+"</h6>");t.append('<span id="loading_tweet">'+(t.attr("data-twitter-loading")?t.attr("data-twitter-loading"):this.options.loadingText+"</span>")),this.fetch()},i.prototype.linking=function(t,e){var a,i,r,n,s,o,l,d,p,h;if(p=t.replace(/#([a-zA-Z0-9_]+)/g,'<a href="https://twitter.com/search?q=%23$1&src=hash" target="_blank" title="Search for #$1">#$1</a>').replace(/@([a-zA-Z0-9_]+)/g,'<a href="https://twitter.com/$1" target="_blank" title="$1 on Twitter">@$1</a>'),l=t.match(/(https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w\/_\.]*(\?\S+)?)?)?)/gi),null!==l)for(i=0,n=l.length;n>i;i++){for(o=l[i],a=!1,d=e.entities.urls,r=0,s=d.length;s>r;r++)h=d[r],p=p.replace(o,'<a href="'+h.expanded_url+'" target="_blank">'+h.display_url+"</a> ");a||(p=p.replace(o,""))}return p},i.prototype.dating=function(t,e){var a,i,r,n,s,o,l,d,p,h;if(h=t.split(" "),t=new Date(Date.parse(h[1]+" "+h[2]+", "+h[5]+" "+h[3]+" UTC")),i=new Date,n=(i.getTime()-t.getTime())/1e3,p=["January","February","March","April","May","June","July","August","September","October","November","December"],a={"%d":t.getDate(),"%m":t.getMonth()+1,"%b":p[t.getMonth()].substr(0,3),"%B":p[t.getMonth()],"%y":String(t.getFullYear()).slice(-2),"%Y":t.getFullYear()},r=e?"%Y-%m-%d":this.$element.attr("data-twitter-date-format")?this.$element.attr("data-twitter-date-format"):this.options.dateFormat,60>n)return this.$element.attr("data-twitter-date-seconds")?this.$element.attr("data-twitter-date-seconds"):this.options.dateText.seconds;if(60>n/60)return Math.round(n/60)+(this.$element.attr("data-twitter-date-minutes")?this.$element.attr("data-twitter-date-minutes"):this.options.dateText.minutes);if(24>n/60/60)return Math.round(n/60/60)+(this.$element.attr("data-twitter-date-hours")?this.$element.attr("data-twitter-date-hours"):this.options.dateText.hours);if(2>n/60/60/24)return this.$element.attr("data-twitter-date-yesterday")?this.$element.attr("data-twitter-date-yesterday"):this.options.dateText.yesterday;for(o=r.match(/%[dmbByY]/g),l=0,d=o.length;d>l;l++)s=o[l],r=r.replace(s,a[s]);return r},i.prototype.isLocal=function(){var t,a,i,r;for(r=["127.0.0.1","192.168","localhost"],a=0,i=r.length;i>a;a++)if(t=r[a],e.location.hostname.indexOf(t)>-1)return!0;return!1},i.prototype.isServer=function(){var t;return t=a.location.href,t.indexOf("http://")>-1||t.indexOf("https://")>-1?!0:!1},i.prototype.getMedia=function(t){var e,a,i,r,n;if(!t.extended_entities)return t.entities&&t.entities.media?t.entities.media[0].media_url:null;if(t.extended_entities.media){for(r=[],n=t.extended_entities.media,a=0,i=n.length;i>a;a++)e=n[a],r.push(e.media_url);return r}},i.prototype.getTempData=function(t,e){var a,i,r,n,s,o,l,d,p;if(s=t.$element.find('[data-twitter-type="tweet"]').length,d=Array(),t.isLocal())for(i=r=0,o=s;o>=0?o>r:r>o;i=o>=0?++r:--r)a={user_name:t.options.localTemplate.user_name,date:t.dating(t.options.localTemplate.date,!1),datetime:t.dating(t.options.localTemplate.date,!0),tweet:t.linking(t.options.localTemplate.tweet),avatar:t.options.localTemplate.avatar,url:t.options.localTemplate.url,retweeted:!1,screen_name:t.linking(t.options.localTemplate.screen_name),media_url:t.options.localTemplate.media_url},d.push(a);else for(i=n=0,l=s;l>=0?l>n:n>l;i=l>=0?++n:--n){if(p=!1,e[i])p=e[i];else{if(!e.statuses||!e.statuses[i])break;p=e.statuses[i]}a={user_name:p.user.name,date:t.dating(p.created_at,!1),datetime:t.dating(p.created_at,!0),tweet:t.linking(p.text,p),avatar:p.user.profile_image_url,url:"https://twitter.com/"+p.user.screen_name+"/status/"+p.id_str,retweeted:p.rLine truncated
|
||||
/**
|
||||
* @module Custom Waypoints
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(t){var o=t("[data-waypoint-to]");o.length&&t(document).ready(function(){o.each(function(){var o=t(this);o.on("click",function(n){n.preventDefault(),t("body, html").stop().animate({scrollTop:t(o.attr("data-waypoint-to")).offset().top},800)})})})}(jQuery);
|
||||
/**
|
||||
* @module Text Rotator
|
||||
* @author Lukasz Lelek
|
||||
* @see http://ht2.pl/scripts/rotator/
|
||||
* @license MIT license
|
||||
* @version 0.2.1
|
||||
*/
|
||||
"function"!=typeof Object.create&&(Object.create=function(t){function a(){}return a.prototype=t,new a}),function(t,a,e){var i={init:function(e,i){var n=this;n.rotatelist=e,n.options=t.extend({},t.fn.rotator.options,i),n.options.textClass=e.attr("data-text-class")?e.attr("data-text-class"):"",n.options.enable=e.attr("data-enable")?parseInt(e.attr("data-enable")):0,n.options.words=e.attr("data-words")?e.attr("data-words").split(","):"",n.enable=!1,n.first=!0,n.item=new Array;for(var r=0,o=n.rotatelist.length;o>r;r++){n.item[r]=new Array,n.item[r].rotateElem=e,n.item[r].list=t("<span />",{"class":"rotate-list"});for(var s=0;s<n.options.words.length;s++)n.item[r].list.append("<span>"+n.options.words[s]+"</span>");n.item[r].rotateElem.append(n.item[r].list),n.item[r].terms=n.item[r].list.find("span"),n.item[r].animate=n.valid_anim(t(n.item[r].rotateElem).attr("data-rotate-animation").split(",")),n.item[r].area=n.item[r].rotateElem.find(".rotate-area").css({display:"inline-block"}).addClass(n.options.textClass),n.item[r].interval=n.valid_interval(n.item[r].rotateElem.attr("data-rotate-interval")),n.first&&n.item[r].area.html(n.item[0].terms.eq(0).html())}t(a).on("resize load",function(){this.innerWidth>=n.options.enable&&!n.enable?(n.enable=!0,n.rotatePlay(0)):this.innerWidth<n.options.enable&&(n.enable=!1,n.item[0].area.css("width","auto")),n.first=!1})},rotatePlay:function(t){var a=this,e=a.item[t];setTimeout(function(){var i=e.area.data("term")||0;e.area.data("term",i===e.terms.length-1?0:i+1).html(e.terms.eq([i]).html()),e.area.css("width",e.terms.eq([i]).outerWidth()+8+"px"),a.anim(e.area,e.animate[0]),setTimeout(function(){a.enable&&(a.anim(e.area,e.animate[1]),a.rotatePlay(t))},e.interval)},e.interval/4)},valid_anim:function(a){var e=this;return a?a:t("#"+e.options.interval).attr("data-rotate-animation").split(",")},valid_interval:function(t){var a=this;return isNaN(t)?a.options.interval:t},anim:function(t,a){var e=this;t.removeClass().addClass("rotate-area "+a+" "+e.options.animateClass+" "+e.options.textClass).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend")}};t.fn.rotator=function(a){var e=Object.create(i);e.init(this,a),t.data(this,"rotator",i)},t.fn.rotator.options={animateClass:"animated",interval:"3000",animate:"fadeInUp,fadeOutDown"}}(jQuery,window,document);
|
||||
/**
|
||||
* @module UIToTop
|
||||
* @author Matt Varone
|
||||
* @see http://www.mattvarone.com/web-design/uitotop-jquery-plugin/
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(o){o.fn.UItoTop=function(n){var e={text:"",min:500,scrollSpeed:800,containerID:"ui-to-top",containerClass:"ui-to-top fa fa-angle-up",easingType:"easeIn"},t=o.extend(e,n),i="#"+t.containerID;o("body").append('<a href="#" id="'+t.containerID+'" class="'+t.containerClass+'" >'+t.text+"</a>"),o(i).click(function(){return o("html, body").stop().animate({scrollTop:0},t.scrollSpeed,t.easingType),!1}),o(window).scroll(function(){var n=o(window).scrollTop();"undefined"==typeof document.body.style.maxHeight&&o(i).css({position:"absolute",top:o(window).scrollTop()+o(window).height()-50}),n>t.min?o(i).stop(!0,!0).addClass("active"):o(i).removeClass("active")})}}(jQuery);
|
||||
/**
|
||||
* @module ScrollTo
|
||||
* @license MIT License
|
||||
* @version 1.0.0
|
||||
*/
|
||||
!function(o){o.fn.scrollTo=function(e){function n(e){if(e.preventDefault(),a.hasClass("toTop"))return o("html, body").stop().animate({scrollTop:0},s.scrollSpeed),o(a).removeClass("toTop"),!1;for(var n=0;n<r.length;n++)if(window.scrollY<r[n].offsetTop+r[n].offsetHeight){var t=r[n+1].offsetTop;return t>o(document).height()-window.innerHeight&&!a.hasClass("toTop")&&a.addClass("toTop"),void 0===r[n+2]&&a.addClass("toTop"),o("html, body").stop().animate({scrollTop:t},s.scrollSpeed,function(){void 0===r[n+2]&&a.addClass("toTop")}),!1}return!1}var t={containerID:"scrollTo",containerHoverID:"scrollTopHover",scrollSpeed:1200,easingType:"linear"},s=o.extend(t,e),l=o(window),r=this;o("body").append('<a href="#" id="'+s.containerID+'" class="'+s.containerClass+'"></a>');var a=o("#"+s.containerID);a.hide().on("click",n),l.on("scroll",function(e){window.scrollY>window.innerHeight?o(a).fadeIn():o(a).fadeOut(),window.scrollY>r[r.length-1].offsetTop-1?a.addClass("toTop"):a.removeClass("toTop"),window.scrollY===o(document).height()-window.innerHeight&&a.addClass("toTop")})}}(jQuery);
|
||||
/**
|
||||
* @module RD Flickr Gallery
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.0
|
||||
*/
|
||||
(function(){(function(f,l,k){var h;h=function(){function d(a,c){this.options=f.extend(!0,{},this.Defaults,c);this.$element=f(a);this.initialize()}d.prototype.Defaults={flickrbase:"http://api.flickr.com/services/feeds/",feedapi:"photos_public.gne",qstrings:{ids:"",tags:"",tagmode:"",lang:"en-us",format:"json",jsoncallback:"?"},dateFormat:"%b/%d/%Y",cleanDescription:!0,callback:!1};d.prototype.initialize=function(){this.fetchData(this.makeUrl())};d.prototype.makeUrl=function(){var a,c,b,e;e=this.options.flickrbase+this.options.feedapi+"?";a=!0;b={ids:this.$element.attr("data-flickr-id")?this.$element.attr("data-flickr-id"):this.options.qstrings.ids,tags:this.$element.attr("data-flickr-tags")?this.$element.attr("data-flickr-tags"):this.options.qstrings.tags,tagmode:this.$element.attr("data-flickr-tagmode")?this.$element.attr("data-flickr-tagmode"):this.options.qstrings.tagmode,lang:this.$element.attr("data-flickr-lang")?this.$element.attr("data-flickr-lang"):this.options.qstrings.lang,format:"json",jsoncallback:"?"};for(c in b)b[c]&&(a||(e+="&"),e+=c+"="+b[c],a=!1);return e};d.prototype.fetchData=function(a){var c;c=this;return f.getJSON(a,function(a){f.each(a.items,function(a,b){a<c.$element.find('[data-type="flickr-item"]').length&&(c.options.cleanDescription&&c.cleanDescription(b),c.setImageSizes(b),b.author_name=c.getAuthor(b.author),b.dating=c.dating(b.date_taken,!1),b.datetime=c.dating(b.date_taken,!0),c.setHTML(b,a))});"function"===typeof c.options.callback&&c.options.callback()})};d.prototype.cleanDescription=function(a){var c,b;b=/<p>(.*?)<\/p>/g;c=a.description;b.test(c)&&(a.description=c.match(b)[2],null!=a.description&&(a.description=a.description.replace("<p>","").replace("</p>","")));return a};d.prototype.setImageSizes=function(a){var c,b,e,d;d="_s _q _t _m _n _- _z _c _b _h _k _o ".split(" ");c=0;for(b=d.length;c<b;c++)e=d[c],a["image"+e]=a.media.m.replace("_m",e);delete a.media;return a};d.prototype.getAuthor=function(a){a=/\(([^]+)\)/.exec(a);return null!=a[1]?a[1]:!1};d.prototype.dating=function(a,c){var b,e,d,g,f;b=new Date(Date.parse(a));e="January February March April May June July August September October November December".split(" ");b={"%d":b.getDate(),"%m":b.getMonth()+1,"%b":e[b.getMonth()].substr(0,3),"%B":e[b.getMonth()],"%y":String(b.getFullYear()).slice(-2),"%Y":b.getFullYear()};a=c?"%Y-%m-%d":this.$element.attr("data-flickr-date-format")?this.$element.attr("data-flickr-date-format"):this.options.dateFormat;d=a.match(/%[dmbByY]/g);g=0;for(f=d.length;g<f;g++)e=d[g],a=a.replace(e,b[e]);return a};d.prototype.setHTML=function(a,c){var b,e;e=this;b=this.$element.find('[data-type="flickr-item"]');e.parseAttributes(b.eq(c),a);b.eq(c).find("*").each(function(){e.parseAttributes(f(this),a)})};d.prototype.parseAttributes=function(a,c){var b,e,d,g,f,h;d=a.data();for(g in d)if(d.hasOwnProperty(g)&&"string"===typeof d[g])for(e=d[g].split(/\s?,\s?/i),f=0,h=e.length;f<h;f++)b=e[f],"text"===b.toLowerCase()?a.html(c[g]):a.attr(b,c[g])};return d}();f.fn.extend({RDFlickr:function(d){return this.each(function(){var a;a=f(this);if(!a.data("RDFlickr"))return a.data("RDFlickr",new h(this,d))})}});return k.RDFlickr=h})(window.jQuery,document,window);"undefined"!==typeof module&&null!==module?module.exports=window.RDFlickr:"function"===typeof define&&define.amd&&define(["jquery"],function(){return window.RDFlickr})}).call(this);
|
||||
/**
|
||||
* @module jquery-circle-progress
|
||||
* @author Rostyslav Bryzgunov
|
||||
* @see http://kottenator.github.io/jquery-circle-progress/
|
||||
* @version v1.1.3
|
||||
*/
|
||||
!function(i){function t(i){this.init(i)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){i.extend(this,t),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw()},initWidget:function(){var t=this.canvas=this.canvas||i("<canvas>").prependTo(this.el)[0];t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d")},initFill:function(){function t(){var t=i("<canvas>")[0];t.width=e.size,t.height=e.size,t.getContext("2d").drawImage(g,0,0,r,r),e.arcFill=e.ctx.createPattern(t,"no-repeat"),e.drawFrame(e.lastFrameValue)}var e=this,a=this.fill,n=this.ctx,r=this.size;if(!a)throw Error("The fill is not specified!");if(a.color&&(this.arcFill=a.color),a.gradient){var s=a.gradient;if(1==s.length)this.arcFill=s[0];else if(s.length>1){for(var l=a.gradientAngle||0,h=a.gradientDirection||[r/2*(1-Math.cos(l)),r/2*(1+Math.sin(l)),r/2*(1+Math.cos(l)),r/2*(1-Math.sin(l))],o=n.createLinearGradient.apply(n,h),c=0;c<s.length;c++){var d=s[c],u=c/(s.length-1);i.isArray(d)&&(u=d[1],d=d[0]),o.addColorStop(u,d)}this.arcFill=o}}if(a.image){var g;a.image instanceof Image?g=a.image:(g=new Image,g.src=a.image),g.complete?t():g.onload=t}},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(i){this.lastFrameValue=i,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(i),this.drawArc(i)},drawArc:function(i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;t.save(),t.beginPath(),this.reverse?t.arc(e,e,e-a/2,n-2*Math.PI*i,n):t.arc(e,e,e-a/2,n,n+2*Math.PI*i),t.lineWidth=a,t.lineCap=this.lineCap,t.strokeStyle=this.arcFill,t.stroke(),t.restore()},drawEmptyArc:function(i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;1>i&&(t.save(),t.beginPath(),0>=i?t.arc(e,e,e-a/2,0,2*Math.PI):this.reverse?t.arc(e,e,e-a/2,n,n-2*Math.PI*i):t.arc(e,e,e-a/2,n+2*Math.PI*i,n),t.lineWidth=a,t.strokeStyle=this.emptyFill,t.stroke(),t.restore())},drawAnimated:function(t){var e=this,a=this.el,n=i(this.canvas);n.stop(!0,!1),a.trigger("circle-animation-start"),n.css({animationProgress:0}).animate({animationProgress:1},i.extend({},this.animation,{step:function(i){var n=e.animationStartValue*(1-i)+t*i;e.drawFrame(n),a.trigger("circle-animation-progress",[i,n])}})).promise().always(function(){a.trigger("circle-animation-end")})},getThickness:function(){return i.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(i){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=i,this.draw()}},i.circleProgress={defaults:t.prototype},i.easing.circleProgressEasing=function(i,t,e,a,n){return(t/=n/2)<1?a/2*t*t*t+e:a/2*((t-=2)*t*t+2)+e},i.fn.circleProgress=function(e,a){var n="circle-progress",r=this.data(n);if("widget"==e){if(!r)throw Error('Calling "widget" method on not initialized instance is forbidden');return r.canvas}if("value"==e){if(!r)throw Error('Calling "value" method on not initialized instance is forbidden');if("undefined"==typeof a)return r.getValue();var s=arguments[1];return this.each(function(){i(this).data(n).setValue(s)})}return this.each(function(){var a=i(this),r=a.data(n),s=i.isPlainObject(e)?e:{};if(r)r.init(s);else{var l=i.extend({},a.data());"string"==typeof l.fill&&(l.fill=JSON.parse(l.fill)),"string"==typeof l.animation&&(l.animation=JSON.parse(l.animation)),s=i.extend(l,s),s.el=a,r=new t(s),a.data(n,r)}})}}(jQuery);
|
||||
/**
|
||||
* @module RDMaterialTabs
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.3
|
||||
*/
|
||||
(function(){(function(e,m,h){var l,n,p,f;n=(p=-1!==navigator.appVersion.indexOf("MSIE"))?parseInt(navigator.appVersion.split("MSIE")[1]):null;f="ontouchstart"in h;l=function(){function d(a,b){this.options=e.extend(!0,{},this.Defaults,b);this.$element=e(a);this.$list=this.$element.find(".rd-material-tabs__list");this.$content=this.$element.find(".rd-material-tabs__container");this.$win=e(h);this.$doc=e(m);this.activeIndex=0;this.settings={stageClass:"rd-material-tabs__stage",stageOuterClass:"rd-material-tabs__stage-outer", itemClass:"rd-material-tab"};this.state={isTouched:!1,isDragged:!1,isSwiping:!1};this.touches={prevX:null,list:!1};this.initialize()}d.prototype.Defaults={itemSelector:"div",margin:20,marginContent:0,items:3,touchRatio:1,speed:500,easing:"cubic-bezier(0.005, 0.300, 0.200, 1.000)",stagePadding:0,dragContent:!0,dragList:!0,responsive:null,callbacks:{onDragStart:!1,onDragEnd:!1,onChangeStart:!1,onChangeEnd:!1,onBeforeInit:!1,onInit:!1}};d.prototype.initialize=function(){this.options.callbacks.onBeforeInit&& this.options.callbacks.onBeforeInit.call(this,this);this.setVendor(this);this.createDOM(this);this.initHandlers(this);f||this.canMoveCursor();this.setWidth(this,!0);this.setWidth(this,!1);this.moveTo(this.activeIndex);this.options.callbacks.onInit&&this.options.callbacks.onInit.call(this,this)};d.prototype.createDOM=function(a){var b;a.$content.find(">"+a.options.itemSelector).addClass(a.settings.itemClass);b=a.transform(a,0);a.$content.wrapInner(e("<div/>",{"class":a.settings.stageClass,style:a.vendorName+ "transform:"+b[a.vendorName+"transform"]})).wrapInner(e("<div/>",{"class":a.settings.stageOuterClass}));a.$list.find("li").addClass(a.settings.itemClass);return a.$list.wrapInner(e("<div/>",{"class":a.settings.stageClass,style:a.vendorName+"transform:"+b[a.vendorName+"transform"]})).wrapInner(e("<div/>",{"class":a.settings.stageOuterClass}))};d.prototype.setWidth=function(a,b){var c,k,d,e,f,g;b?(g=a.$list.find("."+a.settings.stageClass),f=a.getOption("stagePadding"),0<f&&a.getOption("dragList")&& g.css({"padding-left":f,"padding-right":f}),c=a.getWidth(a,a.$list.find("."+a.settings.stageOuterClass)),e=a.getOption("margin"),d=(c-a.getOption("items")*e)/a.getOption("items")):(g=a.$content.find("."+a.settings.stageClass),f=0,d=a.getWidth(a,a.$content.find("."+a.settings.stageOuterClass)),e=a.getOption("marginContent"));k=g.find("."+a.settings.itemClass);b&&!a.getOption("dragList")?(a.setListTranslate(a,0),g.css({"padding-left":0,"padding-right":0,width:"auto"}),k.removeAttr("style")):(c=k.length, k.css({width:a.px(d),"margin-right":a.px(e)}),g[0].style.width=a.px((d+e)*c+e+f))};d.prototype.resize=function(a){a.setWidth(a,!0);a.setWidth(a,!1);return setTimeout(function(){return a.moveTo(a.activeIndex)},300)};d.prototype.initHandlers=function(a){a.$win.on("resize",e.proxy(a.resize,this,a));if(f)a.$element.on("touchstart.rd.mt",e.proxy(a.onTouchStart,this,a));else a.$element.on("mousedown.rd.mt",e.proxy(a.onTouchStart,this,a)),a.$element.on("mouseleave.rd.mt",e.proxy(a.onTouchEnd,this,a))};d.prototype.onTouchEnd= function(a,b){var c,d;if(a.state.isTouched){a.$doc.off(".rd.mt");a.changing=!1;b.originalEvent&&(b=b.originalEvent);a.state.isTrigerred=!1;if(a.state.isDragged)if(f||a.$element.removeClass("rd-material-tabs-grab"),e(a.touches.targetEl).one("click.rd.mt",function(){return!1}),a.touches.endTime=Date.now(),d=a.touches.endTime-a.touches.startTime,a.touches.prevX=null,a.state.isDragged=!1,a.touches.list&&a.getOption("dragList"))c=a.state.isSwiping?20<d?a.touches.diff/(d/200):a.touches.diff:100<d?a.touches.diff/ (d /1E3):d/15*a.touches.diff,a.touches.velocity=0,a.touches.velocity=c/(d/50)*a.getOption("touchRatio"),0!==a.touches.velocity&&(a.setListTransition(a,a.options.speed),c=a.getListTranslate(a)+a.touches.velocity,0<c?c=0:c<a.getMaxTranslate(a,a.$list)&&(c=a.getMaxTranslate(a,a.$list)),a.setListTranslate(a,c));else{if(!a.touches.list&&a.getOption("dragContent")){a.setContentTransition(a,a.options.speed);a.setListTransition(a,a.options.speed);if("left"===a.touches.direction&&0===a.activeIndex||"right"=== a.touches.direction&&a.activeIndex===a.$content.find("."+a.settings.itemClass).length-1){a.moveTo(a.activeIndex);return}c=a.activeIndex;a.state.isSwiping?"left"===a.touches.direction?c=a.activeIndex-1:"right"===a.touches.direction&&(c=a.activeIndex+1):Math.abs(a.touches.diff)>a.getContentItemWidth(a)/3&&("left"===a.touches.direction?c=a.activeIndex-1:"right"===a.touches.direction&&(c=a.activeIndex+1));a.moveTo(c)}}else!a.state.isDragged&&a.touches.list&&(c=e(b.target),"A"===b.target.tagName||c.parents("."+ a.settings.itemClass+" a").length)&&(a.setContentTransition(a,a.options.speed),a.setListTransition(a,a.options.speed),c=c.parents("."+a.settings.itemClass).index(),a.moveTo(c));a.state.isTouched=!1;a.options.callbacks.onDragEnd&&a.options.callbacks.onDragEnd.call(this,a)}};d.prototype.onDrag=function(a,b){var c,d,e;if(a.state.isTouched){b.originalEvent&&(b=b.originalEvent);a.touchesLine truncated
|
||||
/**
|
||||
* Eesy Responsive Tabs to Accordion
|
||||
* @see https://github.com/samsono/Easy-Responsive-Tabs-to-Accordion
|
||||
* @license MIT License
|
||||
*/
|
||||
!function(t){t.fn.extend({easyResponsiveTabs:function(a){var e={type:"default",width:"auto",fit:!0,closed:!1,tabidentify:"",activetab_bg:!1,inactive_bg:!1,active_border_color:!1,active_content_border_color:!1,activate:function(){}},a=t.extend(e,a),i=a,r=i.type,o=i.fit,s=i.width,n="vertical",c="accordion",d=window.location.hash,b=!(!window.history||!history.replaceState);t(this).bind("tabactivate",function(t,e){"function"==typeof a.activate&&a.activate.call(e,t)}),this.each(function(){function e(){r==n&&i.addClass("resp-vtabs").addClass(a.tabidentify),1==o&&i.css({width:"100%"}),r==c&&(i.addClass("resp-easy-accordion").addClass(a.tabidentify),i.find(".resp-tabs-list").css("display","none"))}var i=t(this),l=i.find("ul.resp-tabs-list."+a.tabidentify),f=i.attr("id");i.find("ul.resp-tabs-list."+a.tabidentify+" li").addClass("resp-tab-item").addClass(a.tabidentify),i.css({width:s}),"vertical"==a.type&&l.css(""),i.find(".resp-tabs-container."+a.tabidentify).css("border-color",a.active_content_border_color),i.find(".resp-tabs-container."+a.tabidentify+" > div").addClass("resp-tab-content").addClass(a.tabidentify),e();var p;i.find(".resp-tab-content."+a.tabidentify).before("<div class='resp-accordion "+a.tabidentify+"' role='tab'><span class='resp-arrow'></span></div>"),i.find(".resp-tab-content."+a.tabidentify).prev("h2").css({"background-color":a.inactive_bg,"border-color":a.active_border_color});var v=0;i.find(".resp-accordion").each(function(){p=t(this);var e=i.find(".resp-tab-item:eq("+v+")"),r=i.find(".resp-accordion:eq("+v+")");r.append(e.html()),r.data(e.data()),p.attr("aria-controls",a.tabidentify+"_tab_item-"+v),v++});var y,_=0;i.find(".resp-tab-item").each(function(){$tabItem=t(this),$tabItem.attr("aria-controls",a.tabidentify+"_tab_item-"+_),$tabItem.attr("role","tab"),$tabItem.css({"background-color":a.inactive_bg,"border-color":"none"});var e=0;i.find(".resp-tab-content."+a.tabidentify).each(function(){y=t(this),y.attr("aria-labelledby",a.tabidentify+"_tab_item-"+e).css({"border-color":a.active_border_color}),e++}),_++});var h=0;if(""!=d){var u=d.match(new RegExp(f+"([0-9]+)"));null!==u&&2===u.length&&(h=parseInt(u[1],10)-1,h>_&&(h=0))}t(i.find(".resp-tab-item."+a.tabidentify)[h]).addClass("resp-tab-active").css({"background-color":a.activetab_bg,"border-color":a.active_border_color}),a.closed===!0||"accordion"===a.closed&&!l.is(":visible")||"tabs"===a.closed&&l.is(":visible")||(t(i.find(".resp-accordion."+a.tabidentify)[h]).addClass("resp-tab-active").css({"background-color":a.activetab_bg+" !important","border-color":a.active_border_color,background:"none"}),t(i.find(".resp-tab-content."+a.tabidentify)[h]).addClass("resp-tab-content-active").addClass(a.tabidentify).attr("style","display:block")),i.find("[role=tab]").each(function(){var e=t(this);e.click(function(){var e=t(this),r=e.attr("aria-controls");if(e.hasClass("resp-accordion")&&e.hasClass("resp-tab-active"))return i.find(".resp-tab-content-active."+a.tabidentify).slideUp("",function(){t(this).addClass("resp-accordion-closed")}),e.removeClass("resp-tab-active").css({"background-color":a.inactive_bg,"border-color":"none"}),!1;if(!e.hasClass("resp-tab-active")&&e.hasClass("resp-accordion")?(i.find(".resp-tab-active."+a.tabidentify).removeClass("resp-tab-active").css({"background-color":a.inactive_bg,"border-color":"none"}),i.find(".resp-tab-content-active."+a.tabidentify).slideUp().removeClass("resp-tab-content-active resp-accordion-closed"),i.find("[aria-controls="+r+"]").addClass("resp-tab-active").css({"background-color":a.activetab_bg,"border-color":a.active_border_color}),i.find(".resp-tab-content[aria-labelledby = "+r+"]."+a.tabidentify).slideDown().addClass("resp-tab-content-active")):(i.find(".resp-tab-active."+a.tabidentify).removeClass("resp-tab-active").css({"background-color":a.inactive_bg,"border-color":"none"}),i.find(".resp-tab-content-active."+a.tabidentify).removeAttr("style").removeClass("resp-tab-content-active").removeClass("resp-accordion-closed"),i.find("[aria-controls="+r+"]").addClass("resp-tab-active").css({"background-color":a.activetab_bg,"border-color":a.active_border_color}),i.find(".resp-tab-content[aria-labelledby = "+r+"]."+a.tabidentify).addClass("resp-tab-content-active").attr("style","display:block")),e.trigger("tabactivate",e),b){var o=window.location.hash,s=r.split("tab_item-"),n=f+(parseInt(s[1],10)+1).toString();if(""!=o){var c=new RegExp(f+"[0-9]+");n=null!=o.match(c)?o.replace(c,n):o+"|"+n}else n="#"+n;history.replaceState(null,null,n)}})}),t(window).resize(function(){i.find(".resp-accordion-closed").removeAttr("style")})})}})}(jQuery);
|
||||
|
||||
/**
|
||||
* Bootstrap v3.3.6 (http://getbootstrap.com)
|
||||
* Copyright 2011-2015 Twitter, Inc.
|
||||
* Licensed under the MIT license
|
||||
*/
|
||||
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b|Line truncated
|
||||
d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
|
||||
/**
|
||||
* @module RDInputLabel
|
||||
* @author Evgeniy Gusarov
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(){!function(t,e,i){var s,n;return n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isWebkit=/safari|chrome/i.test(navigator.userAgent),s=function(){function s(s,n){this.options=t.extend(!0,{},this.Defaults,n),this.$element=t(s).addClass("rd-input-label"),this.$target=t("#"+this.$element.attr("for")),this.$win=t(i),this.$doc=t(e),this.initialize()}return s.prototype.Defaults={callbacks:null},s.prototype.initialize=function(){return this.$target.on("input",t.proxy(this.change,this)).on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("hover",t.proxy(this.hover,this)).parents("form").on("reset",t.proxy(this.reset,this)),this.change(),this.hover(),this},s.prototype.hover=function(){return isWebkit&&(this.$target.is(":-webkit-autofill")?this.$element.addClass("auto-fill"):this.$element.removeClass("auto-fill")),this},s.prototype.change=function(){return isWebkit&&(this.$target.is(":-webkit-autofill")?this.$element.addClass("auto-fill"):this.$element.removeClass("auto-fill")),""!==this.$target.val()?(this.$element.hasClass("focus")||this.focus(),this.$element.addClass("not-empty")):this.$element.removeClass("not-empty"),this},s.prototype.focus=function(){return this.$element.addClass("focus"),this},s.prototype.reset=function(){return setTimeout(t.proxy(this.blur,this)),this},s.prototype.blur=function(t){return""===this.$target.val()&&this.$element.removeClass("focus").removeClass("not-empty"),this},s}(),t.fn.extend({RDInputLabel:function(e){return this.each(function(){var i;return i=t(this),i.data("RDInputLabel")?void 0:i.data("RDInputLabel",new s(this,e))})}}),i.RDInputLabel=s}(window.jQuery,document,window),"undefined"!=typeof module&&null!==module?module.exports=window.RDInputLabel:"function"==typeof define&&define.amd&&define(["jquery"],function(){"use strict";return window.RDInputLabel})}).call(this);
|
||||
/**
|
||||
* @module Select2
|
||||
* @version 4.0.2
|
||||
* @license MIT License
|
||||
* @link https://github.com/select2/select2/blob/master/
|
||||
*/
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.slice(0,n.length-1).concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=v.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),n.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice;this.listeners=this.listeners||{},a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(Line truncated
|
||||
c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&""!==a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(Line truncated
|
||||
/**
|
||||
* @module RD-Google Map
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @version 0.1.5
|
||||
*/
|
||||
!function(a){"use strict";var t={cntClass:"map",mapClass:"map_model",locationsClass:"map_locations",marker:{basic:"images/gmap_marker.png",active:"images/gmap_marker_active.png"},styles:[],onInit:!1},o={map:{x:-73.9924068,y:40.646197,zoom:14},locations:[]},n=function(t,o){var n=t.parent().find("."+o.locationsClass).find("li"),e=[];return n.length>0&&n.each(function(t){var n=a(this);n.data("x")&&n.data("y")&&(e[t]={x:n.data("x"),y:n.data("y"),basic:n.data("basic")?n.data("basic"):o.marker.basic,active:n.data("active")?n.data("active"):o.marker.active},a.trim(n.html())?e[t].content='<div class="iw-content">'+n.html()+"</div>":e[t].content=!1)}),e};a.fn.googleMap=function(e){e=a.extend(!0,{},t,e),a(this).each(function(){var t=a(this),s=a.extend(!0,{},o,{map:{x:t.data("x"),y:t.data("y"),zoom:t.data("zoom")},locations:n(t,e)}),i=new google.maps.Map(this,{center:new google.maps.LatLng(parseFloat(s.map.y),parseFloat(s.map.x)),styles:e.styles,zoom:s.map.zoom,scrollwheel:!1});e.onInit&&e.onInit.call(this,i);var c=new google.maps.InfoWindow,l=[];for(var r in s.locations)l[r]=new google.maps.Marker({position:new google.maps.LatLng(parseFloat(s.locations[r].y),parseFloat(s.locations[r].x)),map:i,icon:s.locations[r].basic,index:r}),s.locations[r].content&&(google.maps.event.addListener(l[r],"click",function(){for(var t in l)l[t].setIcon(s.locations[t].basic);c.setContent(s.locations[this.index].content),c.open(i,this),a(".gm-style-iw").parent().parent().addClass("gm-wrapper"),this.setIcon(s.locations[this.index].active)}),google.maps.event.addListener(c,"closeclick",function(){for(var a in l)l[a].setIcon(s.locations[a].basic)}));google.maps.event.addDomListener(window,"resize",function(){i.setCenter(new google.maps.LatLng(parseFloat(s.map.y),parseFloat(s.map.x)))})})}}(jQuery);
|
||||
/**
|
||||
* @module Stepper
|
||||
* @version 3.0.8
|
||||
* @license MIT License
|
||||
* @link http://classic.formstone.it/stepper/
|
||||
*/
|
||||
!function(a,b){"use strict";function c(b){b=a.extend({},m,b||{});for(var c=a(this),e=0,f=c.length;f>e;e++)d(c.eq(e),b);return c}function d(b,c){if(!b.hasClass("stepper-input")){c=a.extend({},c,b.data("stepper-options"));var d=parseFloat(b.attr("min")),g=parseFloat(b.attr("max")),h=parseFloat(b.attr("step"))||1;b.addClass("stepper-input").wrap('<div class="stepper '+c.customClass+'" />').after('<span class="stepper-arrow up">'+c.labels.up+'</span><span class="stepper-arrow down">'+c.labels.down+"</span>");var i=b.parent(".stepper"),j=a.extend({$stepper:i,$input:b,$arrow:i.find(".stepper-arrow"),min:void 0===typeof d||isNaN(d)?!1:d,max:void 0===typeof g||isNaN(g)?!1:g,step:void 0===typeof h||isNaN(h)?1:h,timer:null},c);j.digits=k(j.step),b.is(":disabled")&&i.addClass("disabled"),i.on("keypress",".stepper-input",j,e),i.on("touchstart.stepper mousedown.stepper",".stepper-arrow",j,f).data("stepper",j)}}function e(a){var b=a.data;(38===a.keyCode||40===a.keyCode)&&(a.preventDefault(),h(b,38===a.keyCode?b.step:-b.step))}function f(b){b.preventDefault(),b.stopPropagation(),g(b);var c=b.data;if(!c.$input.is(":disabled")&&!c.$stepper.hasClass("disabled")){var d=a(b.target).hasClass("up")?c.step:-c.step;c.timer=i(c.timer,125,function(){h(c,d,!1)}),h(c,d),a("body").on("touchend.stepper mouseup.stepper",c,g)}}function g(b){b.preventDefault(),b.stopPropagation();var c=b.data;j(c.timer),a("body").off(".stepper")}function h(a,b){var c=parseFloat(a.$input.val()),d=b;void 0===typeof c||isNaN(c)?d=a.min!==!1?a.min:0:a.min!==!1&&c<a.min?d=a.min:d+=c;var e=(d-a.min)%a.step;0!==e&&(d-=e),a.min!==!1&&d<a.min&&(d=a.min),a.max!==!1&&d>a.max&&(d-=a.step),d!==c&&(d=l(d,a.digits),a.$input.val(d).trigger("change"))}function i(a,b,c){return j(a),setInterval(c,b)}function j(a){a&&(clearInterval(a),a=null)}function k(a){var b=String(a);return b.indexOf(".")>-1?b.length-b.indexOf(".")-1:0}function l(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c}var m={customClass:"",labels:{up:"Up",down:"Down"}},n={defaults:function(b){return m=a.extend(m,b||{}),"object"==typeof this?a(this):!0},destroy:function(){return a(this).each(function(b){var c=a(this).data("stepper");c&&(c.$stepper.off(".stepper").find(".stepper-arrow").remove(),c.$input.unwrap().removeClass("stepper-input"))})},disable:function(){return a(this).each(function(b){var c=a(this).data("stepper");c&&(c.$input.attr("disabled","disabled"),c.$stepper.addClass("disabled"))})},enable:function(){return a(this).each(function(b){var c=a(this).data("stepper");c&&(c.$input.attr("disabled",null),c.$stepper.removeClass("disabled"))})}};a.fn.stepper=function(a){return n[a]?n[a].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof a&&a?this:c.apply(this,arguments)},a.stepper=function(a){"defaults"===a&&n.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,this);
|
||||
/**
|
||||
* @module Abstract base class for collection plugins v1.0.1.
|
||||
* @author Keith Wood
|
||||
* @see http://keith-wood.name/countdown.html
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(){var j=false;window.JQClass=function(){};JQClass.classes={};JQClass.extend=function extender(f){var g=this.prototype;j=true;var h=new this();j=false;for(var i in f){h[i]=typeof f[i]=='function'&&typeof g[i]=='function'?(function(d,e){return function(){var b=this._super;this._super=function(a){return g[d].apply(this,a||[])};var c=e.apply(this,arguments);this._super=b;return c}})(i,f[i]):f[i]}function JQClass(){if(!j&&this._init){this._init.apply(this,arguments)}}JQClass.prototype=h;JQClass.prototype.constructor=JQClass;JQClass.extend=extender;return JQClass}})();(function($){JQClass.classes.JQPlugin=JQClass.extend({name:'plugin',defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return'is-'+this.name},_init:function(){$.extend(this.defaultOptions,(this.regionalOptions&&this.regionalOptions[''])||{});var c=camelCase(this.name);$[c]=this;$.fn[c]=function(a){var b=Array.prototype.slice.call(arguments,1);if($[c]._isNotChained(a,b)){return $[c][a].apply($[c],[this[0]].concat(b))}return this.each(function(){if(typeof a==='string'){if(a[0]==='_'||!$[c][a]){throw'Unknown method: '+a;}$[c][a].apply($[c],[this].concat(b))}else{$[c]._attach(this,a)}})}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_isNotChained:function(a,b){if(a==='option'&&(b.length===0||(b.length===1&&typeof b[0]==='string'))){return true}return $.inArray(a,this._getters)>-1},_attach:function(a,b){a=$(a);if(a.hasClass(this._getMarker())){return}a.addClass(this._getMarker());b=$.extend({},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c);this._postAttach(a,c);this.option(a,b)},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||'';f=f.replace(/'/g,'"');f=f.replace(/([a-zA-Z0-9]+):/g,function(a,b,i){var c=f.substring(0,i).match(/"/g);return(!c||c.length%2===0?'"'+b+'":':b+':')});f=$.parseJSON('{'+f+'}');for(var g in f){var h=f[g];if(typeof h==='string'&&h.match(/^new Date\((.*)\)$/)){f[g]=eval(h)}}return f}catch(e){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name);if(!b||(typeof b==='string'&&c==null)){var e=(d||{}).options;return(e&&b?e[b]:e)}if(!a.hasClass(this._getMarker())){return}var e=b||{};if(typeof b==='string'){e={};e[b]=c}this._optionsChanged(a,d,e);$.extend(d.options,e)},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a);if(!a.hasClass(this._getMarker())){return}this._preDestroy(a,this._getInst(a));a.removeData(this.name).removeClass(this._getMarker())},_preDestroy:function(a,b){}});function camelCase(c){return c.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}$.JQPlugin={createPlugin:function(a,b){if(typeof a==='object'){b=a;a='JQPlugin'}a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b);new JQClass.classes[c]()}}})(jQuery);
|
||||
/**
|
||||
* @module Countdown for jQuery v2.0.2.
|
||||
* @author Keith Wood
|
||||
* @see http://keith-wood.name/countdown.html
|
||||
* @license MIT License
|
||||
*/
|
||||
(function($){var w='countdown';var Y=0;var O=1;var W=2;var D=3;var H=4;var M=5;var S=6;$.JQPlugin.createPlugin({name:w,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:'dHMS',layout:'',compact:false,padZeroes:false,significant:0,description:'',expiryUrl:'',expiryText:'',alwaysExpire:false,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{'':{labels:['Years','Months','Weeks','Days','Hours','Minutes','Seconds'],labels1:['Year','Month','Week','Day','Hour','Minute','Second'],compactLabels:['y','m','w','d'],whichLabels:null,digits:['0','1','2','3','4','5','6','7','8','9'],timeSeparator:':',isRTL:false}},_getters:['getTimes'],_rtlClass:w+'-rtl',_sectionClass:w+'-section',_amountClass:w+'-amount',_periodClass:w+'-period',_rowClass:w+'-row',_holdingClass:w+'-holding',_showClass:w+'-show',_descrClass:w+'-descr',_timerElems:[],_init:function(){var c=this;this._super();this._serverSyncs=[];var d=(typeof Date.now=='function'?Date.now:function(){return new Date().getTime()});var e=(window.performance&&typeof window.performance.now=='function');function timerCallBack(a){var b=(a<1e12?(e?(performance.now()+performance.timing.navigationStart):d()):a||d());if(b-g>=1000){c._updateElems();g=b}f(timerCallBack)}var f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null;var g=0;if(!f||$.noRequestAnimationFrame){$.noRequestAnimationFrame=null;setInterval(function(){c._updateElems()},980)}else{g=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||d();f(timerCallBack)}},UTCDate:function(a,b,c,e,f,g,h,i){if(typeof b=='object'&&b.constructor==Date){i=b.getMilliseconds();h=b.getSeconds();g=b.getMinutes();f=b.getHours();e=b.getDate();c=b.getMonth();b=b.getFullYear()}var d=new Date();d.setUTCFullYear(b);d.setUTCDate(1);d.setUTCMonth(c||0);d.setUTCDate(e||1);d.setUTCHours(f||0);d.setUTCMinutes((g||0)-(Math.abs(a)<30?a*60:a));d.setUTCSeconds(h||0);d.setUTCMilliseconds(i||0);return d},periodsToSeconds:function(a){return a[0]*31557600+a[1]*2629800+a[2]*604800+a[3]*86400+a[4]*3600+a[5]*60+a[6]},resync:function(){var d=this;$('.'+this._getMarker()).each(function(){var a=$.data(this,d.name);if(a.options.serverSync){var b=null;for(var i=0;i<d._serverSyncs.length;i++){if(d._serverSyncs[i][0]==a.options.serverSync){b=d._serverSyncs[i];break}}if(b[2]==null){var c=($.isFunction(a.options.serverSync)?a.options.serverSync.apply(this,[]):null);b[2]=(c?new Date().getTime()-c.getTime():0)-b[1]}if(a._since){a._since.setMilliseconds(a._since.getMilliseconds()+b[2])}a._until.setMilliseconds(a._until.getMilliseconds()+b[2])}});for(var i=0;i<d._serverSyncs.length;i++){if(d._serverSyncs[i][2]!=null){d._serverSyncs[i][1]+=d._serverSyncs[i][2];delete d._serverSyncs[i][2]}}},_instSettings:function(a,b){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(a){if(!this._hasElem(a)){this._timerElems.push(a)}},_hasElem:function(a){return($.inArray(a,this._timerElems)>-1)},_removeElem:function(b){this._timerElems=$.map(this._timerElems,function(a){return(a==b?null:a)})},_updateElems:function(){for(var i=this._timerElems.length-1;i>=0;i--){this._updateCountdown(this._timerElems[i])}},_optionsChanged:function(a,b,c){if(c.layout){c.layout=c.layout.replace(/</g,'<').replace(/>/g,'>')}this._resetExtraLabels(b.options,c);var d=(b.options.timezone!=c.timezone);$.extend(b.options,c);this._adjustSettings(a,b,c.until!=null||c.since!=null||d);var e=new Date();if((b._since&&b._since<e)||(b._until&&b._until>e)){this._addElem(a[0])}this._updateCountdown(a,b)},_updateCountdown:function(a,b){a=a.jquery?a:$(a);b=b||this._getInst(a);if(!b){return}a.html(this._generateHTML(b)).toggleClass(this._rtlClass,b.options.isRTL);if($.isFunction(b.options.onTick)){var c=b._hold!='lap'?b._periods:this._calculatePeriods(b,b._show,b.options.significant,new Date());if(b.options.tickInterval==1||this.periodsToSeconds(c)%b.options.tickInterval==0){b.options.onTick.apply(a[0],[c])}}var d=b._hold!='pause'&&(b._since?b._now.getTime()<b._since.getTime():b._now.getTime()>=b._until.getTime());if(d&&!b._expiring){b._expiring=true;if(this._hasElem(a[0])||b.options.alwaysExpire){this._removeElem(a[0]);if($.isFunction(b.options.onExpiry)){b.options.onExpiry.apply(a[0],[])}if(b.options.expiryText){var e=b.options.layout;b.options.layout=b.options.expiryText;this._updateCountdown(a[0],b);b.options.layout=e}if(b.options.expiryUrl){window.location=b.options.expiryUrl}}b._expiring=false}else if(b._hold=='pause'){this._removeElem(a[0])}},_resetExtraLabels:function(a,b){for(var n in b){if(n.match(/[Ll]abels[02-9]|compactLabels1/)){a[n]=b[n]}}for(var n in a){if(n.match(/[Ll]abels[02-9]|compactLabels1/)&&typeof b[n]==='undefined'){a[n]=null}}},_adjustSettings:function(a,b,c){var d=null;for(var i=0;i<this._serverSyncs.length;i++){if(this._serverSyncs[i][0]==b.options.serverSynLine truncated
|
||||
/**
|
||||
* @module Stacktable
|
||||
* @author John Polacek
|
||||
* @see http://johnpolacek.github.com/stacktable.js
|
||||
* @license MIT & GPL license
|
||||
*/
|
||||
(function(a){a.fn.cardtable=function(b){var c=a.extend({},{id:"stacktable small-only",hideOriginal:!0,headIndex:0},b);headIndex=b&&b.headIndex?b.headIndex:0;return this.each(function(){$table=a(this);if(!$table.hasClass("stacktable")){var k=a(this).prop("class"),d=a("<div></div>");"undefined"!==typeof c.myClass&&d.addClass(c.myClass);var b="";$table.addClass("stacktable large-only");$caption=$table.find("caption").clone();$topRow=$table.find("tr").eq(0);$table.find("tbody tr").each(function(d,h){bodyMarkup= headMarkup="";tr_class=a(this).prop("class");a(this).find("td,th").each(function(b,c){""!==a(this).html()&&(bodyMarkup+='<tr class="'+tr_class+'">',bodyMarkup=$topRow.find("td,th").eq(b).html()?bodyMarkup+('<td class="st-key">'+$topRow.find("td,th").eq(b).html()+"</td>"):bodyMarkup+'<td class="st-key"></td>',bodyMarkup+='<td class="st-val '+a(this).prop("class")+'">'+a(this).html()+"</td>",bodyMarkup+="</tr>")});b+='<table class=" '+k+" "+c.id+'"><tbody>'+headMarkup+bodyMarkup+"</tbody></table>"}); $table.find("tfoot tr td").each(function(d,h){""!==a.trim(a(h).text())&&(b+='<table class="'+k+" "+c.id+'"><tbody><tr><td>'+a(h).html()+"</td></tr></tbody></table>")});d.prepend($caption);d.append(a(b));$table.before(d);c.hideOriginal||$table.show()}})};a.fn.stacktable=function(b){var c=a.extend({},{id:"stacktable small-only",hideOriginal:!0,headIndex:0},b);headIndex=b&&b.headIndex?b.headIndex:0;return this.each(function(){var b=a(this).prop("class"),b=a('<table class="'+b+" "+c.id+'"><tbody></tbody></table>'); "undefined"!==typeof c.myClass&&b.addClass(c.myClass);var d="";$table=a(this);$table.addClass("stacktable large-only");$caption=$table.find("caption").clone();$topRow=$table.find("tr").eq(0);$table.find("tr").each(function(b,c){bodyMarkup=headMarkup="";tr_class=a(this).prop("class");0===b?d+='<tr class="st-head-row-wrap '+tr_class+' "><th class="st-head-row st-head-row-main" colspan="2">'+a(this).find("th,td").eq(headIndex).html()+"</th></tr>":(a(this).find("td,th").each(function(b,c){b===headIndex?headMarkup='<tr class="st-head-row-wrap '+ tr_class+'"><th class="st-head-row" colspan="2">'+a(this).html()+"</th></tr>":""!==a(this).html()&&(bodyMarkup+='<tr class="'+tr_class+'">',bodyMarkup=$topRow.find("td,th").eq(b).html()?bodyMarkup+('<td class="st-key">'+$topRow.find("td,th").eq(b).html()+"</td>"):bodyMarkup+'<td class="st-key"></td>',bodyMarkup+='<td class="st-val '+a(this).prop("class")+'">'+a(this).html()+"</td>",bodyMarkup+="</tr>")}),d+=headMarkup+bodyMarkup)});b.prepend($caption);b.append(a(d));$table.before(b);c.hideOriginal|| $table.show()})};a.fn.stackcolumns=function(b){var c=a.extend({},{id:"stacktable small-only",hideOriginal:!0},b);return this.each(function(){$table=a(this);var b=$table.find("tr").eq(0).find("td,th").length;if(!(3>b)){var d=a('<table class="'+c.id+'"></table>');"undefined"!==typeof c.myClass&&d.addClass(c.myClass);$table.addClass("stacktable large-only");for(var l=a("<tbody></tbody>"),e=1;e<b;)$table.find("tr").each(function(b,c){var d=a("<tr></tr>");0===b&&d.addClass("st-head-row st-head-row-main"); first=a(this).find("td,th").eq(0).clone().addClass("st-key");var g=e;if(a(this).find("*[colspan]").length){var f=0;a(this).find("td,th").each(function(b,d){var c=a(this).attr("colspan");c?(c=parseInt(c,10),g-=c-1,f+c>e&&(g+=f+c-e-1),f+=c):f++;if(f>e)return!1})}second=a(this).find("td,th").eq(g).clone().addClass("st-val").removeAttr("colspan");d.append(first,second);l.append(d)}),++e;d.append(a(l));$table.before(d);c.hideOriginal||$table.show()}})}})(jQuery);
|
||||
/**
|
||||
* @module RD Calendar
|
||||
* @author Evgeniy Gusarov
|
||||
* @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a
|
||||
* @version 1.0.0
|
||||
*/
|
||||
!function(e,t,a,n){"use strict";function s(t,a){this.options=e.extend({},s.Defaults,a),this.$element=e(t);var n=this.$element.find("."+this.options.classes.table).data("date");this.$element.data("currentDate",n?new Date(n):new Date),this.$element.data("todayDate",new Date),this.evt={},this._handlers={"rdc.next":this.next,"rdc.prev":this.prev,"rdc.refresh":e.proxy(this.refresh,this)},this.initialize()}s.Defaults={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],classes:{base:"rd-calendar",next:"rdc-next",prev:"rdc-prev",year:"rdc-fullyear",date:"rdc-date",day:"rdc-day",month:"rdc-month",time:"rdc-time",event:"rdc-event",events:"rdc-events",events_close:"rdc-events_close",table:"rdc-table",table_today:"rdc-table_today",table_event:"rdc-table_event",table_events:"rdc-table_events",table_has_events:"rdc-table_has-events",table_events_count:"rdc-table_events-count",table_day:"rdc-table_day",table_date:"rdc-table_date",table_next:"rdc-table_next",table_prev:"rdc-table_prev",today_date:"rdc-today_date",today_month:"rdc-today_month",today_year:"rdc-today_fullyear",today_day:"rdc-today_day"}},s.prototype.initialize=function(){this.$element.trigger("rdc.initialize"),this.read(),this.create(),this.watch(),this.$element.trigger("rdc.initialized")},s.prototype.create=function(){var t=this;t.$element.find("."+t.options.classes.today_date).each(function(){e(this).text(t.getTodayDate())}).end().find("."+t.options.classes.today_month).each(function(){e(this).text(t.getTodayMonth())}).end().find("."+t.options.classes.today_year).each(function(){e(this).text(t.getTodayYear())}).end().find("."+t.options.classes.today_day).each(function(){e(this).text(t.getTodayDay())}),t.refresh()},s.prototype.watch=function(){var t=this;t.$element.on(t._handlers).find("."+t.options.classes.next).on("click",function(){t.$element.trigger("rdc.next"),t.$element.trigger("rdc.refresh")}).end().find("."+t.options.classes.prev).on("click",function(){t.$element.trigger("rdc.prev"),t.$element.trigger("rdc.refresh")}).end().find("."+t.options.classes.events_close).on("click",function(){t.$element.removeClass("show-events"),t.$element.find("."+t.options.classes.event+", ."+t.options.classes.table_event).removeClass("active")}).end().delegate("."+t.options.classes.table_has_events,"click",function(){t.$element.find("."+t.options.classes.table_has_eventsm+", ."+t.options.classes.event).removeClass("active");var a=e(this).find("."+t.options.classes.table_date).data("date");for(var n in t.evt[a])t.evt[a][n].addClass("active");e(this).addClass("active"),t.$element.addClass("show-events")})},s.prototype.read=function(){var t=this.options,a=this;this.$element.find("."+t.classes.event).each(function(){var t=e(this),n=new Date(t.data("date")).valueOf();n in a.evt||(a.evt[n]=[]),a.evt[n].push(t)})},s.prototype.next=function(){var t=e(this),a=t.data("currentDate");a=11==a.getMonth()?new Date(a.getFullYear()+1,0,1):new Date(a.getFullYear(),a.getMonth()+1,1),t.data("currentDate",a)},s.prototype.prev=function(){var t=e(this),a=t.data("currentDate");a=0==a.getMonth()?new Date(a.getFullYear()-1,11,1):new Date(a.getFullYear(),a.getMonth()-1,1),t.data("currentDate",a)},s.prototype.getTodayYear=function(){return this.$element.data("todayDate").getFullYear()},s.prototype.getTodayDay=function(){return this.options.days[this.$element.data("todayDate").getDay()]},s.prototype.getTodayDate=function(){return this.$element.data("todayDate").getDate()},s.prototype.getTodayMonth=function(){return this.options.months[this.$element.data("todayDate").getMonth()]},s.prototype.getMonth=function(){return this.options.months[this.$element.data("currentDate").getMonth()]},s.prototype.getYear=function(){return this.$element.data("currentDate").getFullYear()},s.prototype.refresh=function(){var t=this,a=this.options,s=this.$element.find("."+a.classes.table),r=e("<table/>");t.$element.find("."+t.options.classes.month).each(function(){var a=e(this);a.text(t.getMonth())}).end().find("."+t.options.classes.year).each(function(){var a=e(this);a.text(t.getYear())});for(var d=e("<tr/>"),o=0;o<a.days.length;o++)d.append(e("<th/>",{"class":a.classes.table_day,text:a.days[o]}));r.append(d);for(var l=this.$element.data("currentDate"),i=new Date(l.getFullYear(),l.getMonth()+1,0).getDate(),c=new Date(l.getFullYear(),l.getMonth(),0).getDate(),h=new Date(l.getFullYear(),l.getMonth(),1).getDay(),u=1,o=0;7>o;o++){d=e("<tr/>");for(var p=0;7>p;p++){var v,y=7*o+p+1,f=e("<td/>"),g=n,_=n,m=e("<div/>",{"class":a.classes.table_date}),b=new Date;if(b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),0==p&&y>i+h)break;1>y-h?(m.text(c+(y-h)).addClass(a.classes.table_prev),v=new Date(l.getFullYear(),l.getMonth()-1,c+(y-h))):i+h>=y?(m.text(y-h),v=new Date(l.getFullYear(),l.getMonth(),y-h)):(m.text(u).addClass(a.classes.table_next),v=new Date(l.getFullYear(),l.gLine truncated
|
||||
/**
|
||||
* @module RD Range
|
||||
* @author Roman Kholiavko
|
||||
* @see http://cms.devoffice.com/coding-demo/marathoner/rd-range/documentation
|
||||
* @version 1.0
|
||||
*/
|
||||
(function(){!function(t,e,n){var o,i;return i="ontouchstart"in n,o=function(){function o(n,o){this.$element=t(n),this.options=t.extend(!0,{},this.Defaults,o),this.setClientOptions(this),this.createDOM(this),this.$pointer=t(n).find(".rd-range__pointer-1"),this.options.tooltip&&(this.$pointerTooltip=this.$pointer.find(".rd-range__pointer-tooltip"),this.$element.addClass("hasTooltip")),this.$line=t(n).find(".rd-range__line"),null!=t(n).attr("data-input")?this.$input=t(t(n).attr("data-input")):this.$input=t(this.Defaults.inputClassName),this.range&&(this.$pointer2=t(n).find(".rd-range__pointer-2"),null!=t(n).attr("data-input-2")?this.$input2=t(t(n).attr("data-input-2")):this.$input2=t(this.Defaults.inputClassName2),this.options.tooltip&&(this.$pointerTooltip2=this.$pointer2.find(".rd-range__pointer-tooltip"))),this.$doc=t(e),this.isMove=!1,this.initialization()}return o.prototype.Defaults={min:0,start:0,max:100,start2:0,step:1,minDiff:0,inputClassName:".rd-range-input-value",inputClassName2:".rd-range-input-value-2",tooltip:!1,callbacks:{onInit:!1,onChange:!1,onInputChange:!1,onMoveStart:!1,onMoveEnd:!1}},o.prototype.initialization=function(){var t;return t=this,t.setRange(t),t.applyHandlers(t),t.options.callbacks.onInit&&t.options.callbacks.onInit.call(this,t),t},o.prototype.createDOM=function(t){var e;e='<div class="rd-range__pointer rd-range__pointer-1">',t.options.tooltip&&(e+='<div class="rd-range__pointer-tooltip"></div>'),e+="</div>",t.range&&(e+='<div class="rd-range__pointer rd-range__pointer-2">',t.options.tooltip&&(e+='<div class="rd-range__pointer-tooltip"></div>'),e+="</div>"),t.$element.wrapInner('<div class="rd-range__wrap">'+e+'<div class="rd-range__line"></div> </div>')},o.prototype.setClientOptions=function(t){var e;e={min:t.$element.attr("data-min"),max:t.$element.attr("data-max"),step:t.$element.attr("data-step"),start:t.$element.data("start"),minDiff:t.$element.attr("data-min-diff"),precision:t.$element.attr("data-precision"),tooltip:t.$element.attr("data-tooltip")},t.options.start=[],(null!=e.start&&e.start.length>1||null!=t.options.start&&t.options.start.length>1)&&(t.range=!0),null!=e.min&&(t.options.min=Number(e.min)),null!=e.max&&(t.options.max=Number(e.max)),null!=e.start?t.options.start=e.start:t.options.start.push(t.options.min),t.currentValue=t.options.start[0],null!=e.step&&(t.options.step=Number(e.step)),null!=e.tooltip&&(t.options.tooltip=e.tooltip),null!=e.precision?t.options.precision=t.getNumDigitsAfterDecimalPlace(Number(e.precision)):t.options.precision=t.getNumDigitsAfterDecimalPlace(t.options.step),t.range&&(t.currentValue2=t.options.start[1],null!=e.minDiff?t.options.minDiff=Number(e.minDiff):null!=t.options.minDiff&&(t.options.minDiff=t.options.step))},o.prototype.setRange=function(t){return t.diff=t.options.max-t.options.min,t.delta=100*t.options.step/t.diff,t.currentPercentage=t.getPercentageByValue(t,t.currentValue),t.updatePointer1(t,t.currentPercentage,t.currentValue),t.range?(t.currentPercentage2=t.getPercentageByValue(t,t.currentValue2),t.updatePointer2(t,t.currentPercentage2,t.currentValue2)):void 0},o.prototype.applyHandlers=function(e){return e.$pointer.on(i?"touchstart":"mousedown",function(n){var o,r,a,u;if(!e.isMove)return e.isMove=!0,o=t(this),o.addClass("active"),a="touchmove"===n.type?n.originalEvent.targetTouches[0].pageX:n.pageX,r=e.getCoords(e.$element),u=e.getPercentage(e,a,r.left),e.options.callbacks.onMoveStart&&e.options.callbacks.onMoveStart.call(this,e),e.$doc.on(i?"touchmove":"mousemove",function(t){var n;return a="touchmove"===t.type?t.originalEvent.targetTouches[0].pageX:t.pageX,n=e.getPercentage(e,a,r.left),n!==u?(u=n,e.currentValue=e.getCurrentValue(e,u),e.range&&e.currentValue>=e.currentValue2-e.options.minDiff&&(n=e.checkPointer1Bounds(e)),e.updatePointer1(e,n,e.currentValue)):void 0}).on(i?"touchend":"mouseup",function(t){return setTimeout(function(){return e.isMove=!1},100),o.removeClass("active"),e.options.callbacks.onMoveEnd&&e.options.callbacks.onMoveEnd.call(this,e),i?e.$doc.off("touchmove"):e.$doc.off("mousemove"),e.$doc.off(t.type)}),!1}),"hidden"!==e.$input.attr("type")&&"readonly"!==e.$input.attr("readOnly")&&e.$input.on("keypress",function(t){return e.isAllowTyped(t.which)}).on("change",function(n){var o;return o=Math.abs(Number(t(this).val())),e.range&&(o>=e.currentValue2||o>e.currentValue2-e.options.minDiff)&&(e.checkPointer1Bounds(e),o=e.currentValue),o<e.options.min&&(o=e.options.min),e.currentValue=o,e.setRange(e),e.options.callbacks.onInputChange?e.options.callbacks.onInputChange.call(this,e):void 0}),e.range&&(e.$pointer2.on(i?"touchstart":"mousedown",function(n){var o,r,a,u;if(!e.isMove)return e.isMove=!0,o=t(this),o.addClass("active"),a="touchmove"===n.type?n.originalEvent.targetTouches[0].pageX:n.pageX,r=e.getCoords(e.$element),u=e.getPercentage(e,a,r.left),e.options.callbacks.onMoveStart&&e.options.callbacks.onMoveStart.call(this,e),e.$doc.on(i?"touchmove":"mousemove",function(t){var n;return a="touchmove"===t.type?Line truncated
|
||||
/**
|
||||
* @module Moment JS
|
||||
* @authors Tim Wood, Iskren Chernev, Moment.js contributors
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 2.12.0
|
||||
* @license MIT license
|
||||
*/
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Xn.apply(null,arguments)}function e(t){Xn=t}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function s(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t,e){for(var n in e)r(e,n)&&(t[n]=e[n]);return r(e,"toString")&&(t.toString=e.toString),r(e,"valueOf")&&(t.valueOf=e.valueOf),t}function o(t,e,n,i){return Ct(t,e,n,i,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function d(t){return null==t._pf&&(t._pf=u()),t._pf}function l(t){if(null==t._isValid){var e=d(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function h(t){var e=o(NaN);return null!=t?a(d(e),t):d(e).userInvalidated=!0,e}function c(t){return void 0===t}function f(t,e){var n,i,s;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=d(e)),c(e._locale)||(t._locale=e._locale),Kn.length>0)for(n in Kn)i=Kn[n],s=e[i],c(s)||(t[i]=s);return t}function m(e){f(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),ti===!1&&(ti=!0,t.updateOffset(this),ti=!1)}function _(t){return t instanceof m||null!=t&&null!=t._isAMomentObject}function y(t){return 0>t?Math.ceil(t):Math.floor(t)}function g(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=y(e)),n}function p(t,e,n){var i,s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),a=0;for(i=0;s>i;i++)(n&&t[i]!==e[i]||!n&&g(t[i])!==g(e[i]))&&a++;return a+r}function v(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(t,e){var n=!0;return a(function(){return n&&(v(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}function M(t,e){ei[t]||(v(e),ei[t]=!0)}function S(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t){return"[object Object]"===Object.prototype.toString.call(t)}function w(t){var e,n;for(n in t)e=t[n],S(e)?this[n]=e:this["_"+n]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function k(t,e){var n,i=a({},t);for(n in e)r(e,n)&&(Y(t[n])&&Y(e[n])?(i[n]={},a(i[n],t[n]),a(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);return i}function T(t){null!=t&&this.set(t)}function b(t){return t?t.toLowerCase().replace("_","-"):t}function O(t){for(var e,n,i,s,r=0;r<t.length;){for(s=b(t[r]).split("-"),e=s.length,n=b(t[r+1]),n=n?n.split("-"):null;e>0;){if(i=W(s.slice(0,e).join("-")))return i;if(n&&n.length>=e&&p(s,n,!0)>=e-1)break;e--}r++}return null}function W(t){var e=null;if(!ii[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=ni._abbr,require("./locale/"+t),x(e)}catch(n){}return ii[t]}function x(t,e){var n;return t&&(n=c(e)?P(t):U(t,e),n&&(ni=n)),ni._abbr}function U(t,e){return null!==e?(e.abbr=t,null!=ii[t]?(M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),e=k(ii[t]._config,e)):null!=e.parentLocale&&(null!=ii[e.parentLocale]?e=k(ii[e.parentLocale]._config,e):M("parentLocaleUndefined","specified parentLocale is not defined yet")),ii[t]=new T(e),x(t),ii[t]):(delete ii[t],null)}function G(t,e){if(null!=e){var n;null!=ii[t]&&(e=k(ii[t]._config,e)),n=new T(e),n.parentLocale=ii[t],ii[t]=n,x(t)}else null!=ii[t]&&(null!=ii[t].parentLocale?ii[t]=ii[t].parentLocale:null!=ii[t]&&delete ii[t]);return ii[t]}function P(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ni;if(!n(t)){if(e=W(t))return e;t=[t]}return O(t)}function C(){return Object.keys(ii)}function F(t,e){var n=t.toLowerCase();si[n]=si[n+"s"]=si[e]=t}function H(t){return"string"==typeof t?si[t]||si[t.toLowerCase()]:void 0}function L(t){var e,n,i={};for(n in t)r(t,n)&&(e=H(n),e&&(i[e]=t[n]));return i}function V(e,n){return function(i){return null!=i?(I(this,e,i),t.updateOffset(this,n),this):N(this,e)}}function N(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function I(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function A(t,e){var n;if(Line truncated
|
||||
/**
|
||||
* @module Bootstrap Material Datetimepicker
|
||||
* @see https://github.com/T00rk/bootstrap-material-datetimepicker
|
||||
* @version 2.0
|
||||
*/
|
||||
!function(t,e){function i(e,i){this.currentView=0,this.minDate,this.maxDate,this._attachedEvents=[],this.element=e,this.$element=t(e),this.params={date:!0,time:!0,format:"YYYY-MM-DD",minDate:null,maxDate:null,currentDate:null,lang:"en",weekStart:0,shortTime:!1,cancelText:"Cancel",okText:"OK"},this.params=t.fn.extend(this.params,i),this.name="dtp_"+this.setName(),this.$element.attr("data-dtp",this.name),this.init()}var a="bootstrapMaterialDatePicker",s="plugin_"+a;e.locale("en"),t.fn[a]=function(e,a){return this.each(function(){t.data(this,s)?("function"==typeof t.data(this,s)[e]&&t.data(this,s)[e](a),"destroy"===e&&delete t.data(this,s)):t.data(this,s,new i(this,e))}),this},i.prototype={init:function(){this.initDays(),this.initDates(),this.initTemplate(),this.initButtons(),this._attachEvent(t(window),"resize",this._centerBox(this)),this._attachEvent(this.$dtpElement.find(".dtp-content"),"click",this._onElementClick.bind(this)),this._attachEvent(this.$dtpElement,"click",this._onBackgroundClick.bind(this)),this._attachEvent(this.$dtpElement.find(".dtp-close > a"),"click",this._onCloseClick.bind(this)),this._attachEvent(this.$element,"click",this._onClick.bind(this))},initDays:function(){this.days=[];for(var t=this.params.weekStart;this.days.length<7;t++)t>6&&(t=0),this.days.push(t.toString())},initDates:function(){if(this.$element.val().length>0)"undefined"!=typeof this.params.format&&null!==this.params.format?this.currentDate=e(this.$element.val(),this.params.format).locale(this.params.lang):this.currentDate=e(this.$element.val()).locale(this.params.lang);else if("undefined"!=typeof this.$element.attr("value")&&null!==this.$element.attr("value")&&""!==this.$element.attr("value"))"string"==typeof this.$element.attr("value")&&("undefined"!=typeof this.params.format&&null!==this.params.format?this.currentDate=e(this.$element.attr("value"),this.params.format).locale(this.params.lang):this.currentDate=e(this.$element.attr("value")).locale(this.params.lang));else if("undefined"!=typeof this.params.currentDate&&null!==this.params.currentDate){if("string"==typeof this.params.currentDate)"undefined"!=typeof this.params.format&&null!==this.params.format?this.currentDate=e(this.params.currentDate,this.params.format).locale(this.params.lang):this.currentDate=e(this.params.currentDate).locale(this.params.lang);else if("undefined"==typeof this.params.currentDate.isValid||"function"!=typeof this.params.currentDate.isValid){var t=this.params.currentDate.getTime();this.currentDate=e(t,"x").locale(this.params.lang)}else this.currentDate=this.params.currentDate;this.$element.val(this.currentDate.format(this.params.format))}else this.currentDate=e();if("undefined"!=typeof this.params.minDate&&null!==this.params.minDate)if("string"==typeof this.params.minDate)"undefined"!=typeof this.params.format&&null!==this.params.format?this.minDate=e(this.params.minDate,this.params.format).locale(this.params.lang):this.minDate=e(this.params.minDate).locale(this.params.lang);else if("undefined"==typeof this.params.minDate.isValid||"function"!=typeof this.params.minDate.isValid){var t=this.params.minDate.getTime();this.minDate=e(t,"x").locale(this.params.lang)}else this.minDate=this.params.minDate;if("undefined"!=typeof this.params.maxDate&&null!==this.params.maxDate)if("string"==typeof this.params.maxDate)"undefined"!=typeof this.params.format&&null!==this.params.format?this.maxDate=e(this.params.maxDate,this.params.format).locale(this.params.lang):this.maxDate=e(this.params.maxDate).locale(this.params.lang);else if("undefined"==typeof this.params.maxDate.isValid||"function"!=typeof this.params.maxDate.isValid){var t=this.params.maxDate.getTime();this.maxDate=e(t,"x").locale(this.params.lang)}else this.maxDate=this.params.maxDate;this.isAfterMinDate(this.currentDate)||(this.currentDate=e(this.minDate)),this.isBeforeMaxDate(this.currentDate)||(this.currentDate=e(this.maxDate))},initTemplate:function(){this.template='<div class="dtp hidden" id="'+this.name+'"><div class="dtp-content"><div class="dtp-date-view"><header class="dtp-header"><div class="dtp-actual-day">Lundi</div><div class="dtp-close"><a href="javascript:void(0);"><span class="mdi mdi-close"></span></</div></header><div class="dtp-date hidden"><div><div class="left center p10"><a href="javascript:void(0);" class="dtp-select-month-before"><span class="mdi mdi-chevron-left"></span></a></div><div class="dtp-actual-month p80">MAR</div><div class="right center p10"><a href="javascript:void(0);" class="dtp-select-month-after"><span class="mdi mdi-chevron-right"></span></a></div><div class="clearfix"></div></div><div class="dtp-actual-num">13</div><div><div class="left center p10"><a href="javascript:void(0);" class="dtp-select-year-before"><span class="mdi mdi-chevron-left"></span></a></div><div class="dtp-actual-year p80">2014</div><div class="right center p10"><a href="javascript:void(0);" class="dtp-select-year-after"><span class="mdi mdi-chevron-right"></span></a></div><div class="Line truncated
|
||||
/**
|
||||
* @module RDFacebookFeed
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.0
|
||||
*/
|
||||
(function(){(function(g,t,n){var r;r=function(){function k(c,f){this.options=g.extend(!0,{},this.Defaults,f);this.element=c;this.$element=g(c);this.$win=g(n);this.$doc=g(t);this.$items=this.$element.find("[data-fb-post]");this.$user=this.$element.find("[data-fb-user]");this.initialize()}k.prototype.Defaults={id:"",accessToken:"",showLog:!1,dateFormat:{seconds:"less than a minute ago",minute:"about a minute ago",minutes:" minutes ago",hour:"about an hour ago",hours:" hours ago",day:"1 day ago",days:"%b/%d/%Y"},callbacks:{userLoaded:!1,postsLoaded:!1}};k.prototype.initialize=function(){var c,f,d,b;f=this;b=this.element.getAttribute("data-fb-id")?this.element.getAttribute("data-fb-id"):this.options.id;c=this.element.getAttribute("data-fb-access")?this.element.getAttribute("data-fb-access"):this.options.accessToken;if(!b)throw Error("You need to provide an user/page id!");if(!c)throw Error("You need to provide an access token!");d=f.$items.length;d="https://graph.facebook.com/"+b+"/posts/?access_token="+c+"&callback=?&date_format=U&limit="+d;g.when(g.getJSON("https://graph.facebook.com/"+b+"/?fields=name,picture&access_token="+c+"&callback=?"),g.getJSON(d)).done(function(a,b){var c,d;if("true"===f.element.getAttribute("data-fb-showlog")?f.element.getAttribute("data-fb-showlog"):f.options.showLog)console.log("User: "),console.log(a[0]),console.log("Posts: "),console.log(b[0].data);c=a[0];d=[];g.each(b[0].data,function(){var a,b,e,g;if(!this.message)return!0;this.from.picture=c.picture.data.url;this.message=f.urlHyperlinks(this.message);this.likes?this.likes.count=this.likes.data.length:(this.likes=[],this.likes.count=0);this.comments?this.comments.count=this.comments.data.length:(this.comments=[],this.comments.count=0);null!=this.actions[0]&&"Share"===this.actions[0].name&&(this.postlink=this.actions[0].link);if(null!=this.comments.data)for(g=this.comments.data,b=0,e=g.length;b<e;b++)a=g[b],a.from.link="https://facebook.com/"+a.from.id;d.push(this)});f.loopData(c,!0);f.loopData(d,!1)})};k.prototype.dating=function(c,f){var d,b,a,e,h,g;d=new Date(1E3*c);b=new Date;a=parseInt((b.getTime()-d.getTime())/1E3);a+=60*(-120-b.getTimezoneOffset());b="January February March April May June July August September October November December".split(" ");d={"%d":d.getDate(),"%m":d.getMonth()+1,"%b":b[d.getMonth()].substring(0,3),"%B":b[d.getMonth()],"%y":String(d.getFullYear()).slice(-2),"%Y":d.getFullYear()};if(f){b="%Y-%m-%d";e=b.match(/%[dmbByY]/g);h=0;for(g=e.length;h<g;h++)a=e[h],b=b.replace(a,d[a]);return b}b=this.element.getAttribute("data-fb-date-format")?this.element.getAttribute("data-fb-date-format"):this.options.dateFormat.days;if(60>a)return this.options.dateFormat.seconds;if(120>a)return this.options.dateFormat.minute;if(3600>a)return parseInt(a/60).toString()+this.options.dateFormat.minutes;if(7200>a)return this.options.dateFormat.hour;if(86400>a)return"about "+parseInt(a/3600).toString()+this.options.dateFormat.hours;if(172800>a)return this.options.dateFormat.day;e=b.match(/%[dmbByY]/g);h=0; for(g=e.length;h<g;h++)a=e[h],b=b.replace(a,d[a]);return b};k.prototype.urlHyperlinks=function(c){return c.replace(/\b((http|https):\/\/\S+)/g,'<a href="$1" target="_blank">$1</a>')};k.prototype.loopData=function(c,f){var d,b,a,e;a=this;null!=a.interval&&clearInterval(a.interval);if(f)a.$user.find("*").each(function(){return a.parseAttributes(this,c,0)}),a.options.callbacks.userLoaded&&a.options.callbacks.userLoaded.call(this,a);else{if(Array.isArray(c))for(e=0;e<c.length;)b=d=-1,a.$items.eq(e).find("*").each(function(){a.checkAttribute(this, "data-fb-like")?d++:a.checkAttribute(this,"data-fb-comment")?b++:a.checkAttribute(this,"data-likes")?a.parseAttributes(this,c[e],d):a.checkAttribute(this,"data-comments")?a.parseAttributes(this,c[e],b):a.parseAttributes(this,c[e],0)}),e++;a.options.callbacks.postsLoaded&&a.options.callbacks.postsLoaded.call(this,a)}};k.prototype.checkAttribute=function(c,f){var d,b,a,e;e=c.attributes;b=0;for(a=e.length;b<a;b++)if(d=e[b],-1<d.name.indexOf(f))return!0;return!1};k.prototype.parseAttributes=function(c,f,d){var b,a,e,h,k,q,l,m,n,p;e=c.attributes;for(h in e)if(null!=e[h]&&"data-remove"!==e[h].name&&"object"===typeof e[h]&&-1!==e[h].name.indexOf("data-")&&-1===e[h].name.indexOf("data-fb-")){p=e[h].name.substring(5);b=null;if(-1!==p.indexOf("-"))for(n=p.split("-"),b=f,a=0,q=n.length;a<q;a++)l=n[a],"data"===l&&null!=b[l]&&null!=b[l][d]?b=b[l][d]:null!=b[l]?b=b[l]:c.hasAttribute("data-remove")&&g(c).remove();if("string"===typeof e[h].value&&(a=e[h].value.split(/\s?,\s?/i),null!=b?m=b:null!=f[p]&&(m= f[p]), -1!==p.indexOf("created_time")&&(k=m),null!=m&&null!=a&&("string"===typeof m||"number"===typeof m)))for(q=0,l=a.length;q<l;q++)b=a[q],-1!==p.indexOf("created_time")&&(m="datetime"===b?this.dating(k,!0):this.dating(k,!1)),"text"===b.toLowerCase()?c.innerHTML=m:c.setAttribute(b,m)}};k.prototype.getOption=function(c){var f,d;if(null!=this.options.responsive){for(f in this.options.responsive)f<=n.iLine truncated
|
||||
/**
|
||||
* @module RD Audio
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.3
|
||||
*/
|
||||
(function(){(function(g,l,m){var n,h;navigator.appVersion.indexOf("MSIE");h="ontouchstart"in m;n=function(){function d(a,b){this.options=g.extend(!0,{},this.Defaults,b);this.element=a;this.$element=g(a);this.state=0;this.$win=g(m);this.$doc=g(l);this.classes={playPause:"rd-audio-play-pause",stopButton:"rd-audio-stop",nextButton:"rd-audio-next",prevButton:"rd-audio-prev",volume:"rd-audio-volume",volumeBar:"rd-audio-volume-bar",volumeBarSlider:"rd-audio-volume-bar-slider",progressBar:"rd-audio-progress-bar", progressBarSlider:"rd-audio-progress-bar-slider",duration:"rd-audio-duration",currentTime:"rd-audio-current-time",playlist:"rd-audio-playlist",author:"rd-audio-author",title:"rd-audio-title"};this.initialize()}d.prototype.Defaults={src:"audio/sound_1.mp3",volumeBarType:"horizontal",playListName:"",author:"",title:"",autoplay:!1,loop:!1};d.prototype.initialize=function(){this.createDataApi();this.createAudio();this.createProgressBar();this.createVolumeBar();this.updateState(this);this.attachPlayerEvents(); this.attachPlayPauseButtonListener();this.attachVolumeButtonListener();this.attachStopButtonListener();this.initPlaylistClickListener();this.triggerPlaylistClick();this.attachNextTrackButtonListener();this.attachPrevTrackButtonListener();this.updateDuration();this.updateAuthorName();this.updateTitle()};d.prototype.createAudio=function(){this.audio=new Audio;this.$element.append(this.audio);0===this.options.playListName.length&&(this.loadTrack(this.options.src),this.getOption("autoplay")&&this.audio.play())}; d.prototype.updateState=function(a){var b;b=a.isErrored()?0:a.isLoading()?1:2;a.state!==b&&(a.state=b)};d.prototype.attachPlayPauseButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.playPause).on("click",function(b){b.preventDefault();2===a.state&&null==a.playListName&&(a.isPlaying()?a.audio.pause():a.audio.play());a.$doc.trigger("playlistClick",[a.playListName,a.index])})};d.prototype.attachStopButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.stopButton).on("click", function(b){b.preventDefault();a.audio.currentTime=0;a.$doc.trigger("playlistClick",[a.playListName,a.index,!1])})};d.prototype.updateDuration=function(){var a,b;a=this;(b=a.$element.find("."+a.classes.duration)[0])&&a.audio.addEventListener("durationchange",function(){var c,e,f;c=a.getDuration();f=("0"+Math.floor(c)%60).slice(-2);e=("0"+Math.floor(c/60%60)).slice(-2);c=3600>=c?"":("0"+Math.floor(c/3600%60)+":").slice(-2);return b.innerHTML=""+c+e+":"+f})};d.prototype.updateAuthorName=function(){var a, b; b = this;(a=b.$element.find("."+b.classes.author)[0])&&b.audio.addEventListener("durationchange",function(){var c;b.playListName?(c=b.$doc.find('[data-rd-audio-playlist="'+b.playListName+'"] li[data-index="'+b.index+'"]'),c=c[0].getAttribute("data-rd-audio-author")):c=b.options.author;return a.innerHTML=c})};d.prototype.updateTitle=function(){var a,b;a=this;(b=a.$element.find("."+a.classes.title)[0])&&a.audio.addEventListener("durationchange",function(){var c;a.playListName?(c=a.$doc.find('[data-rd-audio-playlist="'+ a.playListName+'"] li[data-index="'+a.index+'"]'),c=c[0].getAttribute("data-rd-audio-title")):c=a.options.title;return b.innerHTML=c})};d.prototype.updateCurrentTime=function(a){var b,c,e;b=this.audio.currentTime;e=("0"+Math.floor(b)%60).slice(-2);c=("0"+Math.floor(b/60%60)).slice(-2);b=3600>=b?"":("0"+Math.floor(b/3600%60)+":").slice(-2);a.innerHTML=""+b+c+":"+e};d.prototype.attachVolumeButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.volume).on("click",function(b){b.preventDefault(); a.audio.muted=!a.isMuted()})};d.prototype.attachNextTrackButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.nextButton).on("click",function(b){b.preventDefault();b=a.$doc.find('[data-rd-audio-playlist="'+a.playListName+'"] li[data-index="'+(parseInt(a.index)+1)+'"]').length?[a.playListName,parseInt(a.index)+1]:[a.playListName,0];a.$doc.trigger("playlistClick",b)})};d.prototype.attachPrevTrackButtonListener=function(){var a;a=this;a.$element.find("."+a.classes.prevButton).on("click", function(b){b.preventDefault();0<=parseInt(a.index)-1?b=[a.playListName,parseInt(a.index)-1]:(b=a.$doc.find('[data-rd-audio-playlist="'+a.playListName+'"]'),b=[a.playListName,b.eq(b.length-1).find("li").last().attr("data-index")]);a.$doc.trigger("playlistClick",b)})};d.prototype.removeStateClass=function(a){var b,c,e,f;c=a.element.className.split(/\s+/);e=0;for(f=c.length;e<f;e++)b=c[e],-1!==b.indexOf("state-")&&a.element.classList.remove(b)};d.prototype.createProgressBar=function(){var a,b,c,e;c= this;c.$element.find("."+c.classes.progressBar).length&&(c.currentProgress=e=l.createElement("div"),e.classList.add("current"),c.attachProgressBarSlider(),a=c.$element.find("."+c.classes.progressBar)[0],b=!1,g(a).on("mousedown.rd touchstart.rd",function(e){if(1===e.which||h)b=!0,c.audio.currentTime=c.getClickBarPosition(e,a,"horizontal")*c.getDuration(),c.$doc.on("mouseup.rd touchend.rd touchcanLine truncated
|
||||
/**
|
||||
* @module RD Video Player
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.1
|
||||
*/
|
||||
(function(){(function(e,f,k){var m,n,q,r,p,l,g;l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);p=/iphone|ipod|ipad/.test(k.navigator.userAgent.toLowerCase());g="ontouchstart"in k;n=-1<navigator.userAgent.toLowerCase().indexOf("chrome");q=-1<navigator.userAgent.toLowerCase().indexOf("firefox");r=-1<navigator.userAgent.indexOf("Trident/")||-1<navigator.userAgent.indexOf("Edge/");m=function(){function c(b,d){this.options=e.extend(!0,{},this.Defaults,d);this.element= b; this.$element=e(b);this.state=0;this.$win=e(k);this.$doc=e(f);this.isFullscreen=!1;this.thread=null;this.loaded=!1;this.classes={playPause:"rd-video-play-pause",stopButton:"rd-video-stop",nextButton:"rd-video-next",prevButton:"rd-video-prev",volume:"rd-video-volume",volumeBar:"rd-video-volume-bar",volumeBarSlider:"rd-video-volume-bar-slider",progressBar:"rd-video-progress-bar",progressBarSlider:"rd-video-progress-bar-slider",duration:"rd-video-duration",currentTime:"rd-video-current-time",playlist:"rd-video-playlist", title:"rd-video-title",fullscreen:"rd-video-fullscreen",preview:"rd-video-preview"};this.initialize()}c.prototype.Defaults={path:"",volumeBarType:"vertical",title:"",ieFullScreenClass:"rd-video-wrap",volume:1,dblClickFull:!0,playPauseOnClick:!0,hideControls:!0,preload:!0,preview:"",muted:!1,callbacks:{onEnded:null,onPaused:null,onPlay:null}};c.prototype.initialize=function(){this.createDataApi();this.initPlaylistClickListener();this.createVideo();this.createProgressBar();this.createVolumeBar();this.attachPlayerEvents(); this.attachPlayPauseButtonListener();this.attachVolumeButtonListener();this.attachStopButtonListener();this.updateDuration();this.updateTitle();this.attachNextTrackButtonListener();this.attachPrevTrackButtonListener();this.attachFullScreenButtonListener()};c.prototype.createVideo=function(){this.video=this.$element.find("video")[0];this.options.muted&&(this.video.muted=!0);e(this.video).append('<source type="video/mp4">');null!=this.playlist?this.loadVideo(0):this.loadVideo(this.options.path);this.options.preload&& (this.video.load(),this.loaded=!0)};c.prototype.updateState=function(b){var d;d=b.isErrored()?0:b.isLoading()?1:2;b.state!==d&&(b.state=d)};c.prototype.attachPlayPauseButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.playPause).on("click",function(d){d.preventDefault();b.loaded||(b.video.load(),b.loaded=!0);e.proxy(b.playPause(),b,this)})};c.prototype.playPause=function(){this.isPlaying()?this.video.pause():this.video.play()};c.prototype.attachStopButtonListener=function(){var b; b=this;b.$element.find("."+b.classes.stopButton).on("click",function(d){d.preventDefault();b.video.pause();b.video.currentTime=0})};c.prototype.updateDuration=function(){var b,d;b=this;(d=b.$element.find("."+b.classes.duration)[0])&&b.video.addEventListener("durationchange",function(){var a,c,e;a=b.getDuration();e=("0"+Math.floor(a)%60).slice(-2);c=("0"+Math.floor(a/60%60)).slice(-2);a=3600>=a?"":("0"+Math.floor(a/3600%60)+":").slice(-2);return d.innerHTML=""+a+c+":"+e})};c.prototype.updateTitle= function(){var b,d;b=this;(d=b.$element.find("."+b.classes.title)[0])&&b.video.addEventListener("durationchange",function(){var a;null!=b.playlist?(a=e("."+b.classes.playlist+" .video-active"),a=a[0].getAttribute("data-rd-video-title")):a=b.options.title;return d.innerHTML=a})};c.prototype.updateCurrentTime=function(b){var d,a,c;d=this.video.currentTime;c=("0"+Math.floor(d)%60).slice(-2);a=("0"+Math.floor(d/60%60)).slice(-2);d=3600>=d?"":("0"+Math.floor(d/3600%60)+":").slice(-2);b.innerHTML=""+d+ a + ":"+c};c.prototype.attachVolumeButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.volume).on("click",function(d){d.preventDefault();b.video.muted=!b.isMuted()})};c.prototype.attachNextTrackButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.nextButton).on("click",function(d){d.preventDefault();return b.playNextVideo(!0)})};c.prototype.playNextVideo=function(b){var d;d=parseInt(e(this.playlist).find(".video-active").attr("data-index"));e(this.playlist).find('li[data-index="'+ (d +1)+'"]').length?(this.loadVideo(d+1),this.video.load(),this.loaded=!0,this.video.play()):b&&(this.loadVideo(0),this.video.load(),this.loaded=!0,this.video.play())};c.prototype.attachPrevTrackButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.prevButton).on("click",function(d){var a,c;d.preventDefault();d=parseInt(e(b.playlist).find(".video-active").attr("data-index"));a=e(b.playlist).find("[data-index]").length;c=b.isPlaying();0!==d?b.loadVideo(d-1):b.loadVideo(a-1);b.loaded= !0;b.video.load();c?b.video.play():b.video.pause()})};c.prototype.attachFullScreenButtonListener=function(){var b;b=this;b.$element.find("."+b.classes.fullscreen).on("click",function(d){d.preventDefault();b.makeFullscreen(b)})};c.prototype.makeFullscreen=function(b){b.isFullscreen?f.cancelFullScreen?f.cancelFullScreen():f.mozCancelFullScreen?f.mozCancelFullScreen():f.webkitCancelLine truncated
|
||||
/**
|
||||
* @module RD MaterialTabs
|
||||
* @author Rafael Shayvolodyan
|
||||
* @see https://ua.linkedin.com/in/rafael-shayvolodyan-3a297b96
|
||||
* @version 1.0.2
|
||||
*/
|
||||
(function(){(function(e,m,k){var l,n,p,f;n=(p=-1!==navigator.appVersion.indexOf("MSIE"))?parseInt(navigator.appVersion.split("MSIE")[1]):null;f="ontouchstart"in k;l=function(){function d(a,b){this.options=e.extend(!0,{},this.Defaults,b);this.$element=e(a);this.$list=this.$element.find(".rd-material-tabs__list");this.$content=this.$element.find(".rd-material-tabs__container");this.$win=e(k);this.$doc=e(m);this.activeIndex=0;this.settings={stageClass:"rd-material-tabs__stage",stageOuterClass:"rd-material-tabs__stage-outer", itemClass:"rd-material-tab"};this.state={isTouched:!1,isDragged:!1,isSwiping:!1};this.touches={prevX:null,list:!1};this.initialize()}d.prototype.Defaults={itemSelector:"div",margin:20,marginContent:0,items:3,touchRatio:1,speed:500,easing:"cubic-bezier(0.005, 0.300, 0.200, 1.000)",stagePadding:0,dragContent:!0,dragList:!0,responsive:null,callbacks:{onDragStart:!1,onDragEnd:!1,onChangeStart:!1,onChangeEnd:!1,onBeforeInit:!1,onInit:!1}};d.prototype.initialize=function(){this.options.callbacks.onBeforeInit&&this.options.callbacks.onBeforeInit.call(this,this);this.setVendor(this);this.createDOM(this);this.initHandlers(this);f||this.canMoveCursor();this.setWidth(this,!0);this.setWidth(this,!1);this.moveTo(this.activeIndex);this.options.callbacks.onInit&&this.options.callbacks.onInit.call(this,this)};d.prototype.createDOM=function(a){var b;a.$content.find(">"+a.options.itemSelector).addClass(a.settings.itemClass);b=a.transform(a,0);a.$content.wrapInner(e("<div/>",{"class":a.settings.stageClass,style:a.vendorName+"transform:"+b[a.vendorName+"transform"]})).wrapInner(e("<div/>",{"class":a.settings.stageOuterClass}));a.$list.find("li").addClass(a.settings.itemClass);return a.$list.wrapInner(e("<div/>",{"class":a.settings.stageClass,style:a.vendorName+"transform:"+b[a.vendorName+"transform"]})).wrapInner(e("<div/>",{"class":a.settings.stageOuterClass}))};d.prototype.setWidth=function(a,b){var c,h,d,e,f,g;b?(g=a.$list.find("."+a.settings.stageClass),f=a.getOption("stagePadding"),0<f&&a.getOption("dragList")&&g.css({"padding-left":f,"padding-right":f}),c=a.getWidth(a,a.$list.find("."+a.settings.stageOuterClass)),e=a.getOption("margin"),d=(c-a.getOption("items")*e)/a.getOption("items")):(g=a.$content.find("."+a.settings.stageClass),f=0,d=a.getWidth(a,a.$content.find("."+a.settings.stageOuterClass)),e=a.getOption("marginContent"));h=g.find("."+a.settings.itemClass);b&&!a.getOption("dragList")?(a.setListTranslate(a,0),g.css({"padding-left":0,"padding-right":0,width:"auto"}),h.removeAttr("style")):(c=h.length, h.css({width:a.px(d),"margin-right":a.px(e)}),g[0].style.width=a.px((d+e)*c+e+f))};d.prototype.resize=function(a){a.setWidth(a,!0);a.setWidth(a,!1);return setTimeout(function(){return a.moveTo(a.activeIndex)},300)};d.prototype.initHandlers=function(a){a.$win.on("resize",e.proxy(a.resize,this,a));if(f)a.$element.on("touchstart.rd.mt",e.proxy(a.onTouchStart,this,a));else a.$element.on("mousedown.rd.mt",e.proxy(a.onTouchStart,this,a)),a.$element.on("mouseleave.rd.mt",e.proxy(a.onTouchEnd,this,a))};d.prototype.onTouchEnd= function(a,b){var c,d;if(a.state.isTouched){a.$doc.off(".rd.mt");a.changing=!1;b.originalEvent&&(b=b.originalEvent);a.state.isTrigerred=!1;if(a.state.isDragged)if(f||a.$element.removeClass("rd-material-tabs-grab"),e(a.touches.targetEl).one("click.rd.mt",function(){return!1}),a.touches.endTime=Date.now(),d=a.touches.endTime-a.touches.startTime,a.touches.prevX=null,a.state.isDragged=!1,a.touches.list&&a.getOption("dragList"))c=a.state.isSwiping?20<d?a.touches.diff/(d/200):a.touches.diff:100<d?a.touches.diff/(d/1E3):d/15*a.touches.diff,a.touches.velocity=0,a.touches.velocity=c/(d/50)*a.getOption("touchRatio"),0!==a.touches.velocity&&(a.setListTransition(a,a.options.speed),c=a.getListTranslate(a)+a.touches.velocity,0<c?c=0:c<a.getMaxTranslate(a,a.$list)&&(c=a.getMaxTranslate(a,a.$list)),a.setListTranslate(a,c));else{if(!a.touches.list&&a.getOption("dragContent")){a.setContentTransition(a,a.options.speed);a.setListTransition(a,a.options.speed);if("left"===a.touches.direction&&0===a.activeIndex||"right"===a.touches.direction&&a.activeIndex===a.$content.find("."+a.settings.itemClass).length-1){a.moveTo(a.activeIndex);return}c=a.activeIndex;a.state.isSwiping?"left"===a.touches.direction?c=a.activeIndex-1:"right"===a.touches.direction&&(c=a.activeIndex+1):Math.abs(a.touches.diff)>a.getContentItemWidth(a)/3&&("left"===a.touches.direction?c=a.activeIndex-1:"right"===a.touches.direction&&(c=a.activeIndex+1));a.moveTo(c)}}else!a.state.isDragged&&a.touches.list&&(c=e(b.target),"A"===b.target.tagName||c.parents("."+a.settings.itemClass+" a").length)&&(a.setContentTransition(a,a.options.speed),a.setListTransition(a,a.options.speed),c=c.parents("."+a.settings.itemClass).index(),a.moveTo(c));a.state.isTouched=!1;a.options.callbacks.onDragEnd&&a.options.callbacks.onDragEnd.call(this,a)}};d.prototype.onDrag=function(a,b){var c,d,e;if(a.state.isTouched){b.originalEvent&&(b=b.originalEvent);a.touches.currenLine truncated
|
||||
/**
|
||||
* @module RD FilePicker
|
||||
* @author Aleksey Patsurkovskiy
|
||||
* @version 1.0.2
|
||||
* @license MIT License
|
||||
* @link http://cms.devoffice.com/coding-demo/mnemon1k/rd-filepicker/demo/
|
||||
*/
|
||||
(function(){(function(c,f,e){var d;d=function(){function b(a,b){this.options=c.extend(!0,{},this.Defaults,b);this.$element=c(a);this.$dropZone=c("."+this.options.dropZoneClass);this.$button=c("."+this.options.buttonClass);this.$meta=c("."+this.options.metaFieldClass);this.$input=this.$element.find("input[type='file']");this.initialize()}b.prototype.Defaults={buttonClass:null,dropZoneClass:null,metaFieldClass:null,"multiple\u0421aption":"{count} files selected",mouseOverClass:"file-grabbing",callbacks:{onInit:!1, onValueChange:!1,onFileDrop:!1}};b.prototype.initialize=function(){this.applyHandlers();this.options.callbacks.onInit&&this.options.callbacks.onInit.call(this,this);return this};b.prototype.applyHandlers=function(){var a;a=this;if(0!==a.$button.length)a.$button.on("click",function(b){b.preventDefault();b.stopPropagation();return a.$input.trigger("click")});else a.$element.on("click",function(b){b.stopPropagation();return a.$input.trigger("click")});if(0!==a.$dropZone.length)a.$dropZone.on("drag dragstart dragend dragover dragenter dragleave drop", function(a){a.preventDefault();return a.stopPropagation()}).on("dragover dragenter",c.proxy(a.dragEnterHandler,a)).on("dragleave dragend drop",c.proxy(a.dragEndHandler,a)).on("drop",c.proxy(a.dropHandler,a));a.$input.on("click",function(a){return a.stopPropagation()});a.$input.on("change",c.proxy(a.changeHandler,a));return a};b.prototype.dragEnterHandler=function(a){this.$element.addClass(this.options.mouseOverClass);return this};b.prototype.dragEndHandler=function(a){this.$element.removeClass(this.options.mouseOverClass); return this};b.prototype.dropHandler=function(a){this.updateMeta(a.originalEvent.dataTransfer.files);this.$input[0].files=a.originalEvent.dataTransfer.files;this.options.callbacks.onFileDrop&&this.options.callbacks.onFileDrop.call(this,this,a.originalEvent.dataTransfer.files);return this};b.prototype.changeHandler=function(a){this.updateMeta(this.$input[0].files);this.options.callbacks.onValueChange&&this.options.callbacks.onValueChange.call(this,this,this.$input[0].files);return this};b.prototype.updateMeta=function(a){this.$meta.text(1<a.length?this.options.multiple\u0421aption.replace("{count}",a.length+""):a[0].name);return this};return b}();c.fn.extend({RDFilepicker:function(b){return this.each(function(){var a;a=c(this);if(!a.data("RDFilepicker"))return a.data("RDFilepicker",new d(this,b))})}});return e.RDFilepicker=d})(window.jQuery,document,window);"undefined"!==typeof module&&null!==module?module.exports=window.RDFilepicker:"function"===typeof define&&define.amd&&define(["jquery"],function(){return window.RDFilepicker})}).call(this);
|
||||
/**
|
||||
* @module TimeCircles
|
||||
* @author Wim Barelds
|
||||
* @version 1.5.3
|
||||
* @see http://www.wimbarelds.nl/
|
||||
* @license MIT License
|
||||
*/
|
||||
(function(f){function A(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,b,d,e){return b+b+d+d+e+e});return(a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null}function B(){var a=document.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))}function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function z(a,c,b,d,e){for(var h={},l={},f={},g={},m={},k={},r=null,q=0;q<d.length;q++){var p= d[q],r=null===r?b/t[p]:t[r]/t[p],u=a/t[p],v=c/t[p];e&&(u=0<u?Math.floor(u):Math.ceil(u),v=0<v?Math.floor(v):Math.ceil(v));"Days"!==p&&(u%=r,v%=r);h[p]=u;f[p]=Math.abs(u);l[p]=v;k[p]=Math.abs(v);g[p]=Math.abs(u)/r;m[p]=Math.abs(v)/r;r=p}return{raw_time:h,raw_old_time:l,time:f,old_time:k,pct:g,old_pct:m}}function C(a){for(var c=["webkit","moz"],b=0;b<c.length&&!a.requestAnimationFrame;++b)a.requestAnimationFrame=a[c[b]+"RequestAnimationFrame"],a.cancelAnimationFrame=a[c[b]+"CancelAnimationFrame"];a.requestAnimationFrame&& a.cancelAnimationFrame||(a.requestAnimationFrame=function(c,b,h){"undefined"===typeof h&&(h={data:{last_frame:0}});var l=(new Date).getTime(),f=Math.max(0,16-(l-h.data.last_frame));b=a.setTimeout(function(){c(l+f)},f);h.data.last_frame=l+f;return b},a.cancelAnimationFrame=function(a){clearTimeout(a)})}var m=window;Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,c=!{toString:null}.propertyIsEnumerable("toString"),b="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "), d = b.length;return function(e){if("object"!==typeof e&&("function"!==typeof e||null===e))throw new TypeError("Object.keys called on non-object");var h=[],l;for(l in e)a.call(e,l)&&h.push(l);if(c)for(l=0;l<d;l++)a.call(e,b[l])&&h.push(b[l]);return h}}());var x=!1,y=["Days","Hours","Minutes","Seconds"],D={Seconds:"Minutes",Minutes:"Hours",Hours:"Days",Days:"Years"},t={Seconds:1,Minutes:60,Hours:3600,Days:86400,Months:2678400,Years:31536E3};Array.prototype.indexOf||(Array.prototype.indexOf=function(a, c) { var b = this.length >>> 0, d = Number(c) || 0, d = 0 > d ? Math.ceil(d) : Math.floor(d); for (0 > d && (d += b); d < b; d++)if (d in this && this[d] === a)return d; return -1 }); var w = {}, g = function (a, c) { this.element = a; this.container; this.listeners = null; this.data = { paused: !1, last_frame: 0, animation_frame: null, interval_fallback: null, timer: !1, total_duration: null, prev_time: null, drawn_units: [], text_elements: {Days: null, Hours: null, Minutes: null, Seconds: null}, attributes: {canvas: null, context: null, item_size: null, line_width: null, radius: null, outer_radius:null}, state:{fading:{Days:!1,Hours:!1,Minutes:!1,Seconds:!1}}};this.config=null;this.setOptions(c);this.initialize()};g.prototype.clearListeners=function(){this.listeners={all:[],visible:[]}};g.prototype.addTime=function(a){if(this.data.attributes.ref_date instanceof Date){var c=this.data.attributes.ref_date;c.setSeconds(c.getSeconds()+a)}else isNaN(this.data.attributes.ref_date)||(this.data.attributes.ref_date+=1E3*a)};g.prototype.initialize=function(a){this.data.drawn_units=[];for(var c=0;c<Object.keys(this.config.time).length;c++){var b= Object.keys(this.config.time)[c];this.config.time[b].show&&this.data.drawn_units.push(b)}f(this.element).children("div.time_circles").remove();"undefined"===typeof a&&(a=!0);(a||null===this.listeners)&&this.clearListeners();this.container=f("<div>");this.container.addClass("time_circles");this.container.appendTo(this.element);c=this.element.offsetHeight;a=this.element.offsetWidth;0===c&&(c=f(this.element).height());0===a&&(a=f(this.element).width());0===c&&0<a?c=a/this.data.drawn_units.length:0=== a&&0<c&&(a=c*this.data.drawn_units.length);b=document.createElement("canvas");b.width=a;b.height=c;this.data.attributes.canvas=f(b);this.data.attributes.canvas.appendTo(this.container);var d=B();d||"undefined"===typeof G_vmlCanvasManager||(G_vmlCanvasManager.initElement(b),d=x=!0);d&&(this.data.attributes.context=b.getContext("2d"));this.data.attributes.item_size=Math.min(a/this.data.drawn_units.length,c);this.data.attributes.line_width=this.data.attributes.item_size*this.config.fg_width;this.data.attributes.radius= (.8*this.data.attributes.item_size-this.data.attributes.line_width)/2;this.data.attributes.outer_radius=this.data.attributes.radius+.5*Math.max(this.data.attributes.line_width,this.data.attributes.line_width*this.config.bg_width);var c=0,e;for(e in this.data.text_elements)this.config.time[e].show&&(a=f("<div>"),a.addClass("textDiv_"+e),a.css("top",Math.round(.35*this.data.attributes.item_size)),a.css("left",Math.round(c++*this.data.attributes.item_size)),a.css("width",this.data.attributes.item_size), a.appendTo(this.container),b=f("<h4>"),b.text(this.config.time[e].text),b.css("font-size",Math.round(this.config.text_size*this.data.attributes.item_size)),b.css("line-height",Math.round(this.config.text_size*this.dLine truncated
|
||||
/**
|
||||
* @module Slick
|
||||
* @author Ken Wheeler
|
||||
* @see http://kenwheeler.github.io/slick
|
||||
* @version 1.6.0
|
||||
*/
|
||||
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(Line truncated
|
||||
d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototypLine truncated
|
||||
/**
|
||||
* @module jquery mousewheel plugin
|
||||
* @author malihu
|
||||
* @license MIT
|
||||
* @version 3.1.13
|
||||
* @see http://manos.malihu.gr/jquery-custom-content-scroller/
|
||||
*/
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).heighLine truncated
|
||||
!function(e){"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&N(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),X.call(thisLine truncated
|
||||
/**
|
||||
* @module Socialite
|
||||
* @author David Bushell
|
||||
* @license MIT
|
||||
* @version 2.0
|
||||
* @see http://socialitejs.co
|
||||
*/
|
||||
window.Socialite=(function(f,g,d){var e=0,a=[],i={},h={},b=/^($|loaded|complete)/,j=f.encodeURIComponent;var c={settings:{},trim:function(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")},hasClass:function(k,l){return(" "+k.className+" ").indexOf(" "+l+" ")!==-1},addClass:function(k,l){if(!c.hasClass(k,l)){k.className=(k.className==="")?l:k.className+" "+l}},removeClass:function(k,l){k.className=c.trim(" "+k.className+" ".replace(" "+l+" "," "))},extendObject:function(o,n,k){for(var m in n){var l=o[m]!==d;if(l&&typeof n[m]==="object"){c.extendObject(o[m],n[m],k)}else{if(k||!l){o[m]=n[m]}}}},getElements:function(l,p){var k=0,o=[],n=!!l.getElementsByClassName,m=n?l.getElementsByClassName(p):l.getElementsByTagName("*");for(;k<m.length;k++){if(n||c.hasClass(m[k],p)){o.push(m[k])}}return o},getDataAttributes:function(l,s,k){var o=0,q="",n={},p=l.attributes;for(;o<p.length;o++){var r=p[o].name,m=p[o].value;if(m.length&&r.indexOf("data-")===0){if(s){r=r.substring(5)}if(k){n[r]=m}else{q+=j(r)+"="+j(m)+"&"}}}return k?n:q},copyDataAttributes:function(p,o,n,m){var k=c.getDataAttributes(p,n,true);for(var l in k){o.setAttribute(m?l.replace(/-/g,"_"):l,k[l])}},createIframe:function(m,k){var l=g.createElement("iframe");l.style.cssText="overflow: hidden; border: none;";c.extendObject(l,{src:m,allowtransparency:"true",frameborder:"0",scrolling:"no"},true);if(k){l.onload=l.onreadystatechange=function(){if(b.test(l.readyState||"")){l.onload=l.onreadystatechange=null;c.activateInstance(k)}}}return l},networkReady:function(k){return i[k]?i[k].loaded:d},appendNetwork:function(k){if(!k||k.appended){return}if(typeof k.append==="function"&&k.append(k)===false){k.appended=k.loaded=true;c.activateAll(k);return}if(k.script){k.el=g.createElement("script");c.extendObject(k.el,k.script,true);k.el.async=true;k.el.onload=k.el.onreadystatechange=function(){if(b.test(k.el.readyState||"")){k.el.onload=k.el.onreadystatechange=null;k.loaded=true;if(typeof k.onload==="function"&&k.onload(k)===false){return}c.activateAll(k)}};g.body.appendChild(k.el)}k.appended=true},removeNetwork:function(k){if(!c.networkReady(k.name)){return false}if(k.el.parentNode){k.el.parentNode.removeChild(k.el)}return !(k.appended=k.loaded=false)},reloadNetwork:function(k){var l=i[k];if(l&&c.removeNetwork(l)){c.appendNetwork(l)}},createInstance:function(l,n){var m=true,k={el:l,uid:e++,widget:n};a.push(k);if(n.process!==d){m=(typeof n.process==="function")?n.process(k):false}if(m){c.processInstance(k)}k.el.setAttribute("data-socialite",k.uid);k.el.className="socialite "+n.name+" socialite-instance";return k},processInstance:function(k){var m=k.el;k.el=g.createElement("div");k.el.className=m.className;c.copyDataAttributes(m,k.el);if(m.nodeName.toLowerCase()==="a"&&!m.getAttribute("data-default-href")){k.el.setAttribute("data-default-href",m.getAttribute("href"))}var l=m.parentNode;l.insertBefore(k.el,m);l.removeChild(m)},activateInstance:function(k){if(k&&!k.loaded){k.loaded=true;if(typeof k.widget.activate==="function"){k.widget.activate(k)}c.addClass(k.el,"socialite-loaded");return k.onload?k.onload(k.el):null}},activateAll:function(m){if(typeof m==="string"){m=i[m]}for(var l=0;l<a.length;l++){var k=a[l];if(k.init&&k.widget.network===m){c.activateInstance(k)}}},load:function(m,n,s,p,l){m=(m&&typeof m==="object"&&m.nodeType===1)?m:g;if(!n||typeof n!=="object"){c.load(m,c.getElements(m,"socialite"),s,p,l);return}var q;if(/Array/.test(Object.prototype.toString.call(n))){for(q=0;q<n.length;q++){c.load(m,n[q],s,p,l)}return}if(n.nodeType!==1){return}if(!s||!h[s]){s=null;var o=n.className.split(" ");for(q=0;q<o.length;q++){if(h[o[q]]){s=o[q];break}}if(!s){return}}var u,r=h[s],k=parseInt(n.getAttribute("data-socialite"),10);if(!isNaN(k)){for(q=0;q<a.length;q++){if(a[q].uid===k){u=a[q];break}}}else{u=c.createInstance(n,r)}if(l||!u){return}if(!u.init){u.init=true;u.onload=(typeof p==="function")?p:null;r.init(u)}if(!r.network.appended){c.appendNetwork(r.network)}else{if(c.networkReady(r.network.name)){c.activateInstance(u)}}},activate:function(l,k,m){f.Socialite.load(null,l,k,m)},process:function(l,m,k){f.Socialite.load(l,m,k,null,true)},network:function(l,k){i[l]={name:l,el:null,appended:false,loaded:false,widgets:{}};if(k){c.extendObject(i[l],k)}},widget:function(m,k,l){l.name=m+"-"+k;if(!i[m]||h[l.name]){return}l.network=i[m];i[m].widgets[k]=h[l.name]=l},setup:function(k){c.extendObject(c.settings,k,true)}};return c})(window,window.document);(function(g,h,d,c){d.setup({facebook:{lang:"en_GB",appId:null},twitter:{lang:"en"},googleplus:{lang:"en-GB"}});d.network("facebook",{script:{src:"//connect.facebook.net/{{language}}/all.js",id:"facebook-jssdk"},append:function(o){var n=h.createElement("div"),m=d.settings.facebook,l={onlike:"edge.create",onunlike:"edge.remove",onsend:"message.send"};n.id="fb-root";h.body.appendChild(n);o.script.src=o.script.src.replace("{{language}}",m.lang);g.fbAsyncInit=function(){g.FB.init({appId:m.appId,xfbml:true});for(var p in l){if(typeof m[p]==="Line truncated
|
||||
/**
|
||||
* @module ProgressBar.js
|
||||
* @see https://kimmobrunfeldt.github.io/progressbar.js
|
||||
* @license: MIT License
|
||||
* @version 0.9.0
|
||||
*/
|
||||
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.ProgressBar=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(b,c,d){(function(){var b=this,e=function(){"use strict";function e(){}function f(a,b){var c;for(c in a)Object.hasOwnProperty.call(a,c)&&b(c)}function g(a,b){return f(b,function(c){a[c]=b[c]}),a}function h(a,b){f(b,function(c){"undefined"==typeof a[c]&&(a[c]=b[c])})}function i(a,b,c,d,e,f,g){var h,i,k,l=f>a?0:(a-f)/e;for(h in b)b.hasOwnProperty(h)&&(i=g[h],k="function"==typeof i?i:o[i],b[h]=j(c[h],d[h],k,l));return b}function j(a,b,c,d){return a+(b-a)*c(d)}function k(a,b){var c=n.prototype.filter,d=a._filterArgs;f(c,function(e){"undefined"!=typeof c[e][b]&&c[e][b].apply(a,d)})}function l(a,b,c,d,e,f,g,h,j,l,m){v=b+c+d,w=Math.min(m||u(),v),x=w>=v,y=d-(v-w),a.isPlaying()&&!x?(a._scheduleId=l(a._timeoutHandler,s),k(a,"beforeTween"),b+c>w?i(1,e,f,g,1,1,h):i(w,e,f,g,d,b+c,h),k(a,"afterTween"),j(e,a._attachment,y)):a.isPlaying()&&x&&(j(g,a._attachment,y),a.stop(!0))}function m(a,b){var c={},d=typeof b;return"string"===d||"function"===d?f(a,function(a){c[a]=b}):f(a,function(a){c[a]||(c[a]=b[a]||q)}),c}function n(a,b){this._currentState=a||{},this._configured=!1,this._scheduleFunction=p,"undefined"!=typeof b&&this.setConfig(b)}var o,p,q="linear",r=500,s=1e3/60,t=Date.now?Date.now:function(){return+new Date},u="undefined"!=typeof SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:t;p="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout:setTimeout;var v,w,x,y;return n.prototype.tween=function(a){return this._isTweening?this:(void 0===a&&this._configured||this.setConfig(a),this._timestamp=u(),this._start(this.get(),this._attachment),this.resume())},n.prototype.setConfig=function(a){a=a||{},this._configured=!0,this._attachment=a.attachment,this._pausedAtTime=null,this._scheduleId=null,this._delay=a.delay||0,this._start=a.start||e,this._step=a.step||e,this._finish=a.finish||e,this._duration=a.duration||r,this._currentState=g({},a.from)||this.get(),this._originalState=this.get(),this._targetState=g({},a.to)||this.get();var b=this;this._timeoutHandler=function(){l(b,b._timestamp,b._delay,b._duration,b._currentState,b._originalState,b._targetState,b._easing,b._step,b._scheduleFunction)};var c=this._currentState,d=this._targetState;return h(d,c),this._easing=m(c,a.easing||q),this._filterArgs=[c,this._originalState,d,this._easing],k(this,"tweenCreated"),this},n.prototype.get=function(){return g({},this._currentState)},n.prototype.set=function(a){this._currentState=a},n.prototype.pause=function(){return this._pausedAtTime=u(),this._isPaused=!0,this},n.prototype.resume=function(){return this._isPaused&&(this._timestamp+=u()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0,this._timeoutHandler(),this},n.prototype.seek=function(a){a=Math.max(a,0);var b=u();return this._timestamp+a===0?this:(this._timestamp=b-a,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,l(this,this._timestamp,this._delay,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction,b),this.pause()),this)},n.prototype.stop=function(a){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=e,(b.cancelAnimationFrame||b.webkitCancelAnimationFrame||b.oCancelAnimationFrame||b.msCancelAnimationFrame||b.mozCancelRequestAnimationFrame||b.clearTimeout)(this._scheduleId),a&&(k(this,"beforeTween"),i(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),k(this,"afterTween"),k(this,"afterTweenEnd"),this._finish.call(this,this._currentState,this._attachment)),this},n.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},n.prototype.setScheduleFunction=function(a){this._scheduleFunction=a},n.prototype.dispose=function(){var a;for(a in this)this.hasOwnProperty(a)&&delete this[a]},n.prototype.filter={},n.prototype.formula={linear:function(a){return a}},o=n.prototype.formula,g(n,{now:u,each:f,tweenProps:i,tweenProp:j,applyFilter:k,shallowCopy:g,defaults:h,composeEasingObject:m}),"function"==typeof SHIFTY_DEBUG_NOW&&(b.timeoutHandler=l),"object"==typeof d?c.exports=n:"function"==typeof a&&a.amd?a(function(){return n}):"undefined"==typeof b.TweeLine truncated
|
||||
/**
|
||||
* @module Prevent click events after a touchend.
|
||||
* @author Anders Johnson
|
||||
* @license MIT
|
||||
* @version 0.0.0
|
||||
* @see https://github.com/adjohnson916/prevent-ghost-click.js
|
||||
*/
|
||||
!function(t,n,e){function i(t){for(var n=0;n<u.length;n++){var e=u[n][0],i=u[n][1];if(Math.abs(t.clientX-e)<r&&Math.abs(t.clientY-i)<r){t.stopPropagation(),t.preventDefault();break}}}function c(){u=[]}function o(){u.splice(0,1)}function a(t){if(t.touches.length-t.changedTouches.length<=0){var n=t.changedTouches[0];u.push([n.clientX,n.clientY]),setTimeout(o,h)}}var u=[],r=25,h=2500;return"ontouchstart"in t?(t[e]=function(t){t.addEventListener("touchstart",c,!0),t.addEventListener("touchend",a,!0)},void n.addEventListener("click",i,!0)):void(t[e]=function(){})}(window,document,"PreventGhostClick");
|
||||
/**
|
||||
* @module Hammer.js
|
||||
* @author Alexander Schmitz
|
||||
* @license MIT
|
||||
* @version 2.0.7
|
||||
* @see http://hammerjs.github.io/
|
||||
*/
|
||||
!function(t,e,i,n){"use strict";function r(t,e,i){return setTimeout(c(t,i),e)}function s(t,e,i){return Array.isArray(t)?(o(t,i[e],i),!0):!1}function o(t,e,i){var r;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(r=0;r<t.length;)e.call(i,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function a(t,e,i){for(var r=Object.keys(e),s=0;s<r.length;)(!i||i&&t[r[s]]===n)&&(t[r[s]]=e[r[s]]),s++;return t}function h(t,e){return a(t,e,!0)}function u(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&&a(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function l(t,e){return typeof t==ct?t.apply(e?e[0]||n:n,e):t}function p(t,e){return t===n?e:t}function f(t,e,i){o(g(e),function(e){t.addEventListener(e,i,!1)})}function d(t,e,i){o(g(e),function(e){t.removeEventListener(e,i,!1)})}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function g(t){return t.trim().split(/\s+/g)}function T(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function y(t){return Array.prototype.slice.call(t,0)}function E(t,e,i){for(var n=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];T(r,o)<0&&n.push(t[s]),r[s]=o,s++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function I(t,e){for(var i,r,s=e[0].toUpperCase()+e.slice(1),o=0;o<ht.length;){if(i=ht[o],r=i?i+s:e,r in t)return r;o++}return n}function A(){return dt++}function _(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function D(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){l(t.options.enable,[t])&&i.handler(e)},this.init()}function S(t){var e,i=t.options.inputClass;return new(e=i?i:gt?W:Tt?H:mt?U:F)(t,w)}function w(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=e&Dt&&n-r===0,o=e&(wt|bt)&&n-r===0;i.isFirst=!!s,i.isFinal=!!o,s&&(t.session={}),i.eventType=e,b(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function b(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=z(e)),r>1&&!i.firstMultiple?i.firstMultiple=z(e):1===r&&(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,a=o?o.center:s.center,h=e.center=N(n);e.timeStamp=ft(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=x(a,h),e.distance=O(a,h),C(i,e),e.offsetDirection=M(e.deltaX,e.deltaY),e.scale=o?Y(o.pointers,n):1,e.rotation=o?X(o.pointers,n):0,R(i,e);var u=t.element;v(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function C(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};(e.eventType===Dt||s.eventType===wt)&&(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function R(t,e){var i,r,s,o,a=t.lastInterval||e,h=e.timeStamp-a.timeStamp;if(e.eventType!=bt&&(h>_t||a.velocity===n)){var u=a.deltaX-e.deltaX,c=a.deltaY-e.deltaY,l=P(h,u,c);r=l.x,s=l.y,i=pt(l.x)>pt(l.y)?l.x:l.y,o=M(u,c),t.lastInterval=e}else i=a.velocity,r=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=r,e.velocityY=s,e.direction=o}function z(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:lt(t.pointers[i].clientX),clientY:lt(t.pointers[i].clientY)},i++;return{timeStamp:ft(),pointers:e,center:N(e),deltaX:t.deltaX,deltaY:t.deltaY}}function N(t){var e=t.length;if(1===e)return{x:lt(t[0].clientX),y:lt(t[0].clientY)};for(var i=0,n=0,r=0;e>r;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:lt(i/e),y:lt(n/e)}}function P(t,e,i){return{x:e/t||0,y:i/t||0}}function M(t,e){return t===e?Ct:pt(t)>=pt(e)?t>0?Rt:zt:e>0?Nt:Pt}function O(t,e,i){i||(i=Xt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function x(t,e,i){i||(i=Xt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function X(t,e){return x(e[1],e[0],Yt)-x(t[1],t[0],Yt)}function Y(t,e){return O(e[0],e[1],Yt)/O(t[0],t[1],Yt)}function F(){this.evEl=Wt,this.evWin=qt,this.allow=!0,this.pressed=!1,D.apply(this,arguments)}function W(){this.evEl=kt,this.evWin=Ut,D.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function q(){this.evTarget=Vt,this.evWin=jt,this.started=!1,D.apply(this,arguments)}function L(t,e){var i=y(t.touches),n=y(t.changedTouches);return e&(wt|bt)&&(i=E(i.concat(n),"identifier",!0)),[i,n]}function H(){this.evTarget=Bt,this.targetIds={},D.apply(this,arguments)}function k(t,e){var i=y(t.touches),n=this.targetIds;if(e&(Dt|St)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=y(t.changedTouches),a=[],h=this.target;if(s=i.filter(function(t){return v(t.target,h)}),e===Dt)for(r=0;r<s.length;)n[s[r].identifier]=!0,r++;for(r=0;r<o.length;)n[o[r].identifier]&&a.push(o[r]),e&(wt|bt)&&delete n[o[r].identifier],r++;return a.length?[E(s.concat(a),"identifier",!0),a]:void 0}function U(){D.apply(this,arguments);var t=c(this.handler,this);this.touch=new H(this.managLine truncated
|
||||
/**
|
||||
* @module Bridget makes jQuery widgets
|
||||
* @author David DeSandro
|
||||
* @license MIT
|
||||
* @version 2.0.0
|
||||
* @see https://github.com/desandro/jquery-bridget
|
||||
*/
|
||||
!function(t,n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(i){n(t,i)}):"object"==typeof module&&module.exports?module.exports=n(t,require("jquery")):t.jQueryBridget=n(t,t.jQuery)}(window,function(t,n){"use strict";function i(i,r,a){function f(t,n,e){var o,r="$()."+i+'("'+n+'")';return t.each(function(t,f){var c=a.data(f,i);if(!c)return void u(i+" not initialized. Cannot call methods, i.e. "+r);var d=c[n];if(!d||"_"==n.charAt(0))return void u(r+" is not a valid method");var s=d.apply(c,e);o=void 0===o?s:o}),void 0!==o?o:t}function c(t,n){t.each(function(t,e){var o=a.data(e,i);o?(o.option(n),o._init()):(o=new r(e,n),a.data(e,i,o))})}a=a||n||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var n=o.call(arguments,1);return f(this,t,n)}return c(this,t),this},e(a))}function e(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,u="undefined"==typeof r?function(){}:function(t){r.error(t)};return e(n||t.jQuery),i});
|
||||
/**
|
||||
* @module mag.js
|
||||
* @author Anders Johnson
|
||||
* @license MIT
|
||||
* @version 2.1.4
|
||||
* @see https://github.com/adjohnson916/magnificent.js
|
||||
*/
|
||||
!function(o,n){var i="Mag";"function"==typeof define&&define.amd?define(["./mag-analytics"],function(t){return o[i]=n(t)}):"object"==typeof exports?module.exports=n(require("./mag-analytics")):o[i]=n(o.MagnificentAnalytics)}(this,function(o){var n=function(o){o=o||{},o.model=o.model||{},o.zoomMin=o.zoomMin||1,o.zoomMax=o.zoomMax||10,o.constrainLens=o.constrainLens!==!1,o.constrainZoomed=o.constrainZoomed!==!1,this.id=o.id,this.model=o.model,this.options=o,this.fillModel()};return n.prototype.fillXY=function(o){return o=o||{},o.x=o.x||0,o.y=o.y||0,o},n.prototype.fillWH=function(o){return o=o||{},o.w=o.w||0,o.h=o.h||0,o},n.prototype.fillModel=function(){var o=this.model;o.mode=o.mode||"lag",o.focus=this.fillXY(o.focus),o.lens=this.fillXY(this.fillWH(o.lens)),o.zoomed=this.fillXY(this.fillWH(o.zoomed)),o.boundedLens=this.fillXY(this.fillWH(o.boundedLens)),o.zoom=o.zoom||1,o.ratio=o.ratio||1},n.prototype.compute=function(){var o,n,i,t,s,e,a=this.options,r=this.model;o=r.lens,n=r.focus,i=r.zoomed,t=r.zoom,t=this.minMax(t,a.zoomMin,a.zoomMax),n.x=this.minMax(n.x,0,1),n.y=this.minMax(n.y,0,1),s=1/t,e=1/t,e/=r.ratio,o.w=s,o.h=e,a.constrainLens&&(o=this.constrainLensWH(o)),o.x=n.x-o.w/2,o.y=n.y-o.h/2,a.constrainLens&&(o=this.constrainLensXY(o)),i.w=1/s,i.h=1/e;var h=this.constrainZoomed(i,a);h.w!==i.w&&(t*=h.w/i.w),i=h,i.x=.5-n.x*i.w,i.y=.5-n.y*i.h,a.constrainZoomed&&(i.x=this.minMax(i.x,1-t,0),i.y=this.minMax(i.y,1-t,0)),r.lens=o,r.focus=n,r.zoomed=i,r.zoom=t},n.prototype.minMax=function(o,n,i){return n>o?n:o>i?i:o},n.prototype.minMax1=function(o,n){return this.minMax(o,n,1)},n.prototype.constrainZoomed=function(o,n){var i,t;return i=this.minMax(o.w,n.zoomMin,n.zoomMax),i!==o.w?(t*=i/o.w,t=this.minMax(t,n.zoomMin,n.zoomMax)):(t=this.minMax(o.h,n.zoomMin,n.zoomMax),t!==o.h&&(i*=t/o.h,i=this.minMax(i,n.zoomMin,n.zoomMax))),{w:i,h:t,x:o.x,y:o.y}},n.prototype.constrainLensWH=function(o){var n,i;return n=this.minMax1(o.w,.1),n!==o.w?(i*=n/o.w,i=this.minMax1(i,.1)):(i=this.minMax1(o.h,.1),i!==o.h&&(n*=i/o.h,n=this.minMax1(n,.1))),{w:n,h:i,x:o.x,y:o.y}},n.prototype.constrainLensXY=function(o){return{x:this.minMax(o.x,0,1-o.w),y:this.minMax(o.y,0,1-o.h),w:o.w,h:o.h}},n.prototype.constrainLens=function(o){var n=this.constrainLensXY(this.constrainLensWH(o));return n.w+n.x>1&&(n.x=Math.max(0,1-n.w)),n.h+n.y>1&&(n.y=Math.max(0,1-n.h)),n},n.prototype.project=function(o){var n=this.model,i=n.lens;return{x:i.x*o.w,y:i.y*o.h,w:i.w*o.w,h:i.h*o.h}},o&&o.track("mag.js"),n});
|
||||
/**
|
||||
* @module mag-jquery.js
|
||||
* @author Anders Johnson
|
||||
* @license MIT
|
||||
* @version 2.1.4
|
||||
* @see https://github.com/adjohnson916/magnificent.js
|
||||
*/
|
||||
!function(o,e){var t="Magnificent";"function"==typeof define&&define.amd?define(["./mag","./mag-analytics","jquery","hammerjs","prevent-ghost-click","jquery-bridget"],function(n,i,a,r){return o[t]=e(n,i,a,r,PreventGhostClick)}):"object"==typeof exports?module.exports=e(require("./mag"),require("./mag-analytics"),require("jquery"),require("hammerjs"),require("prevent-ghost-click"),require("jquery-bridget")):o[t]=e(o.Mag,o.MagnificentAnalytics,o.$,o.Hammer,o.PreventGhostClick)}(this,function(o,e,t,n){t(":root").addClass("mag-js");var i=function(o,e){e=e||t(o.target);var n=e.offset();return{x:o.pageX-n.left,y:o.pageY-n.top}},a=function(o,e){e=e||t(o.target);var n=i(o,e);return{x:n.x/e.width(),y:n.y/e.height()}},r=function(o,e,t){return{x:e/o.width(),y:t/o.height()}},s=function(o){return 100*o+"%"},m=function(o,e,t){return"3d"===e?c(o,t):"2d"===e?f(o,t):d(o,t)},d=function(o,e){var t={};return void 0!==o.x&&(t.left=s(o.x)),void 0!==o.y&&(t.top=s(o.y)),void 0!==o.w&&(t.width=s(o.w)),void 0!==o.h&&(t.height=s(o.h)),t},f=function(o,e){var t,n,i,a,r={},m=o.x,d=o.y,f=o.w,c=o.h;m+=(f-1)*(.5-m)/f,d+=(c-1)*(.5-d)/c,void 0!==m&&(t=s(m)),void 0!==d&&(n=s(d)),void 0!==f&&(i=f),void 0!==c&&(a=c);var l="";return i&&(l+=" scaleX("+i+")"),a&&(l+=" scaleY("+a+")"),t&&(l+=" translateX("+t+")"),n&&(l+=" translateY("+n+")"),r["-webkit-transform"]=l,r["-moz-transform"]=l,r["-ms-transform"]=l,r["-o-transform"]=l,r.transform=l,r},c=function(o,e){var t,n,i,a,r={},m=o.x,d=o.y,f=o.w,c=o.h;m+=(f-1)*(.5-m)/f,d+=(c-1)*(.5-d)/c,void 0!==m&&(t=s(m)),void 0!==d&&(n=s(d)),void 0!==f&&(i=f),void 0!==c&&(a=c);var l="";return l+=" scale3d("+(void 0!==i?i:0)+","+(void 0!==a?a:0)+",1)",l+=" translate3d("+(void 0!==t?t:0)+","+(void 0!==n?n:0)+",0)",r["-webkit-transform"]=l,r["-moz-transform"]=l,r["-ms-transform"]=l,r["-o-transform"]=l,r.transform=l,r.width="100%",r.height="100%",r.position="absolute",r.top="0",r.left="0",r},l=function(o,e){this.element=t(o),this.options=t.extend(!0,{},this.options,e),this._init()};return l.prototype.options={mode:"inner",position:"mirror",positionEvent:"move",theme:"default",initialShow:"thumb",constrainLens:!0,constrainZoomed:!1,zoomMin:1,zoomMax:10,zoomRate:.2,dragRate:.2,ratio:1,toggle:!0,smooth:!0,renderIntervalTime:20,cssMode:"3d",eventNamespace:"magnificent",dataNamespace:"magnificent"},l.prototype.toggle=function(o){o?(this.$zoomedContainer.fadeIn(),this.$lens&&this.$lens.fadeIn()):(this.$zoomedContainer.fadeOut(),this.$lens&&this.$lens.fadeOut())},l.prototype.compute=function(){var o=this;o.mag.compute(),o.$el.trigger("compute",o)},l.prototype.render=function(){var o,e,t=this,n=this.$lens,i=this.$zoomed;if(n){o=this.modelLazy.lens;var a=m(o,t.options.cssMode,t.id);n.css(a)}e=this.modelLazy.zoomed;var r=m(e,t.options.cssMode,t.id);i.css(r),this.$el.trigger("render",t)},l.prototype.eventName=function(o){o=o||"";var e=this.options.eventNamespace;return o+(e?"."+e:"")},l.prototype.dataName=function(o){o=o||"";var e=this.options.dataNamespace;return(e?e+".":"")+o},l.prototype._init=function(){var e=this,i=this.$el=this.element;this.$originalEl=i.clone();var s=this.options,m=i.attr("mag-thumb");this.id=m,t.isFunction(s.toggle)&&(this.toggle=s.toggle);var d=this.$lens,f=s.ratio,c=s.initial||{},l="undefined"!=typeof c.zoom?c.zoom:2,u="undefined"!=typeof c.focus?c.focus:{x:.5,y:.5},g="undefined"!=typeof c.lens?c.lens:{w:0,h:0},p=this.model={focus:u,zoom:l,lens:g,ratio:f},v=this.mag=new o({zoomMin:s.zoomMin,zoomMax:s.zoomMax,constrainLens:s.constrainLens,constrainZoomed:s.constrainZoomed,model:p}),h=this.modelLazy={focus:{x:p.focus.x,y:p.focus.y},zoom:p.zoom,lens:{w:p.lens.w,h:p.lens.h},ratio:f},y=this.magLazy=new o({zoomMin:s.zoomMin,zoomMax:s.zoomMax,constrainLens:s.constrainLens,constrainZoomed:s.constrainZoomed,model:h});v.compute(),y.compute();var z,x,w,$;x=i.children(),i.empty(),i.addClass("mag-host"),s.zoomedContainer||(s.zoomedContainer=t('[mag-zoom="'+e.id+'"]')),s.zoomedContainer&&($=t(s.zoomedContainer),e.$originalZoomedContainer=$.clone(),z=$.children(),$.empty(),"inner"===s.mode&&$.remove()),"outer"===s.mode&&"undefined"==typeof s.showLens&&(s.showLens=!0),z&&z.length||(z=x.clone()),s.mode&&i.attr("mag-mode",s.mode),s.theme&&i.attr("mag-theme","default"),s.position?i.attr("mag-position",s.position):s.position===!1&&(s.positionEvent=!1),s.positionEvent&&i.attr("mag-position-event",s.positionEvent),i.attr("mag-toggle",s.toggle),s.showLens&&(d=this.$lens=t('<div class="mag-lens"></div>'),i.append(d));var C=t('<div class="mag-noflow" mag-theme="'+s.theme+'"></div>');if(i.append(C),"inner"===s.mode)$=C;else{if("outer"!==s.mode)throw new Error("Invalid 'mode' option.");if(!s.zoomedContainer)throw new Error("Required 'zoomedContainer' option.");$=t(s.zoomedContainer)}$.attr("mag-theme",s.theme),$.addClass("mag-zoomed-container"),$.addClass("mag-zoomed-bg");var b=t('<div class="mag-thumb"></div>');b.html(x),i.append(b),w=this.$zoomed=t('<div class="mag-zoomed"></div>'),w.html(z),$.append(w),$.attr("mag-toggle",sLine truncated
|
||||
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
*/
|
||||
!function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=y.elements;return"string"==typeof e?e.split(" "):e}function a(e,t){var n=y.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),y.elements=n+" "+e,m(t)}function c(e){var t=E[e[p]];return t||(t={},v++,e[p]=v,E[v]=t),t}function o(e,n,r){if(n||(n=t),u)return n.createElement(e);r||(r=c(n));var a;return a=r.cache[e]?r.cache[e].cloneNode():g.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!a.canHaveChildren||f.test(e)||a.tagUrn?a:r.frag.appendChild(a)}function i(e,n){if(e||(e=t),u)return e.createDocumentFragment();n=n||c(e);for(var a=n.frag.cloneNode(),o=0,i=r(),l=i.length;l>o;o++)a.createElement(i[o]);return a}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return y.shivMethods?o(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(y,t.frag)}function m(e){e||(e=t);var r=c(e);return!y.shivCSS||s||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||l(e,r),e}var s,u,d="3.7.2",h=e.html5||{},f=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,g=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,p="_html5shiv",v=0,E={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",s="hidden"in e,u=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){s=!0,u=!0}}();var y={elements:h.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:d,shivCSS:h.shivCSS!==!1,supportsUnknownElements:u,shivMethods:h.shivMethods!==!1,type:"default",shivDocument:m,createElement:o,createDocumentFragment:i,addElements:a};e.html5=y,m(t)}(this,document);
|
||||
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* Pointer Events
|
||||
* @license BSD Lisence
|
||||
*/
|
||||
function PointerEventsPolyfill(t){if(this.options={selector:"*",mouseEvents:["click","dblclick","mousedown","mouseup"],usePolyfillIf:function(){if("Microsoft Internet Explorer"==navigator.appName){var t=navigator.userAgent;if(null!=t.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/)){var e=parseFloat(RegExp.$1);if(11>e)return!0}}return!1}},t){var e=this;$.each(t,function(t,n){e.options[t]=n})}this.options.usePolyfillIf()&&this.register_mouse_events()}PointerEventsPolyfill.initialize=function(t){return null==PointerEventsPolyfill.singleton&&(PointerEventsPolyfill.singleton=new PointerEventsPolyfill(t)),PointerEventsPolyfill.singleton},PointerEventsPolyfill.prototype.register_mouse_events=function(){$(document).on(this.options.mouseEvents.join(" "),this.options.selector,function(t){if("none"==$(this).css("pointer-events")){var e=$(this).css("display");$(this).css("display","none");var n=document.elementFromPoint(t.clientX,t.clientY);return e?$(this).css("display",e):$(this).css("display",""),t.target=n,$(n).trigger(t),!1}return!0})},jQuery(document).ready(function(){PointerEventsPolyfill.initialize({})});
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user