$(function () { setInterval(function () { $('.xNewList').each(function () { let $this = $(this); let Tlink = $this.find('a').attr('href'); let IFE = $this.find('.p_articles').length; if (IFE < 1) { $this.find('article.listSumray').load(`${Tlink} .p_articles`) } $this.find('a').attr('href', 'javascript:void(0);'); }) }, 800); }); $(function () { ScrollReveal().reveal('div#content_box-1571708277737-0 > div', { delay: 200, distance: '100px', duration: 1500, easing: 'ease', opacity: 0, origin: 'bottom', rotate: { x: 0, y: 0, z: 0, }, //scale: 0.5, interval: 200, reset: false, }); ScrollReveal().reveal('div#content_box-1571710282859-0 > div', { delay: 200, distance: '100px', duration: 1500, easing: 'ease', opacity: 0, origin: 'bottom', rotate: { x: 0, y: 0, z: 0, }, //scale: 0.5, interval: 200, reset: false, }); ScrollReveal().reveal('div#content_box-1571712175960-0 > div ,div#content_box-1571712626052-0 > div', { delay: 200, distance: '100px', duration: 1500, easing: 'ease', opacity: 0, origin: 'bottom', rotate: { x: 0, y: 0, z: 0, }, //scale: 0.5, interval: 200, reset: false, }); ScrollReveal().reveal('div#content_box-1571713202529-0 > div', { delay: 200, distance: '100px', duration: 1500, easing: 'ease', opacity: 0, origin: 'bottom', rotate: { x: 0, y: 0, z: 0, }, //scale: 0.5, interval: 200, reset: false, }); $(".NavRRES > div").click(function () { let $this = $(this) let IND = $this.index(); console.log(IND) if (IND == 0) { ScorllTO($("#w_grid-1655102720154")) } else if (IND == 1) { ScorllTO($("#w_grid-1655102720214")) } else if (IND == 2) { ScorllTO($("#w_grid-1655102720224")) } else if (IND == 3) { ScorllTO($("#w_grid-1595466339543000")) } else if (IND == 4) { ScorllTO($("#w_grid-1612580757193000")) } else if (IND == 5) { ScorllTO($("#w_grid-1571963043275000")) } else if (IND > 5) { let rLink = $this.find("a").attr('href'); location.href = rLink; } }) $(".NavRRES .nav_I01 a").click(function (e) { e.preventDefault(); }) function ScorllTO(elm) { $('html, body').animate({ scrollTop: elm.offset().top - 90 }, 800); } });