![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/clinic.corals.io/public/assets/front/js/ |
window.scwProgressPlugin = window.scwProgressPlugin || {}; window.SEMICOLON_progressInit = function ($progressEl) { $progressEl = $progressEl.filter(':not(.customjs)'); if ($progressEl.length < 1) { return true; } $progressEl.each(function () { let element = $(this), elBar = element.parent('li'), elValue = elBar.attr('data-percent'); if (element.parent('.kv-upload-progress').length > 0 || element.children('.progress-bar').length > 0) { return true; } let observer = new IntersectionObserver(function (entries, observer) { entries.forEach(function (entry) { if (entry.isIntersecting) { if (!elBar.hasClass('skills-animated')) { SEMICOLON.widget.counter({ el: element.find('.counter-instant'), }); elBar.find('.progress'). css({ width: elValue + '%' }). addClass('skills-animated'); } observer.unobserve(entry.target); } }); }, { rootMargin: '-50px' }); observer.observe(elBar[0]); }); };