File manager - Edit - /home/aussies6/public_html/wp-content/plugins/custom-share-buttons-with-floating-sidebar/js/csbwfs.js
Back
/* Custom Share Buttons With Floting Sidebar admin js*/ jQuery(document).ready(function(){ jQuery(".csbwfs-tab").hide(); jQuery("#div-csbwfs-general").show(); jQuery(".csbwf-tab-links").click(function(){ var divid=jQuery(this).attr("id"); jQuery(".csbwf-tab-links").removeClass("active"); jQuery(".csbwfs-tab").hide(); jQuery("#"+divid).addClass("active"); jQuery("#div-"+divid).fadeIn(); }); jQuery("#publish5").click(function(){ if(jQuery("#publish5").prop("checked")) {jQuery("#mailmsg").show();}else{jQuery("#mailmsg").hide();} }); jQuery("#ytBtns").click(function(){ if(jQuery("#ytBtns").prop("checked")) {jQuery("#ytpath").show();}else{jQuery("#ytpath").hide();} }); /* add image upload image button */ jQuery(".cswbfsUploadBtn").click(function() { var tdbuttonid = jQuery(this).parent("td").attr("id"); //alert(tdbuttonid); inputfieldId = jQuery("#"+tdbuttonid+" .inputButtonid").attr("id"); //alert(inputfieldId); formfield = jQuery("#"+inputfieldId).attr("name"); tb_show( "", "media-upload.php?type=image&TB_iframe=true" ); return false; }); window.send_to_editor = function(html) { imgurl = jQuery(html).attr("src"); jQuery("#"+inputfieldId).val(imgurl); tb_remove(); } /** reset share buttons settings */ jQuery('#div-csbwfs-share-buttons #csbwfsresetpage').click(function(){ jQuery('#div-csbwfs-share-buttons .inputButtonid').val(''); jQuery('#div-csbwfs-share-buttons .csbwfs_title').val(''); jQuery('#div-csbwfs-share-buttons .color-field').val(''); }) /** reset floating sidebar settings */ jQuery('#div-csbwfs-sidebar #csbwfs_resetpage').click(function(){ jQuery('#div-csbwfs-sidebar .inputButtonid').val(''); jQuery('#div-csbwfs-sidebar .csbwfs_title').val(''); jQuery('#div-csbwfs-sidebar .color-field').val(''); }) }); (function( ) { // Add Color Picker to all inputs that have 'color-field' class jQuery(function() { jQuery('.color-field').wpColorPicker(); }); })( jQuery );
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings