Fix lint errors on home.

This commit is contained in:
Nawaz Dhandala
2019-08-02 23:03:04 +05:30
parent c95a039c3b
commit 252eebc5f2
11 changed files with 170 additions and 168 deletions

View File

@@ -65,6 +65,7 @@
},
"scripts": {
"lint": "eslint .",
"fix-lint": "eslint . --fix",
"dev": "export PORT=3003 && react-scripts start",
"build": "react-scripts build",
"test": "npm run lint",

View File

@@ -5,6 +5,7 @@
"start": "node server.js",
"test": "echo 'no tests'",
"lint": "eslint .",
"fix-lint": "eslint . --fix",
"lighthouse-test": "jest lighthouse-tests/test/index.test.js --env=node --detectOpenHandles",
"lighthouse": "start-server-and-test http://localhost:1444",
"smoketest": "jest smoketest/index.test.js --env=node --detectOpenHandles",

View File

@@ -6,14 +6,14 @@ c)))*Math.PI/e)+c+b},easeOutBack:function(a,b,c,d){return c*((a=a/d-1)*a*(2.7015
(a/=d/2)?c/2*a*a*a*a+b:-c/2*((a-=2)*a*a*a-2)+b},easeInOutQuint:function(a,b,c,d){return 1>(a/=d/2)?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},easeInOutSine:function(a,b,c,d){return-c/2*(Math.cos(Math.PI*a/d)-1)+b},easeInOutExpo:function(a,b,c,d){return 0==a?b:a==d?b+c:1>(a/=d/2)?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b},easeInOutCirc:function(a,b,c,d){return 1>(a/=d/2)?-c/2*(Math.sqrt(1-a*a)-1)+b:c/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInOutElastic:function(a,b,c,d){var e=4>=arguments.length||
void 0===arguments[4]?500:arguments[4];if(0==a)return b;if(2==(a/=d/2))return b+c;var e=d*(1-Math.min(e,999)/1E3)*1.5,f=c<Math.abs(c)?e/4:e/(2*Math.PI)*Math.asin(c/c);return 1>a?-.5*c*Math.pow(2,10*--a)*Math.sin(2*(a*d-f)*Math.PI/e)+b:c*Math.pow(2,-10*--a)*Math.sin(2*(a*d-f)*Math.PI/e)*.5+c+b},easeInOutBack:function(a,b,c,d){var e=1.70158;return 1>(a/=d/2)?c/2*a*a*(((e*=1.525)+1)*a-e)+b:c/2*((a-=2)*a*(((e*=1.525)+1)*a+e)+2)+b}},w=function(a){return a[0]},F=function(a){return a.reduce(function(a,c){return a.concat(c)})},
m=function(){return Array.prototype.includes?function(a,b){return a.includes(b)}:function(a,b){return a.some(function(a){return a===b})}}(),x=function(a){for(var b=arguments.length,c=Array(1<b?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];var e=F(c);return a.filter(function(a){return q(m)(e,a)})},G=function(){var a=function(a){var c=new Map;Object.keys(a).forEach(function(d){return c.set(d,a[d])});return c};return function(b){return b instanceof Map?b:a(b)}}(),H=function(a){return/^#/.test(a)},y=function(a){return/^rgb/.test(a)},
I=function(){var a=function(a){return 7>a.length?a.split("").reduce(function(a,b){return a+b+b}):a},b=function(a){return a.match(/[\d\w]{2}/g).map(function(a){return parseInt(a,16)})};return function(c){if(y(c))return c;c=p(a,b)(c);return"rgb("+c[0]+", "+c[1]+", "+c[2]+")"}}(),z=function(a){return J("string"==typeof a?document.querySelectorAll(a):a)},J=function(){var a=[NodeList,HTMLCollection,Set];return function(b){return Array.isArray(b)?b:a.some(function(a){return b instanceof a})?Array.from(b):
b.nodeType?[b]:b.get()}}(),l=new Map;"el delay begin complete loop direction".split(" ").forEach(function(a){return l.set(a,null)});l.set("duration",1E3);l.set("easing","easeOutElastic");var K=function(){var a=Array.from(l.keys()).filter(function(a){return l.get(a)}),b=function(b){return a.every(function(a){return b.has(a)})},c=function(b){var c=new Map(b);a.forEach(function(a){c.has(a)||c.set(a,l.get(a))});return c};return function(a){return b(a)?a:c(a)}}(),L=function(){var a=h(function(a,b){return Array.isArray(a.get(b))}),
b=function(b){return n(b).every(a(b))},c=function(b){return n(b).filter(q(a(b)))};return function(a){if(b(a))return a;var e=new Map(a);c(e).forEach(function(a){return e.set(a,[A.get(a),e.get(a)])});return e}}(),M=function(){var a=function(a){return/\D$/.test(a)},b=h(function(b,c){return a(c)||/scale/.test(b)?c:/rotate|skew/.test(b)?c+"deg":c+"px"}),c=function(b,c){return c.every(function(c){return b.get(c).every(a)})};return function(a){var e=n(a).filter(r);if(c(a,e))return a;var f=new Map(a);e.forEach(function(c){return f.set(c,
a.get(c).map(b(c)))});return f}}(),N=function(){var a=h(function(a,b){return a.get(b).some(H)}),b=function(b){return!B(b).some(a(b))},c=function(b){return B(b).filter(a(b))};return function(a){if(b(a))return a;var e=new Map(a);c(a).forEach(function(a){return e.set(a,e.get(a).map(I))});return e}}(),C=function(a){var b=new Map(a);t(a).forEach(function(a){return b.set(a,b.get(a).slice().reverse())});return b},O=p(G,K,L,M,N,function(a){return(new Map(a)).set("el",z(a.get("el")))},function(a){return"reverse"==
a.get("direction")?C(a):a}),t=function(){var a=Array.from(l.keys()),b=function(b){return q(m)(a,b)};return function(a){return Array.from(a.keys()).filter(b)}}(),Q=function(){var a=p(w,y),b=h(function(b,d){var e=b.get(d).map(P),f=e[0],g=e[1],e=new Map;e.set("prop",d);e.set("from",f);e.set("to",g);e.set("isTransformFunction",r(d));e.set("isColor",a(b.get(d)));/\d$/.test(b.get("easing"))?(f=b.get("easing").split(" "),g=f[1],e.set("easing",f[0]),e.set("frequency",g)):e.set("easing",b.get("easing"));return e});
return function(a,d){return t(a).map(b(a))}}(),n=function(){var a=function(a){return m(u,a)};return function(b){return Array.from(b.keys()).filter(a)}}(),B=function(a){return x(t(a),n(a))},u="opacity translateX translateY scale rotate scaleX scaleY rotateX rotateY perspective skewX skewY translateZ rotateZ scaleZ".split(" "),A=new Map;(function(){var a=["opacity","scale","scaleX","scaleY"];u.forEach(function(b){return A.set(b,m(a,b)?1:0)})})();var r=function(){var a=u.filter(function(a){return"opacity"!=
a});return function(b){return m(a,b)}}(),R=function(a){var b=n(a);if(b.length){var c=[];b.some(r)&&c.push("transform");m(b,"opacity")&&c.push("opacity");var d=c.join();a.get("el").forEach(function(a){a.style.willChange||(a.style.willChange=d)})}},S=function(a,b){return b.reduce(function(b,d,e){return b+a[e-1]+d})},P=function(){var a=/-?\d*\.?\d+/g;return function(b){var c=new Map;c.set("digits",("string"==typeof b?b:String(b)).match(a).map(Number));c.set("others",("string"==typeof b?b:String(b)).split(a));
return c}}(),T=h(function(a,b,c){var d=c.get("to").get("digits").map(function(d,f){var g=c.get("from").get("digits")[f];if(g==d)return g;var D=d-g,g=E[c.get("easing")](b,g,D,a.get("duration"),c.get("frequency"));return c.get("isColor")?Math.round(g):g});return S(d,c.get("to").get("others"))}),U=h(function(a,b){var c=a.get(b.get("prop"));return w(c.slice(-1))}),V=h(function(a,b,c){var d=void 0;a.forEach(function(a,f){a.get("isTransformFunction")?(d||(d=[]),d.push(a.get("prop")+"("+b[f]+")")):"opacity"==
a.get("prop")?c.style.opacity=b[f]:c.setAttribute(a.get("prop"),b[f])});d&&(c.style.transform=d.join(" "))}),W=function(){var a=function(a,c){c.get("begin")&&c.get("begin")(c.get("el"));requestAnimationFrame(a)};return function(b,c){return c.get("delay")?setTimeout(function(){return a(b,c)},c.get("delay")):a(b,c)}}(),X=function(a){return v(function(){if("alternate"==a.get("direction"))return C(a);if("reverse"==a.get("direction")){var b=new Map(a);b["delete"]("direction");return b}return a}())},k=
new Map,Y=function(){var a=0;return function(b){var c=a++;k=(new Map(k)).set(c,b);return c}}(),v=function(a){var b=O(a),c=Q(b),d=Y(b.get("el")),e=new Map;R(b);W(function g(a){if(k.has(d)){e.has("start")||e.set("start",a);e.set("elapsed",a-e.get("start"));a=e.get("elapsed")<b.get("duration");var h=c.map(a?T(b,e.get("elapsed")):U(b));k.get(d).forEach(V(c,h));a?requestAnimationFrame(g):(a=new Map(k),a["delete"](d),k=a,b.get("complete")&&b.get("complete")(b.get("el")),b.get("loop")&&X(b))}},b)};v.stop=
function(a){var b=z(a),c=new Map(k);c.forEach(function(a,e){var f=x(a,b);f.length?c.set(e,f):c["delete"](e)});k=c};return v}();"undefined"!=typeof module&&module.exports&&(module.exports=animate);
I=function(){var a=function(a){return 7>a.length?a.split('').reduce(function(a,b){return a+b+b}):a},b=function(a){return a.match(/[\d\w]{2}/g).map(function(a){return parseInt(a,16)})};return function(c){if(y(c))return c;c=p(a,b)(c);return'rgb('+c[0]+', '+c[1]+', '+c[2]+')'}}(),z=function(a){return J('string'==typeof a?document.querySelectorAll(a):a)},J=function(){var a=[NodeList,HTMLCollection,Set];return function(b){return Array.isArray(b)?b:a.some(function(a){return b instanceof a})?Array.from(b):
b.nodeType?[b]:b.get()}}(),l=new Map;'el delay begin complete loop direction'.split(' ').forEach(function(a){return l.set(a,null)});l.set('duration',1E3);l.set('easing','easeOutElastic');var K=function(){var a=Array.from(l.keys()).filter(function(a){return l.get(a)}),b=function(b){return a.every(function(a){return b.has(a)})},c=function(b){var c=new Map(b);a.forEach(function(a){c.has(a)||c.set(a,l.get(a))});return c};return function(a){return b(a)?a:c(a)}}(),L=function(){var a=h(function(a,b){return Array.isArray(a.get(b))}),
b=function(b){return n(b).every(a(b))},c=function(b){return n(b).filter(q(a(b)))};return function(a){if(b(a))return a;var e=new Map(a);c(e).forEach(function(a){return e.set(a,[A.get(a),e.get(a)])});return e}}(),M=function(){var a=function(a){return/\D$/.test(a)},b=h(function(b,c){return a(c)||/scale/.test(b)?c:/rotate|skew/.test(b)?c+'deg':c+'px'}),c=function(b,c){return c.every(function(c){return b.get(c).every(a)})};return function(a){var e=n(a).filter(r);if(c(a,e))return a;var f=new Map(a);e.forEach(function(c){return f.set(c,
a.get(c).map(b(c)))});return f}}(),N=function(){var a=h(function(a,b){return a.get(b).some(H)}),b=function(b){return!B(b).some(a(b))},c=function(b){return B(b).filter(a(b))};return function(a){if(b(a))return a;var e=new Map(a);c(a).forEach(function(a){return e.set(a,e.get(a).map(I))});return e}}(),C=function(a){var b=new Map(a);t(a).forEach(function(a){return b.set(a,b.get(a).slice().reverse())});return b},O=p(G,K,L,M,N,function(a){return(new Map(a)).set('el',z(a.get('el')))},function(a){return'reverse'==
a.get('direction')?C(a):a}),t=function(){var a=Array.from(l.keys()),b=function(b){return q(m)(a,b)};return function(a){return Array.from(a.keys()).filter(b)}}(),Q=function(){var a=p(w,y),b=h(function(b,d){var e=b.get(d).map(P),f=e[0],g=e[1],e=new Map;e.set('prop',d);e.set('from',f);e.set('to',g);e.set('isTransformFunction',r(d));e.set('isColor',a(b.get(d)));/\d$/.test(b.get('easing'))?(f=b.get('easing').split(' '),g=f[1],e.set('easing',f[0]),e.set('frequency',g)):e.set('easing',b.get('easing'));return e});
return function(a,d){return t(a).map(b(a))}}(),n=function(){var a=function(a){return m(u,a)};return function(b){return Array.from(b.keys()).filter(a)}}(),B=function(a){return x(t(a),n(a))},u='opacity translateX translateY scale rotate scaleX scaleY rotateX rotateY perspective skewX skewY translateZ rotateZ scaleZ'.split(' '),A=new Map;(function(){var a=['opacity','scale','scaleX','scaleY'];u.forEach(function(b){return A.set(b,m(a,b)?1:0)})})();var r=function(){var a=u.filter(function(a){return'opacity'!=
a});return function(b){return m(a,b)}}(),R=function(a){var b=n(a);if(b.length){var c=[];b.some(r)&&c.push('transform');m(b,'opacity')&&c.push('opacity');var d=c.join();a.get('el').forEach(function(a){a.style.willChange||(a.style.willChange=d)})}},S=function(a,b){return b.reduce(function(b,d,e){return b+a[e-1]+d})},P=function(){var a=/-?\d*\.?\d+/g;return function(b){var c=new Map;c.set('digits',('string'==typeof b?b:String(b)).match(a).map(Number));c.set('others',('string'==typeof b?b:String(b)).split(a));
return c}}(),T=h(function(a,b,c){var d=c.get('to').get('digits').map(function(d,f){var g=c.get('from').get('digits')[f];if(g==d)return g;var D=d-g,g=E[c.get('easing')](b,g,D,a.get('duration'),c.get('frequency'));return c.get('isColor')?Math.round(g):g});return S(d,c.get('to').get('others'))}),U=h(function(a,b){var c=a.get(b.get('prop'));return w(c.slice(-1))}),V=h(function(a,b,c){var d=void 0;a.forEach(function(a,f){a.get('isTransformFunction')?(d||(d=[]),d.push(a.get('prop')+'('+b[f]+')')):'opacity'==
a.get('prop')?c.style.opacity=b[f]:c.setAttribute(a.get('prop'),b[f])});d&&(c.style.transform=d.join(' '))}),W=function(){var a=function(a,c){c.get('begin')&&c.get('begin')(c.get('el'));requestAnimationFrame(a)};return function(b,c){return c.get('delay')?setTimeout(function(){return a(b,c)},c.get('delay')):a(b,c)}}(),X=function(a){return v(function(){if('alternate'==a.get('direction'))return C(a);if('reverse'==a.get('direction')){var b=new Map(a);b['delete']('direction');return b}return a}())},k=
new Map,Y=function(){var a=0;return function(b){var c=a++;k=(new Map(k)).set(c,b);return c}}(),v=function(a){var b=O(a),c=Q(b),d=Y(b.get('el')),e=new Map;R(b);W(function g(a){if(k.has(d)){e.has('start')||e.set('start',a);e.set('elapsed',a-e.get('start'));a=e.get('elapsed')<b.get('duration');var h=c.map(a?T(b,e.get('elapsed')):U(b));k.get(d).forEach(V(c,h));a?requestAnimationFrame(g):(a=new Map(k),a['delete'](d),k=a,b.get('complete')&&b.get('complete')(b.get('el')),b.get('loop')&&X(b))}},b)};v.stop=
function(a){var b=z(a),c=new Map(k);c.forEach(function(a,e){var f=x(a,b);f.length?c.set(e,f):c['delete'](e)});k=c};return v}();'undefined'!=typeof module&&module.exports&&(module.exports=animate);

View File

@@ -4,22 +4,22 @@ function openTab(evt, tabName) {
var i, tabcontent, tablinks;
// Get all elements with class="tabcontent" and hide them
tabcontent = document.getElementsByClassName("tabcontent");
tabcontent = document.getElementsByClassName('tabcontent');
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].className = tabcontent[i].className.replace(" active", "");
tabcontent[i].className = tabcontent[i].className.replace(' active', '');
}
// Get all elements with class="tablinks" and remove the class "active"
tablinks = document.getElementsByClassName("tablinks");
tablinks = document.getElementsByClassName('tablinks');
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
tablinks[i].className = tablinks[i].className.replace(' active', '');
}
// Show the current tab, and add an "active" class to the link that opened the tab
document.getElementById(tabName).className += " active";
evt.currentTarget.className += " active";
document.getElementById(tabName).className += ' active';
evt.currentTarget.className += ' active';
setTimeout(() => document.getElementById(tabName + '1').parentNode.click(), 200);
};
}
function openTooltip(name) {
// Declare all variables
@@ -27,32 +27,32 @@ function openTooltip(name) {
element = document.getElementById(name);
elclass = element.className;
tooltip = document.getElementsByClassName("tooltiptext");
tooltip = document.getElementsByClassName('tooltiptext');
for (i = 0; i < tooltip.length; i++) {
tooltip[i].className = tooltip[i].className.replace(" active", "");
tooltip[i].className = tooltip[i].className.replace(' active', '');
}
if (elclass.indexOf("active") > -1) {
element.className = element.className.replace(" active", "");
if (elclass.indexOf('active') > -1) {
element.className = element.className.replace(' active', '');
}
else {
element.classList.add("active");
element.classList.add('active');
}
}
window.onload = function () {
animateHTML().init();
var tooltext = document.getElementsByClassName("tooltiptext");
var tooltext = document.getElementsByClassName('tooltiptext');
for (var i = 0; i < tooltext.length; i++) {
tooltext[i].onclick = function (e) {
e.stopPropagation();
}
}
document.getElementsByTagName("body")[0].onclick = function (e) {
if (e.target.className !== "popover-dot" && e.target.className !== "tooltiptext" && e.target.className !== "tablinks active") {
var tooltip = document.getElementsByClassName("tooltiptext");
document.getElementsByTagName('body')[0].onclick = function (e) {
if (e.target.className !== 'popover-dot' && e.target.className !== 'tooltiptext' && e.target.className !== 'tablinks active') {
var tooltip = document.getElementsByClassName('tooltiptext');
for (i = 0; i < tooltip.length; i++) {
tooltip[i].className = tooltip[i].className.replace(" active", "");
tooltip[i].className = tooltip[i].className.replace(' active', '');
}
}
}
@@ -61,7 +61,7 @@ window.onload = function () {
var animateHTML = function () {
var elem, windowHeight;
var init = function () {
elem = document.getElementById("Statuspage");
elem = document.getElementById('Statuspage');
windowHeight = window.innerHeight;
_addEventHandlers();
}
@@ -73,7 +73,7 @@ var animateHTML = function () {
var posFromTop = elem.getBoundingClientRect().top;
if (posFromTop - windowHeight <= -400) {
document.getElementById("Statuspage1").parentNode.click();
document.getElementById('Statuspage1').parentNode.click();
window.removeEventListener('scroll', _checkPosition);
window.removeEventListener('resize', init);
return;

View File

@@ -1,6 +1,6 @@
function readConfig(t) {
function n(t) {
return String(t).replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/&#x2F;/g, "index.html").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&")
return String(t).replace(/&quot;/g, '"').replace(/&#39;/g, '\'').replace(/&#x2F;/g, 'index.html').replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&amp;/g, '&')
}
var e = /^[\],:{}\s]*$/,
i = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
@@ -8,42 +8,42 @@ function readConfig(t) {
r = /(?:^|:|,)(?:\s*\[)+/g,
a = document.getElementById(t);
if (!a) return null;
var s = n((a.textContent || a.innerHTML).replace(/^\s+|\s+$/gm, ""));
return e.test(s.replace(i, "@").replace(o, "]").replace(r, "")) ? window.JSON && window.JSON.parse ? window.JSON.parse(s) : new Function("return " + s)() : void 0
var s = n((a.textContent || a.innerHTML).replace(/^\s+|\s+$/gm, ''));
return e.test(s.replace(i, '@').replace(o, ']').replace(r, '')) ? window.JSON && window.JSON.parse ? window.JSON.parse(s) : new Function('return ' + s)() : void 0
}
function globalNavDropdowns(t) {
var n = this;
this.container = document.querySelector(t), this.root = this.container.querySelector(".navRoot"), this.primaryNav = this.root.querySelector(".navSection.primary"), this.primaryNavItem = this.root.querySelector(".navSection.primary .rootLink:last-child"), this.secondaryNavItem = this.root.querySelector(".navSection.secondary .rootLink:first-child"), this.checkCollision(), window.addEventListener("load", this.checkCollision.bind(this)), window.addEventListener("resize", this.checkCollision.bind(this)), this.container.classList.add("noDropdownTransition"), this.dropdownBackground = this.container.querySelector(".dropdownBackground"), this.dropdownBackgroundAlt = this.container.querySelector(".alternateBackground"), this.dropdownContainer = this.container.querySelector(".dropdownContainer"), this.dropdownArrow = this.container.querySelector(".dropdownArrow"), this.dropdownRoots = Strut.queryArray(".hasDropdown", this.root), this.dropdownSections = Strut.queryArray(".dropdownSection", this.container).map(function(t) {
this.container = document.querySelector(t), this.root = this.container.querySelector('.navRoot'), this.primaryNav = this.root.querySelector('.navSection.primary'), this.primaryNavItem = this.root.querySelector('.navSection.primary .rootLink:last-child'), this.secondaryNavItem = this.root.querySelector('.navSection.secondary .rootLink:first-child'), this.checkCollision(), window.addEventListener('load', this.checkCollision.bind(this)), window.addEventListener('resize', this.checkCollision.bind(this)), this.container.classList.add('noDropdownTransition'), this.dropdownBackground = this.container.querySelector('.dropdownBackground'), this.dropdownBackgroundAlt = this.container.querySelector('.alternateBackground'), this.dropdownContainer = this.container.querySelector('.dropdownContainer'), this.dropdownArrow = this.container.querySelector('.dropdownArrow'), this.dropdownRoots = Strut.queryArray('.hasDropdown', this.root), this.dropdownSections = Strut.queryArray('.dropdownSection', this.container).map(function(t) {
return {
el: t,
name: t.getAttribute("data-dropdown"),
content: t.querySelector(".dropdownContent")
name: t.getAttribute('data-dropdown'),
content: t.querySelector('.dropdownContent')
}
});
var e = window.PointerEvent ? {
end: "pointerup",
enter: "pointerenter",
leave: "pointerleave"
end: 'pointerup',
enter: 'pointerenter',
leave: 'pointerleave'
} : {
end: "touchend",
enter: "mouseenter",
leave: "mouseleave"
end: 'touchend',
enter: 'mouseenter',
leave: 'mouseleave'
};
this.dropdownRoots.forEach(function(t) {
t.addEventListener(e.end, function(e) {
e.preventDefault(), e.stopPropagation(), n.toggleDropdown(t)
}), t.addEventListener(e.enter, function(e) {
"touch" != e.pointerType && (n.stopCloseTimeout(), n.openDropdown(t))
'touch' != e.pointerType && (n.stopCloseTimeout(), n.openDropdown(t))
}), t.addEventListener(e.leave, function(t) {
"touch" != t.pointerType && n.startCloseTimeout()
'touch' != t.pointerType && n.startCloseTimeout()
})
}), this.dropdownContainer.addEventListener(e.end, function(t) {
t.stopPropagation()
}), this.dropdownContainer.addEventListener(e.enter, function(t) {
"touch" != t.pointerType && n.stopCloseTimeout()
'touch' != t.pointerType && n.stopCloseTimeout()
}), this.dropdownContainer.addEventListener(e.leave, function(t) {
"touch" != t.pointerType && n.startCloseTimeout()
'touch' != t.pointerType && n.startCloseTimeout()
}), document.body.addEventListener(e.end, function() {
Strut.touch.isDragging || n.closeDropdown()
})
@@ -51,18 +51,18 @@ function globalNavDropdowns(t) {
function globalNavPopup(t) {
var n = this,
e = Strut.touch.isSupported ? "touchend" : "click";
this.activeClass = "globalPopupActive", this.root = document.querySelector(t), this.link = this.root.querySelector(".rootLink"), this.popup = this.root.querySelector(".popup"), this.closeButton = this.root.querySelector(".popupCloseButton"), this.link.addEventListener(e, function(t) {
e = Strut.touch.isSupported ? 'touchend' : 'click';
this.activeClass = 'globalPopupActive', this.root = document.querySelector(t), this.link = this.root.querySelector('.rootLink'), this.popup = this.root.querySelector('.popup'), this.closeButton = this.root.querySelector('.popupCloseButton'), this.link.addEventListener(e, function(t) {
t.stopPropagation(), n.togglePopup()
}), this.popup.addEventListener(e, function(t) {
t.stopPropagation()
}), this.popup.addEventListener("transitionend", function() {
}), this.popup.addEventListener('transitionend', function() {
if (n.isOpening) {
n.isOpening = !1;
var t = n.popup.getBoundingClientRect().top + window.scrollY;
if (t < 15) {
var e = 15 - t;
n.popup.style.transform = "translateY(" + e + "px)"
n.popup.style.transform = 'translateY(' + e + 'px)'
}
}
}), this.closeButton && this.closeButton.addEventListener(e, function() {
@@ -76,30 +76,30 @@ function globalNavPopup(t) {
}
function n() {
o.classList.add("dismissed")
o.classList.add('dismissed')
}
function e() {
var t = new Date,
n = a + "=ack";
t.setYear(t.getFullYear() + 10), n += ";expires=" + t.toGMTString(), n += ";domain=" + document.domain, document.cookie = n
n = a + '=ack';
t.setYear(t.getFullYear() + 10), n += ';expires=' + t.toGMTString(), n += ';domain=' + document.domain, document.cookie = n
}
function i() {
o = document.querySelector('[rel="cookie-notification"]'), (r = document.querySelector('[rel="dismiss-cookie-notification"]')) && r.addEventListener("click", t)
o = document.querySelector('[rel="cookie-notification"]'), (r = document.querySelector('[rel="dismiss-cookie-notification"]')) && r.addEventListener('click', t)
}
var o, r, a = "cookie_banner_ack";
document.addEventListener("DOMContentLoaded", i)
var o, r, a = 'cookie_banner_ack';
document.addEventListener('DOMContentLoaded', i)
}(),
function() {
window.$ && window.$.ajaxPrefilter && $(function() {
var t;
return t = function() {
var t, n;
return t = $("form input[name=csrf-token]"), t.length > 0 ? t.attr("value") : (n = $("meta[name=csrf-token]"), n.length > 0 ? n.attr("content") : "")
return t = $('form input[name=csrf-token]'), t.length > 0 ? t.attr('value') : (n = $('meta[name=csrf-token]'), n.length > 0 ? n.attr('content') : '')
}, $.ajaxPrefilter(function(n, e, i) {
var o;
return o = t(), i.setRequestHeader("x-fyipe-csrf-token", o)
return o = t(), i.setRequestHeader('x-fyipe-csrf-token', o)
})
})
}.call(this);
@@ -123,23 +123,23 @@ var Strut = {
return n || (n = document.body), Array.prototype.slice.call(n.querySelectorAll(t))
},
ready: function(t) {
"loading" !== document.readyState ? t() : document.addEventListener("DOMContentLoaded", t)
'loading' !== document.readyState ? t() : document.addEventListener('DOMContentLoaded', t)
}
};
Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670, Strut.isMobileViewport = window.innerWidth < Strut.mobileViewportWidth, window.addEventListener("resize", function() {
Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670, Strut.isMobileViewport = window.innerWidth < Strut.mobileViewportWidth, window.addEventListener('resize', function() {
Strut.isMobileViewport = window.innerWidth < Strut.mobileViewportWidth
}), Strut.touch = {
isSupported: "ontouchstart" in window || navigator.maxTouchPoints,
isSupported: 'ontouchstart' in window || navigator.maxTouchPoints,
isDragging: !1
}, document.addEventListener("DOMContentLoaded", function() {
document.body.addEventListener("touchmove", function() {
}, document.addEventListener('DOMContentLoaded', function() {
document.body.addEventListener('touchmove', function() {
Strut.touch.isDragging = !0
}), document.body.addEventListener("touchstart", function() {
}), document.body.addEventListener('touchstart', function() {
Strut.touch.isDragging = !1
})
}), Strut.load = {
images: function(t, n) {
"string" == typeof t && (t = [t]);
'string' == typeof t && (t = [t]);
var e = -t.length;
t.forEach(function(t) {
var i = new Image;
@@ -149,15 +149,15 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
})
},
css: function(t, n) {
var e = document.createElement("link"),
i = window.readConfig("strut_files") || {},
var e = document.createElement('link'),
i = window.readConfig('strut_files') || {},
o = i[t];
if (!o) throw new Error('CSS file "' + t + '" not found in strut_files config');
e.href = o, e.rel = "stylesheet", document.head.appendChild(e), n && (e.onload = n)
e.href = o, e.rel = 'stylesheet', document.head.appendChild(e), n && (e.onload = n)
},
js: function(t, n) {
var e = document.createElement("script"),
i = window.readConfig("strut_files") || {},
var e = document.createElement('script'),
i = window.readConfig('strut_files') || {},
o = i[t];
if (!o) throw new Error('Javascript file "' + t + '" not found in strut_files config');
e.src = o, e.async = !1, document.head.appendChild(e), n && (e.onload = n)
@@ -165,16 +165,16 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
}, Strut.supports = {
es6: function() {
try {
return new Function("(a = 0) => a"), !0
return new Function('(a = 0) => a'), !0
} catch (t) {
return !1
}
}(),
pointerEvents: function() {
var t = document.createElement("a").style;
return t.cssText = "pointer-events:auto", "auto" === t.pointerEvents
var t = document.createElement('a').style;
return t.cssText = 'pointer-events:auto', 'auto' === t.pointerEvents
}(),
positionSticky: Boolean(window.CSS && CSS.supports("(position: -webkit-sticky) or (position: sticky)")),
positionSticky: Boolean(window.CSS && CSS.supports('(position: -webkit-sticky) or (position: sticky)')),
masks: function() {
return !/MSIE|Trident|Edge/i.test(navigator.userAgent)
}()
@@ -184,22 +184,22 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
if (1 == t.compact) {
var n = document.body.clientWidth,
e = t.primaryNav.getBoundingClientRect();
e.left + e.width / 2 > n / 2 && (t.container.classList.remove("compact"), t.compact = !1)
e.left + e.width / 2 > n / 2 && (t.container.classList.remove('compact'), t.compact = !1)
} else {
var i = t.primaryNavItem.getBoundingClientRect(),
o = t.secondaryNavItem.getBoundingClientRect();
i.right > o.left && (t.container.classList.add("compact"), t.compact = !0)
i.right > o.left && (t.container.classList.add('compact'), t.compact = !0)
}
}, globalNavDropdowns.prototype.openDropdown = function(t) {
var n = this;
if (this.activeDropdown !== t) {
this.container.classList.add("overlayActive"), this.container.classList.add("dropdownActive"), this.activeDropdown = t, this.dropdownRoots.forEach(function(t) {
t.classList.remove("active")
}), t.classList.add("active");
var e, i, o, r = t.getAttribute("data-dropdown"),
a = "left";
this.container.classList.add('overlayActive'), this.container.classList.add('dropdownActive'), this.activeDropdown = t, this.dropdownRoots.forEach(function(t) {
t.classList.remove('active')
}), t.classList.add('active');
var e, i, o, r = t.getAttribute('data-dropdown'),
a = 'left';
this.dropdownSections.forEach(function(t) {
t.el.classList.remove("active"), t.el.classList.remove("left"), t.el.classList.remove("right"), t.name == r ? (t.el.classList.add("active"), a = "right", e = t.content.offsetWidth, i = t.content.offsetHeight, t.content.getAttribute("data-fixed") ? t.content.setAttribute("data-fixed", !0) : (t.content.style.width = e + "px", t.content.style.height = i + "px"), o = t.content) : t.el.classList.add(a)
t.el.classList.remove('active'), t.el.classList.remove('left'), t.el.classList.remove('right'), t.name == r ? (t.el.classList.add('active'), a = 'right', e = t.content.offsetWidth, i = t.content.offsetHeight, t.content.getAttribute('data-fixed') ? t.content.setAttribute('data-fixed', !0) : (t.content.style.width = e + 'px', t.content.style.height = i + 'px'), o = t.content) : t.el.classList.add(a)
});
var s = 380,
c = 400,
@@ -208,20 +208,20 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
u = t.getBoundingClientRect(),
p = u.left + u.width / 2 - e / 2;
p = Math.round(Math.max(p, 10)), clearTimeout(this.disableTransitionTimeout), this.enableTransitionTimeout = setTimeout(function() {
n.container.classList.remove("noDropdownTransition")
}, 50), this.dropdownBackground.style.transform = "translateX(" + p + "px) scaleX(" + d + ") scaleY(" + l + ")", this.dropdownContainer.style.transform = "translateX(" + p + "px)", this.dropdownContainer.style.width = e + "px", this.dropdownContainer.style.height = i + "px";
n.container.classList.remove('noDropdownTransition')
}, 50), this.dropdownBackground.style.transform = 'translateX(' + p + 'px) scaleX(' + d + ') scaleY(' + l + ')', this.dropdownContainer.style.transform = 'translateX(' + p + 'px)', this.dropdownContainer.style.width = e + 'px', this.dropdownContainer.style.height = i + 'px';
var w = Math.round(u.left + u.width / 2);
this.dropdownArrow.style.transform = "translateX(" + w + "px) rotate(45deg)";
this.dropdownArrow.style.transform = 'translateX(' + w + 'px) rotate(45deg)';
var f = o.children[0].offsetHeight / l;
this.dropdownBackgroundAlt.style.transform = "translateY(" + f + "px)", window.siteAnalytics && window.siteAnalytics.trackGlobalNavDropdownOpen && window.siteAnalytics.trackGlobalNavDropdownOpen(r)
this.dropdownBackgroundAlt.style.transform = 'translateY(' + f + 'px)', window.siteAnalytics && window.siteAnalytics.trackGlobalNavDropdownOpen && window.siteAnalytics.trackGlobalNavDropdownOpen(r)
}
}, globalNavDropdowns.prototype.closeDropdown = function() {
var t = this;
this.activeDropdown && (this.dropdownRoots.forEach(function(t) {
t.classList.remove("active")
t.classList.remove('active')
}), clearTimeout(this.enableTransitionTimeout), this.disableTransitionTimeout = setTimeout(function() {
t.container.classList.add("noDropdownTransition")
}, 50), this.container.classList.remove("overlayActive"), this.container.classList.remove("dropdownActive"), this.activeDropdown = undefined)
t.container.classList.add('noDropdownTransition')
}, 50), this.container.classList.remove('overlayActive'), this.container.classList.remove('dropdownActive'), this.activeDropdown = undefined)
}, globalNavDropdowns.prototype.toggleDropdown = function(t) {
this.activeDropdown === t ? this.closeDropdown() : this.openDropdown(t)
}, globalNavDropdowns.prototype.startCloseTimeout = function() {
@@ -236,12 +236,12 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
var t = this.root.classList.contains(this.activeClass);
this.closeAllPopups(!0), t || (this.root.classList.add(this.activeClass), this.isOpening = !0)
}, globalNavPopup.prototype.closeAllPopups = function() {
for (var t = document.getElementsByClassName(this.activeClass), n = 0; n < t.length; n++) t[n].querySelector(".popup").style.transform = null, t[n].classList.remove(this.activeClass)
}, Strut.supports.pointerEvents || Strut.load.css("v3/shared/navigation_ie10.html"), Strut.ready(function() {
new globalNavDropdowns(".globalNav"), new globalNavPopup(".globalNav .navSection.mobile"), new globalNavPopup(".globalFooterNav .select.country"), new globalNavPopup(".globalFooterNav .select.language")
for (var t = document.getElementsByClassName(this.activeClass), n = 0; n < t.length; n++) t[n].querySelector('.popup').style.transform = null, t[n].classList.remove(this.activeClass)
}, Strut.supports.pointerEvents || Strut.load.css('v3/shared/navigation_ie10.html'), Strut.ready(function() {
new globalNavDropdowns('.globalNav'), new globalNavPopup('.globalNav .navSection.mobile'), new globalNavPopup('.globalFooterNav .select.country'), new globalNavPopup('.globalFooterNav .select.language')
}),
function() {
"use strict";
'use strict';
function t() {
var t = [].slice.call(arguments);
@@ -250,7 +250,7 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
function n() {
var t = {},
n = document.getElementById("site-analytics-config");
n = document.getElementById('site-analytics-config');
return n && (t = JSON.parse(n.textContent)), t
}
@@ -267,19 +267,19 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
}
function r(t, n) {
d("action", t, n)
d('action', t, n)
}
function a(t, n) {
d("actionOnce", t, n)
d('actionOnce', t, n)
}
function s(t, n) {
d("modal", t, n)
d('modal', t, n)
}
function c(t, n) {
d("viewed", t, n)
d('viewed', t, n)
}
function d(t, n, e) {
@@ -289,19 +289,19 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
function l(n, e, i) {
u();
var o = f(i);
window.Analytics[n](e, o), t("emit", n, e, o)
window.Analytics[n](e, o), t('emit', n, e, o)
}
function u() {
A || (window.Analytics.configure(e()), A = !0, t("Sent config data"))
A || (window.Analytics.configure(e()), A = !0, t('Sent config data'))
}
function p(n, e, i) {
S.push([n, e, i]), g(), t("enqueue", n, e, i)
S.push([n, e, i]), g(), t('enqueue', n, e, i)
}
function w() {
t("Flushing event queue"), u(), S.forEach(function(t) {
t('Flushing event queue'), u(), S.forEach(function(t) {
l.apply(this, t)
})
}
@@ -318,7 +318,7 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
}
function m() {
v = null, window.Analytics ? (w(), L = E) : (g(), t("Ready timer waiting " + L + "ms"))
v = null, window.Analytics ? (w(), L = E) : (g(), t('Ready timer waiting ' + L + 'ms'))
}
function y(t) {
@@ -330,7 +330,7 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
}
window.siteAnalytics = window.siteAnalytics || {}, window.siteAnalyticsUtil = window.siteAnalyticsUtil || {};
var v, A = !1,
b = "SITE_ANALYTICS_DEBUG",
b = 'SITE_ANALYTICS_DEBUG',
S = [],
E = 250,
L = E,
@@ -347,7 +347,7 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
}
function n(t) {
return t.getAttribute(r) || t.getAttribute(s) ? t : t.parentNode && "BODY" !== t.tagName ? n(t.parentNode) : null
return t.getAttribute(r) || t.getAttribute(s) ? t : t.parentNode && 'BODY' !== t.tagName ? n(t.parentNode) : null
}
function e(t) {
@@ -362,10 +362,10 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
function o() {
window.siteAnalytics.hasAnalyticsAttributes = e, window.siteAnalytics.trackByAttributes = i
}
var r = "data-analytics-action",
a = "data-analytics-source",
s = "data-analytics-modal",
c = "data-analytics-ga";
var r = 'data-analytics-action',
a = 'data-analytics-source',
s = 'data-analytics-modal',
c = 'data-analytics-ga';
o()
}(),
function() {
@@ -373,45 +373,45 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
! function(t, n, e, i, o, r, a) {
t.fbq || (o = t.fbq = function() {
o.callMethod ? o.callMethod.apply(o, arguments) : o.queue.push(arguments)
}, t._fbq || (t._fbq = o), o.push = o, o.loaded = !0, o.version = "2.0", o.queue = [], r = n.createElement(e), r.async = !0, r.src = i, a = n.getElementsByTagName(e)[0], a.parentNode.insertBefore(r, a))
}(window, document, "script", "../connect.facebook.net/en_US/fbevents.js")
}, t._fbq || (t._fbq = o), o.push = o, o.loaded = !0, o.version = '2.0', o.queue = [], r = n.createElement(e), r.async = !0, r.src = i, a = n.getElementsByTagName(e)[0], a.parentNode.insertBefore(r, a))
}(window, document, 'script', '../connect.facebook.net/en_US/fbevents.js')
}
function n() {
window.fbq && window.fbq("init", o)
window.fbq && window.fbq('init', o)
}
function e(t) {
window.fbq && t && (window.fbq("track", t), window.siteAnalyticsUtil.debugActive() && console.log("FB track", t))
window.fbq && t && (window.fbq('track', t), window.siteAnalyticsUtil.debugActive() && console.log('FB track', t))
}
function i() {
t(), n(), window.siteAnalytics.trackFacebookEvent = e, e("PageView")
t(), n(), window.siteAnalytics.trackFacebookEvent = e, e('PageView')
}
var o = "742650679237989";
var o = '742650679237989';
i()
}(),
function() {
function t(t) {
return t.matches("form *")
return t.matches('form *')
}
function n(n) {
t(n.target) && window.siteAnalyticsUtil.emitAction(o, {
name: n.target.getAttribute("name"),
name: n.target.getAttribute('name'),
value: n.target.value
})
}
function e(t) {
"FORM" === t.target.tagName && window.siteAnalyticsUtil.emitAction(r)
'FORM' === t.target.tagName && window.siteAnalyticsUtil.emitAction(r)
}
function i() {
document.addEventListener("change", n), document.addEventListener("submit", e)
document.addEventListener('change', n), document.addEventListener('submit', e)
}
var o = "form_input",
r = "form_submit";
var o = 'form_input',
r = 'form_submit';
i()
}(),
function() {
@@ -424,20 +424,20 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
function n() {
window.siteAnalytics.trackGlobalNavDropdownOpen = t
}
var e = "nav_dropdown_open",
var e = 'nav_dropdown_open',
i = {};
n()
}(),
function(t, n, e, i, o) {
t[i] = t[i] || [], t[i].push({
"gtm.start": (new Date).getTime(),
event: "gtm.js"
'gtm.start': (new Date).getTime(),
event: 'gtm.js'
});
var r = n.getElementsByTagName(e)[0],
a = n.createElement(e),
s = "dataLayer" != i ? "&l=" + i : "";
a.async = !0, a.src = "../www.googletagmanager.com/gtm5445.html?id=" + o + s, r.parentNode.insertBefore(a, r)
}(window, document, "script", "dataLayer", "GTM-K8JKCBR"),
s = 'dataLayer' != i ? '&l=' + i : '';
a.async = !0, a.src = '../www.googletagmanager.com/gtm5445.html?id=' + o + s, r.parentNode.insertBefore(a, r)
}(window, document, 'script', 'dataLayer', 'GTM-K8JKCBR'),
function() {
function t() {
window.siteAnalyticsUtil.emitActionOnce(c)
@@ -480,29 +480,29 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
function s() {
window.siteAnalytics.trackConnectRoutingDiagram = i, window.siteAnalytics.trackHomePageNotebook = e, window.siteAnalytics.trackRadarIcosahedron = t, window.siteAnalytics.trackRadarFraudChart = n, window.siteAnalytics.trackSigmaQueryCategory = o, window.siteAnalytics.trackSigmaQueryExample = r, window.siteAnalytics.trackSigmaPricingSlider = a
}
var c = "radar_icosahedron",
d = "radar_fraud_chart",
l = "home_page_notebook",
u = "connect_routing_diagram",
p = "query_category",
w = "pricing_slider",
var c = 'radar_icosahedron',
d = 'radar_fraud_chart',
l = 'home_page_notebook',
u = 'connect_routing_diagram',
p = 'query_category',
w = 'pricing_slider',
f = {},
g = {};
s()
}(),
function() {
function t(t) {
return !!t.getAttribute("href")
return !!t.getAttribute('href')
}
function n(t) {
return t.trim().replace(/\s+/g, " ")
return t.trim().replace(/\s+/g, ' ')
}
function e(t) {
var n = t.className.toLowerCase(),
e = t.getAttribute("href");
return /\.pdf$|\.pdf#|\.pdf\?/i.test(t.href) ? d : -1 !== n.indexOf("button") || "#" === e ? c : s
e = t.getAttribute('href');
return /\.pdf$|\.pdf#|\.pdf\?/i.test(t.href) ? d : -1 !== n.indexOf('button') || '#' === e ? c : s
}
function i(t) {
@@ -514,7 +514,7 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
}
function o(t) {
return "A" === t.tagName ? t : t.parentNode ? o(t.parentNode) : null
return 'A' === t.tagName ? t : t.parentNode ? o(t.parentNode) : null
}
function r(n) {
@@ -524,11 +524,11 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
}
function a() {
document.addEventListener("click", r)
document.addEventListener('click', r)
}
var s = "inline_link",
c = "button",
d = "pdf_link";
var s = 'inline_link',
c = 'button',
d = 'pdf_link';
a()
}(),
function() {
@@ -547,7 +547,7 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
function e() {
window.siteAnalytics.pageLoadTracking || (window.siteAnalytics.pageLoadTracking = {
trackPageView: t
}, window.addEventListener("load", t))
}, window.addEventListener('load', t))
}
e()
}(),
@@ -566,35 +566,35 @@ Strut.isRetina = window.devicePixelRatio > 1.3, Strut.mobileViewportWidth = 670,
function i(t, n) {
var e = n;
"string" != typeof n && (e = r(n)), window.siteAnalyticsUtil.emitAction(t, {
'string' != typeof n && (e = r(n)), window.siteAnalyticsUtil.emitAction(t, {
video: e
})
}
function o(t) {
return t.currentSrc || t.getAttribute("src") || t.querySelector("source").getAttribute("src")
return t.currentSrc || t.getAttribute('src') || t.querySelector('source').getAttribute('src')
}
function r(t) {
var n = o(t),
e = n.slice(n.lastIndexOf("index.html") + 1);
return e.slice(0, e.lastIndexOf("."))
e = n.slice(n.lastIndexOf('index.html') + 1);
return e.slice(0, e.lastIndexOf('.'))
}
function a(t) {
"VIDEO" === t.target.tagName && n(t.target)
'VIDEO' === t.target.tagName && n(t.target)
}
function s(t) {
"VIDEO" === t.target.tagName && e(t.target)
'VIDEO' === t.target.tagName && e(t.target)
}
function c() {
document.addEventListener("play", a, !0), document.addEventListener("ended", s, !0), window.siteAnalytics.trackVideoExpand = t, window.siteAnalytics.trackVideoPlay = n, window.siteAnalytics.trackVideoEnd = e
document.addEventListener('play', a, !0), document.addEventListener('ended', s, !0), window.siteAnalytics.trackVideoExpand = t, window.siteAnalytics.trackVideoPlay = n, window.siteAnalytics.trackVideoEnd = e
}
var d = "video_expand",
l = "video_end",
u = "video_play";
var d = 'video_expand',
l = 'video_end',
u = 'video_play';
c()
}();

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
!function(){function n(n,e){$(".hidden",n).eq(e).css({transitionDelay:Math.random()+Math.random()+"s",transitionDuration:2*Math.random()+.2+"s"}),$(".hidden",n).eq(e).attr("class","shown")}function e(n,e){if(n.hasClass("is-visible")){var a=$(".shown",n).eq(e);a.attr("class","hidden"),setTimeout(function(){a.attr("class","shown")},3e3)}}$(".card").each(function(e,a){if(window.IntersectionObserver)a.observer=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting||e.intersectionRatio>0){$(a).addClass("is-visible");for(var t=$(".hidden",a).length;t>=0;t--)n(a,t)}else $(a).removeClass("is-visible")})}),a.observer.observe(a);else{$(a).addClass("is-visible");for(var t=$(".hidden",a).length;t>=0;t--)n(a,t)}}),setInterval(function(){var n=$(".card").eq(Math.floor(Math.random()*$(".card").length));e(n,Math.floor(Math.random()*$(".shown",n).length));var n=$(".card").eq(Math.floor(Math.random()*$(".card").length));e(n,Math.floor(Math.random()*$(".shown",n).length))},600)}();
!function(){function n(n,e){$('.hidden',n).eq(e).css({transitionDelay:Math.random()+Math.random()+'s',transitionDuration:2*Math.random()+.2+'s'}),$('.hidden',n).eq(e).attr('class','shown')}function e(n,e){if(n.hasClass('is-visible')){var a=$('.shown',n).eq(e);a.attr('class','hidden'),setTimeout(function(){a.attr('class','shown')},3e3)}}$('.card').each(function(e,a){if(window.IntersectionObserver)a.observer=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting||e.intersectionRatio>0){$(a).addClass('is-visible');for(var t=$('.hidden',a).length;t>=0;t--)n(a,t)}else $(a).removeClass('is-visible')})}),a.observer.observe(a);else{$(a).addClass('is-visible');for(var t=$('.hidden',a).length;t>=0;t--)n(a,t)}}),setInterval(function(){var n=$('.card').eq(Math.floor(Math.random()*$('.card').length));e(n,Math.floor(Math.random()*$('.shown',n).length));var n=$('.card').eq(Math.floor(Math.random()*$('.card').length));e(n,Math.floor(Math.random()*$('.shown',n).length))},600)}();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
var apiUrl = "";
var apiUrl = '';
var backendUrl = '';
if (window.location.href.indexOf('localhost') > -1) {
apiUrl = 'http://localhost:3000';
@@ -19,7 +19,7 @@ function loginUrl(extra){
else{
window.location.href = `${apiUrl}/login`;
}
};
}
function registerUrl(params){
if(params){
@@ -28,9 +28,9 @@ function registerUrl(params){
else{
window.location.href = `${apiUrl}/register`;
}
};
}
function formUrl(){
return `${backendUrl}/lead/`;
};
}

View File

@@ -65,19 +65,19 @@ app.get('/enterprise/overview', function(req, res) {
});
app.get('/legal', function(req, res) {
res.render('legal.ejs', {footerCards: true, cta:true, blackLogo:false, blackLogo:false, section: "terms",requestDemoCta:false});
res.render('legal.ejs', {footerCards: true, cta:true, blackLogo:false, blackLogo:false, section: 'terms',requestDemoCta:false});
});
app.get('/legal/terms', function(req, res) {
res.render('legal.ejs', {footerCards: true, cta:true, blackLogo:false, blackLogo:false, section: "terms",requestDemoCta:false});
res.render('legal.ejs', {footerCards: true, cta:true, blackLogo:false, blackLogo:false, section: 'terms',requestDemoCta:false});
});
app.get('/legal/privacy', function(req, res) {
res.render('legal.ejs', {footerCards: true, cta:true, blackLogo:false, blackLogo:false, section: "privacy",requestDemoCta:false});
res.render('legal.ejs', {footerCards: true, cta:true, blackLogo:false, blackLogo:false, section: 'privacy',requestDemoCta:false});
});
app.get('/legal/sla', function(req, res) {
res.render('legal.ejs', {footerCards: true, cta:true, blackLogo:false, section: "sla",requestDemoCta:false});
res.render('legal.ejs', {footerCards: true, cta:true, blackLogo:false, section: 'sla',requestDemoCta:false});
});
app.get('/enterprise/download-resource/:resourceName', function(req, res) {
@@ -87,11 +87,11 @@ app.get('/enterprise/download-resource/:resourceName', function(req, res) {
app.use(express.static(path.join(__dirname, 'public'), { maxAge: 2592000 }));
app.get('/*', function(req, res) {
res.render('notFound.ejs', {footerCards: true, cta:true, blackLogo:false, blackLogo:false, section: "terms",requestDemoCta:false});
res.render('notFound.ejs', {footerCards: true, cta:true, blackLogo:false, blackLogo:false, section: 'terms',requestDemoCta:false});
});
app.set('port', process.env.PORT || 1444);
var server = app.listen(app.get('port'), function() {
console.log("Server running on port : "+app.get('port'));
console.log('Server running on port : '+app.get('port'));
});