Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/cool-timeline/includes/shortcodes/assets/js/

Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64

Upload File :
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/cool-timeline/includes/shortcodes/assets/js/ctl-scripts.min.js
class ctlCommonScript{constructor(){this.callBack()}CtlLightBoxHtml=type=>{const layoutClass="minimal"===type?" minimal-layout":"";return`<div id="glightbox-body" class="glightbox-container">\n            <div class="gloader visible"></div>\n            <div class="goverlay"></div>\n            <div class="gcontainer ctl_glightbox_container${layoutClass}">\n            <div id="glightbox-slider" class="gslider"></div>\n            <button class="gnext gbtn" tabindex="0" aria-label="Next" data-customattribute="example">{nextSVG}</button>\n            <button class="gprev gbtn" tabindex="1" aria-label="Previous">{prevSVG}</button>\n            <button class="gclose gbtn" tabindex="2" aria-label="Close">{closeSVG}</button>\n            </div>\n        </div>`};CtlLightBoxSettings=type=>{const Lightboxsvg={close:'<i class="ctl_glightbox_close_btn"></i>',next:'<i class="ctl_glightbox_hidden"></i>',prev:'<i class="ctl_glightbox_hidden"></i>'},attributes={lightboxHTML:this.CtlLightBoxHtml(type),svg:Lightboxsvg,touchNavigation:"minimal"!==type};return GLightbox(attributes)};CtlLighBox=ele=>{ele.preventDefault();const element=ele.currentTarget,lightbox=this.CtlLightBoxSettings("default"),targetHref=element.getAttribute("href"),title=element.getAttribute("data-glightbox");lightbox.setElements([{href:targetHref,title:title}]),lightbox.open()};CtlLighBoxMinimal=ele=>{ele.preventDefault();const popUpContainerID=jQuery(ele.currentTarget).data("popup-id"),popUpConatiner=jQuery(popUpContainerID),lightbox=this.CtlLightBoxSettings("minimal"),img=popUpConatiner.find(".ctl_popup_media .ctl_popup_img").data("popup-image"),date=popUpConatiner.find(".ctl_popup_date").html(),title=popUpConatiner.find(".ctl_popup_title").html(),desc=popUpConatiner.find(".ctl_popup_desc").html(),elements=[];void 0!==img?elements.push({href:img,type:"image",description:`<div class='ctl_glightbox_content'><h2 class='ctl_glightbox_title'>${title}</h2><div class='ctl_glightbox_date'>${date}</div><div class="ctl_glightbox_desc">${desc}</div></div>`,height:"200px"}):elements.push({content:`<h2 class='ctl_glightbox_title'>${title}</h2><div class='ctl_glightbox_content'><div class='ctl_glightbox_date'>${date}</div><div class="ctl_glightbox_desc">${desc}</div></div>`,"max-width":"50vw",height:"auto"}),lightbox.setElements(elements),lightbox.open()};ctlResponsiveDevice=()=>{const screenWidth=jQuery(window).width(),yearLabelOverflowCls=isMobile=>{const vrDateLabels=jQuery(".ctl-wrapper .ctl-vertical-wrapper").not(".ctl-compact-wrapper").find(".ctl-labels");vrDateLabels.length>0&&(isMobile?vrDateLabels.each((_,ele)=>{const contentWidth=jQuery(ele).closest(".ctl-story").find(".ctl-content")[0].scrollWidth,labelWidth=jQuery(ele)[0].scrollWidth;labelWidth>contentWidth&&ele.classList.add("ctl-label-overflow")}):vrDateLabels.removeClass("ctl-label-overflow"))};yearLabelOverflowCls(screenWidth<380)};btnHoverEffect=()=>{const eleClasses='.ctl-button-next:not(".swiper-button-disabled"), .ctl-button-prev:not(".swiper-button-disabled"), .ctl-pagination a.page-numbers';jQuery(document).on("mousedown",eleClasses,e=>{const ele=jQuery(e.currentTarget);ele.addClass("ctl-btn-click-effect"),setTimeout((function(){ele.removeClass("ctl-btn-click-effect")}),500)})};callBack=()=>{const eachTimeline=jQuery(".ctl-wrapper .cool-timeline-wrapper");eachTimeline.each((index,element)=>{const timeline=jQuery(element);if(timeline.hasClass("ctl-horizontal-timeline"))timeline.find(".ctl-story");else{const animation=timeline.find(".ctl-timeline-container").attr("data-animation");"none"!==animation&&AOS.init()}}),jQuery(document).on("click",".ctl-wrapper .ctl_glightbox",ele=>{this.CtlLighBox(ele)}),jQuery(document).on("click",".ctl-wrapper .minimal_glightbox",ele=>{this.CtlLighBoxMinimal(ele)}),this.ctlResponsiveDevice(),jQuery(window).on("resize",()=>{this.ctlResponsiveDevice()}),this.btnHoverEffect()}}new ctlCommonScript;

Log In ‹ Affy Pharma Pvt Ltd — WordPress

Powered by WordPress

← Go to Affy Pharma Pvt Ltd