HEX
Server: LiteSpeed
System: Linux server1.jphostbd.xyz 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User: dailyajk (1018)
PHP: 7.4.33
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/dailyajk/public_html/wp-content/plugins/jp print-bangla-news/media-uploader.js
jQuery(document).ready(function($){






  
  var mediaUploader;
  $('#upload_image_button').click(function(e) {
    e.preventDefault();
      if (mediaUploader) {
      mediaUploader.open();
      return;
    }
    mediaUploader = wp.media.frames.file_frame = wp.media({
      title: 'Choose Image',
      button: {
      text: 'Choose Image'
    }, multiple: false });
    mediaUploader.on('select', function() {
      var attachment = mediaUploader.state().get('selection').first().toJSON();
      $('#header_banner_0').val(attachment.url);

       $('#pv_d').attr("src", attachment.url)
    });
    mediaUploader.open();
  });


$('#pv_d').attr("src", $('#header_banner_0').val());

$( "#remove-banner" ).click(function() {
   $('#header_banner_0').val('');
$('#pv_d').attr("src", $('#header_banner_0').val());

});


$('#editor_information_1').trumbowyg({
    btns: [
        ['strong', 'em'],
        ['justifyLeft', 'justifyCenter'],
        // ['insertImage', 'link']
    ]
});
      

});