PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
bdthemes-element-pack
/
assets
/
vendor
/
js
!function(t){"use strict";t.epNewsTicker=function(i,e){var s={effect:"fade",direction:"ltr",autoPlay:!1,interval:4e3,scrollSpeed:2,pauseOnHover:!1,position:"auto",zIndex:99999},n=this;n.settings={},n._element=t(i),n._label=n._element.children(".bdt-news-ticker-label"),n._news=n._element.children(".bdt-news-ticker-content"),n._ul=n._news.children("ul"),n._li=n._ul.children("li"),n._controls=n._element.children(".bdt-news-ticker-controls"),n._prev=n._controls.find(".bdt-news-ticker-prev").parent(),n._action=n._controls.find(".bdt-news-ticker-action").parent(),n._next=n._controls.find(".bdt-news-ticker-next").parent(),n._pause=!1,n._controlsIsActive=!0,n._totalNews=n._ul.children("li").length,n._activeNews=0,n._interval=!1,n._frameId=null;var l=function(){var t=parseFloat(n._ul.css("marginLeft"));t-=n.settings.scrollSpeed/2,n._ul.css({marginLeft:t}),t<=-n._ul.find("li:first-child").outerWidth()&&(n._ul.find("li:first-child").insertAfter(n._ul.find("li:last-child")),n._ul.css({marginLeft:0})),!1===n._pause&&(n._frameId=requestAnimationFrame(l),window.requestAnimationFrame&&n._frameId||setTimeout(l,16))},a=function(){var t=parseFloat(n._ul.css("marginRight"));t-=n.settings.scrollSpeed/2,n._ul.css({marginRight:t}),t<=-n._ul.find("li:first-child").outerWidth()&&(n._ul.find("li:first-child").insertAfter(n._ul.find("li:last-child")),n._ul.css({marginRight:0})),!1===n._pause&&(n._frameId=requestAnimationFrame(a)),window.requestAnimationFrame&&n._frameId||setTimeout(a,16)},c=function(){"rtl"===n.settings.direction?n._ul.stop().animate({marginRight:-n._ul.find("li:first-child").outerWidth()},300,(function(){n._ul.find("li:first-child").insertAfter(n._ul.find("li:last-child")),n._ul.css({marginRight:0}),n._controlsIsActive=!0})):n._ul.stop().animate({marginLeft:-n._ul.find("li:first-child").outerWidth()},300,(function(){n._ul.find("li:first-child").insertAfter(n._ul.find("li:last-child")),n._ul.css({marginLeft:0}),n._controlsIsActive=!0}))},o=function(){"rtl"===n.settings.direction?(parseInt(n._ul.css("marginRight"),10)>=0&&(n._ul.css({"margin-right":-n._ul.find("li:last-child").outerWidth()}),n._ul.find("li:last-child").insertBefore(n._ul.find("li:first-child"))),n._ul.stop().animate({marginRight:0},300,(function(){n._controlsIsActive=!0}))):(parseInt(n._ul.css("marginLeft"),10)>=0&&(n._ul.css({"margin-left":-n._ul.find("li:last-child").outerWidth()}),n._ul.find("li:last-child").insertBefore(n._ul.find("li:first-child"))),n._ul.stop().animate({marginLeft:0},300,(function(){n._controlsIsActive=!0})))},r=function(){switch(n._controlsIsActive=!0,n.settings.effect){case"typography":n._ul.find("li").hide(),n._ul.find("li").eq(n._activeNews).width(30).show(),n._ul.find("li").eq(n._activeNews).animate({width:"100%",opacity:1},1500);break;case"fade":n._ul.find("li").hide(),n._ul.find("li").eq(n._activeNews).fadeIn();break;case"slide-down":n._totalNews<=1?n._ul.find("li").animate({top:30,opacity:0},300,(function(){t(this).css({top:-30,opacity:0,display:"block"}),t(this).animate({top:0,opacity:1},300)})):(n._ul.find("li:visible").animate({top:30,opacity:0},300,(function(){t(this).hide()})),n._ul.find("li").eq(n._activeNews).css({top:-30,opacity:0}).show(),n._ul.find("li").eq(n._activeNews).animate({top:0,opacity:1},300));break;case"slide-up":n._totalNews<=1?n._ul.find("li").animate({top:-30,opacity:0},300,(function(){t(this).css({top:30,opacity:0,display:"block"}),t(this).animate({top:0,opacity:1},300)})):(n._ul.find("li:visible").animate({top:-30,opacity:0},300,(function(){t(this).hide()})),n._ul.find("li").eq(n._activeNews).css({top:30,opacity:0}).show(),n._ul.find("li").eq(n._activeNews).animate({top:0,opacity:1},300));break;case"slide-right":n._totalNews<=1?n._ul.find("li").animate({left:"50%",opacity:0},300,(function(){t(this).css({left:-50,opacity:0,display:"block"}),t(this).animate({left:0,opacity:1},300)})):(n._ul.find("li:visible").animate({left:"50%",opacity:0},300,(function(){t(this).hide()})),n._ul.find("li").eq(n._activeNews).css({left:-50,opacity:0}).show(),n._ul.find("li").eq(n._activeNews).animate({left:0,opacity:1},300));break;case"slide-left":n._totalNews<=1?n._ul.find("li").animate({left:"-50%",opacity:0},300,(function(){t(this).css({left:"50%",opacity:0,display:"block"}),t(this).animate({left:0,opacity:1},300)})):(n._ul.find("li:visible").animate({left:"-50%",opacity:0},300,(function(){t(this).hide()})),n._ul.find("li").eq(n._activeNews).css({left:"50%",opacity:0}).show(),n._ul.find("li").eq(n._activeNews).animate({left:0,opacity:1},300));break;default:n._ul.find("li").hide(),n._ul.find("li").eq(n._activeNews).show()}},d=function(){if(n._pause=!1,n.settings.autoPlay)switch(n.settings.effect){case"scroll":"rtl"===n.settings.direction?n._ul.width()>n._news.width()?a():n._ul.css({marginRight:0}):n._ul.width()>n._news.width()?l():n._ul.css({marginLeft:0});break;default:n.pause(),n._interval=setInterval((function(){n.next()}),n.settings.interval)}},f=function(){n._element.width()<480?(n._label.hide(),"rtl"==n.settings.direction?n._news.css({right:0}):n._news.css({left:0})):(n._label.show(),"rtl"==n.settings.direction?n._news.css({right:n._label.outerWidth()}):n._news.css({left:n._label.outerWidth()}))};n.init=function(){n.settings=t.extend({},s,e),n._element.addClass("bdt-effect-"+n.settings.effect+" bdt-direction-"+n.settings.direction),function(){if(n._label.length>0&&("rtl"==n.settings.direction?n._news.css({right:n._label.outerWidth()}):n._news.css({left:n._label.outerWidth()})),n._controls.length>0){var i=n._controls.outerWidth();"rtl"==n.settings.direction?n._news.css({left:i}):n._news.css({right:i})}if("scroll"===n.settings.effect){var e=0;n._li.each((function(){e+=t(this).outerWidth()})),e+=50,n._ul.css({width:e})}}(),"scroll"!=n.settings.effect&&r(),d(),n.settings.autoPlay?n._action.find("span").removeClass("bdt-news-ticker-play").addClass("bdt-news-ticker-pause"):n._action.find("span").removeClass("bdt-news-ticker-pause").addClass("bdt-news-ticker-play"),n._element.on("mouseleave",(function(i){var e=t(document.elementFromPoint(i.clientX,i.clientY)).parents(".bdt-breaking-news")[0];t(this)[0]!==e&&(!0===n.settings.pauseOnHover?!0===n.settings.autoPlay&&n.play():!0===n.settings.autoPlay&&!0===n._pause&&n.play())})),n._element.on("mouseenter",(function(){!0===n.settings.pauseOnHover&&n.pause()})),n._next.on("click",(function(){n._controlsIsActive&&(n._controlsIsActive=!1,n.pause(),n.next())})),n._prev.on("click",(function(){n._controlsIsActive&&(n._controlsIsActive=!1,n.pause(),n.prev())})),n._action.on("click",(function(){n._controlsIsActive&&(n._action.find("span").hasClass("bdt-news-ticker-pause")?(n._action.find("span").removeClass("bdt-news-ticker-pause").addClass("bdt-news-ticker-play"),n.stop()):(n.settings.autoPlay=!0,n._action.find("span").removeClass("bdt-news-ticker-play").addClass("bdt-news-ticker-pause")))})),f(),t(window).on("resize",(function(){f(),n.pause(),n.play()}))},n.pause=function(){n._pause=!0,clearInterval(n._interval),cancelAnimationFrame(n._frameId)},n.stop=function(){n._pause=!0,n.settings.autoPlay=!1},n.play=function(){d()},n.next=function(){!function(){switch(n.settings.effect){case"scroll":c();break;default:n._activeNews++,n._activeNews>=n._totalNews&&(n._activeNews=0),r()}}()},n.prev=function(){!function(){switch(n.settings.effect){case"scroll":o();break;default:n._activeNews--,n._activeNews<0&&(n._activeNews=n._totalNews-1),r()}}()},n.init()},t.fn.epNewsTicker=function(i){return this.each((function(){if(null==t(this).data("epNewsTicker")){var e=new t.epNewsTicker(this,i);t(this).data("epNewsTicker",e)}}))}}(jQuery);
[-] SplitText.js
[edit]
[-] awesomeCloud.min.js
[edit]
[-] prism.min.js
[edit]
[-] jquery.progressScroll.js
[edit]
[-] jquery.mThumbnailScroller.min.js
[edit]
[-] parallax.js
[edit]
[-] chart.min.js
[edit]
[-] typed.min.js
[edit]
[-] jquery.appear.min.js
[edit]
[-] lottie.d.ts
[edit]
[-] jquery.imagezoom.js
[edit]
[-] jquery.tagcanvas.min.js
[edit]
[-] prism.js
[edit]
[-] metisMenu.js
[edit]
[-] lottie.js
[edit]
[-] jquery.honeycombs.js
[edit]
[-] sidetabs.js
[edit]
[-] timeline.min.js
[edit]
[-] datatables.min.js
[edit]
[-] datatables.uikit.js
[edit]
[-] jquery.appear.js
[edit]
[+]
..
[-] popper.js
[edit]
[-] jquery.jplayer.js
[edit]
[-] image-compare-viewer.min.js
[edit]
[-] calendly.js
[edit]
[-] tilt.jquery.js
[edit]
[-] particles.min.js
[edit]
[-] jquery.progressHorizontal.min.js
[edit]
[-] timeline.js
[edit]
[-] jQuery.circleMenu.min.js
[edit]
[-] tippy.all.min.js
[edit]
[-] calendly.min.js
[edit]
[-] jquery.jplayer.min.js
[edit]
[-] jquery.newsTicker.min.js
[edit]
[-] darkmode.min.js
[edit]
[-] goodshare.min.js
[edit]
[-] SplitText.min.js
[edit]
[-] jquery.newsTicker.js
[edit]
[-] jquery.flatWeatherPlugin.min.js
[edit]
[-] rvslider.min.js
[edit]
[-] gmap.min.js
[edit]
[-] jquery.jclock.min.js
[edit]
[-] chart.js
[edit]
[-] jquery.mousewheel.js
[edit]
[-] vanilla-tilt.js
[edit]
[-] search.min.js
[edit]
[-] jquery.justifiedGallery.min.js
[edit]
[-] pageable.min.js
[edit]
[-] particles.js
[edit]
[-] jquery.imagezoom.min.js
[edit]
[-] jquery.mousewheel.min.js
[edit]
[-] gmap.js
[edit]
[-] news-ticker.min.js
[edit]
[-] datatables.uikit.min.js
[edit]
[-] tippy.all.js
[edit]
[-] gsap.js
[edit]
[-] table-of-content.min.js
[edit]
[-] gsap.min.js
[edit]
[-] metisMenu.min.js
[edit]
[-] wavify.min.js
[edit]
[-] jquery.progressScroll.min.js
[edit]
[-] morphext.min.js
[edit]
[-] darkmode.js
[edit]
[-] gridtab.min.js
[edit]
[-] morphext.js
[edit]
[-] image-compare-viewer.js
[edit]
[-] parallax.min.js
[edit]
[-] search.js
[edit]
[-] sidetabs.min.js
[edit]
[-] recliner.js
[edit]
[-] countUp.js
[edit]
[-] clipboard.js
[edit]
[-] jquery-asPieProgress.min.js
[edit]
[-] wavify.js
[edit]
[-] recliner.min.js
[edit]
[-] jquery.jclock.js
[edit]
[-] pageable.js
[edit]
[-] jquery.tagcanvas.js
[edit]
[-] gridtab.js
[edit]
[-] jquery-qrcode.js
[edit]
[-] countUp.min.js
[edit]
[-] awesomeCloud.js
[edit]
[-] jquery-asPieProgress.js
[edit]
[-] lottie.min.js
[edit]
[-] moment-timezone-with-data.min.js
[edit]
[-] jquery.justifiedGallery.js
[edit]
[-] datatables.js
[edit]
[-] rvslider.js
[edit]
[-] jquery.flatWeatherPlugin.js
[edit]
[-] moment.min.js
[edit]
[-] jquery.honeycombs.min.js
[edit]
[-] table-of-content.js
[edit]
[-] goodshare.js
[edit]
[-] leaflet.js
[edit]
[-] cookieconsent.min.js
[edit]
[-] moment-timezone-with-data.js
[edit]
[-] jQuery.circleMenu.js
[edit]
[-] leaflet.min.js
[edit]
[-] vanilla-tilt.min.js
[edit]
[-] floating-video.min.js
[edit]
[-] typed.js
[edit]
[-] popper.min.js
[edit]
[-] spritespin.js
[edit]
[-] jquery.progressHorizontal.js
[edit]
[-] floating-video.js
[edit]
[-] jquery.mThumbnailScroller.js
[edit]
[-] moment.js
[edit]
[-] spritespin.min.js
[edit]
[-] tilt.jquery.min.js
[edit]
[-] jquery-qrcode.min.js
[edit]
[-] cookieconsent.js
[edit]