PageSourceSearch

https://icrontic.com/plugins/Reactions/js/reactions.js?v=4.0-2020.015-SNAPSHOT

js icrontic.com collected 2026-10-02 08:33:37 UTC 1,903 bytes, 55 lines download raw bytes

1jQuery(document).ready(function($) {
2
3   $(document).on('click', '.Buried', function(e) {
4      e.preventDefault();
5      $(this).removeClass('Buried').addClass('Un-Buried');
6//      console.log('buried click');
7      return false;
8   });
9
10   $(document).on('click', '.Un-Buried', function() {
11//      console.log('unburied click');
12      $(this).removeClass('Un-Buried').addClass('Buried');
13   });
14
15   $(document).on('mouseenter', '.ReactButton', function() {
16       var $button = $(this);
17
18       if (gdn.definition('ShowUserReactions', false) != 'popup' || $('.Count', $button).length == 0 || !$button.data('reaction'))
19           return;
20
21       var itemID = $button.closest('.Item').attr('id');
22       var $menu = $('.MenuItems-Reactions', $button);
23
24       if ($menu.length == 0) {
25            // Construct the initial div.
26            $menu = $('<div class="MenuItems MenuItems-Reactions Up"><div class="TinyProgress" /></div>')
27                .css('visibility', 'hidden')
28                .attr('aria-hidden', 'true')
29                .attr('tabindex', '-1')
30                .appendTo($button);
31
32            $.ajax({
33                url: gdn.url('/reactions/users/'+itemID.split('_').join('/')+'/'+$button.data('reaction')),
34                data: {DeliveryType: 'VIEW'},
35                success: function(data) {
36                    $menu.html(data);
37                }
38            });
39       }
40
41       // Position the menu above the reaction button.
42       var left = ($button.outerWidth() - $menu.outerWidth()) / 2.0;
43       var bottom = $button.height();
44
45       $menu.css({ bottom: bottom, left: left, visibility: 'visible' });
46   });
47
48   $(document).on('mouseleave', '.ReactButton', function() {
49       $('.MenuItems-Reactions', $(this)).css({visibility: 'hidden'});
50   });
51
52    $(document).on('click', '.MenuItems-Reactions a', function(event) {
53        event.stopPropagation();
54    });
55});

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.