PageSourceSearch

https://www.klacht.nl/wp-content/cache/min/1/wp-content/themes/klacht_2014/js/theme-admin.js?ver=1790281529

js klacht.nl collected 2026-09-24 20:44:14 UTC 11,391 bytes, 26 lines download raw bytes

1var menuaccount=!1;jQuery(document).ready(function(){jQuery('.custom-checkbox, .custom-radio').styler();jQuery('.check, .filters-area').jqTransform();jQuery('.btn-menu').click(function(){jQuery('.main-nav').slideToggle(300);return!1});jQuery('.menu-account .name').click(function(){if(jQuery('.menu-account ul').hasClass('open')){jQuery('.menu-account ul').removeClass('open');menuaccount=!1}else{jQuery('.menu-account ul').addClass('open');setTimeout(function(){menuaccount=!0},500)}});jQuery('*').click(function(e){if(menuaccount){jQuery('.menu-account ul').removeClass('open');menuaccount=!1}});jQuery('.top-message .close').click(function(){jQuery('.top-message').animate({height:'hide'},200);jQuery.post(js_site_url,{FormAction:'company-upgrade-popup-close'});return!1});if(jQuery('.ilbox').length){jQuery('.ilbox').colorbox({rel:'ilbox',width:"800px"})}
2jQuery('.enlarge-ilbox').click(function(){jQuery(this).prev('.ilbox').trigger('click');return!1});jQuery('.vlbox').colorbox({inline:!0,scrolling:!1,onComplete:function(){var vrel=jQuery(this).attr('rel');var vidobj=document.getElementById(vrel);vidobj.play()}});jQuery('.list-notes .note-item').click(function(){var niobj=jQuery(this).attr('href').replace('#','');if(jQuery('.'+niobj).is(':visible')){jQuery('.'+niobj).animate({height:'hide'})}else{jQuery('.'+niobj).animate({height:'show'},200)}
3return!1});jQuery('.mask-overlay .btn-close').click(function(){hide_cc_popup();return!1});jQuery('.edit-comment-link').click(function(){var ecf=jQuery(this).attr('rel');if(jQuery('.'+ecf).is(':visible')){jQuery('.'+ecf).animate({height:'hide'})}else{jQuery('.'+ecf).animate({height:'show'},200)}
4return!1});jQuery('.delete-comment-link').click(function(){var dcf=jQuery(this).attr('rel');var dcfmessage=jQuery('.'+dcf+' .dcf-message').val();var d=confirm(dcfmessage);if(d){jQuery('.'+dcf).submit()}
5return!1});jQuery('.cplpost-action-form .buttons a').click(function(){var atype=jQuery(this).attr('href').replace('#','');jQuery('.cplpost-action-form .buttons a').removeClass('active');jQuery(this).addClass('active');jQuery('.cplpost-action-form .action-type').val(atype);if(atype=='pickup'){jQuery('.cplpost-action-form').submit()}
6if(atype=='solved'){jQuery('.solution-length-text').show()}else{jQuery('.solution-length-text').hide()}
7return!1});jQuery('.cplpost-action-form').submit(function(){var actiontype=jQuery('.cplpost-action-form .action-type').val();var action_message=trim(jQuery('.cplpost-action-form .action-message').val());jQuery('.cplpost-action-form .error-row').hide();jQuery('.cplpost-action-form .error-row span').hide();if(action_message==''){if(actiontype=='solved'){jQuery('.cplpost-action-form .solution-error').show();jQuery('.cplpost-action-form .error-row').animate({height:'show'},300);return!1}else if(actiontype=='comment'){jQuery('.cplpost-action-form .comment-error').show();jQuery('.cplpost-action-form .error-row').animate({height:'show'},300);return!1}}else if(actiontype=='solved'){var solution_entered_length=0;var solution_entered_length=action_message.split(' ').length;var solution_required_length=parseInt(jQuery('.cplpost-action-form .action-message').attr('data-solution-length'));if(solution_entered_length<solution_required_length){jQuery('.cplpost-action-form .solution-length-error').show();jQuery('.cplpost-action-form .error-row').animate({height:'show'},300);return!1}}});jQuery('.ask-rating-link').click(function(){jQuery('.ask-rating-form').submit();return!1});jQuery('.ask-rating-list-link').click(function(){var pid=jQuery(this).attr('rel');jQuery('.ask-rating-list-form .post-id').val(pid);jQuery('.ask-rating-list-form').submit();return!1});jQuery('.unresolved-link').click(function(){jQuery('.cplpost-action-form .action-type').val('unresolved');jQuery('.cplpost-action-form').submit();return!1});jQuery('.form-admin .cp-tabs ul li').click(function(){var rdiv=jQuery(this).attr('rel');if(!jQuery('#cp-tab-'+rdiv).is(':visible')){jQuery('.form-admin .cp-tabs ul li').removeClass('t-active');jQuery(this).addClass('t-active');jQuery('.form-admin .cp-tab').hide();jQuery('#cp-tab-'+rdiv).fadeIn()}});jQuery('.form-admin input.test-conn').click(function(){var kiyoh_connector_code=j
7Query('.form-admin .kiyoh-connector-code').val();var kiyoh_company_id=jQuery('.form-admin .kiyoh-company-id').val();jQuery('.form-admin .test-conn-success').hide();jQuery('.form-admin .test-conn-error').hide();jQuery('.form-admin .test-conn-error span').html('');jQuery('.form-admin .test-conn-loading').show();jQuery.post(js_site_url,{FormAction:'kiyoh-test-connection',connector_code:kiyoh_connector_code,company_id:kiyoh_company_id,ajax:'true'},function(data){jQuery('.form-admin .test-conn-loading').hide();if(data=='OK'){jQuery('.form-admin .test-conn-success').slideDown()}else{jQuery('.form-admin .test-conn-error span').html(data);jQuery('.form-admin .test-conn-error').slideDown()}});return!1});jQuery('.delete-complaint-link').click(function(){show_cc_popup('delete-cpl');return!1});jQuery('.del-cancel-btn').click(function(){hide_cc_popup();return!1});jQuery('.del-yes-btn').click(function(){jQuery('.delete-cpl-form').submit();return!1});jQuery('.cancel-del-cpl').click(function(){hide_cc_popup();return!1});jQuery('.cpl-rate-link').click(function(){show_cc_popup('rate-cpl');return!1});jQuery('.agree-solution .buttons-like a').click(function(){var aval=jQuery(this).attr('href').replace('#','');jQuery('.agree-solution .buttons-like a').addClass('inactive');jQuery(this).removeClass('inactive');jQuery('.form-dislike .agree-val').val(aval);jQuery('.form-dislike .button-form').show();return!1});if(jQuery('.agree-solution .buttons-like a.preselected').size()){jQuery('.agree-solution .buttons-like a.preselected').trigger('click')}
8jQuery('.cpl-rate-block ul li').click(function(){jQuery('.cpl-rate-block ul li').removeClass('active');jQuery(this).addClass('active');if(jQuery('.crc-rating-form').length){var rating=jQuery(this).attr('rel');jQuery('.crc-rating-form .p-rating').val(rating);jQuery('.crc-rating-form .button-form').show()}});if(jQuery('.crc-rating-form .complaint-comment').length){jQuery('.crc-rating-form').submit(function(){var comment=jQuery('.crc-rating-form .complaint-comment').val();if(comment==''){alert(jQuery('.crc-rating-form').data('fas-error'));return!1}})}
9jQuery('.ccd-rate .b-rate ul li').click(function(){var rval=jQuery(this).attr('rel');jQuery('.ccd-rate .b-rate ul li').removeClass('active');jQuery(this).addClass('active');jQuery('.form-dislike .p-rating').val(rval);jQuery('.form-dislike .button-form').show()});jQuery('.agree-solution .form-dislike').submit(function(){var fas_text=jQuery('.form-dislike .feedback-about-solution').val();if(fas_text==''){alert(jQuery('.form-dislike').data('fas-error'));return!1}});jQuery('.post-file-box').hover(function(){jQuery(this).find('.overlay').show()},function(){jQuery(this).find('.overlay').hide()});jQuery('.g-images .post-file-box a.delete').click(function(){var dm=jQuery('.pfdelete-form .del-message').val();var d=confirm(dm);if(d){jQuery('.pfdelete-form').submit()}
10return!1});jQuery('.c-delete-profile').click(function(){var cm=jQuery('.c-delete-profile-form').attr('data-confirm');var cdp=confirm(cm);if(cdp){jQuery('.c-delete-profile-form').submit()}
11return!1});change_rc_share_len();jQuery('#rc-share-text').keypress(function(){change_rc_share_len()});jQuery('#rc-share .btn-send').click(function(){var shtype=jQuery('#rc-share input[type=radio]:checked').val();var shtext=jQuery('#rc-share #rc-share-text').val();var shurl=jQuery('#rc-share #rc-share-url').val();var picurl=jQuery('#rc-share #rc-picture-url').val();var shlink='https://www.facebook.com/sharer/sharer.php?u='+encodeURI(shurl)+'&picture='+picurl+'&title=&description='+encodeURI(shtext);if(jQuery(this).hasClass('has-hashtag')){shlink+='&hashtag=%23klacht'}
12if(shtype=='twitter'){shlink='https://twitter.com/intent/tweet?source=webclient&text='+encodeURI(shtext)}else if(shtype=='google'){shlink='https://plus.google.com/share?url='+encodeURI(shurl)}
13if(shtype=='facebook'&&jQuery(this).hasClass('send-facebook-cc')){var cpid=jQuery('#rc-share #rc-cpid').val();jQuery.post(js_site_url,{FormAction:'share-send-facebook-cc',post_id:cpid,post_url:shurl})}
14window.open(shlink,'sharer','toolbar=0,status=0,width=640,height=400');return!1});jQuery('.company-upgrade-popup .close').click(function(){jQuery('.popup-box, .popup-box-mask').hide();return!1});var comment_form_moderated=!1;jQuery('.form-post-comment .button-form').click(function(){if(!comment_form_moderated){var comment_text=jQuery('.form-post-comment textarea').val();jQuery('.form-post-comment .comment-moderate-error').hide();jQuery('.form-post-comment .comment-loading').show();jQuery.post(js_site_url,{FormAction:'check-comment-moderate',comment_text:comment_text},function(data){jQuery('.form-post-comment .comment-loading').hide();if(data!=''){jQuery('.form-post-comment .comment-moderate-error font').html(data);jQuery('.form-post-comment .comment-moderate-error').slideDown()}else{comment_form_moderated=!0;jQuery('.form-post-comment .button-form').trigger('click')}});return!1}})});function trim(str){if(str!='undefined'){return str.replace(/^\s+|\s+$/g,"")}else{return''}}
15function change_rc_share_len(){if(jQuery('#rc-share #rc-share-text').size()){var sh_text=jQuery('#rc-share #rc-share-text').val();jQuery('#rc-share .info font').html(sh_text.length)}}
16function company_upgrade(pack,pprice){jQuery('.upgrage-form .up-package').val(pack);jQuery('.upgrage-form .up-package-price').val(pprice);jQuery('.upgrage-form').submit()}
17function show_cc_popup(cl){jQuery('.'+cl+'-popup-content').fadeIn();jQuery('.'+cl+'-popup-overlay').show()}
18function hide_cc_popup(){jQuery('.content-overlay, .message-overlay, .mask-overlay').hide()}
19function login_terms_action(){var termsch=jQuery('.login-terms-form .custom-checkbox').is(':checked');var termserr=jQuery('.login-terms-form').attr('error-data');if(!termsch){alert(termserr);return!1}}
20function show_company_upgrade_popup(){jQuery('.popup-box, .popup-box-mask').show()}
21jQuery(document).on('click','a.archive-solved',function(e){if(!jQuery('.company-upgrade-popup').length){return}
22e.preventDefault();show_company_upgrade_popup()});function company_close_solved_popup(o,role){var chk=jQuery(o).is(':checked');if(chk&&role!='company_interact'){jQuery(o).removeAttr('checked').parent().removeClass('checked');show_company_upgrade_popup()}}
23function check_solution_length(){var action_type=jQuery('.cplpost-action-form .action-type').val();var solution_entered_length=0;var solution_val=trim(jQuery('.cplpost-action-form .action-message').val());if(solution_val!=''){solution_entered_length=solution_val.split(' ').length}
24var solution_required_length=parseInt(jQuery('.cplpost-action-form .action-message').attr('data-solution-length'));var solution_remain_length=solution_required_length-solution_entered_length;jQuery('.cplpost-action-form .error-row').hide();jQuery('.cplpost-action-form .error-row span').hide();if(action_type=='solved'){jQuery('.cplpost-action-form .solution-entered-length').html(solution_entered_length);jQuery('.cplpost-action-form .solution-remain-length').html(solution_remain_length)}}
25function company_select_cmp(){jQuery('form.h-cform').submit()}
26function ga_send(ecat,eact,elbl){ga('gtm7.send','event',{'eventCategory':ecat,'eventAction':eact,'eventLabel':elbl});console.log(ga.q)}

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.