1!function($) { 2 3}(window.jQuery); 4 5function king_shortcode_setIcon( id, st, ev){ 6 if(!ev) 7 event= window.event; 8 else 9 event = ev; 10 jQuery( event.target ).closest('.vc_panel-body').find('input.icon-fields').val(''); 11 jQuery( event.target ).closest('.vc_panel-body').find('i.icon-preview').attr({'class':'icon-preview'}); 12 13 var icon = event.target.title; 14 jQuery( '#'+id ).val( icon ).focus(); 15 var preview = jQuery( '#'+id.replace( 'color-', 'icon-preview-' ) ); 16 switch( st ){ 17 case 1:preview.attr({'class':'icon-preview fa fa-'+icon});break; 18 case 2:preview.attr({'class':'icon-preview icon-'+icon});break; 19 case 3:preview.attr({'class':'icon-preview et-'+icon});break; 20 } 21} 22function king_shortcode_hideIcon( id ){ 23 jQuery( '#'+id ).get(0).hideTimer = setTimeout(function(){ 24 jQuery( '#'+id ).css({ 25 height: '0px', 26 padding: '0px', 27 border: 'none' 28 }); 29 }, 300 ); 30} 31 32function king_shortcode_showIcon( id ){ 33 34 clearTimeout( jQuery( '#'+id ).get(0).hideTimer ); 35 36 jQuery( '#'+id ).css({ 37 height: '100px', 38 padding: '15px 9px', 39 border: '1px solid #ccc' 40 }); 41} 42 43function king_filter_terms( btn ){ 44 45 var $ = jQuery; 46 47 $(btn.parentNode).find('.vc_btn-grace').removeClass('vc_btn-grace').addClass('vc_btn-gray'); 48 $(btn).addClass('vc_btn-grace'); 49 $(btn.parentNode).find('select option').hide(); 50 $(btn.parentNode).find('select option.'+btn.innerHTML).show(); 51 $(btn.parentNode).find('select option:selected').removeAttr('selected'); 52 $(btn.parentNode).find('select option.'+btn.innerHTML+'-st').attr({ 'selected' : true }).trigger('change'); 53 54} 55 56function king_terms_select( sel ){ 57 58 var $ = jQuery; 59 60 $( sel ).parent().find('.wpb_vc_param_value').val( $( sel ).val() ); 61 62} 63 64function king_terms_unselected( el ){ 65 66 var $ = jQuery; 67 $( el ).parent().find('select option:selected').attr({selected:false}); 68 69 return false; 70 71} 72 73function king_shortcode_radioChoose( inp ){ 74 jQuery( inp.parentNode ).find('.king-radio-val').val( inp.value ); 75}
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.