PageSourceSearch

https://www.ra.ee/astra/assets/2c7d9c37/js/scripts.js?v=1790850535

js ra.ee collected 2026-10-01 10:29:40 UTC 2,312 bytes, 70 lines download raw bytes

1function getSelectedSchemas() {
2    'use strict';
3    return $('#schemas-grid').yiiGridView('getSelectedRows');
4}
5
6function showDescriptionUnitCompareAlert() {
7    'use strict';
8    $('#alert-div').append(
9        '<div class="alert alert-message alert-danger alert-dismissible fade in" data-alert>' +
10        '<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>' +
11        'Palun valige võrdlemiseks <strong>2</strong> liigitusskeemi.' +
12        '</div>');
13    $('.alert-message').delay(3000).fadeOut('slow', function() { $(this).remove(); });
14}
15
16$('#compare-schemas').click(function(event) {
17    'use strict';
18    event.preventDefault();
19    var schemasArray = getSelectedSchemas();
20    var url; // url for ajax request
21    var path = window.location.pathname;
22    var pathArray = path.split('/');
23    if (pathArray[1] === 'archive') {
24        url = '/archive/person/get-schemas';
25    } else if (pathArray[1] === 'person') {
26        url = '/person/get-schemas';
27    }
28    //console.log(url);
29    if (schemasArray.length === 0) {
30        showDescriptionUnitCompareAlert();
31    } else {
32        $.ajax({
33            url: url,
34            dataType: 'json',
35            type: 'POST',
36            data: {schemas: schemasArray},
37            success: function(data) {
38                if (data.response === 0) {
39                    showDescriptionUnitCompareAlert();
40                }
41            }
42        });
43    }
44});
45
46// TODO fix textarea rows for firefox. always displays n+1 rows
47/*$(document).ready(function() {
48    if (window.navigator.userAgent.match(/Firefox/i)) {
49        $('textarea[rows]').each(function(i, el) {
50            if (!$(el).data('ffRowsFixed')) {
51                var rows = parseInt($(el).attr('rows'));
52                if (rows > 1) {
53                    $(el).attr('rows', (rows - 1));
54                }
55                $(el).data('ffRowsFixed', true);
56            }
57        });
58    }
59});*/
60
61/**
62 * Returns true if browser is IE/Edge
63 * @param userAgent
64 * @returns {boolean}
65 */
66function isIE(userAgent) {
67    'use strict';
68    userAgent = userAgent || navigator.userAgent;
69    return userAgent.indexOf("MSIE ") > -1 || userAgent.indexOf("Trident/") > -1 || userAgent.indexOf("Edge/") > -1;
70}

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.