PageSourceSearch

https://prepara.rs.gov.br/matriz_common/js/barraGoverno.js?2.1.5.161.7+3

js prepara.rs.gov.br collected 2026-10-08 05:20:28 UTC 17,059 bytes, 208 lines download raw bytes

1
2/*
3function ModalAvisoGlobal(element) {
4
5    var container;
6
7    return {
8        mostrar: inicializaModal
9    }
10
11    function inicializaModal() {
12        if (deveExibirModal()) {
13            criaDocumento();
14            inicializaAcoes();
15        }
16    }
17
18    function deveExibirModal() {
19        return !avisoLido() && !ignorarDomino();
20    }
21
22
23    function avisoLido() {
24        return document.cookie.indexOf("consulta-popular") > -1;
25    }
26
27    function ignorarDomino() {
28        var dominiosIgnorados = [
29            "sitedpers.des.intra.rs.gov.br",
30            "sitedpers.hml.rs.gov.br",
31            "www.defensoria.rs.def.br",
32            "www.defensoria.rs.gov.br",
33            "www.dpe.rs.gov.br",
34            "matriz2-hotsite.des.procergs.localhost",
35            "servicos.detran.rs.gov.br",
36            "siteexp.des.procergs.localhost",
37            "siteexp.des.intra.rs.gov.br",
38            "siteexp.hml.rs.gov.br",
39            "expointer.rs.gov.br",
40            "www.expointer.rs.gov.br",
41            "sitedigx.des.intra.rs.gov.br",
42            "sitedigx01.hml.rs.gov.br",
43            "sitedigx03.rs.gov.br",
44            "conversasdigitais.rs.gov.br",
45            "www.conversasdigitais.rs.gov.br"
46        ];
47        var dominioAtual = window.location.hostname;
48        var dominiosFiltrados = dominiosIgnorados.filter(function(dominio) {
49            return dominioAtual.toLowerCase() === dominio.toLowerCase();
50        });
51        return dominiosFiltrados.length > 0;
52    }
53
54    function criaDocumento() {
55        var modalBuffer = [];
56        appendStyles(modalBuffer);
57        appendHtml(modalBuffer);
58        var modalHtml = modalBuffer.join("");
59        element.insertAdjacentHTML('afterbegin', modalHtml);
60        container = element.children.item(1);
61    }
62
63
64    function appendStyles(modalBuffer) {
65        modalBuffer.push("<style>");
66
67        modalBuffer.push(".aviso-global-backdrop {");
68            modalBuffer.push("position: fixed;");
69            modalBuffer.push("z-index: 9999999;");
70            modalBuffer.push("background-color: rgba(0, 0, 0, 0.4);");// background: rgba(0, 0, 0, 0.4);
71            modalBuffer.push("width: 100%;");
72            modalBuffer.push("height: 100%;");
73        modalBuffer.push("}");
74
75
76        modalBuffer.push(".aviso-global-popup {");
77            modalBuffer.push("max-width: 483px;");
78            modalBuffer.push("position: relative;");
79            modalBuffer.push("top: 25%;");
80            modalBuffer.push("margin: auto;");
81            modalBuffer.push("z-index: 9999999;");
82            modalBuffer.push("background-color: #eee;");
83            modalBuffer.push("padding: 1px 15px 20px 27px;");
84            modalBuffer.push("border-radius: 2%;");
85        modalBuffer.push("}");
86
87        modalBuffer.push(".aviso-global-popup h2 {");
88        modalBuffer.push("border-bottom: #ccc inset 1px;");
89        modalBuffer.push("}");
90
91        modalBuffer.push(".aviso-global-popup .btn-fechar {");
92            modalBuffer.push("background-color: white;");
93            modalBuffer.push("border: solid 1px #ccc;");
94            modalBuffer.push("padding: 6px 12px 6px 12px;");
95            modalBuffer.push("text-decoration: none;");
96        modalBuffer.push("}");
97
98        modalBuffer.push(".aviso-global-popup .btn-fechar:active {");
99            modalBuffer.push("background-color: #eee;");
100        modalBuffer.push("}");
101
102        modalBuffer.push("</style>");
103    }
104
105    function appendHtml(modalBuffer) {
106        var mensagem = '<p>O prazo para a votação de propostas na Consulta Popular está aberto até o próximo dia 15 de dezembro. O voto pode ser feito de forma 100% digital.</p><p>Entre no site <a href="http://consultapopular.rs.gov.br">consultapopular.rs.gov.br</a> e participe!</p>';
107        modalBuffer.push("<div class='aviso-global-backdrop'>");
108            modalBuffer.push("<div class='aviso-global-popup'>");
109                modalBuffer.push("<h2>");
110                    modalBuffer.push("Consulta Popular");
111                modalBuffer.push("</h2>");
112                modalBuffer.push("<p>");
113                   modalBuffer.push(mensagem);
114                modalBuffer.push("</p>");
115                modalBuffer.push("<a class='btn-fechar' href='#'>");
116                    modalBuffer.push("Fechar");
117                modalBuffer.push("</a>");
118            modalBuffer.push("</div>");
119        modalBuffer.push("</div>");
120    }
121
122    function inicializaAcoes() {
123        var fechar = container.querySelector(".btn-fechar");
124        fechar.addEventListener("click", fecharModal)
125    }
126
127    function fecharModal(event) {
128        document.cookie = "consulta-popular=1; expires=Mon, 31 Dec 2029 23:59:59 UTC;";
129        container.remove();
130        event.preventDefault();
131        return false;
132    }
133
134}
135
136
137document.addEventListener("DOMContentLoaded", function(event) {
138    ModalAvisoGlobal(document.body).mostrar();
139});
140*/
141
142
143
144jQuery(function () {
145    jQuery(".barra-estado").remove();
146    
147    if (!window.location.origin) {
148        window.location.origin = window.location.protocol + "//" + window.location.host;
149    }
150    
151    //var urlCss = window.location.origin + "/matriz_common/css/barra-estado.min.css";
152
153    //jQuery("<link/>").attr("rel", "stylesheet").attr("type", "text/css").attr("href", urlCss).appendTo(jQuery("head"));
154    
155    var a;
156    a = '@import url(//fonts.googleapis.com/css?family=Roboto);body{-webkit-animation:bugfix infinite 1s}@-webkit-keyframes bugfix{from,to{padding:0}}#barra-estado__toggle,.barra-estado__toggle{display:none}.barra-estado__menu>li{list-style:none;float:left}@media only screen and (max-width:991px){.barra-estado__menu{display:none;opacity:0;width:280px;position:absolute;right:0;top:32px;z-index:999}.barra-estado__menu>li{display:block;width:100%;margin:0}.barra-estado__menu>li>a{display:block;width:100%;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.barra-estado__toggle{display:block;position:relative;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}#barra-estado__toggle:checked~.barra-estado__menu{display:block;opacity:1}}.barra-estado{height:32px;background-color:#4f4f4f}.barra-estado__container{position:relative;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto;height:100%;}.barra-estado__container a{text-decoration:none}@media (min-width:768px){.barra-estado__container{width:750px}}@media (min-width:992px){.barra-estado__container{width:970px}}@media (min-width:1200px){.barra-estado__container{width:1170px}}.barra-estado__logo{position:absolute;width:77px;height:16px;margin-top:6px;left:15px;}
156.barra-estado__logo svg path{fill:#f4f4f1}.barra-estado__menu{font-family:Roboto,Arial,sans-serif;text-transform:uppercase;background:#737474;border-top:1px solid #fff;margin-top:0;padding:14px 0 20px}.barra-estado__nav{display:block;float:right}.barra-estado__menu,.barra-estado__menu>li,.barra-estado__menu>li>a,.barra-estado__nav{height:100%}.barra-estado__nav__form{margin:0;padding:0;display:inline-block;}.barra-estado__menu>li>a{display:block;font-weight:400;padding:13px 40px;font-size:14px;line-height:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:box-shadow .25s linear;-moz-transition:box-shadow .25s linear;-o-transition:box-shadow .25s linear;transition:box-shadow .25s linear;color:#e4e4e4}.barra-estado__menu>li>a:visited{color:#e4e4e4!important}.barra-estado__menu>li>a:focus,.barra-estado__menu>li>a:hover{box-shadow:inset 5px 0 #fff;color:#fff}.barra-estado__menu>li>a:active{color:#e4e4e4!important}.barra-estado__menu,.barra-estado__menu>li,.barra-estado__menu>li>a{height:auto}.barra-estado__toggle{z-index:2}.barra-estado__toggle:after{content:attr(data-open);display:block;position:absolute;right:0;width:45px;height:32px;text-align:right;font-size:18px;line-height:13px;color:#bcbcbb;-webkit-transition:all .5s linear;-moz-transition:all .5s linear;-o-transition:all .5s linear;transition:all .5s linear;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.barra-estado__toggle:hover:after{color:#fff}#barra-estado__toggle:checked+.barra-estado__toggle:after{content:attr(data-close)}@media only screen and (min-width:992px){.barra-estado__menu{background:0 0;border-top:none;padding:0;margin-top:0}.barra-estado__menu>li>a{padding:9px 13px;font-size:11px}.barra-estado__menu>li:last-child>a{padding:7px 13px;}.barra-estado__menu>li>a:focus,.barra-estado__menu>li>a:hover{box-shadow:inset 0 2px #fff;color:#fff}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}';
157    
158    jQuery("<style/>").html(a).appendTo(jQuery("head"));
159    
160    var e;
161    e = '<div class="barra-estado">';
162    e += '    <div class="barra-estado__container">';
163    e += '        <a class="barra-estado__logo" title="rs.gov" href="https://www.rs.gov.br/">';
164    e += '            <svg version="1.1" id="rs-gov-br" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="77px" height="16px"';
165    e += '                 viewBox="0 0 77 16" enable-background="new 0 0 77 16" xml:space="preserve">';
166    e += '                <title>RS.GOV.BR</title>';
167    e += '                <desc>Governo do Estado do Rio Grande do Sul</desc>';
168    e += '                <path d="M5.64,6.15c-1.8,0-2.92,1.09-2.92,3.4v3.55H0V3.48H2.73v1.94c.56-1.32,1.45-2.19,3.07-2.12v2.85h-.15Z" fill="#fff"/>';
169    e += '                <path d="M10.78,13.28c-1.34,0-2.85-.44-4.12-1.45l1.17-1.8c1.04,.76,2.13,1.15,3.03,1.15,.79,0,1.15-.29,1.15-.71v-.04c0-.59-.93-.79-1.99-1.11-1.34-.4-2.87-1.02-2.87-2.89v-.04c0-1.96,1.57-3.05,3.52-3.05,1.22,0,2.54,.42,3.58,1.11l-1.04,1.88c-.95-.56-1.9-.9-2.6-.9s-1,.29-1,.67v.04c0,.54,.92,.79,1.96,1.15,1.34,.44,2.91,1.09,2.91,2.85v.04c0,2.13-1.6,3.1-3.67,3.1h0Z" fill="#fff"/>';
170    e += '                <path d="M16.21,13.09v-2.87h2.91v2.87h-2.91Z" fill="#fff"/>';
171    e += '                <path d="M25.48,16c-1.56,0-3.03-.36-4.25-1l.93-2.04c.99,.56,1.97,.88,3.24,.88,1.87,0,2.75-.9,2.75-2.62v-.46c-.81,.97-1.68,1.56-3.14,1.56-2.24,0-4.28-1.64-4.28-4.49v-.04c0-2.87,2.06-4.49,4.28-4.49,1.48,0,2.36,.63,3.1,1.43v-1.24h2.73v7.45c0,3.63-1.8,5.08-5.37,5.08Zm2.67-8.21c0-1.31-1.02-2.22-2.35-2.22s-2.33,.92-2.33,2.22v.04c0,1.32,1,2.22,2.33,2.22s2.35-.92,2.35-2.22v-.04Z" fill="#fff"/>';
172    e += '                <path d="M37.91,13.32c-2.98,0-5.18-2.2-5.18-4.97v-.04c0-2.76,2.22-5,5.22-5s5.18,2.2,5.18,4.97v.04c0,2.76-2.22,5-5.22,5Zm2.53-5c0-1.42-1.02-2.66-2.53-2.66s-2.5,1.2-2.5,2.62v.04c0,1.42,1.02,2.66,2.53,2.66s2.5-1.2,2.5-2.62v-.04Z" fill="#fff"/>';
173    e += '                <path d="M49.88,13.17h-2.47l-3.79-9.69h2.89l2.15,6.44,2.17-6.44h2.84l-3.79,9.69Z" fill="#fff"/>';
174    e += '                <path d="M53.52,13.09v-2.87h2.91v2.87h-2.91Z" fill="#fff"/>';
175    e += '                <path d="M64.39,13.28c-1.45,0-2.35-.67-3-1.43v1.25h-2.73V0h2.73V4.86c.67-.9,1.57-1.56,3-1.56,2.24,0,4.38,1.76,4.38,4.97v.04c0,3.22-2.11,4.98-4.38,4.98h0Zm1.65-5.02c0-1.59-1.08-2.66-2.35-2.66s-2.33,1.06-2.33,2.66v.04c0,1.59,1.06,2.66,2.33,2.66s2.35-1.04,2.35-2.66v-.04Z" fill="#fff"/>';
176    e += '                <path d="M76.34,6.15c-1.8,0-2.92,1.09-2.92,3.4v3.55h-2.73V3.48h2.73v1.94c.56-1.32,1.45-2.19,3.07-2.12v2.85h-.15Z" fill="#fff"/>';
177    e += '            </svg>';
178    e += '        </a>';
179    e += '        <div class="barra-estado__nav">';
180    e += '            <div class="barra-estado__nav__form">';
181    e += '                <input type="checkbox" id="barra-estado__toggle">';
182    e += '                <label for="barra-estado__toggle" class="barra-estado__toggle" data-open="&bull;&bull;&bull;" data-close="&bull;&bull;&bull;" onclick></label>';
183    e += '                <ul class="barra-estado__menu">';
184    e += '                    <li><a target="_self" href="https://estado.rs.gov.br/agencia-de-noticias"><span class="sr-only">Estado </span>Not&iacute;cias</a></li>';
185    e += '                    <li><a target="_self" href="https://www.rs.gov.br/" target="_self"><span class="sr-only">Estado </span>Servi&ccedil;os</a></li>';
186    e += '                    <li><a target="_self" href="https://www.centraldocidadao.rs.gov.br/"><span class="sr-only">Estado </span>Central do Cidad&atilde;o</a></li>';
187    e += '                    <li><a target="_self" href="http://www.transparencia.rs.gov.br/"><span class="sr-only">Estado </span>Transpar&ecirc;ncia</a></li>';
188    e += '                    <li><a target="_self" href="https://estado.rs.gov.br/institucional"><span class="sr-only">Estado </span>Secretarias e &Oacute;rg&atilde;os</a></li>';
189    e += '                    <li><a target="_self" href="https://www.diariooficial.rs.gov.br/"><span class="sr-only">Estado </span>Di&aacute;rio Oficial</a></li>';
190    //e += '                    <li><a target="_self" href="https://logincidadao.rs.gov.br/"><span class="sr-only">Estado </span>Login Cidad&atilde;o</a></li>';
191    e += '                    <li><a target="_self" href="https://www.rs.gov.br/guria"><span class="sr-only">Estado </span>';
192    e += '                          <svg id="GurIA" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="49.94px" height="13.21px" viewBox="0 0 49.94 13.21" enable-background="new 0 0 49.94 13.21" xml:space="preserve"><title>GurIA</title><desc>A tua nova assistente digital</desc>';
193    e += '                              <path d="M38.35,5.71c.18,0,.35-.02.53-.02.04-.07.1-.14.16-.2.07.1.13.2.2.31.06-.11.11-.25.15-.37.03-.1.06-.22.12-.31.04.07.07.16.1.23.04.12.08.24.12.37.02.07.03.13.06.2.03-.09.05-.19.08-.28l.13-.43c.04-.14.08-.29.15-.43.06.
19313.09.28.12.43.04.16.08.32.11.48.02-.05.03-.11.05-.17.03-.1.06-.2.09-.31.04-.15.21-.93.3-1h.01s.06.1.08.14c.04.1.07.21.09.32.05.19.09.38.12.57.02.11.03.23.06.34.04-.24.21-1.12.34-1.28.13.17.3,1.22.33,1.46.05-.39.11-.78.18-1.18.05-.32.1-.63.16-.95.04-.26.09-.53.16-.79.02-.08.04-.17.08-.25.02-.04.04-.07.08-.09.01,0,.03,0,.04.01.07.04.1.2.13.27.03.1.04.2.07.29.06.29.12.58.16.87.03.2.07.4.1.61.04.25.08.5.12.75.03.14.04.29.08.43.01-.12.03-.25.04-.37.04-.35.09-.71.2-1.05.01-.05.03-.12.07-.16h.01s.04.05.04.07c.08.16.13.33.18.5.09.32.16.64.24.97.02-.07.03-.15.05-.22l.07-.32c.04-.16.07-.32.13-.47.03.07.04.14.07.2l.09.32c.07.22.15.44.21.66.08-.31.16-.61.25-.92.04.08.06.16.09.25.09.23.17.46.27.68.03-.07.06-.15.08-.22.05-.14.1-.29.16-.43.08.19.17.37.26.55.06-.1.13-.2.2-.31.05.07.1.14.15.21.15,0,.29.01.43.02L43.94.22h-3.08l-2.58,5.5h.07,0Z" fill="#fff"/>';
194    e += '                              <path d="M46.55,5.77c-.22,0-.44.01-.66.01-.04.1-.11.19-.16.28-.04-.07-.08-.14-.12-.21-.04-.07-.08-.13-.11-.2-.04.08-.25.64-.29.67-.05-.02-.25-.5-.3-.58-.06.11-.28.77-.35.8h-.03s-.04-.04-.05-.06c-.04-.08-.08-.17-.11-.26-.05-.14-.09-.28-.16-.42-.06.11-.17.44-.27.5h-.03c-.08-.05-.25-.44-.28-.54-.03-.07-.04-.14-.07-.22-.04.14-.06.29-.09.43-.03.12-.15.64-.25.7h-.02c-.07-.04-.28-.62-.32-.72,0,.14-.03.29-.04.43-.03.34-.07.68-.11,1.02-.04.26-.08.52-.12.77-.03.14-.04.28-.07.41,0,.04-.02.1-.05.13h-.03s-.03-.04-.03-.06c-.03-.11-.04-.22-.06-.33-.03-.16-.05-.32-.08-.49-.08-.5-.13-1-.18-1.5-.01-.13-.02-.26-.04-.4-.08.17-.13.37-.22.53-.01.02-.03.06-.06.07-.01,0-.02,0-.03,0-.11-.07-.23-.66-.27-.8-.06.37-.1.74-.2,1.1-.03.09-.04.19-.09.28-.01.03-.04.08-.07.09h-.03c-.1-.07-.28-1.09-.3-1.24-.03-.14-.04-.28-.07-.42-.06.14-.11.29-.17.44-.03.07-.06.15-.1.22-.02.04-.04.08-.08.1h-.02c-.11-.04-.2-.37-.26-.47-.05.09-.32.63-.35.65h0c-.06-.07-.08-.16-.1-.24l-.12-.34c-.03-.07-.05-.15-.09-.22-.1.11-.14.26-.23.38-.04-.04-.17-.27-.2-.28-.01,0-.03.02-.04.02h-.49c-.08-.01-.16-.01-.25-.01l-3.39,7.22h3.19l1.19-2.74h6.25l1.19,2.74h3.27l-3.4-7.22v-.02Z" fill="#fff"/>';
195    e += '                              <path d="M31.41.22h3.11v12.77h-3.11V.22Z" fill="#fff"/>';
196    e += '                              <path d="M30.93,3.03v2.63c-.25-.02-.44-.04-.67-.04-1.65,0-2.75.86-2.75,2.74v4.63h-3V3.18h2.87v1.3c.73-.95,1.96-1.44,3.56-1.44h0Z" fill="#fff"/>';
197    e += '                              <path d="M23.88,3.18v9.81h-2.85v-1.16c-.79.86-1.94,1.31-3.21,1.31-2.59,0-4.42-1.39-4.42-4.41V3.18h3v5.13c0,1.64.77,2.37,2.09,2.37s2.39-.84,2.39-2.65V3.18h3Z" fill="#fff"/>';
198    e += '                              <path d="M9.94,6.41h2.85v5.18c-1.48,1.06-3.52,1.62-5.44,1.62C3.11,13.21,0,10.45,0,6.6S3.11,0,7.4,0c2.37,0,4.33.77,5.63,2.21l-2,1.75c-.98-.98-2.11-1.44-3.48-1.44-2.61,0-4.4,1.66-4.4,4.09s1.79,4.09,4.37,4.09c.85,0,1.63-.14,2.42-.55v-3.74h0Z" fill="#fff"/>';
199    e += '                           </svg>';
200    e += '                    </a></li>';
201    e += '                </ul>';
202    e += '            </div>';
203    e += '        </div>';
204    e += '    </div>';
205    e += '</div>';
206    
207    jQuery("<div/>").attr("class", "container-menu").html(e).prependTo(jQuery("body").eq(0));
208});

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.