jQuery(document).ready(function($){if($("#edit-ico").on("click",function(e){$(this).text("Wait...");var ico_id=$(this).data("ico-id"),ico_name=$(this).data("ico-name"),ajax_url=$(this).data("ajax-url"),send_data={action:"edit_ico_data",ico_id:ico_id,ico_name:ico_name};return $.ajax({type:"POST",url:ajax_url,data:send_data,success:function(response){var rs=JSON.parse(response);"success"==rs.status?window.location=rs.url:console.log("error",rs)},error:function(error){console.log(error)}}),!1}),$(".cilwp_load_moreBtn").on("click",function(){$(this).closest(".cilwp_ico_des").removeClass("load_more"),$(this).remove()}),$("#cilw-live-dt").length||$(".cliwp-upcoming-dt").length){var $cmc_table=$(".cilw-table");$cmc_table.DataTable({info:$cmc_table.data("info"),paging:!1,ordering:!0,order:[[0,"asc"]],pageLength:!1,responsive:!0,scrollX:!0,scrollCollapse:!0,lengthMenu:[[50],[50]]}),$(".cilw-nav").find('a[data-toggle="tab"]').on("shown.bs.tab",function(e){$.fn.dataTable.tables({visible:!0,api:!0}).columns.adjust()})}if($(".cilw-single-icos-table").length){var $cmc_table2=$(".cilw-single-icos-table"),cilwpprev=$cmc_table2.data("prev"),cilwpnext=$cmc_table2.data("next"),cilwpsearch=$cmc_table2.data("search");$cmc_table2.DataTable({info:$cmc_table2.data("info"),paging:!1,ordering:!0,order:[],searching:!1,lengthChange:!1,responsive:!0,scrollX:!0,scrollCollapse:!0}),$(".cilw-nav").find('a[data-toggle="tab"]').on("shown.bs.tab",function(e){$.fn.dataTable.tables({visible:!0,api:!0}).columns.adjust()})}$('.cilw-container li[role="presentation"] a').on("click",function(e){e.preventDefault();var main_container=$(this).parents(".cilw-container"),tab_id=$(this).attr("href"),data_container=$(".cilw-container div.ico-tab-pane");(data_container.hasClass("show")||data_container.hasClass("in"))&&(main_container.find("div.ico-tab-pane").removeClass("show in"),$(tab_id).addClass("show in"),$(tab_id).addClass("fade")),main_container.find('li[role="presentation"]').removeClass("active"),$(this).parents('li[role="presentation"]').addClass("active"),$.fn.dataTable.tables({visible:!0,api:!0}).columns.adjust()}),$('.cilwp-single-container li[role="presentation"] a').on("click",function(e){e.preventDefault();var tab_id=$(this).attr("href"),data_container=$(".cilwp-single-container div.ico-tab-pane");(data_container.hasClass("show")||data_container.hasClass("in"))&&(data_container.removeClass("show in"),$(tab_id).addClass("show in"),$(tab_id).addClass("fade")),$('li[role="presentation"]').removeClass("active"),$(this).parent('li[role="presentation"]').addClass("active"),$.fn.dataTable.tables({visible:!0,api:!0}).columns.adjust()})});; /* Do not modify this file directly. It is compiled from other files. */ /*global google:true*/ /*global _wp_google_translate_widget:true*/ /*exported googleTranslateElementInit*/ function googleTranslateElementInit(){var e,a="en",t=/[?&#]lang=([a-zA-Z\-_]+)/;"object"==typeof _wp_google_translate_widget&&"string"==typeof _wp_google_translate_widget.lang&&(a=_wp_google_translate_widget.lang),(e=window.location.href.match(t))&&(window.location.href=window.location.href.replace(t,"").replace(/#googtrans\([a-zA-Z\-_|]+\)/,"")+"#googtrans("+a+"|"+e[1]+")"),new google.translate.TranslateElement({pageLanguage:a,layout:_wp_google_translate_widget.layout,autoDisplay:!1},"google_translate_element")};