PageSourceSearch

https://www.besttreeservicenearme.com/wp-content/plugins/listingpro-plugin/assets/js/uploader.js?ver=6.0.11

js besttreeservicenearme.com collected 2026-10-09 01:31:00 UTC 2,933 bytes, 74 lines download raw bytes

1jQuery(document).ready(function() {
2
3    var abc = 1; // Declaring and defining global increment variable.
4    if (jQuery('.lp-img-gall-upload-section').length > 0) {
5
6        jQuery('body').on('change', '.file', function(event) {
7            var files = event.target.files; //FileList object
8            var output = document.getElementsByClassName("filediv");
9            output = output[0];
10
11            for (var i = 0; i < files.length; i++) {
12                var file = files[i];
13                //Only pics
14                if (!file.type.match('image'))
15                    continue;
16
17                var picReader = new FileReader();
18
19                picReader.addEventListener("load", function(event) {
20
21                    var picFile = event.target;
22
23                    var div = document.createElement("ul");
24                    div.className = 'jFiler-items-list jFiler-items-grid grid' + i;
25                    div.innerHTML = '<li class="jFiler-item">\
26                        <div class="jFiler-item-container">\
27                            <div class="jFiler-item-inner">\
28                                <div class="jFiler-item-thumb">\
29                                    <img  class="thumbnail" alt="image" src="' + picFile.result + '" title="' + picFile.name + '"/>\
30                                </div>\
31                            </div>\
32                        </div><a class="icon-jfi-trash jFiler-item-trash-action"><i class="fa fa-trash"></i></a>\
33                    </li>';
34
35                    output.insertBefore(div, null);
36
37                });
38
39                //Read the image
40                picReader.readAsDataURL(file);
41
42            }
43            jQuery('.jFiler-item-trash-action').on('click', function() {
44                jQuery(this).parent().parent().parent().remove();
45            });
46            jQuery(output).find('input').hide();
47            jQuery(output).before(jQuery("<div/>", {
48                class: 'filediv'
49            }).fadeIn('slow').append(jQuery("<input/>", {
50                name: 'listingfiles[]',
51                type: 'file',
52                class: 'file',
53                multiple: 'multiple'
54            })));
55        });
56        // To Preview Image
57        function imageIsLoaded(e) {
58            jQuery('#previewimg' + abc).attr('src', e.target.result);
59        };
60    }
61});
62
63function initialize() {
64    if (jQuery('#inputAddress').length) {
65        var input = document.getElementById('inputAddress');
66        var autocomplete = new google.maps.places.Autocomplete(input);
67        google.maps.event.addListener(autocomplete, 'place_changed', function() {
68            var place = autocomplete.getPlace();
69            document.getElementById('latitude').value = place.geometry.location.lat();
70            document.getElementById('longitude').value = place.geometry.location.lng();
71        });
72    }
73}
74google.maps.event.addDomListener(window, 'load', initialize);

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.