Logo CEWEB.br Logo NIC.br Logo CGI.br
Home Sobre o projeto

Sites Atualizados

Lista dos novos sites adicionados a plataforma na última atualização

Endereço Nota Erros Avisos

www.irupi.es.gov.br/comunicados/ver/5/

84.91 21 87
Recomendações Avaliadas
1.1 Respeitar os Padrões Web.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
1.1.3 Presença de CSS(s) in-line 6 178 412 415 811 839 854
1.1.4 Presença de CSS(s) interno 4 97 108 193 494
1.1.6 Presença de javascript(s) interno 10 7 152 849 889 904 1032 1042 1083 1090 1448
178 <![CDATA[<div class="btns-acessibilidade" style="display: none"> <a href="#"><i class="fas fa-font"></i><i class="fas fa-plus"></i></a> <a href="#"><i class="fas fa-font"></i><i class="fas fa-minus"></i></a> <a href="#"><i class="fas fa-adjust"></i></a> <a href="#"><i class="fas fa-wheelchair"></i></a> <a href="#"><i class="fas fa-sign-language"></i></a> <a href="#"><i class="fas fa-envelope"></i></a> <a href="#"><i class="fas fa-link"></i></a> <a href="#"><i class="fas fa-lock"></i></a> </div>]]>
412 <![CDATA[<div class="pesquisa menu-icone" style=""> <a href="#" class="" data-toggle="modal" data-target="#search"><i class="fas fa-search"></i></a> </div>]]>
415 <![CDATA[<div class="menu-mob menu-icone" style=""> <a href="#" data-toggle="modal" data-target="#menu" class="slide-menu-open"><i class="fas fa-align-right"></i></a> </div>]]>
811 <![CDATA[<div id="search" class="p-0 modal fade show" role="dialog" aria-labelledby="search" wfd-id="8" style="display: none; padding-right: 0px;" aria-modal="true"> <div class="modal-dialog modal-dialog-slideout" role="document"> <div class="modal-content full"> <div class="modal-header" data-dismiss="modal"> <i class="icon-close fas fa-arrow-right"></i> </div> <div class="modal-body"> <form action="https://www.irupi.es.gov.br/pesquisa" id="form_search" class="row" method="post" accept-charset="utf-8"> <input type="hidden" name="csrf_token_name" value="5c79e4e0bf7b94e95698c6c925ce699e" /> <div class="col-12 p-0 align-self-center"> <div class="row"> <div class="col-12 p-0"> <h2>O que você está procurando?</h2> <div class="badges"> <span class="badge"><a href="https://www.irupi.es.gov.br/licitacoes">Licitação</a></span> <span class="badge"><a href="https://www.irupi.es.gov.br/coronavirus">Boletim Coronavírus</a></span> <span class="badge"><a href="https://www.irupi.es.gov.br/legislacao">Legislação</a></span> <span class="badge"><a href="https://www.irupi.es.gov.br/transparencia">Portal da Transparência</a></span> </div> </div> </div> <div class="row"> <div class="col-12 p-0 input-group"> <input type="text" name="q" id="busca_interna" class="form-control" value="" placeholder="Digite e tecle enter.." onkeypress="if (e.keyCode == 13){ this.submit(); }"> </div> </div> <div class="row"> <div class="col-12 p-0 input-group align-self-center" style="margin: 10px 0;"> <button class="btn primary-button" wfd-id="208">PESQUISAR</button> </div> </div> </div> </form> </div> </div> </div> </div>]]>
839 <![CDATA[<div class="col-12 p-0 input-group align-self-center" style="margin: 10px 0;"> <button class="btn primary-button" wfd-id="208">PESQUISAR</button> </div>]]>
854 <![CDATA[<div id="menu" class="p-0 modal fade show" role="dialog" aria-labelledby="menu" wfd-id="4" aria-modal="true" style="display: none;"> <div class="modal-dialog modal-dialog-slideout" role="document"> <div class="modal-content full"> <div class="modal-header" data-dismiss="modal"> <i class="icon-close fas fa-arrow-right"></i> </div> <div class="modal-body"> <div class="row w-100"> <div class="items p-0 col-12 text-center"> <ul id="menu_top" class="menu_ul"><li class="nav-item"><a href="https://www.irupi.es.gov.br/" class="nav-link"><div>Home </div></a></li><li class="nav-item"><a href="#" class="nav-link"><div>Município <i class="fas fa-chevron-down"></i></div></a><ul class="dropdown-menu"><li class="nav-item"><a href="https://www.irupi.es.gov.br/p/historia" class="nav-link"><div>História </div></a></li><li class="nav-item"><a href="https://www.irupi.es.gov.br/p/dados-gerais" class="nav-link"><div>Dados Gerais </div></a></li><li class="nav-item"><a href="https://www.irupi.es.gov.br/p/feriados" class="nav-link"><div>Feriados </div></a></li></ul><i class="icon-angle-down"></i></li><li class="nav-item"><a href="#" class="nav-link"><div>Prefeitura <i class="fas fa-chevron-down"></i></div></a><ul class="dropdown-menu"><li class="nav-item"><a href="https://www.irupi.es.gov.br/comunicados" class="nav-link"><div>Comunicados </div></a></li><li class="nav-item"><a href="https://www.irupi.es.gov.br/publicacoes" class="nav-link"><div>Publicações </div></a></li><li class="nav-item"><a href="https://www.irupi.es.gov.br/estrutura-administrativa" class="nav-link"><div>Estrutura Administrativa </div></a></li><li class="nav-item"><a href="https://www.irupi.es.gov.br/licitacoes" class="nav-link"><div>Licitações </div></a></li><li class="nav-item"><a href="https://www.irupi.es.gov.br/legislacao" class="nav-link"><div>Legislação </div></a></li></ul><i class="icon-angle-down"></i></li><li class="nav-item"><a href="https://www.irupi.es.gov.br/portal-transparencia" class="nav-link"><div>Transparência </div></a></li><li class="nav-item"><a href="https://www.irupi.es.gov.br/contato" class="nav-link"><div>Contato </div></a></li></ul> </div> </div> </div> </div> </div> </div>]]>
97 <![CDATA[<style type="text/css"> @media screen and (max-height: 575px), screen and (min-width: 992px) and (max-width:1199px) { #rc-imageselect, .g-recaptcha { transform: scale(0.83); -webkit-transform: scale(0.83); transform-origin: 0 0; -webkit-transform-origin: 0 0; } } </style>]]>
108 <![CDATA[<style> /*paleta 1. 142A6D 2. 2292a4 3. fcfcfc 4. 544b3d 5. fe654f https://material.io/develop/web/docs/theming */ :root { --header-bg-color: #f9f9f9; --nav-item-color: #21333e; --hero-bg-color: #f9f9f9; --section-1-bg-color: #eef4ed; --section-2-bg-color: #142A6D; --section-3-bg-color: #eee; --section-4-bg-color: #142A6D; --section-4-bg-image: url('/assets/images/bg-7.jpg'); --section-5-bg-color: #142A6D; --section-6-bg-color: #fcfcfc; --footer-bg-color: #142A6D; --primary-color: #142A6D; --secondary-color: #2292a4; --primary-bg-color-3: rgba(121, 147, 206, 0.15); --color-principal: #142A6D; --color-secundaria:#2292a4; --color-3:#fcfcfc; --color-4:#544b3d; --color-5:#fe654f; --card-showcase-size: 248px; } </style>]]>
193 <![CDATA[<style type="text/css"> /* Nav Area Style ======================================================*/ .navbar-area .main-nav { background-color: var(--white-color); box-shadow: var(--box-shadow); padding-top: 0; padding-bottom: 0; } .navbar-area .main-nav .container-fluid { padding-left: 30px; padding-right: 30px; } .navbar-area .main-nav .navbar { padding: 0; } .navbar-area .main-nav .navbar .navbar-brand { font-size: 0; padding: 0; } .menu_ul .nav-item { position: relative; padding: 0 15px; } .menu_ul .nav-item a { font-size: 14px; font-weight: 700; color: var(--heading-color); text-transform: capitalize; transition: var(--transition); margin-left: 0; margin-right: 0; position: relative; z-index: 1; } .menu_ul .nav-item a::before { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 100%; background-color: var(--main-color); z-index: -1; transition: var(--transition); } .menu_ul .nav-item a i { font-size: 15px; line-height: 0; position: relative; top: 1px; } .menu_ul .nav-item a:hover { color: var(--white-color); } .menu_ul .nav-item a:hover::before { width: 100%; right: auto; left: 0; } .menu_ul .nav-item a.active { color: var(--white-color); } .menu_ul .nav-item a.active::before { width: 100%; right: auto; left: 0; } .menu_ul .nav-item .dropdown-menu { position: absolute; top: 98%; left: 0; padding: 0; opacity: 0; min-width: 200px; margin: 0px; visibility: hidden; z-index: 99; display: block; padding: 0; background-color: var(--primary-color); border: none; border-radius: 0; transition: all 0.2s ease-in-out; box-shadow: var(--box-shadow); /*transform: scaleX(0);*/ } .menu_ul .nav-item .dropdown-menu li { position: relative; padding: 0; } .menu_ul .nav-item .dropdown-menu li a { font-size: 15px; color: var(--body-color); position: relative; padding: 10px 15px; /*border-bottom: 1px dashed #eee;*/ margin-left: 0; margin-right: 0; text-transform: capitalize; display: block; font-weight: 600; } .menu_ul .nav-item .dropdown-menu li a i { float: right; top: 12px; transition: var(--transition); font-size: 20px; } .menu_ul .nav-item .dropdown-menu li a:hover { color: var(--white-color); background-color: var(--main-color); } .menu_ul .nav-item .dropdown-menu li a.active { color: var(--white-color); } .menu_ul .nav-item .dropdown-menu li .dropdown-menu { left: 100%; top: 0; } .menu_ul .nav-item .dropdown-menu li:last-child a { border-bottom: none; } .menu_ul .nav-item .dropdown-menu li:hover .dropdown-menu { top: -2px !important; } .menu_ul .nav-item .dropdown-menu li .dropdown-menu { position: absolute; /*left: -98%;*/ top: 0 !important; opacity: 0 !important; visibility: hidden !important; /*transform: scaleX(0);*/ } .menu_ul .nav-item .dropdown-menu li .dropdown-menu li .dropdown-menu { position: absolute; right: -100%; top: 0; opacity: 0 !important; visibility: hidden !important; } .menu_ul .nav-item .dropdown-menu li .dropdown-menu li a { color: var(--body-color); text-transform: capitalize; font-size: 15px; font-weight: 600; } .menu_ul .nav-item .dropdown-menu li .dropdown-menu li a:hover { color: var(--white-color); } .menu_ul .nav-item .dropdown-menu li .dropdown-menu li a:focus { color: var(--white-color); } .menu_ul .nav-item .dropdown-menu li .dropdown-menu li a.active { color: var(--white-color); } .menu_ul .nav-item .dropdown-menu li:hover .dropdown-menu { opacity: 1 !important; visibility: visible !important; top: -2px !important; /*transform: scaleX(1);*/ } .menu_ul .nav-item .dropdown-menu li:hover .dropdown-menu li:hover .dropdown-menu { opacity: 1 !important; visibility: visible !important; top: -20px !important; } .menu_ul .nav-item .dropdown-menu:last-child .dropdown-menu { left: auto; right: -100%; } .menu_ul .nav-item:hover ul { opacity: 1; visibility: visible; top: 98%; /*transform: scaleX(1);*/ } </style>]]>
494 <![CDATA[<style type="text/css"> /*---------------------------------------------- 12. Modal ----------------------------------------------*/ /* #region Modal */ #search .row, #menu .row { margin-left: 0; margin-right: 0; } #search .modal-open, #menu .modal-open { overflow-y: hidden; overflow-x: hidden; } #search .modal-dialog-slideout, #menu .modal-dialog-slideout { min-height: 100%; margin: 0 0 0 auto; } #search .modal.fade .modal-dialog.modal-dialog-slideout, #menu .modal.fade .modal-dialog.modal-dialog-slideout { -webkit-transform: translate(100%, 0)scale(1); transform: translate(100%, 0)scale(1); -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1); height: 100%; } #search .modal.fade.show .modal-dialog.modal-dialog-slideout, #menu .modal.fade.show .modal-dialog.modal-dialog-slideout { -webkit-transform: translate(0, 0); transform: translate(0, 0); display: flex; align-items: start; -webkit-box-align: start; height: 100%; } #search .modal-content, #menu .modal-content { border: none; border-radius: 0; overflow-x: hidden; background-color: var(--primary-bg-color); } #search .odd .modal-content, #menu .odd .modal-content { background-color: var(--secondary-bg-color-2); } #search .modal-content.full, #menu .modal-content.full { height: 100%; height: 100vh; } #search .modal-header, #menu .modal-header { align-items: center; padding: 25px; border: none; font-weight: 700; color: var(--primary-t-color); border-radius: 0; } #search .odd .modal-header, #menu .odd .modal-header { color: var(--secondary-t-color); } #search .modal-header .modal-title, #menu .modal-header .modal-title { line-height: 0; } #search .modal-header .icon-close, #menu .modal-header .icon-close { font-size: 24px; cursor: pointer; } #search .modal-header .icon-close:hover, #menu .modal-header .icon-close:hover { color: var(--primary-color); } #search .modal-header.absolute, #menu .modal-header.absolute { position: absolute; z-index: 1; top: 0; right: 0; } #search .modal-header.absolute .icon-close, #menu .modal-header.absolute .icon-close { width: 45px; height: 45px; line-height: 45px; text-align: center; border-radius: 100px; background-color: rgba(5, 130, 131, 0.65); color: var(--white-color); -webkit-transition: all .3s ease-out 0s; -o-transition: all .3s ease-out 0s; -moz-transition: all .3s ease-out 0s; transition: all .3s ease-out 0s; } #search .modal-header.absolute .icon-close:hover, #menu .modal-header.absolute .icon-close:hover { background-color: var(--primary-color); } #search .modal-body, #menu .modal-body { width: 100%; display: flex; align-items: center; padding: 25px 25px 75px; } #search .modal-body iframe, #menu .modal-body iframe { width: 100%; height: 100%; } #search h2 { margin: 1.5rem 0; font-size: 32px; font-weight: var(--h2-weight); line-height: 1.2; font-family: var(--primary-font); color: var(--primary-t-color); -ms-word-wrap: break-word; word-wrap: break-word; } #search .badges .badge { margin: 0 10px 12.5px 0; -webkit-transition: all .2s ease-out 0s; -o-transition: all .2s ease-out 0s; -moz-transition: all .2s ease-out 0s; transition: all .2s ease-out 0s; } #search .badge { padding: 10px; font-size: 14px; font-weight: 500; color: var(--secondary-color); background-color: var(--primary-bg-color-3); } #search .form-control { width: 100%; height: 50px; background: no-repeat; box-shadow: none; padding: 1rem; background-color: rgba(0, 0, 0, 0.075); border: none; border-radius: 4px; line-height: 1.2; color: var(--primary-t-color); } #search .primary-button, .primary-button:visited, .primary-button:active { position: relative; z-index: 2; padding: 10px 25px; background-color: var(--primary-color); border-radius: 4px; border: 1px solid; border-color: var(--primary-color); color: var(--primary-b-color); font-weight: 500; -webkit-transition: all .4s ease-out 0s; -o-transition: all .4s ease-out 0s; -moz-transition: all .4s ease-out 0s; transition: all .4s ease-out 0s; } #search .btn { width: fit-content; max-width: 300px; display: flex; align-items: center; justify-content: center; text-align: center; padding: .5rem 1.25rem; border-width: 0; border-radius: 2px; } .menu .items { margin-left: -5px; width: calc(100% + 10px); } .menu .navbar-nav { font-size: 1.5rem; font-weight: 400; line-height: 1; } .menu .nav-item { margin: 0; } .menu .dropdown .dropdown-menu { display: none; width: 100%; visibility: visible; opacity: 1; background: none; box-shadow: none; border: none; text-align: center; padding: 0 0 0 20px; margin: 0 0 15px; list-style: none; color: var(--secondary-p-color); } .menu .dropdown .dropdown-menu.show { display: block; } .menu .dropdown-menu .dropdown-menu { position: relative; top: initial; left: initial; } .menu .dropdown .dropdown-menu .left, .menu .dropdown .dropdown-menu .right { width: 50%; } .menu .nav-link:not(.btn) { font-size: 1rem; font-weight: 400; border: 1px solid var(--primary-l-color); color: var(--primary-p-color); display: inline-block; /*width: calc(100% - 12px);*/ vertical-align: top; padding: 10px 5px; margin: 0 5px; border-radius: 4px; } .odd .menu .nav-link:not(.btn) { border: 1px solid var(--secondary-l-color); color: var(--secondary-p-color); } .menu .nav-link:not(.btn):hover, .odd .menu .nav-link:not(.btn):hover { /*color: var(--primary-color);*/ } .menu .dropdown .dropdown-menu .nav-link.title { font-weight: 700; color: var(--primary-t-color); border: none; opacity: 0.8; } .odd .menu .dropdown .dropdown-menu .nav-link.title { color: var(--secondary-t-color); } .menu .dropdown .dropdown-menu .nav-item .nav-link { font-size: 1rem; font-weight: 400; background: none; color: var(--primary-p-color); display: flex; justify-content: space-between; width: calc(100% - 12px); vertical-align: top; padding: 0; margin: 0 5px 10px; border-radius: 4px; text-align: left; } .menu .dropdown .dropdown-menu .nav-item .nav-link span { width: 18px; height: 18px; display: inline-block; border-radius: 100px; line-height: 18px; text-align: center; font-size: 13px; font-weight: 500; } .odd .menu .dropdown .dropdown-menu .nav-item .nav-link { color: var(--secondary-p-color); } .menu .dropdown .dropdown-menu .nav-link:hover, .odd .menu .dropdown .dropdown-menu .nav-link:hover { color: var(--primary-color); } .menu .dropdown:first-child { margin-top: 0; } .menu .nav-link:first-child { padding-left: 0; padding-right: 0; display: flex; justify-content: space-between; align-items: center; /*font-size: 1.5rem;*/ /*font-weight: 700;*/ border: none; /*color: var(--primary-t-color);*/ } .odd .menu .nav-link:first-child { margin-bottom: 0; font-weight: 700; border: none; /*color: var(--secondary-t-color);*/ } .menu .dropdown-menu .dropdown > .nav-link:first-child { font-size: 1rem; font-weight: 700; } .menu .navbar-nav i.icon-arrow-down { font-size: 18px; } /* #endregion Modal */ </style>]]>
7 <![CDATA[<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-30196477-1'); </script>]]>
152 <![CDATA[<script type="application/ld+json"> { "@context": "http:\/\/schema.org", "@type": "Organization", "name": "Prefeitura Municipal de Irupi\/ES", "url": "https:\/\/www.irupi.es.gov.br\/", "address": "Rua Jalmas Gomes de Freitas, 151 - Irupi- ES", "sameAs": [] } </script>]]>
849 <![CDATA[<script type="text/javascript"> $('#menu_top li ul li.nav-item a.nav-link > div').on('mouseover mouseout', function() { $(this).find('i').toggleClass('fa-chevron-down fa-chevron-right') }); </script>]]>
889 <![CDATA[<script type="text/javascript"> $('a[href$=".pdf"]').not('.ver').attr('download', '').attr('target', '_blank'); // $('.verpdf').magnificPopup({ // disableOn: 700, // type: 'iframe', // mainClass: 'mfp-fade', // removalDelay: 160, // preloader: false, // fixedContentPos: false // }); </script>]]>
904 <![CDATA[<script type="text/javascript"> $(document).ready(function () { if ($(window).width() <= 997) { $('.btn-ligar').show(); } $(window).resize(function () { if ($(window).width() <= 997) { $('.btn-ligar').show(); } else { $('.btn-ligar').hide(); } }); }); (function() { var v = document.getElementsByClassName("youtube-player"); var iframePrincipal = document.getElementsByClassName("box_video_principal"); for (var n = 0; n < v.length; n++) { var p = document.createElement("div"); p.innerHTML = videoThumb(v[n].dataset.id); p.onclick = videoIframe; v[n].appendChild(p); } })(); function videoThumb(id) { return '<img class="youtube-thumb" src="https://i.ytimg.com/vi/' + id + '/hqdefault.jpg"><div class="play-button"></div>'; } function videoIframe() { var iframe = document.createElement("iframe"); iframe.setAttribute("class", "embed-responsive-item"); iframe.setAttribute("id", "youtube_frame"); iframe.setAttribute("src", "//www.youtube.com/embed/" + this.parentNode.dataset.id + "?autoplay=1&rel=0&autohide=2&border=0&wmode=opaque&enablejsapi=1&controls=0&showinfo=0"); iframe.setAttribute("frameborder", "0"); iframe.setAttribute("width", "100%"); //iframe.setAttribute("height", "650"); iframe.setAttribute("id", "youtube-iframe"); //this.parentNode.replaceChild(iframe, this); $("div.embed-responsive").html(iframe); } function popupCompartilhar(url){ window.open(url,'sharer','toolbar=0,status=0,width=648,height=395'); return true; } _topNav(); function _topNav() { window.scrollTop = 0; // jQuery(window).scroll(function() { // _toTop(); // }); // Mobile Submenu var addActiveClass = false; jQuery("#topMain a.dropdown-toggle").bind("click", function(e) { if(jQuery(this).attr('href') == '#') { e.preventDefault(); } addActiveClass = jQuery(this).parent().hasClass("resp-active"); jQuery("#topMain").find(".resp-active").removeClass("resp-active"); if(!addActiveClass) { jQuery(this).parents("li").addClass("resp-active"); } return; }); // Drop Downs - do not hide on click jQuery("#topMain li.dropdown, #topMain a.dropdown-toggle").bind("click", function(e) { e.stopPropagation(); }); // IE11 Bugfix // Version 1.1 // Wednesday, July 23, 2014 if(jQuery("html").hasClass("ie") || jQuery("html").hasClass("ff3")) { jQuery("#topNav ul.nav > li.mega-menu div").addClass('block'); jQuery("#topNav ul.nav > li.mega-menu div div").addClass('pull-left'); } } $('.imagem-item').magnificPopup({ type: 'image', gallery:{ enabled:true } }); // $('.popup-youtube').magnificPopup({ // disableOn: 300, // type: 'iframe', // //mainClass: 'mfp-fade', // removalDelay: 160, // preloader: false, // fixedContentPos: false // }); // $('.popup-youtube').click(function () { // return false; // }); $('#drawerExample').drawer({ toggle: false }); $('#drawerExample').drawer({ toggle: false, trigger: '[data-toggle="drawer"]' }); function resetForm($form) { $form.find('input:text, input:password, input:file, select, textarea').val(''); $form.find('input:radio, input:checkbox').removeAttr('checked').removeAttr('selected'); } </script>]]>
1032 <![CDATA[<script> var lazy = function lazy() { document.addEventListener('lazyloaded', function (e) { e.target.parentNode.classList.add('image-loaded'); e.target.parentNode.classList.remove('loading'); }); } lazy(); </script>]]>
1042 <![CDATA[<script> var $pagetitle = jQuery('#page-title-wrapper'), pageTitleOffset = 0; function stickyPageTitle( pageTitleOffset ){ if( $pagetitle.length < 1 ) { return true; } if ( jQuery(window).scrollTop() > pageTitleOffset ) { if( jQuery('body').hasClass('device-xl') || jQuery('body').hasClass('device-lg') ) { $pagetitle.addClass('sticky-page-title'); } else { $pagetitle.removeClass('sticky-page-title'); } } else { $pagetitle.removeClass('sticky-page-title'); } } function pageTitleHeight() { $pagetitle.css({ 'height': jQuery('#page-title').outerHeight() }); } stickyPageTitle( pageTitleOffset ); jQuery(document).ready( function(){ pageTitleHeight(); pageTitleOffset = $pagetitle.length ? $pagetitle.offset().top - jQuery('#header-wrap').outerHeight() : 0 ; }); jQuery(window).on( 'resize', function(){ pageTitleHeight(); setTimeout( function(){ pageTitleOffset = $pagetitle.length ? $pagetitle.offset().top - jQuery('#header-wrap').outerHeight() : 0; }, 500); }); jQuery(window).on( 'scroll', function(){ stickyPageTitle( pageTitleOffset ); }); </script>]]>
1083 <![CDATA[<script type="text/javascript"> $("#galeriaDetalhe").justifiedGallery({ rowHeight : 200, lastRow : 'nojustify', margins : 3 }); </script>]]>
1090 <![CDATA[<script> /** * BS Pretty Tabs **/ !function(e){ (function ($) { function bsPrettyTabs($element, options) { this.element = $element[0]; this.$element = $element; this.overflowElements = []; this.elementsWidth = 0; this.lastExecutedBR = 0; this.handleBR = false; this.enable = true; this.options = $.extend({ childClass: false, mustDisplayClass: false, menuContainerTag: 'div', menuContainerClass: 'bs-pretty-tabs-container', menuContainerPosition: 'beginning', // beginning|end itemsWrapperSelector: false, moreContainer: '<a href="#" class="bs-pretty-tabs-more">More <i class="fa fa-angle-down" aria-hidden="true"></i></a><div class="bs-pretty-tabs-elements"></div>', getContainerWidth: function(width) { return width; }, initWrapperContainer: function ($wrapper) { return $wrapper; }, styleChangesAt: [] //breakpoint list }, options); if(this.options.styleChangesAt.length) { this.handleBR = true; this.options.styleChangesAt = this.options.styleChangesAt.sort(function(a,b) { return a>b; }); } this.init(); } $.extend(bsPrettyTabs.prototype, { init: function () { var self = this; function prettyTabsInit() { /** * handle brakpoints */ if (self.handleBR && self.enable) { var currentBR = self.getCurrentBR(); if (currentBR !== self.lastExecutedBR) { self.retrieveElements(true); self.getItems() .each(function () { var $el = $(this); self._updateElementWidth($el); }); self.lastExecutedBR = currentBR; } } self.handlePrettyTabs(); } $(window).on('resize.bsPrettyTabs', prettyTabsInit); self.$element.addClass('bs-pretty-tabs bs-pretty-tabs-initialized'); prettyTabsInit(); }, getItemsWrapper: function() { var $wrapper; if(this.options.itemsWrapperSelector) { $wrapper = this.$element.find(this.options.itemsWrapperSelector); } else { $wrapper = this.$element; } return $wrapper; }, getItems:function(selector) { return this.getItemsWrapper().children(selector); }, getCurrentBR: function() { var result = 0; for(i = 0 ; i < this.options.styleChangesAt.length; i++) { if(this.options.styleChangesAt[i] >= window.outerWidth) { result = this.options.styleChangesAt[i]; break; } } return result; }, handlePrettyTabs: function () { var self = this; if(! self.enable) { return; } self.collectOverflowElements(); if (self.overflowElements.length) { self.overflowElements.forEach(function ($el) { self.moveToInvisibleContainer($el); }); } else { self.retrieveElements(); } // hide more tab if its overflowed otherwise display it var totalWidth = this._getTotalWidth(), moreTabWidth = this._getMenuLinkWidth(), $menuContainer = this._getMenuContainer(); if(totalWidth < moreTabWidth ) { $menuContainer.hide(); } else { var containerWidth = totalWidth; self._getVisibleElement().each(function() { containerWidth -= self._getElementWidth($(this)); }); $menuContainer[moreTabWidth <= containerWidth && self._getInvisibleElements().length ? 'show' : 'hide'](); } this.$element.trigger('after-pretty-tabs',[this]); }, retrieveElements: function (retrieveAll) { var totalWidth = this.options.getContainerWidth.call(this,this.$element.width()), width = this.elementsWidth, self = this; if (self._getInvisibleElements().length) { var children = this.getInvisibleElementsContainer() .children(); var moved = false; for (var i = 0; i < children.length; i++) { var $this = $(children[ i ]), elementWidth = self._getElementWidth($this), withAfterMove = width + elementWidth; if (retrieveAll || withAfterMove < totalWidth) { width = withAfterMove; self.moveToVisibleContainer($this); moved = true; } else { break; } } if( children.length === 1 && ! moved) { if((withAfterMove - self._getMenuLinkWidth()) < totalWidth) { self.moveToVisibleContainer(children); self._getMenuContainer().remove(); } } } else { this._getMenuContainer().remove(); } }, _getInvisibleElements: function () { var cls = this.options.menuContainerClass; return this.$element .find('.' + cls + ' .bs-pretty-tabs-elements').children(); }, _updateElementWidth: function ($element) { var width = $element.outerWidth(true) + 1; if ($element.data('bs-visibility') !== 'hidden') { $element.data('bs-width', width); return width; } return false; }, _getElementWidth: function ($element) { var width; if($element.data('bs-visibility') === 'hidden') { width = $element.data('bs-width'); } else { width = this._updateElementWidth($element); } return width; }, _getVisibleElement: function () { var cls = this.options.menuContainerClass; return this.getItems(':not(.' + cls + '):last'); }, _getMenuContainer: function () { var $container = this.$element.find('.' + this.options.menuContainerClass); if ($container.length) { return $container; } return this._setMenuContainer(); }, _setMenuContainer: function () { var $container = $('<' + this.options.menuContainerTag + '/>', { 'class': this.options.menuContainerClass }); $container = this.options.initWrapperContainer.call(this, $container), $container.append(this.options.moreContainer); if (this.options.menuContainerPosition === 'end') { $container.appendTo(this.getItemsWrapper()); } else { $container.prependTo(this.getItemsWrapper()); } $container.on('mouseover', function() { $(this).addClass('display-more-items'); }).on('mouseout', function() { $(this).removeClass('display-more-items'); }).on('click', function() { $(this).toggleClass('display-more-items'); }); return $container; }, _getMenuLinkWidth: function (force) { var cls = this.options.menuContainerClass, $el = this.$element.find('.' + cls + ' .bs-pretty-tabs-more'); var force = force || false; if(! $el.length && ! force) { this._setMenuContainer(); return this._getMenuLinkWidth(true); } return this._getElementWidth($el) || 0; }, _getTotalWidth: function() { return this.options.getContainerWidth.call(this,this.$element.width()); }, getInvisibleElementsContainer: function () { return $('.bs-pretty-tabs-elements', this._getMenuContainer()); }, moveToInvisibleContainer: function (el) { var $container = this.getInvisibleElementsContainer(), $el = $(el); $el.data('bs-visibility', 'hidden'); $el.prependTo($container); }, moveToVisibleContainer: function ($el) { var $container = this._getMenuContainer(); $el.data('bs-visibility', 'visible'); if(this.options.menuContainerPosition === 'end') { $el.insertBefore(this._getMenuContainer()); } else { $el.appendTo($container.parent()); } }, /** * Delete is element overflow * * @return {Boolean} true/false */ collectOverflowElements: function () { var totalWidth = this._getTotalWidth(), self = this; this.overflowElements = []; this.elementsWidth = self._getMenuLinkWidth(); var elWidth = 0; this.getItems() .each(function () { var $this = $(this); if (!$this.hasClass(self.options.menuContainerClass)) { elWidth = self._getElementWidth($this); self.elementsWidth += elWidth; if (self.elementsWidth > totalWidth) { //overflow occurred! if (!$this.hasClass(self.options.menuContainerClass)) { // dont collect mustDisplay elements if(! self.options.mustDisplayClass || !$this.hasClass(self.options.mustDisplayClass)) { self.overflowElements.push($this); } } } } }); if(self.overflowElements.length === 1) { // Don't collect single element if((self.elementsWidth - self._getMenuLinkWidth()+elWidth)<totalWidth) { self.overflowElements.pop(); } } self.overflowElements = self.overflowElements.reverse(); }, changeState: function(state) { this.enable = state === 'start'; } }); $.fn.bsPrettyTabs = function (settings) { return this.each(function () { var $this = $(this); if (typeof settings === 'string') { var obj = $this.data('bs-pretty-tabs'); if(obj && obj.changeState) { obj.changeState(settings); } } else if(! $this.data('bs-pretty-tabs')) { var _PrettyTabs = new bsPrettyTabs($this, settings); $this.data('bs-pretty-tabs', _PrettyTabs); } }); } })(jQuery); }(jQuery); </script>]]>
1448 <![CDATA[<script> new window.VLibras.Widget('https://vlibras.gov.br/app'); </script>]]>