modify landing page
This commit is contained in:
commit
dd232b1c02
2599 files changed
+226992
No files matched your search
@@ -0,0 +1,2 @@
|
||||
!function(){"use strict";
|
||||
var n=function(){return(n=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function t(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function e(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,a=e.call(n),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(n){i={error:n}}finally{try{r&&!r.done&&(e=a.return)&&e.call(a)}finally{if(i)throw i.error}}return o}function r(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(e(arguments[t]));return n}var i=window,a=i.document,o=i.navigator,u=i.screen;function l(){return{u:function(){var n=i.location.href,t=n.split("#");t.length>=2&&0==t[1].indexOf("lead:")&&history.pushState("",a.title,i.location.pathname+i.location.search);return n}(),r:a.referrer||void 0,l:o.language,t:-(new Date).getTimezoneOffset(),w:u.width,h:u.height,c:u.colorDepth,p:i.devicePixelRatio}}function c(n,t,e,r,i){void 0===r&&(r=void 0),void 0===i&&(i="/");var o=n+"="+encodeURIComponent(t)+";max-age="+60*e+";path="+i;r&&(o=o+";domain="+r),a.cookie=o}function f(n){var t;return decodeURIComponent((null===(t=a.cookie.match("(^|;)\\s*"+n+"\\s*=\\s*([^;]+)"))||void 0===t?void 0:t.pop())||"")}function d(){return i.location.href}function v(n){console.error(n)}function s(n,t,e){i.addEventListener(n,t,e)}function p(n,t){a.addEventListener(n,t)}function h(){return"IntersectionObserver"in i&&"IntersectionObserverEntry"in i&&"isIntersecting"in i.IntersectionObserverEntry.prototype}var y=i.IntersectionObserver;function m(n){return new y((function(e,r){var i,a;try{for(var o=t(e),u=o.next();!u.done;u=o.next()){var l=u.value;n(l,r)}}catch(n){i={error:n}}finally{try{u&&!u.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}}))}function g(n,t,e,r){var i=a.head.querySelector(n+"["+t+'="'+e+'"]');return null==i?null:i.getAttribute(r)}function w(n,t){return n.getAttribute("data-"+t)}var b,x="https://connect.thelead.tech",k="",I=x;function O(){return k}function E(){return b}function S(n){return I+n}var z,C,N,q=JSON.stringify,T=JSON.parse,j="ka_seg";function _(){if(!C){var n=f(j);if(n)try{C=T(n)}catch(n){}}}var H=((N={}).s=function(n){n[1]&&(t=n[1],t.c&&(z=t.c),t.s&&(C=t.s,c(j,q(C),60,E())));var t},N);var L="POST";function R(n,t,e,r,i){void 0===r&&(r="GET"),void 0===i&&(i=void 0);try{var a=new XMLHttpRequest;a.onreadystatechange=function(){try{if(4!=this.readyState)return;if(200!=this.status)return void n({status:this.status});n({status:this.status,data:T(this.responseText)})}catch(n){t(n)}},a.open(r,e,!0),r==L?a.send(q(null!=i?i:{})):a.send()}catch(n){t(n)}}var D=function(){};function U(n){var t,e=null!==(t=w(n,"type"))&&void 0!==t?t:"related";switch(e){case"related":!function(n){var t,e,r,i=O(),a=Y(),o=null!==(t=w(n,A))&&void 0!==t?t:F,u=null!==(e=w(n,B))&&void 0!==e?e:"",l=parseInt(null!==(r=w(n,J))&&void 0!==r?r:K),c=w(n,M);Q(n,"/personalize/related-query",{project_id:i,url:a,ingredient:u,size:l},o,c,(function(n,t){return"#lead:related:"+n+":"+t+":"+a}))}(n);break;case"popular":!function(n){var t,e,r,i,a=O(),o=Y(),u=null!==(t=w(n,A))&&void 0!==t?t:F,l=null!==(e=w(n,B))&&void 0!==e?e:"",c=parseInt(null!==(r=w(n,P))&&void 0!==r?r:X),f=parseInt(null!==(i=w(n,J))&&void 0!==i?i:K),d=w(n,M);Q(n,"/personalize/popular-query",{project_id:a,url:o,ingredient:l,duration:c,size:f},u,d,(function(n,t){return"#lead:popular:"+n+":"+t+":"+o}))}(n);break;case"newpages":!function(n){var t,e,r,i,a=O(),o=Y(),u=null!==(t=w(n,A))&&void 0!==t?t:F,l=null!==(e=w(n,B))&&void 0!==e?e:G,c=parseInt(null!==(r=w(n,P))&&void 0!==r?r:X),f=parseInt(null!==(i=w(n,J))&&void 0!==i?i:K),d=w(n,M);Q(n,"/personalize/newpages-query",{project_id:a,url:o,ingredient:l,duration:c,size:f},u,d,(function(n,t){return"#lead:newpages:"+n+":"+t+":"+o}))}(n);break;default:v("unknown widget type '"+e+"'")}}var A="css-prefix",B="ingredient",P="duration",J="size",M="target",F="lead-widget-",G="",X="60",K="10";function Q(n,t,e,r,i,o){R((function(t){if(200==t.status){var e=t.data;if("ok"==e.status){var u=e.data;if(null!=u){var l=u.query_id,c=u.items;if(null!=l&&null!=c){var f=a.createElement("div");for(var d in f.className=r+"container",c){var v=c[d],s=a.createElement("div");s.className=r+"item-container";var p=a.createElement("a");null!=i&&(p.target=i),p.className=r+"link",p.href=v.url+o(l,d);var h=a.createElement("img");h.className=r+"item-image",h.src=v.image_url;var y=a.createElement("div");y.className=r+"item-title",y.innerText=v.title,p.appendChild(h),p.appendChild(y),s.appendChild(p),f.appendChild(s)}n.appendChild(f)}}}}}),v,S(t),L,e)}var V,W=[["meta","name","lead:url","content"],["meta","property","lead:url","content"],["meta","name","oLine truncated
|
||||
Reference in new issue
Block a user