1jQuery(document).ready(function($){"use strict" 2var nonceA=frontendData._wpnonce,ajaxUrlA=frontendData.ajaxUrl,loaderElm='<div class="nekit-loader"><div class="loader-wrap"><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div></div></div>' 3var vpSectionContainer=$('.nekit-video-playlist-wrap') 4if(vpSectionContainer.length>0){$(document).on("click",".nekit-video-playlist-wrap .playlist-items-wrap .video-item",function(){var _thisItem=$(this) 5if(_thisItem.hasClass("onWait")){var _thisItem=$(this),highlightedVideoElm=_thisItem.parents(".nekit-video-playlist-wrap").find(".thumb-video-highlight-text"),activePlayer=_thisItem.parents(".nekit-video-playlist-wrap").find(".active-player"),newVideoId=_thisItem.data("id"),toHighlightTitle=_thisItem.find(".video-title").text(),toHighlightDuration=_thisItem.find(".video-duration").text() 6_thisItem.addClass("activePlayer").removeClass("onWait").parent().siblings().find('.video-item').removeClass("activePlayer").addClass("onWait") 7highlightedVideoElm.find(".video-title").text(toHighlightTitle) 8highlightedVideoElm.find(".video-duration").text(toHighlightDuration) 9activePlayer.find("iframe").attr("src","https://www.youtube.com/embed/"+newVideoId+"?enablejsapi=1&autoplay=1&mute=1") 10highlightedVideoElm.find(".thumb-controller").removeClass("isPaused").addClass("onRoll").find("i").removeClass("fa-play").addClass("fa-pause")}}) 11vpSectionContainer.each(function(){var _this=$(this) 12if(_this.hasClass("widget-layout--one")||_this.hasClass("widget-layout--two")){var activePlayer=_this.find(".active-player"),highlightedVideoElm=_this.find(".thumb-video-highlight-text"),firstVideoItem=_this.find('.player-list-wrap .playlist-items-wrap .video-item.activePlayer').first() 13if(firstVideoItem.length>0){var toHighlightId=firstVideoItem.data("id"),toHighlightTitle=firstVideoItem.find(".video-title").text(),toHighlightDuration=firstVideoItem.find(".video-duration").text() 14highlightedVideoElm.find(".video-title").text(toHighlightTitle) 15highlightedVideoElm.find(".video-duration").text(toHighlightDuration) 16activePlayer.find("iframe").attr("src","https://www.youtube.com/embed/"+toHighlightId+"?enablejsapi=1&mute=1")} 17if(_this.hasClass("widget-layout--two")){var listContainer=_this.find(".player-list-wrap .playlist-items-wrap"),vpAuto=(_this.data("auto")=='yes'),vpArrows=(_this.data("arrows")=='yes'),vpColumns=(!_this.hasClass('adjust-layout--on'))?_this.data("columns"):1,vpTabletColumns=(!_this.hasClass('adjust-layout--on'))?_this.data("tablet-columns"):1,vpMobileColumns=(!_this.hasClass('adjust-layout--on'))?_this.data("mobile-columns"):1 18listContainer.slick({slidesToShow:vpColumns,autoplay:vpAuto,arrows:vpArrows,nextArrow:`<button type="button" class="slick-next"><i class="fas fa-chevron-right"></i></button>`,prevArrow:`<button type="button" class="slick-prev"><i class="fas fa-chevron-left"></i></button>`,responsive:[{breakpoint:769,settings:{slidesToShow:vpTabletColumns,},},{breakpoint:640,settings:{slidesToShow:vpMobileColumns,},}]})}}}) 19vpSectionContainer.on("click",".thumb-video-highlight-text .thumb-controller",function(){var _this=$(this),playIcon=_this.data("play"),pauseIcon=_this.data("pause") 20_this.find('i').toggleClass(playIcon+' '+pauseIcon) 21if(_this.hasClass('isPaused')){_this.removeClass('isPaused').addClass('onRoll') 22vpSectionContainer.find(".active-player iframe")[0].contentWindow.postMessage('{"event":"command", "func":"playVideo", "args":""}','*')}else{_this.removeClass('onRoll').addClass('isPaused') 23vpSectionContainer.find(".active-player iframe")[0].contentWindow.postMessage('{"event":"command", "func":"pauseVideo", "args":""}','*');}});} 24var tagsCloudContainer=$(".nekit-tags-cloud-animation") 25if(tagsCloudContainer.length>0){tagsCloudContainer.each(function(){var _this=$(this),widgetId=_this.parents('.elementor-widget[data-element_type="widget"]').data("id") 26if(_this.hasClass('widget-skin--cloud_animation')){try{var cloudOptions={textColour:nekitWidgetData[widgetId].tag_color,textHeight:nekitWidgetData[widgetId].tag_font_size,bgColour:nekitWidgetData[widgetId].tag_background,textFont:nekitWidgetData[widgetId].tag_typography_font_family,radiusX:2,bgRadius:nekitWidgetData[widgetId].tag_border_radius,padding:nekitWidgetData[widgetId].tag_padding} 27TagCanvas.Start('nekit-canvas-'+widgetId,'post-tags-wrap-'+widgetId,cloudOptions);}catch(e){_this.hide();}}else{var convasContainer=_this.find('#nekit-canvas-container') 28var settings={"size":{"grid":nekitWidgetData[widgetId].typography_skin_typography_word_spacing.size,"normalize":nekitWidgetData[widgetId].cloud_normalize=='yes',"factor":nekitWidgetData[widgetId].cloud_factor},"options":{"color":nekitWidgetData[widgetId].cloud_coloring,"rotationRatio":nekitWidgetData[widgetId].rotation_ratio,"printMultiplier":nekitWidgetData[widgetId].print_multiplier,"sort":nekitWidgetData[widgetId].cloud_sort},"color":{"background":nekitWidgetData[widgetId].canvas_background_color,"start":nekitWidgetData[widgetId].smallest_font,"end":nekitWidgetData[widgetId].largest_font},"font":nekitWidgetData[widgetId].typography_skin_typography_font_family,"shape":nekitWidgetData[widgetId].cloud_shape} 29convasContainer.awesomeCloud(settings)}})} 30var aHeadingIconContainer=$(".nekit-advanced-heading-icon-wrap") 31if(aHeadingIconContainer.length>0){aHeadingIconContainer.each(function(){var _this=$(this) 32if(_this.hasClass("animation-style--animated")&&_this.hasClass("animation--typing")){var uniqueId=_this.closest(".
32nekit-advanced-heading-icon-wrap").attr("id") 33var headingElm=_this.find(".heading-read"),animateText=headingElm.text() 34var iteration=(_this.data("animation-iteration")=='infinite') 35var duration=_this.data("animation-duration") 36var delay=_this.data("animation-delay") 37headingElm.remove() 38var typed=new Typed("#"+uniqueId+" .heading",{strings:[animateText],startDelay:delay*1000,backDelay:delay*1000,typeSpeed:duration*100,backSpeed:duration*100,loop:iteration});}})} 39var ngWidgets=$(".nekit-grid-widget") 40if(ngWidgets.length>0){ngWidgets.each(function(){var _thisWidget=$(this),toRenderParent=_thisWidget.find(".news-grid-post-wrap"),widgetId=_thisWidget.parents('.elementor-widget[data-element_type="widget"]').data("id"),paged=1 41var replaceHtml=(nekitWidgetData[widgetId]['pagination_type']=='replace'),nekitLoadMore=_thisWidget.find('.nekit-load-more') 42var maxPage=nekitWidgetData[widgetId]['maxPage'] 43_thisWidget.on("click",".nekit-load-more",function(e){e.preventDefault() 44var _thisButton=$(this) 45if(_thisButton.hasClass("ajax-load")){var buttonHtml=_thisButton.html() 46var loadingHtml=nekitWidgetData[widgetId]['append_pagination_loading_button_text'] 47var loadedHtml=nekitWidgetData[widgetId]['append_pagination_loaded_button_text']} 48if(_thisButton.hasClass("prev-button")){paged=paged-1 49if(paged==1){_thisButton.attr("disabled",true)} 50_thisButton.siblings().attr("disabled",false)}else{paged++ 51_thisButton.siblings().attr("disabled",false) 52if(maxPage==paged){_thisButton.attr("disabled",true)}} 53if(replaceHtml&&toRenderParent.find(".paged-"+paged).length>0){toRenderParent.find(".paged-"+paged).siblings().hide() 54toRenderParent.find(".paged-"+paged).fadeIn()}else{$.ajax({type:'POST',url:ajaxUrlA,data:{action:'nekit_grid_widget_ajax_content',options:JSON.stringify(nekitWidgetData[widgetId]),paged:JSON.stringify(paged),_wpnounce:nonceA},beforeSend:function(){toRenderParent.addClass('retrieving-posts') 55if(!_thisButton.hasClass("ajax-load")){toRenderParent.append(loaderElm)} 56if(_thisButton.hasClass("ajax-load")){_thisButton.html(loadingHtml)}},success:function(response){if(response.success){var data=JSON.parse(response.data) 57if(data.loaded){if(maxPage==paged){_thisButton.attr("disabled",true) 58if(_thisButton.hasClass("ajax-load")){_thisButton.after(loadedHtml) 59_thisButton.remove()} 60if(nekitLoadMore.hasClass('ajax-load'))toRenderParent.parent().addClass("finished")} 61if(replaceHtml)toRenderParent.find("article").hide() 62var newHtml=$(data.html).hide().fadeIn() 63toRenderParent.append(newHtml) 64if(_thisButton.hasClass("ajax-load")){_thisButton.html(buttonHtml)}}}},complete:function(){if(!_thisButton.hasClass("ajax-load")){toRenderParent.find(".nekit-loader").remove()} 65toRenderParent.removeClass('retrieving-posts') 66_thisWidget.find('.nekit-loader').remove()}})}})})} 67var ngWidgets=$(".nekit-list-widget") 68if(ngWidgets.length>0){ngWidgets.each(function(){var _thisWidget=$(this),toRenderParent=_thisWidget.find(".news-list-post-wrap"),widgetId=_thisWidget.parents('.elementor-widget[data-element_type="widget"]').data("id"),paged=1 69var replaceHtml=(nekitWidgetData[widgetId]['pagination_type']=='replace'),nekitLoadMore=_thisWidget.find('.nekit-load-more') 70var maxPage=nekitWidgetData[widgetId]['maxPage'] 71_thisWidget.on("click",".nekit-load-more",function(e){e.preventDefault() 72var _thisButton=$(this) 73if(_thisButton.hasClass("ajax-load")){var buttonHtml=_thisButton.html() 74var loadingHtml=nekitWidgetData[widgetId]['append_pagination_loading_button_text'] 75var loadedHtml=nekitWidgetData[widgetId]['append_pagination_loaded_button_text']} 76if(_thisButton.hasClass("prev-button")){paged=paged-1 77if(paged==1){_thisButton.attr("disabled",true)} 78_thisButton.siblings().attr("disabled",false)}else{paged++ 79_thisButton.siblings().attr("disabled",false) 80if(maxPage==paged){_thisButton.attr("disabled",true)}} 81if(replaceHtml&&toRenderParent.find(".paged-"+paged).length>0){toRenderParent.find(".paged-"+paged).siblings().hide() 82toRenderParent.find(".paged-"+paged).fadeIn()}else{$.ajax({type:'POST',url:ajaxUrlA,data:{action:'nekit_list_widget_ajax_content',options:JSON.stringify(nekitWidgetData[widgetId]),paged:JSON.stringify(paged),_wpnounce:nonceA},beforeSend:function(){toRenderParent.addClass('retrieving-posts') 83if(!_thisButton.hasClass("ajax-load")){toRenderParent.append(loaderElm)} 84if(_thisButton.hasClass("ajax-load")){_thisButton.html(loadingHtml)}},success:function(response){if(response.success){var data=JSON.parse(response.data) 85if(data.loaded){if(maxPage==paged){_thisButton.attr("disabled",true) 86if(_thisButton.hasClass("ajax-load")){_thisButton.after(loadedHtml) 87_thisButton.remove()} 88if(nekitLoadMore.hasClass('ajax-load'))toRenderParent.parent().addClass("finished")} 89if(replaceHtml)toRenderParent.find("article").hide() 90var newHtml=$(data.html).hide().fadeIn() 91toRenderParent.append(newHtml) 92if(_thisButton.hasClass("ajax-load")){_thisButton.html(buttonHtml)}}}},complete:function(){if(!_thisButton.hasClass("ajax-load")){toRenderParent.find(".nekit-loader").remove()} 93toRenderParent.removeClass('retrieving-posts') 94_thisWidget.find('.nekit-loader').remove()}})}})})} 95var ngWidgets=$(".nekit-block-widget") 96if(ngWidgets.length>0){ngWidgets.each(function(){var _thisWidget=$(this),toRenderParent=_thisWidget.find(".news-block-post-wrap"),widgetId=_thisWidget.parents('.elementor-widget[data-element_type="widget"]').data("id"),paged=1 97var replaceHtml=(nekitWidgetData[widgetId]['pagination_type']=='replace'),nekitLoadMore=_thisWidget.find('.nekit-load-more') 98var maxPage=nekitWidgetData[widgetId]['maxPage'] 99_thisWidget.on("click",".nekit-load-more",function(e){e.preventDefault() 100var _thisButton=$(this) 101if(_thisButton.hasClass("ajax-load")){var buttonHtml=_thisButton.html() 102var loadingHtml=nekitWidgetData[widgetId]['append_pagination_loading_button_text'] 103var loadedHtml=nekitWidgetData[widgetId]['append_pagination_loaded_button_text']} 104if(_thisButton.hasClass("prev-button")){paged=paged-1 105if(paged==1){_thisButton.attr("disabled",true)}
106_thisButton.siblings().attr("disabled",false)}else{paged++ 107_thisButton.siblings().attr("disabled",false) 108if(maxPage==paged){_thisButton.attr("disabled",true)}} 109if(replaceHtml&&toRenderParent.find(".paged-"+paged).length>0){toRenderParent.find(".paged-"+paged).siblings().hide() 110toRenderParent.find(".paged-"+paged).fadeIn()}else{$.ajax({type:'POST',url:ajaxUrlA,data:{action:'nekit_block_widget_ajax_content',options:JSON.stringify(nekitWidgetData[widgetId]),paged:JSON.stringify(paged),_wpnounce:nonceA},beforeSend:function(){toRenderParent.addClass('retrieving-posts') 111if(!_thisButton.hasClass("ajax-load")){toRenderParent.append(loaderElm)} 112if(_thisButton.hasClass("ajax-load")){_thisButton.html(loadingHtml)}},success:function(response){if(response.success){var data=JSON.parse(response.data) 113if(data.loaded){if(maxPage==paged){_thisButton.attr("disabled",true) 114if(_thisButton.hasClass("ajax-load")){_thisButton.after(loadedHtml) 115_thisButton.remove()} 116if(nekitLoadMore.hasClass('ajax-load'))toRenderParent.parent().addClass("finished")} 117if(replaceHtml)toRenderParent.find("> div").hide() 118var newHtml=$(data.html).hide().fadeIn() 119toRenderParent.append(newHtml) 120if(_thisButton.hasClass("ajax-load")){_thisButton.html(buttonHtml)}}}},complete:function(){if(!_thisButton.hasClass("ajax-load")){toRenderParent.find(".nekit-loader").remove()} 121toRenderParent.removeClass('retrieving-posts') 122_thisWidget.find('.nekit-loader').remove()}})}})})} 123var nsrWidgets=$(".nekit-single-related-post") 124if(nsrWidgets.length>0){nsrWidgets.each(function(){var _thisWidget=$(this),toRenderParent=_thisWidget.find(".single-related-posts-wrap"),widgetId=_thisWidget.parents('.elementor-widget[data-element_type="widget"]').data("id"),paged=1 125var replaceHtml=(nekitWidgetData[widgetId]['pagination_type']=='replace'),nekitLoadMore=_thisWidget.find('.nekit-load-more') 126var maxPage=nekitWidgetData[widgetId]['maxPage'] 127_thisWidget.on("click",".nekit-load-more",function(e){e.preventDefault() 128var _thisButton=$(this) 129if(_thisButton.hasClass("ajax-load")){var buttonHtml=_thisButton.html() 130var loadingHtml=nekitWidgetData[widgetId]['append_pagination_loading_button_text'] 131var loadedHtml=nekitWidgetData[widgetId]['append_pagination_loaded_button_text']} 132if(_thisButton.hasClass("prev-button")){paged=paged-1 133if(paged==1){_thisButton.attr("disabled",true)} 134_thisButton.siblings().attr("disabled",false)}else{paged++ 135_thisButton.siblings().attr("disabled",false) 136if(maxPage==paged){_thisButton.attr("disabled",true)}} 137if(replaceHtml&&toRenderParent.find(".paged-"+paged).length>0){toRenderParent.find(".paged-"+paged).siblings().hide() 138toRenderParent.find(".paged-"+paged).fadeIn()}else{$.ajax({type:'POST',url:ajaxUrlA,data:{action:'nekit_single_related_posts_widget_ajax_content',options:JSON.stringify(nekitWidgetData[widgetId]),paged:JSON.stringify(paged),_wpnounce:nonceA},beforeSend:function(){toRenderParent.addClass('retrieving-posts') 139if(!_thisButton.hasClass("ajax-load")){toRenderParent.append(loaderElm)} 140if(_thisButton.hasClass("ajax-load")){_thisButton.html(loadingHtml)}},success:function(response){if(response.success){var data=JSON.parse(response.data) 141if(data.loaded){if(maxPage==paged){_thisButton.attr("disabled",true) 142if(_thisButton.hasClass("ajax-load")){_thisButton.after(loadedHtml) 143_thisButton.remove()} 144if(nekitLoadMore.hasClass('ajax-load'))toRenderParent.parent().addClass("finished")} 145if(replaceHtml)toRenderParent.find("article").hide() 146var newHtml=$(data.html).hide().fadeIn() 147toRenderParent.append(newHtml) 148if(_thisButton.hasClass("ajax-load")){_thisButton.html(buttonHtml)}}}},complete:function(){if(!_thisButton.hasClass("ajax-load")){toRenderParent.find(".nekit-loader").remove()} 149toRenderParent.removeClass('retrieving-posts') 150_thisWidget.find('.nekit-loader').remove()}})}})})}})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.