1/** 2 * Load the wp File Download Frame 3 */ 4function wpfd_elementor_frameload() { 5 jQuery("#wpfd_elementor_loader").hide(); 6 jQuery("#wpfdelementormodalframe").css('visibility',"visible"); 7 jQuery("#wpfdelementormodalframe").show(); 8} 9 10function wpfd_file_widget_trigger_controls() { 11 jQuery('.elementor-control.wpfd-file-id-controls input[data-setting="wpfd_file_id"]', window.parent.document).trigger('input'); 12 jQuery('.elementor-control.wpfd-category-id-controls input[data-setting="wpfd_category_id"]', window.parent.document).trigger('input'); 13 jQuery('.elementor-control.wpfd-file-name-controls input[data-setting="wpfd_file_name"]', window.parent.document).trigger('input'); 14} 15 16function wpfd_category_widget_trigger_controls() { 17 jQuery('.elementor-control.elementor-control-wpfd_selected_category_id input[data-setting="wpfd_selected_category_id"]', window.parent.document).trigger('input'); 18 jQuery('.elementor-control.elementor-control-wpfd_selected_category_name input[data-setting="wpfd_selected_category_name"]', window.parent.document).trigger('input'); 19} 20 21function wpfd_elementor_hide_modal(e) { 22 jQuery('#lean_overlay', window.parent.document).fadeOut(300); 23 jQuery('#wpfdelementormodal', window.parent.document).fadeOut(300); 24} 25 26jQuery(document).ready(function ($) { 27 $('.wpfdelementorlaunch').leanModal({ 28 top: 20, beforeShow: function () { 29 $("#wpfdelementormodal").css("height", "90%"); 30 $("#wpfdelementormodalframe").css('visibility', 'hidden'); 31 $("#wpfdelementormodalframe").hide(); 32 $("#wpfdelementormodalframe").attr('src', $("#wpfdelementormodalframe").data('src')); 33 $("#wpfd_elementor_loader").show(); 34 } 35 }); 36 if (typeof wpfd_elemetor_vars !== "undefined") { 37 $('body').append('<div id="wpfdelementormodal" class="wpfdelementormodal-elementor"><img src="' + wpfd_elemetor_vars.dir + 'app/admin/assets/images/spinner-2x.gif" alt="Loading..." width="32" id="wpfd_elementor_loader" /><iframe id="wpfdelementormodalframe" onload="wpfd_elementor_frameload()" width="100%" height="100%" marginWidth="0" marginHeight="0" frameBorder="0" scrolling="auto" data-src="admin.php?page=wpfd&noheader=1&caninsert=1&elementorbuilder=1"></iframe><button id="wpfd-close-elementor-modal">x</button></div>'); 38 } 39 $(document).on("click", '.wpfdelementorlaunch', function (e) { 40 window.selectedCatId = $('[data-setting="wpfd_category_id"]').val(); 41 window.selectedFileId = $('[data-setting="wpfd_file_id"]').val(); 42 $("#wpfdelementormodal").css("height", "90%"); 43 $("#wpfdelementormodalframe").css('visibility', 'hidden'); 44 $("#wpfdelementormodalframe").attr('src', $("#wpfdelementormodalframe").data('src')); 45 $("#wpfd_elementor_loader").show(); 46 47 var modal_id = $(this).attr("href"); 48 //var modal_height=$(modal_id).outerHeight(); 49 var modal_width = $(modal_id).outerWidth(); 50 $("#lean_overlay").css({"display": "block", opacity: 0}); 51 $("#lean_overlay").fadeTo(200, 0.5); 52 $(modal_id).css({"visibility": "visible", "display": "block", "text-align": "center", "position": "fixed", "opacity": 0, "z-index": 100102, "left"
52: 50 + "%", "margin-left": -(modal_width / 2) + "px", "top": "20px"}); 53 $(modal_id).fadeTo(200, 1); 54 $('#wpfdelementormodal.wpfdelementormodal-elementor #wpfdelementormodalframe').removeClass('wpfdelementormodalframe-category').addClass('wpfdelementormodalframe-single-file'); 55 $('#wpfdelementormodalframe.wpfdelementormodalframe-single-file').load(function () { 56 var frameContents; 57 frameContents = $("#wpfdelementormodalframe.wpfdelementormodalframe-single-file").contents(); 58 frameContents.find("#insertcategory").css({'visibility': 'hidden', 'display': 'none', 'border': 'unset', 'background-color': 'transparent', 'box-shadow': 'unset', 'color': 'transparent', 'width': '0', 'height': '0', 'margin': '0', 'padding': '0'}); 59 frameContents.find("#rightcol .mCSB_container").css({'marginRight': '0', 'width': 'auto', 'height': 'auto'}); 60 frameContents.find("#rightcol .mCSB_scrollTools").css({'display': 'none', 'width': '0', 'height': '0', 'visibility': 'hidden'}); 61 }); 62 }); 63 64 $(document).on("click", '.wpfdcategorylaunch', function (e) { 65 window.selectedCatId = $('[data-setting="wpfd_selected_category_id"]').val(); 66 $("#wpfdelementormodal").css("height", "90%"); 67 $("#wpfdelementormodalframe").css('visibility', 'hidden'); 68 69 $("#wpfdelementormodalframe").attr('src', $("#wpfdelementormodalframe").data('src')); 70 $("#wpfd_elementor_loader").show(); 71 72 var modal_id = $(this).attr("href"); 73 var modal_width = $(modal_id).outerWidth(); 74 $("#lean_overlay").css({"display": "block", opacity: 0}); 75 $("#lean_overlay").fadeTo(200, 0.5); 76 $(modal_id).css({"visibility": "visible", "display": "block", "text-align": "center", "position": "fixed", "opacity": 0, "z-index": 100102, "left"
76: 50 + "%", "margin-left": -(modal_width / 2) + "px", "top": "20px"}); 77 $(modal_id).fadeTo(200, 1); 78 79 $('#wpfdelementormodal.wpfdelementormodal-elementor #wpfdelementormodalframe').removeClass('wpfdelementormodalframe-single-file').addClass('wpfdelementormodalframe-category'); 80 $('#wpfdelementormodalframe.wpfdelementormodalframe-category').load(function () { 81 var frameContents; 82 frameContents = $("#wpfdelementormodalframe.wpfdelementormodalframe-category").contents(); 83 frameContents.find("#insertfile").css({'visibility': 'hidden', 'display': 'none', 'border': 'unset', 'background-color': 'transparent', 'box-shadow': 'unset', 'color': 'transparent', 'width': '0', 'height': '0', 'margin': '0', 'padding': '0'}); 84 frameContents.find("#rightcol .mCSB_container").css({'marginRight': '0', 'width': 'auto', 'height': 'auto'}); 85 frameContents.find("#rightcol .mCSB_scrollTools").css({'display': 'none', 'width': '0', 'height': '0', 'visibility': 'hidden'}); 86 }); 87 }); 88 89 $(document).on('click', '#wpfd-close-elementor-modal', function (e) { 90 wpfd_elementor_hide_modal(e); 91 }); 92 93 $('body').on('click', function (e) { 94 if ($('div#wpfdelementormodal').is(':visible') && !$(e.target).is('#wpfdelementormodal')) { 95 wpfd_elementor_hide_modal(e); 96 } 97 }); 98 99 $(document).on('click','.elementor-control .elementor-control-title',function (e) { 100 e.preventDefault(); 101 }); 102 return false; 103});
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.