PageSourceSearch

https://uk.themedialeader.com/wp-content/themes/themedialeader/ass…/js/claude_chart_exec.js?ver=20260709093044

js themedialeader.com collected 2026-10-02 03:12:00 UTC 767 bytes, 30 lines download raw bytes

1/**
2 * Resize Claude (Chart.js) embeds after load when container height was adjusted in PHP.
3 */
4(function ($) {
5    'use strict';
6
7    function resizeClaudeCharts() {
8        $('.claude-chart-embed:not([data-context="article"]) canvas').each(function () {
9            if (typeof Chart === 'undefined') {
10                return;
11            }
12
13            var chart = Chart.getChart(this);
14
15            if (chart) {
16                chart.resize();
17            }
18        });
19    }
20
21    $(document).ready(function () {
22        resizeClaudeCharts();
23        setTimeout(resizeClaudeCharts, 100);
24    });
25
26    document.addEventListener('tml-claude-charts-ready', function () {
27        resizeClaudeCharts();
28        setTimeout(resizeClaudeCharts, 100);
29    });
30})(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.