PageSourceSearch

https://mpress.mn/themes/bootstrap/js/reactions.js?v=1.2.8

js mpress.mn collected 2026-10-04 13:29:28 UTC 1,271 bytes, 40 lines download raw bytes

1$(function () {
2
3    reactInit();
4
5    $('body').on('click', '#reactions .react', function () {
6
7        var postid = $(this).data('postid'),
8            reactid = $(this).data('reactid');
9
10        $.post('/webapi/reaction', { postid, reactid }, function (res) {
11            reactInit();
12        });
13
14    });
15
16})
17
18
19function reactInit() {
20    $('.sharethis-inline-reaction-buttons').each(function () {
21        var postid = $(this).data('postid'),
22            self = this,
23            html = '<div id="reactions" class="d-flex align-items-center gap-3 justify-content-center">';
24
25        $.get('/webapi/reactions/' + postid, function (res) {
26            $.each(res, function (i, item) {
27                html += '<div class="react" data-postid="' + postid + '" data-reactid="' + item['id'] + '">'
28                html += '<div class="react-icon"><img src="/' + item['icon'] + '" height="40"/></div>'
29                html += '<div class="react-label">'
30                html += '<div class="react-name">' + item['name'] + '</div>'
31                html += '<div class="react-count">' + item['count'] + '</div>'
32                html += '</div>'
33                html += '</div>'
34            })
35
36            html += '</div>';
37            $(self).html(html);
38        });
39    });
40}

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.