PageSourceSearch

https://foto-dmd.ru/assets/47b5e796/authchoice.js?v=1698612011

js foto-dmd.ru collected 2026-10-07 18:15:52 UTC 1,505 bytes, 54 lines download raw bytes

1window.onload = function () {
2  $(document).on('click', 'a.auth-link', function (e) {
3    e.preventDefault();
4
5    var options = {
6      popup: {
7        resizable: 'yes',
8        scrollbars: 'no',
9        toolbar: 'no',
10        menubar: 'no',
11        location: 'no',
12        directories: 'no',
13        status: 'yes',
14        width: 450,
15        height: 380
16      }
17    };
18
19    var $container = $(this).parent().parent();
20    var authChoicePopup = $container.data('authChoicePopup');
21
22    if (authChoicePopup) {
23      authChoicePopup.close();
24    }
25
26    var url = this.href;
27    var popupOptions = $.extend({}, options.popup); // clone
28
29    var localPopupWidth = this.getAttribute('data-popup-width');
30    if (localPopupWidth) {
31      popupOptions.width = localPopupWidth;
32    }
33    var localPopupHeight = this.getAttribute('data-popup-height');
34    if (localPopupWidth) {
35      popupOptions.height = localPopupHeight;
36    }
37
38    popupOptions.left = (window.screen.width - popupOptions.width) / 2;
39    popupOptions.top = (window.screen.height - popupOptions.height) / 2;
40
41    var popupFeatureParts = [];
42    for (var propName in popupOptions) {
43      if (popupOptions.hasOwnProperty(propName)) {
44        popupFeatureParts.push(propName + '=' + popupOptions[propName]);
45      }
46    }
47    var popupFeature = popupFeatureParts.join(',');
48
49    authChoicePopup = window.open(url, 'yii_auth_choice', popupFeature);
50    authChoicePopup.focus();
51
52    $container.data('authChoicePopup', authChoicePopup);
53  });
54};

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.