PageSourceSearch

https://projects.banquemondiale.org/etc/designs/wbg/clientlib/js/WebStatsUtil.js?q=nocache

js banquemondiale.org collected 2026-09-24 08:48:37 UTC 1,435 bytes, 57 lines download raw bytes

1//Created for WBS_51 Process omniture cookie information webStatsUtil.js
2//newFunction
3function getCookieValueByName(name){
4    var cookieContent='';
5    var allCookies = document.cookie;
6    if(allCookies!=null){
7        var cPos = allCookies.indexOf(name+'=');
8        if(cPos != -1){
9            var cdstart = cPos + name.length+1;
10            var cdend = allCookies.indexOf(";", cdstart);
11            if(cdend == -1) cdend = allCookies.length; 
12            cookieContent = allCookies.substring(cdstart,cdend);  
13        }
14    }
15    return cookieContent ;
16}
17
18function getVPU(cookieContent,my_Stats_type){
19    var vpu='Not Available';
20    if(cookieContent!=null && cookieContent!=''){ 
21        var array = cookieContent.split(':');  
22        try{vpu=array[0];
23        }catch(e){}
24    }
25    else
26    {
27        if(my_Stats_type == "H")
28            vpu='-';
29    }
30    return vpu;
31}
32
33
34
35function getDutyStation(cookieContent,my_Stats_type){
36    var dutystation='Not Available';
37    if(cookieContent!=null &&  cookieContent!=''){ 
38        var array = cookieContent.split(':');  
39        try{
40            dutystation=array[array.length-1];
41        }catch(e){}
42    }
43    else
44    {
45        if(my_Stats_type == "H")
46            dutystation='-';
47    }
48    return dutystation;
49} 
50
51function getUserType(cookieContent){
52    var userType='U';
53    if(cookieContent!=null &&  cookieContent!=''){ 
54        userType='I';
55    }
56    return userType;
57} 

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.