PageSourceSearch

https://istuprofi.ru/wp-content/plugins/learnpress/assets/js/vendo…?nocache=1790379146.0778&ver=3.2.5.3

js istuprofi.ru collected 2026-09-25 23:33:07 UTC 2,030 bytes, 72 lines download raw bytes

1;(function ($) {
2    $.circleBar = function (el, options) {
3        this.options = $.extend({
4            value: 0
5        }, options || {});
6
7        var that = this,
8            $bg = $(el),
9            $bg50 = $(el).find('.before'),
10            $bg100 = $(el).find('.after'),
11            bgColor = '#DDD',
12            activeColor = '#FF0000';
13
14        function draw() {
15            var deg = that.options.value * 360 / 100;
16            $bg.removeClass('bg50 bg100')
17            if (that.options.value <= 50) {
18                $bg.addClass('bg50');
19                $bg50.css('transform', 'rotate(' + (-135 + deg) + 'deg)');
20            } else {
21                $bg.addClass('bg100');
22                $bg100.css('transform', 'rotate(' + (-135 + ((that.options.value - 50) * 180 / 50)) + 'deg)');
23            }
24        }
25
26        draw();
27
28        this.value = function (val) {
29            if (val) {
30                that.options.value = val;
31                draw();
32                return $bg;
33            }
34
35            return that.options.value;
36        }
37    }
38    $.fn.circleBar = function (options, val) {
39        if (typeof options === 'string') {
40            var $circleBar = $(this).data('circleBar');
41            if (!$circleBar) {
42                return null;
43            }
44            if ($circleBar[options]) {
45                return $circleBar[options].apply($circleBar, [val]);
46            }
47        }
48        return $.each(this, function () {
49            var $circleBar = $(this).data('circleBar');
50
51            if (!$circleBar) {
52                $circleBar = new $.circleBar(this, options);
53                $(this).data('circleBar', $circleBar);
54            }
55        })
56    }
57
58    $(document).ready(function () {
59        var i = 0;
60        var $c = $('.quiz-result-overall').circleBar({
61            value: 45
62        });
63        var t = setInterval(function () {
64            $c.circleBar('value', i++);
65            if (i > 100) {
66                clearInterval(t);
67            }
68
69        }, 40)
70    })
71
72})(jQuery);

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.