https://kcnawatch.org/wp-content/cache/min/5/wp-content/themes/kcnawatch/js/custom.js?ver=1790841094
1(function($){function updateQueryStringParameter(uri,key,value){var re=new RegExp('([?&])'+key+'=.*?(&|$)','i');var separator=uri.indexOf('?')!==-1?'&':'?';return uri.match(re)?uri.replace(re,'$1'+key+'='+value+'$2'):uri+separator+key+'='+value} 2function getParameterByName(name,url){if(!url)url=window.location.href;name=name.replace(/[\[\]]/g,'\\$&');var regex=new RegExp('[?&]'+name+'(=([^&#]*)|&|#|$)');var results=regex.exec(url);if(!results)return null;if(!results[2])return'';return decodeURIComponent(results[2].replace(/\+/g,' '))} 3function kcna_notice(){const initialDate=new Date('2024-10-21');const nextDueDate=new Date(initialDate);nextDueDate.setDate(initialDate.getDate()+30);if(Date.now()<nextDueDate.getTime()&&!document.cookie.split('; ').find(row=>row.startsWith('sticky-bar='))){const cookieValue="sticky-bar=1; max-age="+(60*60*24*30)+"; path=/; secure; SameSite=Strict";document.cookie=cookieValue;$("body").append('<div class="show-sticky-bar"><div class="close">×</div><div class="message">Due to a technical error, some content published by Korea Media Co., Ltd (KPM) was temporarily accessible on this website during July 2024. These KPM-branded files have since been removed and we apologize for the mistake.</div></div>')}} 4$(document).ready(function(){$('.switch_popop').on('click',function(){$('#'+$(this).data('from')).modal('hide');$('#'+$(this).data('to')).modal('show')});$('#expand_btn').on('click',function(){$("#expand_str").slideDown(200);$(this).remove()});$('body').on('change','.handleSelect',function(){window.location.href=$(this).val()});$('body').on('click','.handleArticle',function(){window.location.href=$(this).prev().find('.articleSelect').val()});$('.right-menu-toggler').click(function(){if($('.mob-dark-overlay').css('display')=='none'){setTimeout(function(){$('.mob-dark-overlay').show()},400);$('body').addClass('body-y-hidden')}else if(!$('#search-article-mob').hasClass('show')){$('.mob-dark-overlay').hide();$('body').removeClass('body-y-hidden')}});$('.search-dd-icon').click(function(){if($('.mob-dark-overlay').css('display')=='none'){$('.mob-dark-overlay').show();$('body').addClass('body-y-hidden')}else if(!$('#left-navigation').hasClass('show')){$('.mob-dark-overlay').hide();$('body').removeClass('body-y-hidden')}});if($('.input-daterange').length>0){var today=new Date();var day=`0${today.getDate()}`;var month=`0${today.getMonth() + 1}`;var startDate=jQuery('#start_date').data('start')&&jQuery('#start_date').data('start').length>0?jQuery('#start_date').data('start'):'01-01-1970';var endDate=jQuery('#end_date').data('end')&&jQuery('#end_date').data('end').length>0?jQuery('#end_date').val():`${day.substring( 5 day.length, 6 day.length - 2 7 )}-${month.substring( 8 month.length, 9 month.length - 2 10 )}-${today.getFullYear()}`;var dateRange=$('.input-daterange').datepicker({format:'dd-mm-yyyy',orientation:'auto',startDate,endDate,autoclose:!0});if(!$('.input-daterange').hasClass('noChange')){dateRange.on('changeDate',function(){var startDate=jQuery('#start_date').val();var endDate=jQuery('#end_date').val();if(startDate.length>0&&endDate.length>0){var d=$('#start_date').datepicker('getDate');var urlArg=updateQueryStringParameter(window.location.href,$('#start_date').attr('name'),`${`0${d.getDate()}`.substr( 11 -2 12 )}-${`0${d.getMonth()+1}`.substr( 13 -2 14 )}-${d.getFullYear()}`);d=$('#end_date').datepicker('getDate');window.location=updateQueryStringParameter(urlArg,$('#end_date').attr('name'),`${`0${d.getDate()}`.substr( 15 -2 16 )}-${`0${d.getMonth()+1}`.substr( 17 -2 18 )}-${d.getFullYear()}`)}})}} 19$('.step_one').on('click',function(){const email_add=$(this).parent().find('.email_address').val();if(email_add.length===0)return!1;const re=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;const is_email=re.test(email_add);if(!is_email)return!1;$(this).parent().removeClass('d-flex').addClass('d-none').next().removeClass('d-none')});kcna_notice()});$('.multiselect-container.dropdown-menu').click(function(e){e.stopPropagation()});if(!jQuery('body').hasClass('error404')&&typeof google!=='undefined'&&google.charts){try{google.charts.setOnLoadCallback(function(){$(window).resize(function(){if(typeof wid_threat_chart==='function')wid_threat_chart();if(typeof wid_kim_chart==='function')wid_kim_chart();if(typeof wid_source_chart==='function')wid_source_chart();if(typeof drawChart_01==='function')drawChart_01();if(typeof drawChart_02==='function')drawChart_02();if(typeof drawChart_03==='function')drawChart_03()})})}catch(e){}} 20$(document).on('click','.show-sticky-bar .close',function(){$(this).parent().remove()})})(window.jQuery)
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.