PageSourceSearch

https://www.vkusnyblog.com/wp-content/themes/vb21/includes/js/logged_out.js?ver=2.3.19

js vkusnyblog.com collected 2026-10-03 21:26:49 UTC 2,727 bytes, 77 lines download raw bytes

1function addLink() {
2    //Get the selected text and append the extra info
3    var selection = window.getSelection(),
4        pagelink = '<br /><br /> Полный текст: ' + document.location.href,
5        copytext = selection + pagelink,
6        newdiv = document.createElement('div');
7
8    //hide the newly created container
9    newdiv.style.position = 'absolute';
10    newdiv.style.left = '-99999px';
11
12    //insert the container, fill it with the extended text, and define the new selection
13    document.body.appendChild(newdiv);
14    newdiv.innerHTML = copytext;
15    selection.selectAllChildren(newdiv);
16
17    window.setTimeout(function () {
18        document.body.removeChild(newdiv);
19    }, 100);
20}
21document.addEventListener('copy', addLink);
22
23jQuery(document).ready(function($) {
24    function sendLoginForm() {
25        $.ajax({
26            type: "POST",
27            url: VB.ajaxurl,
28            data: {
29                'action': 'ajaxlogin', //calls wp_ajax_nopriv_ajaxlogin
30                'nonce': VB.NotLoggedNonce,
31                'username': $('form#form_login #user_login').val(),
32                'password': $('form#form_login #user_pass').val(),
33                'rememberme': $('form#form_login #rememberme').val()
34            },
35            cache: false,
36            beforeSend: function() {
37                $("#login_errors").html("");
38                $("#form_login").addClass("loading");
39            },
40            success: function(data) {
41                console.log('data', data);
42                $("#form_login").removeClass("loading");
43                if (data.loggedin == true) {
44                    window.location.reload(true);
45                } else {
46                    console.log('error', data.message);
47                    $("#login_errors").html(data.message);
48                }
49            }
50        });
51    }
52
53    function get_login_modal(e) {
54        e.preventDefault();
55
56        $("#dialogs").load(VB.ajaxurl, {
57            "action": "get_modal_login",
58            "data":{
59                "url": window.location.href
60            }
61        }, function() {
62            let options;
63            window.LoginModal = new bootstrap.Modal(document.getElementById('modal_login'), options);
64            window.LoginModal.show();
65
66            var form_login = $('#form_login');
67            form_login.on('submit', function(event) {
68                event.preventDefault();
69                sendLoginForm();
70                //window.LoginModal.hide();
71            });
72        });
73    }
74    $(document).on("click", ".get_access_mmenu", get_login_modal);
75
76    $(document).on("click", ".get_login_modal", get_login_modal);
77});

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.