
var countElement=1;$.fn.isInViewport=function(){var elementTop=$(this).offset().top;var elementBottom=elementTop+$(this).outerHeight();var viewportTop=$(window).scrollTop();var viewportBottom=viewportTop+$(window).height();return elementBottom>viewportTop&&elementTop<viewportBottom;};$(window).on("resize scroll",function(){console.log(returnCheckProject);$(`#article_${this.returnCheckProject.controllArticle[config.id_modulo].article} .section_`).each(function(event){var id=$(this).attr("id");if($(this).isInViewport()){console.log(id);}});});function section(params){$(`#${params.id}`).removeClass("section_");sectionAction(params);renderRemoveClass(params);}
function renderRemoveClass(params){setInterval(()=>{$(`.${params.section} ${params.class != undefined ? params.class : ".hide"}`).removeClass();},500);}
function renderModal(url){const img=`./src/img/modulos/modulo${config.id_modulo}/${url}`;Swal.fire({customClass:{content:"swal3-bg"},imageUrl:img,width:"100%",grow:"fullscreen",showCloseButton:true,showConfirmButton:false});}
function renderVideos(objeto){const url=objeto.url;const conteudo=`<video 
                        class="w-100" 
                        poster="./src/img/poster.jpg"
                        preload="none"
                        controls>
                        <source src="./src/videos/${url}" type="video/mp4">
                        <source src="movie.ogg" type="video/ogg">
                    </video>`;$(`.${objeto.class}`).html(conteudo);}