PageSourceSearch

https://www.bancomundial.org/etc.clientlibs/worldbankgroup/compone…/service/footerservice/clientlibs/site.js

js bancomundial.org collected 2026-10-01 08:36:34 UTC 1,223 bytes, 34 lines download raw bytes

1function populateFooter(options) {
2const langcode = (options && options.languagecode) ? (options.languagecode) : 'en';
3const selector = (options && options.selector) ? (options.selector) : 'footer';
4const serviceEndpoint = (options && options.serviceEndpoint) ? (options.serviceEndpoint) : getFooterServiceHost(options);
5fetch(serviceEndpoint)
6              .then(resp => {
7                    if (!resp.ok) {
8              throw new Error(`HTTP error! Status: ${resp.status}`);
9        }
10        return resp.text();
11        })
12        .then(html => {
13            const template = document.querySelector(selector);
14            template.innerHTML = html;
15        })
16        .catch(error => {
17               console.error("Error setting up the footer :", error);
18        });
19}
20
21
22function getFooterServiceHost(options) {
23	const environment = (options) ? options.environment: "prod"
24    if(environment == 'dev') {
25		//return 'extdataportaldev.worldbank.org';
26        return 'extdataportalqa.worldbank.org/qa';
27	} else if (environment == 'qa') {
28		return 'extdataportalqa.worldbank.org/qa';
29	} else if (environment == 'stage') {
30		return 'extdataportalqa.worldbank.org/qa';
31	} else {
32		return 'extdataportal.worldbank.org';
33	}
34}

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.