#Noticia #Sport #Alimentacion #Deportiva

22 de septiembre de 2018

Un verdadero hombre sabe conquistar a través de los detalles.


© REPRODUCCION RESERVADA

$(".current-block-title").text($(".block").length > 0 ? $(".blocks-container .block").first().attr("data-title") : ""); $(".count-block-index").text($(".blocks-container .block").length);

var $articlesCarousel = $(".owl-carousel").owlCarousel({ items: 1, margin: 10, autoHeight: true, dots: false }); $(".article-index").on("click", "a", function (event) {

event.preventDefault(); $this = $(this); $articlesCarousel.trigger("to.owl.carousel", [$this.parent().data("index")]);

}); $(".block-title").on("click", ".fa-angle-left", function (event) { event.preventDefault(); $articlesCarousel.trigger('prev.owl.carousel'); }); $(".block-title").on("click", ".fa-angle-right", function (event) { event.preventDefault(); $articlesCarousel.trigger('next.owl.carousel'); }); var $titleContainer = $(".current-block-title"); var $indexContainer = $(".current-block-index"); $articlesCarousel.on("changed.owl.carousel", function (event) { var current = event.item.index; var $block = $(event.target).find(".block").eq(current); if ($block.length === 0) { //TODO perche'? scatta due volte onchange e la seconda non trova il block return; } var title = $block.data("title"); var index = $block.data("index");

// Attivo titolo relativo nell'index var $indexTitles = $(".article-index").find("li"); $indexTitles.removeClass("active"); $indexTitles.eq(index).addClass("active");

// Inserisco titolo e l'index nel titolo del container $titleContainer.text(title); $indexContainer.text(index + 1);

refreshBannerAndTrack(document.location.href.match(/(^[^#]*)/)[0] + $(this).attr("href")); }); $("a.ancora").click(function (event) { //analytics refreshBannerAndTrack(document.location.href.match(/(^[^#]*)/)[0] + $(this).attr("href")); //ga('send', 'pageview', document.location.href.match(/(^[^#]*)/)[0] + $(this).attr("href")); });

$(document).on("swapGallery", function () { $(".owl-stage-outer.owl-height").css("height", $(".owl-item.active").height() + "px"); }); }); (function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "http://connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v2.3&appId=281261625345011"; // js.src = "//connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v3.0&appId=597761716928567&autoLogAppEvents=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); .

Noticia Sport Alimentacion Deportiva

Noticia Sport

Deja un comentario

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.