Home ENTRETENIMENTO Aviadores e Guardiões apresentam talentos indígenas em STEM na Conferência Nacional da...

Aviadores e Guardiões apresentam talentos indígenas em STEM na Conferência Nacional da AISES

4
0
Aviadores e Guardiões apresentam talentos indígenas em STEM na Conferência Nacional da AISES



‘; } else { caption += $(this).find(‘figcaption’).html() + getDetailsURL($(this).parent()) + getDownloadURL($(this).parent()) + showFBShare(); } } else { if (isMobile()) { caption += ‘

‘; } else { legenda += ” + ‘

‘ + $(this).find(‘figcaption p’).html() + ‘

‘ + getDetailsURL($(this).parent()) + getDownloadURL($(this).parent()) + showFBShare(); } } retornar legenda; }, afterLoad: function (instance, current) { //visualização inicial da área de trabalho $(“.fancybox-caption__body”).addClass(“a2a_kit”).addClass(“a2a_default_style”); if (isMobile()) $(“.fancybox-caption__body”).addClass(“mobile”); }, afterShow: function (instância, atual) { var $currentSlide = $(“.fancybox-slide.fancybox-slide–current”).parent().parent(); if (isMobile()) $currentSlide.find(“.fancy-detail-link”).on(“touchstart”, function () { captionToggle(); }); }, afterClose: função () { } })); deixe debounceTimer; $(window).on(“resize”, function (event) { if (isMobile()) return; if ($(“.af3-caption-body”).length > 0 && $(“.af3-caption- corpo”).css(“altura”) != indefinido) { event.stopImmediatePropagation(); $(“.fancybox-caption__body”).removeClass(“half”); isDesktopInit = false; captionToggle(); debounceTimer = setTimeout( função () { clearTimeout(debounceTimer = null; recalculateImageSize() }, 1000); function recalculateImageSize() { // A caixa extravagante calcula mal devido às condições de corrida com o novo layout var origImgWth = $(“.fancybox-image”).prop(“naturalWidth”); var origImgHgt = $(“.fancybox-image”).prop(“naturalHeight”); var winWth = $(janela).innerWidth(); var winHgt = $(window).innerHeight() var proporção = Math.min(winWth / origImgWth, winHgt / origImgHgt); var newImgWth = (origImgWth * proporção); var newImgHgt = (origImgHgt * proporção); var dstTop = Math.floor((winHgt – newImgHgt)) / 2; var dstLeft = Math.floor((winWth – newImgWth)) / 2; $(“.fancybox-content”).removeAttr(“estilo”); $(“.fancybox-content”).css(“largura”, newImgWth + “px”); $(“.fancybox-content”).css(“altura”, newImgHgt + “px”); $(“.fancybox-content”).css(“transform”, “translate(” + dstLeft + “px, ” + dstTop + “px)”); } function captionToggle() { if ($(“.fancybox-caption__body”).hasClass(“af3-caption-body”)) { $(“.af3-caption-body”).stop(true, false).animate ({ height: “0vh” }, 800, function () { // Animação completa. closeDetails(); }); $(“.fancy-photo-detail-link”).html($(“.fancy-photo-detail-link”).html().replace(“CLOSE”, “SHOW”)); } else { $(“.fancybox-caption__body”).addClass(“af3-caption-body”); $(“.af3-caption-body”).addClass(detailSize); $(“.af3-caption-body”).animate({ altura: displayhgt }, 800); $(“.fancybox-caption”).addClass(“af3-caption-bg”); $(“.base-caption-info”).addClass(“altura total”); $(“.fancy-photo-detail-link”).addClass(“foto-detalhe-gradiente”); $(“.fancybox-button”).css(“display”, “none”); $(“.fancy-photo-detail-link”).html($(“.fancy-photo-detail-link”).html().replace(“SHOW”, “CLOSE”)); $(“.fancybox-caption__body”).prepend(prependClosing()); $(“.closing-box, .closingx”).on(“touchstart”, function () { captionToggle(); }); } } function getDetailsURL(fbObj) { return ‘DETALHES‘; } function getDownloadURL(fbObj) { return ‘DOWNLOAD‘; } function showFBShare() { return ‘‘; } function closeDetails() { $(“.af3-caption-body”).removeClass(detailSize); $(“.fancybox-caption__body”).removeClass(“af3-caption-body”); $(“.fancybox-caption”).removeClass(“af3-caption-bg”); $(“.base-caption-info”).removeClass(“altura total”); $(“.fancy-photo-detail-link”).removeClass(“foto-detalhe-gradiente”); $(“.fancybox-button”).css(“exibir”, “bloquear”); if (detailSize === “metade”) { detalheSize = “completo”; displayhgt = “90vh”; $(“.fancybox-caption”).removeClass(“desktop-init”); } } function prependClosing() { return ” } });



Source link