1$(document).ready(function () { 2 3 $('#search-text').on('keypress', function (e) { 4 if (e.which == 13) { 5 Search($(this).val()); 6 } 7 }); 8 9 $('.ers-mobile-lupa').click(function () { $('.search-big-box').slideDown("fast"); }) 10 $('.close-search').click(function () { $('.search-big-box').slideUp("fast"); }) 11 12 $(document).on('click', '.ers-pagination-button', function () { 13 $(".ers-pagination-button").css("background-color", ""); 14 $(".ers-pagination-button").css("color", ""); 15 $(this).css("background-color", "#e4292b"); 16 $(this).css("color", "#fff"); 17 }); 18 19 $('#menu_ers_mobile').mouseleave(function () { 20 $(this).parent().find("input").click(); 21 }) 22 23 $(document).on('click', '.ers-conteudo-botao', function () { 24 $('.ers-conteudo-botao').css("background-color", ""); 25 $('.ers-conteudo-botao').css("font-weight", ""); 26 $('.ers-conteudo-botao').css("color", ""); 27 $(this).css("background-color", "#e4292b"); 28 $(this).css("color", "#fff"); 29 $(this).css("font-weight", "600"); 30 }); 31 32 $('.sub-menus-ers').mouseleave(function () { 33 $(this).hide(); 34 }); 35 36 $('.ers-sub-menu').each(function () { 37 if ($(this).data("down-pages-count") <= 0) { 38 $(this).find(".ers-right-arrow").hide(); 39 } else { 40 $(this).find(".ers-right-arrow").show(); 41 } 42 }) 43 44 var divisaoColunas = 12; 45 var valorPorColuna = $('.sub-menus-ers').data("largura"); 46 var valorMaximoLargura = 0; 47 48 $('.ers-menu-top-option').click(function () { 49 $('.sub-menus-ers').hide(); 50 $(this).parent().find('.sub-menus-ers').show(); 51 }); 52 53 $('.ers-sub-menu').click(function () { 54 var hoverObject = $(this); 55 var pageId = $(this).data("pageid"); 56 var level = $(this).data("level"); 57 58 var valorAdividir = level; 59 //console.log("level "+valorAdividir); 60 if (valorAdividir == 1) { 61 valorAdividir = 2; 62 }else if (valorAdividir == 0) { 63 valorAdividir = 1; 64 } else if (valorAdividir == 3) { 65 valorAdividir = 4; 66 } else if (valorAdividir == 4) { 67 valorAdividir = 4; 68 69 } else { 70 valorAdividir += 1; 71 } 72 73 if ($(this).data("down-pages-count") > 0) { 74 valorMaximoLargura = valorPorColuna * valorAdividir 75 } else { 76 } 77 78 //console.log("valorAdividir "+valorAdividir); 79 80 //if ($(this).data("down-pages-count") > 0) { 81 // valorMaximoLargura = valorPorColuna * valorAdividir 82 //} else { 83 // if (valorMaximoLargura > 300) { 84 // valorMaximoLargura -= 300; 85 // } 86 //} 87 var divisaoFinal = divisaoColunas / valorAdividir; 88 89 $('.ers-sub-menu').each(function () { 90 if ($(this).data("pageparentid") == pageId) { 91 if ($(hoverObject).data("down-pages-count") > 0) { 92 $('.dynamic-col').attr("class", "col-" + divisaoFinal + " dynamic-col"); 93 $('.sub-menus-ers').css("max-width", "" + valorMaximoLargura + "px"); 94 $('.sub-menus-ers').css("min-width", "" + valorMaximoLargura + "px"); 95 } 96 $(this).show(); 97 } else if ($(this).data("level") > level) { 98 if ($(hoverObject).data("down-pages-count") > 0) { 99 $('.dynamic-col').attr("class", "col-" + divisaoFinal + " dynamic-col"); 100 $('.sub-menus-ers').css("max-width", "" + valorMaximoLargura + "px"); 101 $('.sub-menus-ers').css("min-width", "" + valorMaximoLargura + "px"); 102 } 103 $(this).hide(); 104 } 105 }); 106 }); 107 108 $(document).on('click', '.link-menu', function () { 109 var ersMenuMobile = $(this).parent().find('.ers-arrow-mobile').first(); 110 111 if (ersMenuMobile.hasClass("fa-chevron-right")) { 112 ersMenuMobile.removeClass("fa-chevron-right"); 113 ersMenuMobile.addClass("fa-chevron-down"); 114 } else if (ersMenuMobile.hasClass("fa-chevron-down")) { 115 ersMenuMobile.removeClass("fa-chevron-down"); 116 ersMenuMobile.addClass("fa-chevron-right"); 117 } 118 ersMenuMobile.parent().find('.ers-sub-menu-list').first().slideToggle(200); 119 }); 120 121 $(document).on('click', '.ers-arrow-mobile', function () { 122 if ($(this).hasClass("fa-chevron-right")) { 123 $(this).removeClass("fa-chevron-right"); 124 $(this).addClass("fa-chevron-down"); 125 } else if ($(this).hasClass("fa-chevron-down")) { 126 $(this).removeClass("fa-chevron-down"); 127 $(this).addClass("fa-chevron-right"); 128 } 129 $(this).parent().find('.ers-sub-menu-list').first().slideToggle(200); 130 }); 131 132 $(document).on('click', '.selected-option', function () { 133 $('.ers-selectors-options').hide(); 134 $(this).find(".ers-selectors-options").fadeToggle(100); 135 }); 136 137 $(document).on('click', function (e) { 138 if (!$(e.target).is('.ers-selectors-options') 139 && !$(e.target).is('.selected-option')
140 && !$(e.target).is('.options-selectors') 141 && !$(e.target).is('.select-title')) { 142 $('.ers-selectors-options').hide(); 143 } 144 }); 145 146 $(document).on('click', '.ers-conteudo-botao', function () { 147 var id = $(this).data("id"); 148 $('.ers-conteudo-item').each(function () { 149 if ($(this).data("id") == id) { 150 $(this).show(); 151 } else { 152 $(this).hide(); 153 } 154 }); 155 }); 156 157 $(document).on('click', '.ers-section-title', function () { 158 if ($(this).find('.ers-icone-faq').hasClass("fa-plus")) { 159 160 $('.ers-content').slideUp(); 161 $('.ers-icone-faq').removeClass("fa-minus"); 162 $('.ers-icone-faq').addClass("fa-plus"); 163 164 $(this).parent().find('.ers-content').slideDown(); 165 $(this).find('.ers-icone-faq').removeClass("fa-plus"); 166 $(this).find('.ers-icone-faq').addClass("fa-minus"); 167 } else if ($(this).find('.ers-icone-faq').hasClass("fa-minus")) { 168 $(this).parent().find('.ers-content').slideUp(); 169 $(this).find('.ers-icone-faq').removeClass("fa-minus"); 170 $(this).find('.ers-icone-faq').addClass("fa-plus"); 171 } 172 }); 173 174 $(document).on('click', '.ers-caixa-mosaico-open', function () { 175 var id = $(this).data("id"); 176 $.ajax({
177 url: "/umbraco/Surface/Combos/GetContentInfo", 178 method: "POST", 179 data: { id: id } 180 }).done(function (html) { 181 $('.ers-caixa-mosaico-main').slideUp(100); 182 $('.ers-pagination').slideUp(100); 183 $('.ers-conteudo-lista').html(html); 184 $('.ers-conteudo-lista').slideDown(100); 185 }); 186 }); 187 188 $(document).on('click', '.pr-box-news-main1', function () { 189 var link = $(this).find('.ers-more').attr("href"); 190 191 if (link != "" && link != null) { 192 window.open("" + link, "_blank"); 193 } 194 }); 195 196 }); 197 198function GoBackBoxes() { 199 $('.ers-conteudo-lista').slideUp(100); 200 $('.ers-pagination').slideDown(100); 201 $('.ers-caixa-mosaico-main').slideDown(100); 202} 203 204 205
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.