PageSourceSearch

https://assets06.foap.com/build/78.bundle.d535df3a70d9f39015ff.js

js foap.com collected 2026-09-24 08:44:13 UTC 6,903 bytes, 2 lines download raw bytes

1webpackJsonp([78],{1204:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,l,d=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(2743);var c=n(1),f=o(c),u=n(2),g=o(u);t.default=(l=a=function(e){function t(){var e,o,s,a;r(this,t);for(var l=arguments.length,d=Array(l),c=0;l>c;c++)d[c]=arguments[c];return o=s=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(d))),s.state={},s.componentDidMount=function(){var e=s.props,t=e.boardHash,o=e.ssoToken;n(2497).default.init("render",{boardHash:t,ssoToken:o,baseUrl:"foap.upvoty.com"})},a=o,i(s,a)}return s(t,e),d(t,[{key:"render",value:function(){return f.default.createElement("div",{className:"page-upvoty"},f.default.createElement("div",{"data-upvoty":!0}))}}]),t}
1(c.Component),a.propTypes={boardHash:g.default.string,ssoToken:g.default.string},a.defaultProps={ssoToken:null,boardHash:null},l)},2497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=t.upvoty={debug:!1,error:!1,preventScrollEvent:!1,boardHash:null,postHash:null,userHash:null,settings:{},iframe:null,counters:{send:1,receive:1},init:function(e,t){if("identify"==e)try{o.settings=this.setSettings(t);var n=new XMLHttpRequest;n.open("POST","https://"+o.settings.baseUrl+"/front/handleExternalLogin/",!0),n.withCredentials=!0;var r=new FormData;r.append("userData",JSON.stringify(t)),n.send(r),n.onload=function(){200!=n.status&&console.log("Response-Error ("+n.status+") Upvoty identify: "+n.responseText)},n.onerror=function(e){e.preventDefault()}}catch(e){console.log("Error Upvoty identify: "+e.message)}else if("render"==e){if(o.settings=this.setSettings(t),o.error)return console.log("Error initializing widget"),!1;var i=navigator.userAgent.indexOf("Safari")>-1,s=navigator.userAgent.indexOf("Chrome")>-1;s&&i&&(i=!1),i&&(document.cookie.match(/^(.*;)?\s*fixed\s*=\s*[^;]+(.*)?$/)||(document.cookie="fixed=fixed; expires=Tue, 19 Jan 2038 03:14:07 UTC; path=/",window.location.replace("https://"+o.settings.baseUrl+"/widget-fix-iframe-3rd.html")),window.addEventListener("touchstart",{}),window.addEventListener("touchend",{}));var a=document.querySelectorAll("div[data-upvoty]")[0];o.iframe=document.createElement("iframe"),o.iframe.name="ifr_upvoty",o.iframe.width="100%",o.iframe.height="800px",o.iframe.id="upvoty-iframe",o.iframe.allowtransparency=!0,o.iframe.style.border="0",o.settings.originHref=window.location.href;var l="roadmap";o.listeners()&&(o.iframe.referrerPolicy="origin",o.iframe.src="https://"+o.settings.baseUrl+"/front/iframe/","roadmap"==o.settings.startPage&&(o.iframe.src+="roadmap/"),void 0!==o.settings.boardHash&&(o.iframe.src+=o.settings.boardHash+"/",l="board"),o.iframe.src+="?fixedLayout="+l,void 0!=o.settings.ssoToken&&null!=o.settings.ssoToken&&(o.iframe.src+="&loginMethod=sso"),o.bindEvent(o.iframe,"beforeunload",o.destroy),o.bindEvent(o.iframe,"unload",o.destroy),a.appendChild(o.iframe))}},destroy:function(){try{o.unbindEvent(window,"message",o.func_trigger_message),o.unbindEvent(o.iframe,"load",o.func_trigger_load),o.unbindEvent(window,"resize",o.func_trigger_resize),o.unbindEvent(o.elmScrollTrigger,"scroll",o.func_trigger_scroll),o.iframe.remove()}catch(e){}},setSettings:function(e){return void 0==e.baseUrl&&(o.error=!0,console.log("Error: baseUrl not set")),void 0==e.offsetTop&&(e.offsetTop=100),void 0==e.offsetBottom&&(e.offsetBottom=40),void 0==e.startPage&&(e.startPage="board"),void 0==e.id&&(e.id="1"),e},sendMessage:function(e){o.debug&&console.log(["PARENT-SEND:"+o.counters.send++,e]),o.iframe.contentWindow.postMessage(JSON.stringify(e),"*")},bindEvent:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},unbindEvent:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)},elmScrollTrigger:window,listeners:function(){try{o.bindEvent(window,"message",o.func_trigger_message);var e=null;if(e=document.getElementById("feedback"))for(var t=e.childNodes,n=0;t.length>n;n++)if(t[n].className&&t[n].className.split(" ").indexOf("section-body")>=0){o.elmScrollTrigger=t[n];break}return o.bindEvent(o.elmScrollTrigger,"scroll",o.func_trigger_scroll),o.bindEvent(window,"resize",o.func_trigger_resize),o.bindEvent(o.iframe,"load",o.func_trigger_load),!0}catch(e){console.log("Error Upvoty listeners: "+e.message)}return!1},func_trigger_message:function(e){if(void 0!==e.data){var t={};try{if(t=JSON.parse(e.data),o.debug&&console.log(["PARENT-RECIEVE:"+o.counters.receive++,[t.method,t]]),"init"==t.method){o.sendMessage({method:"settings",data:o.settings})}else if("dimensions"==t.action)o.iframe.height=t.document.height+4;else if("resetScroll"==t.action){if(!o.preventScrollEvent){if(o.preventScrollEvent=!0,window.scrollY>0&&0>o.iframe.getBoundingClientRect().top){var n=window.scrollY>0&&0>o.iframe.getBoundingClientRect().top?o.iframe.getBoundingClientRect().top+window.scrollY-o.settings.offsetTop:0;n>0&&window.scrollTo(0,n)}setTimeout(function(){o.preventScrollEvent=!1},250)}}else if("doScroll"==t.action&&!o.preventScrollEvent){o.preventScrollEvent=!0;var r=t.top;if(window.scrollY>0&&r+o.iframe.getBoundingClientRect().top!=window.scrollY){var i=r+(window.scrollY>0&&0>o.iframe.getBoundingClientRect().top?o.iframe.getBoundingClientRect().top+window.scrollY-o.settings.offsetTop:0);i>0&&window.scrollTo(0,i)}setTimeout(function(){o.preventScrollEvent=!1},250)}}catch(e){}}},func_trigger_scroll:function(e){o.preventScrollEvent||o.sendMessage({event:"scrolled",offsetWindow:window.scrollY,offsetElement:o.iframe.getBoundingClientRect().top+window.pageYOffset,endOfPage:o.elmScrollTrigger==window&&document.body.scrollHeight-window.scrollY-o.settings.offsetBottom<=window.innerHeight||o.iframe.getBoundingClientRect().bottom-o.settings.offsetBottom<=window.innerHeight})},func_trigger_resize:function(){o.sendMessage({event:"resized"})},func_trigger_load:function(){o.sendMessage({event:"loaded"})}};t.default=o},2743:function(e,t){}});
2//# sourceMappingURL=78.bundle.d535df3a70d9f39015ff.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.