PageSourceSearch

https://projects.banquemondiale.org/etc.clientlibs/worldbankgroup/…/projects/projects_home/clientlibs/site.js

js banquemondiale.org collected 2026-09-24 08:48:27 UTC 1,725 bytes, 44 lines download raw bytes

1$( document ).ready(function() {
2function doProjectsDBSearch(strActionURL){        
3        var searchValue = document.getElementById('qterm').value;
4
5        if(searchValue== ''){   
6            searchValue=searchValue.trim();
7            currentURL = strActionURL ;
8
9            var queryParam =  encodeURIComponent(searchValue);
10
11            if($(".lp__primary_checkbox").is(":checked")){
12                currentURL = $(".lp__primary_checkbox").attr("data-url");
13                queryParam = "qterm=" + encodeURIComponent(searchValue) + "&srce=both";
14            }           
15            window.location.href = currentURL ;
16            // return false;
17        }else{
18            searchValue=searchValue.trim();
19            currentURL = strActionURL ;
20
21            var queryParam = "searchTerm=" + encodeURIComponent(searchValue);
22
23            if($(".lp__primary_checkbox").is(":checked")){
24                currentURL = $(".lp__primary_checkbox").attr("data-url");
25                queryParam = "qterm=" + encodeURIComponent(searchValue) + "&srce=both";
26            }           
27            window.location.href = currentURL + '?' + queryParam;
28        } 
29
30    }
31
32    $('#search-type').change(function() {   
33        if($(this).is(":checked")) {                  
34            $('.project-advancesearch a').attr('href', $(this).attr("procurement-url"));
35            $('#procurements-browse-data').removeClass('hide');
36            $('#projects-browse-data').addClass('hide');
37        } else {
38      $('.project-advancesearch a').attr('href', $(this).attr("project-url"));
39            $('#procurements-browse-data').addClass('hide');
40            $('#projects-browse-data').removeClass('hide');
41        }          
42
43    });
44});

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.