PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
bdthemes-element-pack
/
assets
/
vendor
/
js
/** * Object SideNavi * public methods : init * init param : String direction * init param : Object css data */ var SideNavi = ( function ($) { var container = {}, cssElements = {}, posStep = 30, posStart = null, posEnd = null, posDirection = '', isSlideing = false, isVisible = false, activeIndex = -1, changeVisibility = false; function getPosStart () { if (posStart === null) { posStart = 0 - $(cssElements.data + ':eq(0)', container).width()*1; } return posStart; } function getPosEnd () { if (posEnd === null) { posEnd = 0; } return posEnd; } function getPos (){ return container.css(posDirection).replace('px',''); } function toggleIsVisible () { isVisible = !(isVisible); } function isActiveItem (item) { return item.hasClass('bdt-active'); } function setActiveTab () { $(cssElements.tab + cssElements.active, container).removeClass(cssElements.active.replace('.','')); $(cssElements.tab + ':eq(' + activeIndex + ')',container).addClass(cssElements.active.replace('.','')); } function removeActiveItem () { $(cssElements.item + cssElements.active, container).removeClass('bdt-active'); } function setActiveItem (item) { removeActiveItem(); setActiveTab(); item.addClass('bdt-active'); } function setDefaultItem (item) { item.removeClass('bdt-active'); } function slideEvent () { var pos = getPos()*1; //if ( isVisible && pos < getPosEnd () || ! isVisible && pos > getPosStart () ) { pos = (isVisible) ? pos+posStep : pos-posStep; if (isVisible && pos + posStep >= getPosEnd () || ! isVisible && pos - posStep <= getPosStart ()) { pos = (isVisible) ? getPosEnd () : getPosStart (); container.css(posDirection, 'translateX('+pos+'px)'); isSlideing = false; } else { container.css(posDirection, 'translateX('+pos+'px)'); setTimeout(function () {slideEvent()}, 30 ); } // } else { // isSlideing = false; // } } function slide () { if ( ! isSlideing) { isSlideing = true; slideEvent(); } } function setEventParam (item) { activeIndex = $(cssElements.item, container).index(item); if (isActiveItem(item)) { toggleIsVisible(); setDefaultItem(item); changeVisibility = true; } else { setActiveItem(item); if ( ! isVisible) { toggleIsVisible(); changeVisibility = true; } } } function eventListener () { $(cssElements.item, container).on('click', function (event) { event.preventDefault(); setEventParam($(this)); if (changeVisibility) { slide(); } }); } function init (direction, conf) { posDirection = direction; cssElements = conf; container = $(cssElements.container); eventListener(); } return { init : init }; })(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]