PageSourceSearch

https://afie.or.jp/wp/wp-content/plugins/download-manager/assets/js/front.js?ver=4.9.26

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

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.