PageSourceSearch

https://static.virtuagym.com/v29524157/javascript/ui.js

js virtuagym.com collected 2026-10-01 10:24:46 UTC 1,163 bytes, 46 lines download raw bytes

1;(function ($, window, document, undefined) {
2
3    'use strict';
4
5    let $ripple = $('.js-ripple');
6
7    $ripple.on('click.ui.ripple', function (e) {
8
9        let $this = $(this);
10        let $offset = $this.parent().offset();
11        let $circle = $this.find('.c-ripple__circle');
12
13        let x = e.pageX - $offset.left;
14        let y = e.pageY - $offset.top;
15
16        $circle.css({
17            top: y + 'px',
18            left: x + 'px'
19        });
20
21        $this.addClass('is-active');
22
23    });
24
25    $ripple.on('animationend webkitAnimationEnd oanimationend MSAnimationEnd', function (e) {
26        $(this).removeClass('is-active');
27    });
28
29})(jQuery, window, document);
30
31function ui_update_progress(id, percentage) {
32    if (percentage > 100) {
33        percentage = 100;
34    }
35
36    if (percentage < 0) {
37        percentage = 0;
38    }
39
40    let progress_element = $('#' + id);
41    progress_element.attr('aria-valuenow', percentage);
42    progress_element.find('.value').html(percentage + '%');
43
44    let calc = (progress_element.find('.bar').attr('stroke-dasharray') * (1 - percentage / 100));
45    progress_element.find('.bar').attr('stroke-dashoffset', calc);
46}

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.