PageSourceSearch

https://hype-net.de/wp-content/plugins/mwt-addons//static/js/mod-post-likes.js?ver=1.0.0

js hype-net.de collected 2026-10-07 05:34:58 UTC 1,860 bytes, 52 lines download raw bytes

1jQuery(document).ready(function($) {
2    "use strict";
3    //like button
4    jQuery("a.like_button").click(function(e){
5        e.preventDefault();
6        var $this = jQuery(this);
7        if(!$this.hasClass('like_active_button')) {
8            //return;
9        }
10        var $parent = $this.parent();
11        var id = $parent.data('id'),
12            data = {
13                action: 'add_like',
14                security : MyAjax.security,
15                pID: id
16            };
17
18        // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
19        var post_result = $.post(MyAjax.ajaxurl, data, function(response) {
20            $parent.html('<span class="like_button highlight"><i class="rt-icon2-checkmark2"></i></span>');
21            jQuery('.votes_count_'+id).html(response);
22        }).done(function() {
23
24        }).fail(function(xhr, textStatus, errorThrown) {
25            console.log(xhr.responseText);
26        }).always(function() {
27        });
28
29    });
30    //$(".like_button").click(function(e){
31    //    var id = $(this).parent().data('id'),
32    //        data = {
33    //        action: 'add_like',
34    //        security : MyAjax.security,
35    //        pID: id
36    //        },
37    //        parent = $(this).parent();
38    //
39    //    // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
40    //    var post_result = $.post(MyAjax.ajaxurl, data, function(response) {
41    //        parent.html('<i class="rt-icon icon-heart3"></i>');
42    //        $('.votes_count_'+id).html(response);
43    //    }).done(function() {
44    //
45    //    }).fail(function(xhr, textStatus, errorThrown) {
46    //        console.log(xhr.responseText);
47    //    }).always(function() {
48    //    });
49    //
50    //    e.preventDefault();
51    //});
52});

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.