1function changeToVideo(loadDivArtigoId, elem, index) { 2 $(`#iol-player-${loadDivArtigoId}`).show(); 3 $(`#iol-player-${loadDivArtigoId}`).iolplayer("stop"); 4 $(`#iol-cover-${loadDivArtigoId}`).hide(); 5 $(`#loadDivArtigo-${loadDivArtigoId} .galeria_itemArtigo`).hide(); 6 7 updateVirtualPageView("Video", $(elem).data("id"), $(elem).data("title")); 8 $(`#iol-player-${loadDivArtigoId}`).iolplayer("change", index); 9 smoothlyScroll(`#loadDivArtigo-${loadDivArtigoId}`); 10 $(`#iol-player-${loadDivArtigoId}`).iolplayer("play"); 11 12} 13 14// As galerias sao pre-renderizadas uma unica vez (IOLGallery nao suporta ser 15// reinstanciada no mesmo container). Trocar de galeria e so mostrar a div certa 16// e esconder as demais, nunca reinstanciar. 17function changeToGallery(loadDivArtigoId, galleryId, title) { 18 $(`#iol-cover-${loadDivArtigoId}`).hide(); 19 20 $(`#iol-player-${loadDivArtigoId}`).iolplayer("stop"); 21 $(`#iol-player-${loadDivArtigoId}`).hide(); 22 23 $(`#loadDivArtigo-${loadDivArtigoId} .galeria_itemArtigo`).hide(); 24 $(`#iol-gallery-${loadDivArtigoId}-${galleryId}`).show(); 25 26 updateVirtualPageView("Galeria", galleryId, title); 27 smoothlyScroll(`#loadDivArtigo-${loadDivArtigoId}`); 28} 29 30function changeToCover(loadDivArtigoId) { 31 $(`#loadDivArtigo-${loadDivArtigoId} .galeria_itemArtigo`).hide(); 32 $(`#iol-cover-${loadDivArtigoId}`).fadeIn(); 33 34 $(`#iol-player-${loadDivArtigoId}`).iolplayer("stop"); 35 $(`#iol-player-${loadDivArtigoId}`).hide(); 36 37 smoothlyScroll(`#loadDivArtigo-${loadDivArtigoId}`); 38 39 updateVirtualPageView("Capa", "", ""); 40} 41 42 43 44function smoothlyScroll(target) { 45 $('html, body').animate({ 46 scrollTop: $(target).offset().top - 80 47 }, 1000); 48} 49 50 51function updateVirtualPageView(contentType, id, title) { 52 if (window.iol_analytics) { 53 var pageTitle = document 54 .querySelector("meta[property='iol:content_title']") 55 .getAttribute("content"); 56 57 var adunit = document 58 .querySelector("meta[property='iol:adunit']") 59 .getAttribute("content"); 60 61 var iolAnalytics = window.iol_analytics; 62 iolAnalytics.updateVirtualPageView( 63 location.pathname, 64 iol_analytics.createSimpleDataLayerObject( 65 contentType, 66 title, 67 id, 68 "WEB", 69 adunit, 70 "destaque multimedia", 71 false 72 ) 73 ); 74 75 } 76} 77
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.