PageSourceSearch

https://www.livehindustan.com/lh-img/smart/bpsdk/prod/dist/sdk.js

js livehindustan.com collected 2026-09-24 09:13:32 UTC 3,516 bytes, 1 lines download raw bytes

1import{getCookieForBP,loadScript,setCookieForBP}from"./common/util.js";import{showContestInListing,showContest}from"./common/template.js";import{loadContest_1716783422576}from"./common/contestPredictor_id.js";var isResourceLoaded=!(window.propertiesMap={}),resourceLoadCallbacks=[],fileUrl=new URL("domains/env/resource.properties",import.meta.url).href;function loadPropertiesFile(o,n,t){fetch(o).then(o=>{if(o.ok)return o.text();throw new Error("Network response was not ok "+o.statusText)}).then(o=>{window.propertiesMap=parseProperties(o),console.log("Properties Map:",window.propertiesMap.loginsdkurl),isResourceLoaded=!0,null!=n&&n(t)}).catch(o=>{console.error("There has been a problem with your fetch operation:",o)})}function parseProperties(o){o=o.split("\n");const t={};return o.forEach(o=>{var n,o=o.trim();o&&!o.startsWith("#")&&o.includes("=")&&([o,n]=o.split(/=(.+)/),t[o.trim()]=n.trim())}),t}function checkResourceLoaded(o,n){isResourceLoaded?(console.log("Resource is loaded"),o(n)):(console.log("Resource is not loaded. Waiting for resource to load..."),loadPropertiesFile(fileUrl,o,n))}function loadContestInCarausel(o){console.log("testAmethod called with param:",o.poll,o.quiz,o.predictor,o.contestId,o.version,o.listing);var n=getCookieForBP("_ht_clientid");""==n||-1<n.indexOf("amp")?showContest(o.contestId,o.predictor,o.poll,o.quiz,o.version,o.template):loadContest_1716783422576(o.poll,o.quiz,o.predictor,o.contestId,o.template)}function initAndLoadContestInCarausel(o){checkResourceLoaded(loadContestInCarausel,o),console.log("initAndLoadContestInCarausel called with param:")}function loadContestInListingLoginNonLogin(o){var n=getCookieForBP("_ht_clientid");(""==n||-1<n.indexOf("amp")?loadContestInListing:loadContestInListingForLoggedInUser)(o)}function initAndLoadContestInListingLoginNonLogin(o){checkResourceLoaded(loadContestInListingLoginNonLogin,o)}function loadContestInListing(o){showContestInListing(o.contestId,o.version,o.template)}function initAndLoadContestInListing(o){checkResourceLoaded(loadContestInListing,o)}function inintAndLoadContestListingScriptForLoggedInUser(o){checkResourceLoaded(loadContestInListingForLoggedInUser,o)}async function loadContestInListingForLoggedInUser(o){await loadScript(window.propertiesMap.resourceUrl+o.template+"/ui.js"),await loadScript(window.propertiesMap.baseUrl+"common/contestPredictorListing_id.js"),console.log("loadContestInListingForLoggedInUser called with param:"),window.loadPredictorJsAndCss_1716543777871(async function(){window.renderPredictorElements_1716543777871(o.elements,o.contestId,o.scroll,o.tab,o.template)},o.template)}loadPropertiesFile(fileUrl),window.initAndLoadContestInCarausel=initAndLoadContestInCarausel,window.loadContestInCarausel=loadContestInCarausel,window.initAndLoadContestInListing=initAndLoadContestInListing,window.loadContestInListing=loadContestInListing,window.inintAndLoadContestListingScriptForLoggedInUser=inintAndLoadContestListingScriptForLoggedInUser,window.loadContestInListingForLoggedInUser=loadContestInListingForLoggedInUser,window.initAndLoadContestInListingLoginNonLogin=initAndLoadContestInListingLoginNonLogin,window.loadContestInListingLoginNonLogin=loadContestInListingLoginNonLogin;export{checkResourceLoaded,loadContestInCarausel,initAndLoadContestInCarausel,loadContestInListingLoginNonLogin,initAndLoadContestInListingLoginNonLogin,loadContestInListing,initAndLoadContestInListing,inintAndLoadContestListingScriptForLoggedInUser,loadContestInListingForLoggedInUser};

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.