PageSourceSearch

https://medformers.com/wp-content/plugins/mycred-learndash/inc/ass…/learndash-mycred-pts-handler.js?ver=7.1.2

js medformers.com collected 2026-10-08 03:00:05 UTC 1,054 bytes, 37 lines download raw bytes

1jQuery(document).ready(function ($) {
2    $('.myCred_override_hook').on('click', function () {
3        show_hide_override($(this));
4    });
5
6    show_hide_override($('.myCred_override_hook'));
7
8    function show_hide_override(current_class) {
9        if ($(current_class).prop('checked') === true) {
10            $('.display-none').show();
11        } else {
12            $('.display-none').hide();
13        }
14    }
15
16    $('.learndash-mycred-pts-button').on('click', function (e) {
17        e.preventDefault();
18        $.ajax({
19            type: "POST",
20            dataType: "json",
21            url: LD_MYCRED_Handler.ajax_url,
22            data: {
23                action: 'pts_handler',
24                course: $('.learndash-mycred-pts-button').data('course')
25            },
26            success: function (data) {
27                if (data.success == false) {
28                    alert(data.data);
29                } else {
30                    alert(data.data);
31                    location.reload(true);
32                }
33            }
34        });
35    });
36
37});

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.