function setCorrectSizes(div_of_ad, sizes) { var div_width = div_of_ad.offsetWidth; var new_sizes = new Array(); for (var i = 0; i < sizes.length; i++) { var ad_width = sizes[i][0]; if(div_width >= ad_width) { new_sizes.push(sizes[i]); } } return new_sizes; } function setStoryCommentsAd(ad, position) { var comments_id = document.getElementById("comments-top"); var ad_maincontainer = document.createElement("DIV"); ad_maincontainer.setAttribute("style", "margin:25px auto 25px auto; text-align:center;"); var ad_container = document.createElement("DIV"); ad_container.setAttribute("id", ad["div_gpt"]); var ad_comment = document.createComment(" /10377667/" + ad["zone"] + " "); ad_maincontainer.appendChild(ad_comment); ad_maincontainer.appendChild(ad_container); comments_id.insertBefore(ad_maincontainer, comments_id.childNodes[position]); var sizes = (is_mobile == 1) ? ad["sizes_mobile"] : ad["sizes_desktop"]; googleDefineSlot(ad, sizes); googletag.cmd.push(function() { googletag.display(ad["div_gpt"]); }); } function setAdDynamicPosition(ad, element, position) { var ad_maincontainer = document.createElement("DIV"); ad_maincontainer.setAttribute("style", "margin:25px auto 25px auto; text-align:center;"); var ad_container = document.createElement("DIV"); ad_container.setAttribute("id", ad["div_gpt"]); var ad_comment = document.createComment(" /10377667/" + ad["zone"] + " "); ad_maincontainer.appendChild(ad_comment); ad_maincontainer.appendChild(ad_container); element.insertBefore(ad_maincontainer, element.childNodes[position]); var sizes = (is_mobile == 1) ? ad["sizes_mobile"] : ad["sizes_desktop"]; googleDefineSlot(ad, sizes); googletag.cmd.push(function() { googletag.display(ad["div_gpt"]); }); } function setStoryCommentsFuse(position, fuseId) { var comments_id = document.getElementById("comments-top"); var wrapper = document.createElement("DIV"); if (is_mobile == 1) { wrapper.className = "ads-interlinks-mobile ad-roba-container ad-roba-mobile-container"; } else { wrapper.className = "ads-interlinks"; } var fuse = document.createElement("DIV"); fuse.setAttribute("data-fuse", fuseId); wrapper.appendChild(fuse); comments_id.insertBefore(wrapper, comments_id.childNodes[position]); } function displayStoryCommentsAdGoogle() { var main_comments = document.getElementsByClassName("threader zero"); var comments = document.getElementsByClassName("threader"); if(document.getElementById("unauthenticated-related-links")) { var comment_form = document.querySelector('.commentform:not(.comment_unfold_action)'); var comment_form_unfold = document.querySelector('.comment_unfold_action'); comment_form_unfold.insertAdjacentElement('afterend', comment_form); comment_form.classList.add("white"); if (is_mobile == 0) { if(comments.length > 4) { setStoryCommentsAd(MEGA_2, 7); } } else { let calc_child = document.getElementById("newswrap").childNodes.length; setAdDynamicPosition(MEGA_2, document.querySelector("#newswrap"), calc_child.length - 1 ); if(comments.length > 4) { setStoryCommentsAd(MEGA_1, 7); } if(comments.length > 14){ setStoryCommentsAd(MEGA_3, 17); } } return; } if (is_mobile == 0) { if(comments.length > 2) { setStoryCommentsFuse(3, "incontent_1"); } if(comments.length > 4) { setStoryCommentsFuse(6, "incontent_2"); } if(comments.length > 4) { setStoryCommentsAd(MEGA_2, 7); } if(comments.length > 8) { setStoryCommentsFuse(9, "incontent_3"); } if(comments.length > 10) { setStoryCommentsFuse(11, "incontent_4"); } } else { if(comments.length > 3) { setStoryCommentsFuse(4, "incontent_1"); } if(comments.length > 7) { setStoryCommentsFuse(8, "incontent_2"); } if(comments.length > 11) { setStoryCommentsFuse(12, "incontent_3"); } if(comments.length > 14){ setStoryCommentsAd(MEGA_3, 17); } } } googletag.cmd.push(function () { setAdGoogle(ROBA_0); setAdGoogle(ROBA_1); setAdGoogle(ROBA_2); setDynamicRoba3(ROBA_3); setDynamicRoba4(ROBA_4); setAdGoogle(MEGA_1); setAdGoogle(MEGA_2); setAdGoogle(MEGA_3); setAdGoogle(MEGA_4); if(document.getElementById("unauthenticated-related-links")) googletag.pubads().setTargeting('related', 'related_news_story_v2'); googletag.pubads().enableSingleRequest(); googletag.pubads().disableInitialLoad(); });
Por cierto, muy lamentable lo de esa RUI que se prepara con el objetivo declarado de ganar aprovechándose del previsible boicot de los unionistas. No lo digo yo. Vergonzoso lo que se puede oir a partir del 1:30:50 de este vídeo www.youtube.com/watch?v=ANr3-3PcgoQ
- "No hemos de decir nunca que necesitamos un 50% de participación. ¡No hemos de decirlo nunca!" (...tras recordar que el 9N no llegaron ni a 2 millones de #SiSi....)
Muy revelador también lo "vinculante" que es este referendum:
- "Es un referendum vinculante. Si ganamos el referendum, declaramos la independiencia y se ha acabado. Y si lo perdemos, nos levantaremos como han hecho los escoceses y volveremos a probar" (a partir de 1:28:50).
¿Vinculante? ¡Solo si ganamos!
Sé perfectamente lo que ocurre en Cataluña. Y para muestra estas dos perlas.