PageSourceSearch

https://neodex.ru/wa-apps/shop/plugins/callback/js/scripts.js

js neodex.ru collected 2026-10-05 18:20:34 UTC 1,533 bytes, 52 lines download raw bytes

1(function($) {
2function callback_plugin_show(){
3    if($('.callback-modal').length > 0) return;
4    var modal = $('<div class="callback-modal"></div>')
5        .css({display:'none'})
6        .appendTo($('body'))
7        .fadeIn()
8        .click(function(e){
9            if(!$(e.target).closest('.callback-form').length) {
10                callback_plugin_close();
11            }
12        });
13
14    var b = $('#callback-show');
15    if(b.hasClass('callback-show-side')) {
16        var w = '-'+(b.outerWidth()+5)+'px';
17        if(b.hasClass('callback-show-left_s')) {
18            b.animate({marginLeft:w});
19        } else {
20            b.animate({marginRight:w});
21        }
22    } else {
23        b.animate({marginTop:0});
24    }
25
26    $.get($.wa_shop_callback.plugin_url, function(resp){
27        modal.html(resp);
28        modal.find('input[name="page"]').val(location.href);
29        var d = new Date();
30        modal.find('input[name="usertime"]').val(d.toLocaleString());
31    })
32}
33function callback_plugin_close(){
34    $('.callback-modal').fadeOut(function(){
35        $(this).remove();
36    });
37    var b = $('#callback-show');
38    if(b.hasClass('callback-show-side')) {
39        b.animate({margin:'-42px 0 0'});
40    } else {
41        b.animate({marginTop:'-42px'});
42    }
43}
44$(function() {
45    $('body').on('click', '.callback_plugin_handler, #callback-show', function(e){
46        callback_plugin_show();
47        e.preventDefault();
48    }).on('click', '.callback-modal__close', function(){
49        callback_plugin_close();
50    });
51});
52})(jQuery);

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.