PageSourceSearch

https://www12.senado.leg.br/ecidadania/++plone++static/++unique++2…/construct-senado-config-compiled.js

js senado.leg.br collected 2026-09-24 08:25:38 UTC 2,426 bytes, 20 lines download raw bytes

1
2/* reset requirejs definitions so that people who
3   put requirejs in legacy compilation do not get errors */
4var _old_define = define;
5var _old_require = require;
6define = undefined;
7require = undefined;
8try{
9
10/* resource: ++resource++config/js/basic.js */
11function getRequest(name){if(name=new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)').exec(location.search))return decodeURIComponent(name[1]);}function defaultParam(arg,defaultValue){return typeof arg!=='undefined'?arg:defaultValue;}function replaceAll(string,searchvalue,newvalue){return string.split(searchvalue).join(newvalue);}function endsWith(str,suffix){return str.indexOf(suffix,str.length-suffix.length)!==-1;}function formatNumber(number){try{var formated=number.toLocaleString();if(endsWith(formated,',00')&&isInt(number))formated=formated.replace(',00','');return formated;}catch(e){return number;}}function isInt(n){return Number(n)===n&&n%1===0;}function readCookie(k,r){return(r=RegExp('(^|; )'+encodeURIComponent(k)+'=([^;]*)').exec(document.cookie))?r[2]:null;}function getLocalStorage(key){try{return localStorage.getItem(key);}catch(e){console.log(e);}}function setLocalStorage(key,value){try{localStorage.setItem(key,value);}catch(e){console.log(e);}}function removeLocalStorage(key){try{return localStorage.removeItem(key);}catch(e){console.log(e);}}function getSessionStorage(key){try{return sessionStorage.getItem(key);}catch(e){console.log(e);}}function setSessionStorage(key,value){try{sessionStorage.setItem(key,value);}catch(e){console.log(e);}}function removeSessionStorage(key){try{return sessionStorage.removeItem(key);}catch(e){console.log(e);}}function scriptDynamicLoad(src,callbackFunction){var script=document.createElement('script');script.setAttribute('src',src);if(callbackFunction)script.onload=function(){callbackFunction();};document.getElementsByTagName('head')[0].appendChild(script);}function serviceTimer(serviceFunction,timerDelay){continueService=serviceFunction();if(continueService)setTimeout(function(){serviceTimer(serviceFunction,timerDelay);},timerDelay);}function realizarPesquisa(inputPesquisa){var texto=$(inputPesquisa).val();$("#portal-searchbox #searchGadget").val(texto);$("#portal-searchbox form").submit();}
12}catch(e){
13    // log it
14    if (typeof console !== "undefined"){
15        console.log('Error loading javascripts!' + e);
16    }
17}finally{
18    define = _old_define;
19    require = _old_require;
20}

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.