1// JavaScript Document 2 3$(document).ready(function () { 4 AjustarEmbed(); 5 $("[data-fancybox]").fancybox({ 6 buttons: [ 7 "zoom", 8 "share", 9 "slideShow", 10 "fullScreen", 11 "download", 12 "thumbs", 13 "close", 14 ], 15 }); 16 17 $(window).scroll(function () { 18 if ($(this).scrollTop() > 300) { 19 $(".back-top").removeClass("invisible"); 20 } else { 21 $(".back-top").addClass("invisible"); 22 } 23 }); 24 // scroll body to 0px on click 25 $(".back-top").click(function () { 26 $(".back-top").tooltip("hide"); 27 $("body,html").animate( 28 { 29 scrollTop: 0, 30 }, 31 800 32 ); 33 return false; 34 }); 35 36 $("#sidebar").mCustomScrollbar({ 37 theme: "minimal", 38 }); 39 40 $("#dismiss, .overlay").on("click", function () { 41 $("#sidebar").removeClass("active"); 42 $(".overlay").removeClass("active"); 43 }); 44 45 $("#sidebarCollapse").on("click", function () { 46 $("#sidebar").addClass("active"); 47 $(".overlay").addClass("active"); 48 $(".collapse.in").toggleClass("in"); 49 $("a[aria-expanded=true]").attr("aria-expanded", "false"); 50 }); 51 52 $(".share-post-icon").on("click", function (e) { 53 e.preventDefault(); 54 var slink = $(this).data("link"); 55 var stitle = $(this).data("title"); 56 57 var html_share = '<ul class="list-group list-group-flush share-items">'; 58 html_share += 59 '<li class="list-group-item"> <a class="btn-share-modal facebook" onclick="javascript: window.open(\'https://www.facebook.com/sharer/sharer.php?u=' + 60 slink + 61 '\', \'Facebook\', \'width=450,height=300\'); return false" id="compartilhe-social-facebook" title="Facebook"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" class="ico-facebook"><path d="M45.35 0H2.65A2.65 2.65 0 000 2.65v42.7A2.65 2.65 0 002.65 48h23V29.41h-6.27v-7.24h6.26v-5.34c0-6.2 3.79-9.58 9.32-9.58a51 51 0 015.59.28V14h-3.843 0-3.59 1.43-3.59 3.53v4.62h7.17l-.93 7.24h-6.24V48h12.23A2.65 2.65 0 0048 45.35V2.65A2.65 2.65 0 0045.35 0"></path></svg><span class="share-text">Facebook</span></a></li>'; 62 html_share += 63 '<li class="list-group-item"><a class="btn-share-modal linkedin" onclick="javascript: window.open(\'https://www.linkedin.com/shareArticle?url=' + 64 slink + 65 "&title=" + 66 stitle + 67 '\', \'LinkedIn\', \'width=450,height=300\'); return false" id="compartilhe-social-linkedin" title="LinkedIn"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" class="ico-linked-in"><path d="M44.45 0H3.54A3.5 3.5 0 000 3.46v41.08A3.51 3.51 0 003.54 48h40.91A3.51 3.51 0 0048 44.54V3.46A3.51 3.51 0 0044.45 0zM14.24 40.9H7.11V18h7.13v22.9zm-3.56-26a4.13 4.13 0 114.13-4.13 4.13 4.13 0 01-4.13 4.09zm30.23 26h-7.13V29.76c0-2.66 0-6.07-3.7-6.07s-4.27 2.9-4.27 5.88V40.9H18.7V18h6.82v3.13h.1a7.48 7.48 0 016.74-3.7c7.21 0 8.54 4.74 8.54 10.91V40.9z"></path></svg><span class="share-text">Linkedin</span></a></li>'; 68 html_share += 69 '<li class="list-group-item"><a class="btn-share-modal twitter" onclick="javascript: window.open(\'https://twitter.com/intent/tweet?text=' + 70 stitle + 71 "&url=" + 72 slink + 73 '\', \'Twitter\', \'width=450,height=300\'); return false" id="compartilhe-social-twitter" title="Twitter"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 39.01" class="ico-twitter"><path d="M48 4.61a19.69 19.69 0 01-5.66 1.55A9.88 9.88 0 0046.67.71a19.72 19.72 0 01-6.25 2.39 9.86 9.86 0 00-16.78 9A28 28 0 013.34 1.8a9.86 9.86 0 003 13.15 9.81 9.81 0 01-4.46-1.23v.12a9.85 9.85 0 007.95 9.66 9.87 9.87 0 01-4.45.17 9.86 9.86 0 009.2 6.83 19.76 19.76 0 01-12.23 4.22A20 20 0 010 34.58 27.87 27.87 0 0015.1 39c18.11 0 28-15 28-28V9.73A20 20 0 0048 4.61z"></path></svg><span class="share-text">Twitter</span></a></li>'; 74 html_share += 75 '<li class="list-group-item"><a class="btn-share-modal ico-whatsapp" onclick="javascript: window.open(\'https://api.whatsapp.com/send?text=' + 76 slink + 77 '\', \'WhatsApp\', \'width=450,height=300\'); return false" id="compartilhe-social-mobile" title="WhatsApp"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M41 7A23.92 23.92 0 00.2 23.78a23.66 23.66 0 003.19 11.89L0 48l12.67-3.31a24 24 0 0011.42 2.9A23.88 23.88 0 0048 23.8 23.58 23.58 0 0041 7zM24.1 43.57A19.91 19.91 0 0114 40.81l-.73-.43-7.52 2 2-7.3-.47-.75A19.76 19.76 0 0124.11 4a19.785 19.785 0 11-.01 39.57zM35 28.76c-.6-.3-3.53-1.74-4.08-1.93a.93.93 0 00-1.34.3c-.4.59-1.54 1.93-1.89 2.33a.92.92 0 01-1.29.15 16.32 16.32 0 01-4.8-2.95 17.92 17.92 0 01-3.32-4.12.86.86 0 01.26-1.21c.27-.27.
776-.69.9-1a4.05 4.05 0 00.6-1 1.09 1.09 0 000-1c-.15-.3-1.34-3.22-1.84-4.41s-1-1-1.34-1h-1.14a2.2 2.2 0 00-1.59.74 6.65 6.65 0 00-2.09 5c0 2.93 2.14 5.75 2.44 6.15s4.21 6.4 10.2 9A34.4 34.4 0 0028 34.87a8.22 8.22 0 003.76.24c1.15-.17 3.53-1.44 4-2.83a5 5 0 00.35-2.83 3 3 0 00-1.11-.69z"></path></svg><span class="c-share-text">WhatsApp</span></a></li>'; 78 html_share += "</ul>"; 79 $(".modal-body-share").html(html_share); 80 81 $("#modal_share").modal("show"); 82 }); 83 $("#modal_share").on("hidden.bs.modal", function (e) { 84 $(".modal-body-share").html(""); 85 }); 86 87 // BEGIN: 07 Back To top 88 var backTotop = function () { 89 var $backtotop = $(".back-top"); 90 $(window).on("scroll", function () { 91 console.log("aaaa"); 92 if ($(this).scrollTop() > 500) { 93 $backtotop.addClass("visible"); 94 } else { 95 $backtotop.removeClass("visible"); 96 } 97 }); 98 $backtotop.on("click", function () { 99 $("html, body").animate({ scrollTop: 0 }, 900, "easeInOutCirc"); 100 return false; 101 }); 102 }; 103 // END: Back To top 104 105 var nav = $("header"); 106 107 $(window).scroll(function () { 108 if ($(this).scrollTop() > 100) { 109 nav.addClass("fixed-top"); 110 } else { 111 nav.removeClass("fixed-top"); 112 } 113 }); 114 115 $(".sl-principal").owlCarousel({ 116 loop: true, 117 margin: 10, 118 nav: false, 119 120 autoplay: true, 121 autoplayTimeout: 5000, 122 responsiveClass: true, 123 autoplayHoverPause: true, 124 responsive: { 125 0: { 126 items: 1, 127 }, 128 600: { 129 items: 1, 130 }, 131 1000: { 132 items: 1, 133 }, 134 }, 135 //navText : 136 // ['<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-left" class="svg-inline--fa fa-chevron-left fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path></svg>','<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg>'] 137 }); 138 $(".sl-culinaria").owlCarousel({ 139 loop: true, 140 margin: 10, 141 nav: false, 142 143 autoplay: true, 144 autoplayTimeout: 5000, 145 responsiveClass: true, 146 autoplayHoverPause: true, 147 responsive: { 148 0: { 149 items: 1, 150 }, 151 600: { 152 items: 1, 153 }, 154 1000: { 155 items: 1, 156 }, 157 }, 158 navText: [ 159 '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-left" class="svg-inline--fa fa-chevron-left fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path></svg>', 160 '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg>', 161 ], 162 }); 163 $(".sl-simples").owlCarousel({ 164 loop: true, 165 margin: 10, 166 nav: false, 167 168 autoplay: true, 169 autoplayTimeout: 5000, 170 responsiveClass: true, 171 autoplayHoverPause: true, 172 responsive: { 173 0: { 174 items: 1, 175 }, 176 600: { 177 items: 1, 178 }, 179 1000: { 180 items: 1, 181 }, 182 }, 183 navText: [ 184 '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-left" class="svg-inline--fa fa-chevron-left fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
184<path fill="currentColor" d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path></svg>', 185 '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg>', 186 ], 187 }); 188 189 $(".buscaIcon").click(function () { 190 $(".mobile-busca").toggleClass("d-block"); 191 $("#campo_busca").focus(); 192 }); 193 $(".ads_container") 194 .find("iframe") 195 .each(function () { 196 var ifr_w = $(this).attr("width"); 197 var ifr_h = $(this).attr("height"); 198 var ifr_src = $(this).attr("src"); 199 var content = 200 ' <div class="videoWrapper"><iframe class="embed-responsive-item-re" src="' + 201 ifr_src + 202 '" ></iframe></div>'; 203 $(this).replaceWith(content); 204 }); 205 $(".texto-materia") 206 .find("img") 207 .each(function () { 208 var w = ""; 209 var legenda = $(this).attr("alt"); 210 var width = $(this).attr("width"); 211 var alinhamento = $(this).attr("align"); 212 var path = $(this).attr("src"); 213 var fullpath = "http://" + document.domain + path; 214 var link_ini = 215 '<a href="' + path + '" data-fancybox data-caption="' + legenda + '">'; 216 var link_fim = "</a>"; 217 var conteudo = ""; 218 219 if (width > 300) { 220 w = "col-12 mgt20"; 221 222 conteudo = '<img src="' + path + '" class="img-fluid"/>'; 223 var ahtml = 224 '<div class="row"><div class="box_image ' + 225 w + 226 ' mgb20 text-center " >' + 227 conteudo + 228 '<span class="caption_image">' + 229 legenda + 230 "</span></div></div>"; 231 } else { 232 w = "col-5 "; 233 234 conteudo = 235 link_ini + '<img src="' + path + '" class="img-fluid" />' + link_fim; 236 var ahtml = 237 '<div class="row"><div class="box_image ' + 238 w + 239 ' mgb20 text-center" >' + 240 conteudo + 241 '<span class="caption_image">' + 242 legenda + 243 "</span></div></div>"; 244 } 245 if (alinhamento == "left") { 246 float = " "; 247 } else { 248 float = " "; 249 } 250 251 $(this).replaceWith(ahtml); 252 }); 253 $(".texto-materia") 254 .find("iframe") 255 .each(function () { 256 var ifr_w = $(this).attr("width"); 257 var ifr_h = $(this).attr("height"); 258 var ifr_src = $(this).attr("src"); 259 var content = 260 ' <div class="videoWrapper"><iframe class="embed-responsive-item-re" src="' + 261 ifr_src + 262 '" ></iframe></div>'; 263 $(this).replaceWith(content); 264 }); 265 266 setTimeout(function () { 267 CloseAds(); 268 }, 20000); 269}); 270 271function CloseAds() { 272 $("#modal-float").removeClass("float-open"); 273 $(".modal-backdrop").removeClass("show"); 274 $(".ads_float_container").remove(); 275} 276 277function GetADS(pos, banner, id, w, h) { 278 var flashvars = {}; 279 280 flashvars.dominio = window.location.host.replace("www.", ""); 281 282 var params = {}; 283 params.loop = "true"; 284 params.quality = "best"; 285 params.wmode = "opaque"; 286 params.swliveconnect = "true"; 287 params.allowscriptaccess = "always"; 288 289 var attributes = {}; 290 291 swfobject.embedSWF( 292 "/userfiles/banners/" + banner + "", 293 pos, 294 "" + w + "", 295 "" + h + "", 296 "9.0.0", 297 null, 298 flashvars, 299 params, 300 attributes 301 ); 302} 303 304function watchvideo(uri, w, h) { 305 var vid; 306 var results; 307 308 results = uri.match("[\\?&]v=([^&#]*)"); 309 310 vid = results === null ? url : results[1]; 311 312 document.getElementById("show_watch").innerHTML = 313 '<object width="' + 314 w + 315 '" height="' + 316 h + 317 '"><param name="movie" value="http://www.youtube.com/v/' + 318 vid + 319 '"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' + 320 vid + 321 '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + 322 w + 323 '" height="' + 324 h + 325 '"></embed></object>'; 326} 327 328function AjustarEmbed() { 329 "use strict"; 330 $(".embed-content") 331 .find("iframe") 332 .each(function () { 333 var width = $(this).attr("width"); 334 335 $(this).removeAttr("width"); 336 //$(this).removeAttr("height"); 337 $(this).removeAttr("style"); 338 339 //$(this).attr("style", "position: static; visibility: visible; display: block; transform: rotate(0deg); max-width: 100%; width: 500px; min-width: 220px; margin-top: 10px; margin-bottom: 10px; height:auto;"); 340 341 // $(this).style.height = $(this).contentWindow.document.body.scrollHeight + 'px'; 342 }); 343} 344 345document.addEventListener("DOMContentLoaded", function () { 346 let lazyImages = [].slice.call(document.querySelectorAll("img.lazy")); 347 let active = false;
348 349 const lazyLoad = function () { 350 if (active === false) { 351 active = true; 352 353 setTimeout(function () { 354 lazyImages.forEach(function (lazyImage) { 355 if ( 356 lazyImage.getBoundingClientRect().top <= window.innerHeight && 357 lazyImage.getBoundingClientRect().bottom >= 0 && 358 getComputedStyle(lazyImage).display !== "none" 359 ) { 360 lazyImage.src = lazyImage.dataset.src; 361 lazyImage.srcset = lazyImage.dataset.srcset; 362 lazyImage.classList.remove("lazy"); 363 364 lazyImages = lazyImages.filter(function (image) { 365 return image !== lazyImage; 366 }); 367 368 if (lazyImages.length === 0) { 369 document.removeEventListener("scroll", lazyLoad); 370 window.removeEventListener("resize", lazyLoad); 371 window.removeEventListener("orientationchange", lazyLoad); 372 } 373 } 374 }); 375 376 active = false; 377 }, 200); 378 } 379 }; 380 381 document.addEventListener("scroll", lazyLoad); 382 window.addEventListener("resize", lazyLoad); 383 window.addEventListener("orientationchange", lazyLoad); 384});
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.