PageSourceSearch

http://www.51valuego.com/wp-content/plugins/download-manager/assets/js/front.js?ver=5.2.3

js 51valuego.com collected 2026-10-04 01:16:18 UTC 5,332 bytes, 174 lines download raw bytes

1jQuery(function ($) {
2
3    $('.input-group input').on('focus', function () {
4        $(this).parent().find('.input-group-addon').addClass('input-group-addon-active');
5    });
6    $('.input-group input').on('blur', function () {
7        $(this).parent().find('.input-group-addon').removeClass('input-group-addon-active');
8    });
9
10    $('body').on('click', '.inddl', function () {
11        var tis = this;
12        $.post( wpdm_site_url, {
13            wpdmfileid: $(this).data('pid'),
14            wpdmfile: $(this).data('file'),
15            actioninddlpvr: $($(this).data('pass')).val()
16        }, function (res) {
17            res = res.split('|');
18            var ret = res[1];
19            if (ret == 'error') $($(tis).data('pass')).addClass('input-error');
20            if (ret == 'ok') location.href = $(tis).attr('rel') + '&_wpdmkey=' + res[2];
21        });
22    });
23
24    $('body').on('click', '.wpdm-download-locked.pop-over', function () {
25
26        var $dc = $($(this).attr('href'));
27        if ($(this).attr('data-ready') == undefined) {
28
29            $(this).popover({
30                placement: 'bottom',
31                html: true,
32                content: function () {
33
34                    return $dc.html();
35
36
37                }
38            });
39            $(this).attr('data-ready', 'hide');
40        }
41
42        if ($(this).attr('data-ready') == 'hide') {
43            $(this).popover('show');
44            $(this).attr('data-ready', 'show');
45        } else if ($(this).attr('data-ready') == 'show') {
46            $(this).popover('hide');
47            $(this).attr('data-ready', 'hide');
48        }
49
50
51        return false;
52    });
53
54    $('body').on('click', '.wpdm-indir', function (e) {
55        e.preventDefault();
56        $('#xfilelist').load(location.href, {
57            action: 'wpdmfilelistcd',
58            pid: $(this).data('pid'),
59            cd: $(this).data('dir')
60        });
61    });
62
63    $('body').on('click', '.po-close', function () {
64
65        $('.wpdm-download-link').popover('hide');
66        $('.wpdm-download-link').attr('data-ready', 'hide');
67
68    });
69
70
71    $('body').on('click', '.wpdm-btn-play', function (e) {
72        e.preventDefault();
73        var player = $('#' + $(this).data('player'));
74        var btn = $('#' + this.id);
75
76        if (btn.data('state') == 'playing') {
77            $(this).data('state', 'paused');
78            player.trigger('pause');
79            $(this).html("<i class='fa fa-play'></i>");
80            return false;
81        }
82
83        if (btn.data('state') == 'paused') {
84            $(this).data('state', 'playing');
85            player.trigger('play');
86            $('.wpdm-btn-play').html("<i class='fa fa-play'></i>");
87            $(this).html("<i class='fa fa-pause'></i>");
88            return false;
89        }
90
91
92        player.attr('src', $(this).data('song') + "&play=song.mp3");
93        player.slideDown();
94        $('.wpdm-btn-play').data("state", "stopped");
95        $('.wpdm-btn-play').html("<i class='fa fa-play'></i>");
96        btn.html("<i class='fa fa-spinner fa-spin'></i>");
97        player.unbind('loadedmetadata');
98        player.on('loadedmetadata', function () {
99            console.log("Playing " + this.src + ", for: " + this.duration + "seconds.");
100            btn.html("<i class='fa fa-pause'></i>");
101            btn.data('state', 'playing');
102            //audio.play();
103        });
104    });
105
106
107    // Uploading files
108    var file_frame, dfield;
109
110
111    jQuery('body').on('click', '.wpdm-media-upload', function (event) {
112        event.preventDefault();
113        dfield = jQuery(jQuery(this).attr('rel'));
114
115        // If the media frame already exists, reopen it.
116        if (file_frame) {
117            file_frame.open();
118            return;
119        }
120
121        // Create the media frame.
122        file_frame = wp.media.frames.file_frame = wp.media({
123            title: jQuery(this).data('uploader_title'),
124            button: {
125                text: jQuery(this).data('uploader_button_text')
126            },
127            multiple: false  // Set to true to allow multiple files to be selected
128        });
129
130        // When an image is selected, run a callback.
131        file_frame.on('select', function () {
132            // We set multiple to false so only get one image from the uploader
133            attachment = file_frame.state().get('selection').first().toJSON();
134            dfield.val(attachment.url);
135
136        });
137
138        // Finally, open the modal
139        file_frame.open();
140    });
141
142    try {
143        /*
144         FB.login(function(response) {
145         if (response.session) {
146
147         var user_id = response.session.uid;
148         var page_id = "40796308305"; //coca cola
149         var fql_query = "SELECT uid FROM page_fan WHERE page_id = "+page_id+"and uid="+user_id;
150         var the_query = FB.Data.query(fql_query);
151
152         the_query.wait(function(rows) {
153
154         if (rows.length == 1 && rows[0].uid == user_id) {
155         $("#container_like").show();
156
157         //here you could also do some ajax and get the content for a "liker" instead of simply showing a hidden div in the page.
158
159         } else {
160         $("#container_notlike").show();
161         //and here you could get the content for a non liker in ajax...
162         }
163         });
164
165
166         } else {
167         // user is not logged in
168         }
169         });
170         */
171    } catch (err) {
172    }
173
174});

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.