PageSourceSearch

https://petro-center.lu/wp-content/plugins/rometheme-for-elementor/widgets/assets/js/pie_chart.js?ver=1.6.8

js petro-center.lu collected 2026-09-24 10:16:27 UTC 916 bytes, 28 lines download raw bytes

1jQuery(window).on('elementor/frontend/init', function () {
2    elementorFrontend.hooks.addAction('frontend/element_ready/rkit-pie-chart.default', function ($scope, $) {
3        var ctx = $scope.find("#pieChart")[0].getContext("2d");
4        var labels = $scope.find('#pieChart').data('label');
5        var datasets = $scope.find('#pieChart').data('datasets');
6        var legend = $scope.find('#pieChart').data('legend');
7        var type = $scope.find('#pieChart').data('type');
8
9        var data = {
10            labels: labels,
11            datasets: [datasets]
12        };
13
14        var options = {
15            responsive: true,
16            maintainAspectRatio: true,
17            plugins: {
18                legend: legend
19            }
20        };
21
22        var myChart = new Chart(ctx, {
23            type: type,
24            data: data,
25            options: options
26        });
27    });
28});

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.