1 2 3// logo scroll 4 5$(".menu-btn").click(function(){ 6 event.stopPropagation(); 7 event.preventDefault(); 8 $("#menu").toggleClass("active"); 9}); 10 11 12 13 14$(window).scroll(function() { 15 var scroll = $(window).scrollTop(); 16 let width = window.screen.width; 17 if (width >= 992) { 18 if (scroll >= 210) { 19 $(".navbar-brand").addClass("logo-in"); 20 $(".navbar-nav ").addClass("scroll-in"); 21 $(".smenu-scroll").removeClass("d-none"); 22 $(".smenu-scroll").addClass("d-block"); 23 } else { 24 $(".navbar-nav ").removeClass("scroll-in"); 25 $(".navbar-brand").removeClass("logo-in"); 26 $(".navbar-brand").addClass("logo-out"); 27 $(".smenu-scroll").removeClass("d-block"); 28 $(".smenu-scroll").addClass("d-none"); 29 } 30 } 31}); 32 33// ads 34 35// function ads() { 36// var ttt_window_width = Math.max(document.documentElement.clientWidth, window.innerWidth || 0) 37// if (ttt_window_width <= 600) { 38 39// var ads = [ 40// '<section class="ad-mob text-center mx-auto py-3 d-block d-md-none ad-height"><ned-ad ad-name="ad-mpu2" ad-jacent></ned-ad></section>', 41// '<section class="ad-mob text-center mx-auto py-3 d-block d-md-none"><ned-ad ad-name="ad-mpu3" ad-jacent></ned-ad></section>', 42// '<section class="ad-mob text-center mx-auto py-3 d-block d-md-none"><ned-ad ad-name="ad-mpu4" ad-jacent></ned-ad></section>', 43// '<section class="ad-mob text-center mx-auto py-3 d-block d-md-none"><ned-ad ad-name="ad-mpu5" ad-jacent></ned-ad></section>']; 44 45// var div = jQuery('.reading-single'); 46// var paragraphs = jQuery('p:nth-child(3n)', div); 47// var n = 0; 48// paragraphs.each(function () { 49// var newAd = jQuery(ads[n]); 50// newAd.insertAfter(this); 51// n++; 52// }); 53// } 54// } 55 56// play desk 57 58// var init_play = function(d){ mediaTopEmbed.API.play();} 59 60// audios on demand 61 62// var init = function(d){ 63// var dataId = d.getAttribute("data-audio"); 64// var pg = { 65// id_cuenta: "rockpopchile", 66// media_type: "audio", 67// id_player: "290", 68// id_media: dataId, 69// id_container: "rockandpop_home_pp", 70// topPlayer: { media: { autoplay: !0, premuted: !1 }, ad: { enabled: true, container: "publi-preroll" } }, 71// }; 72 73// var mediaTopEmbed_aod = new window.psd.media.TopEmbed(pg); 74 75// if ($("#program-home-aod").hasClass("play-last-show")) { 76// setTimeout(function() { 77// mediaTopEmbed_aod.API.play(); 78// }, 2000); 79// } 80 81// if ($("#c-single").hasClass("is-play")) { 82// $('.c-pp.is-play').toggleClass('is-play'); 83// $('.c-on').toggleClass('waves-aod'); 84// $('.c-pp').toggleClass('is-pause'); 85// setTimeout(function() { 86// mediaTopEmbed_aod.API.play(); 87 88// }, 2000); 89// } 90 91// else if ($("#c-single").hasClass("is-pause")) { 92// $('.c-pp.is-pause').toggleClass('is-pause'); 93// $('.c-on').toggleClass('waves-aod'); 94// $('.c-pp').toggleClass('is-play'); 95// setTimeout(function() { 96// mediaTopEmbed_aod.API.pause(); 97// }, 2000); 98// } 99 100// }; 101 102 103// var el = document.getElementById("rockandpop_home_pp_TopPlayer_divBtnIrDirecto"); 104// if (el.addEventListener) { 105// el.addEventListener("click", function() { 106// mediaTopEmbed_aod.API.play(); 107// console.log('back radio live'); 108// }, false); 109// } 110 111// $(document).on("click","#rockandpop_home_pp_TopPlayer_divBtnIrDirecto", function (event) { 112// mediaTopEmbed_aod.API.play(); 113// console.log('back radio live'); 114// }); 115 116// related post 117 118function related() { 119 jQuery(".related-rp-single").each(function () { 120 121 var id = jQuery(this).data("single"); 122 var image = jQuery(this).data("image"); 123 var titulo = jQuery(this).data("title"); 124 var desc = jQuery(this).data("desc"); 125 var url = jQuery(this).data("url"); 126 127 jQuery(this).html('<div id="related-rp-single-wrap" class="my-2"> <div class="content-related"> <div class="row"> <div class="logo-rp-related-box"><span class="neue fs-5 color-0 text-uppercase fst-italic">Leer también</span></div> <div class="col-md-3 mt-3 d-none d-md-block"> <a href="'+url+'"><img src="'+image+'" class="img-fluid"></a> </div><div class="col-md-9 mt-md-3 mt-0"><a href="'+url+'" target="_blank"> <h3>'+titulo+'</h3> <p>'+desc+'</p></a></div></div></div><img class="isotipo" src="/wp-content/themes/britney/img/rockandpop-bw.svg" alt="Rockandpop"></div>'); 128 //console.log('id:'+id); 129 }) 130} 131 132jQuery(document).ready(function(){ 133 related(); 134}); 135 136!function(){const e=document.createElement("script");e.src="https://cl.prisa.media/labs/rp/utils.js?v=0.5",e.async=!0,document.body.appendChild(e)}(); 137 138 139// reading single 140 141var initArticles = function() { 142 var $button = jQuery('.js-remove-article-height'); 143 144 $button.on('click', function(e) { 145 e.preventDefault(); 146 147 var $this = jQuery(this); 148 var $parent = $this.parents('.single-content'); 149 var $wrapper = $parent.find('.reading-single'); 150 var $modal = $parent.find('.reading-button'); 151 152 $wrapper.addClass('is-full-visible'); 153 $modal.remove(); 154 }); 155}; 156 157initArticles(); 158 159 160function wpSearch(e) { 161 return wpSearchGenenal(e, "search"); 162} 163 164function wpSearchMobile(e) { 165 return wpSearchGenenal(e, "search_h"); 166} 167 168function wpSearchGenenal(e, id) { 169 e.preventDefault(); 170 let formValue = document.getElementById(id).value; 171 document.getElementById("search-link").href = location.origin+"?s="+formValue; 172 document.getElementById("search-link").click(); 173 174 return false;
175}
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.