{"timeout":1738149112,"value":{"content":"<div class="elementor-element elementor-element-498a155 e-con-full e-flex e-con e-parent" data-id="498a155" data-element_type="container" data-settings="{&quot;_ha_eqh_enable&quot;:false}">ntttt<div class="elementor-element elementor-element-7642c86 elementor-widget elementor-widget-html" data-id="7642c86" data-element_type="widget" data-widget_type="html.default">ntttt<div class="elementor-widget-container">nttttt<script>nnnnjQuery( document ).ready(function() {n    console.log( "ready! w elementorze" );n    n    njQuery( ".events_admin .gv-list-view-content-description" ).addClass( "row");njQuery( ".events_admin .dt-buttons" ).addClass( "btn btn-outline-secondary  btn-sm");nnnjQuery( ".wrap-card-1" ).wrapAlln( "<div id='heats-list' class='container' /><div class='card' />");njQuery( ".wrap-card-2" ).wrapAlln( "<div id='participants-list' class='container xy-4 card-2 ' /><div class='card' />");njQuery( ".wrap-card-3" ).wrapAlln( "<div id='heats-timeline' class='container xy-4 card-3  col-md-5 col-12' /><div class='card' />");njQuery( ".wrap-card-4" ).wrapAlln( "<div id='heats-raports' class='container xy-4 card-3  col-12' /><div class='card' />");nnnnnjQuery( ".wrap-card-body-1" ).wrapAll( "<div class='card-body' />");njQuery( ".wrap-card-body-2" ).wrapAll( "<div class='card-body' />");njQuery( ".wrap-card-body-4" ).wrapAll( "<div class='card-body' />");n    n});nn    n    n     jQuery( window ).on( "load", function() {n        console.log( "window loaded" );n         // Reference to the DataTable instancenvar table_HeatsList = jQuery('#heats-list table.gv-datatables').DataTable();nvar table_HeatsStamps = jQuery('.table_HeatsStamps table.gv-datatables').DataTable();nvar table_ResultsHeats = jQuery('.table_ResultsHeats table.gv-datatables').DataTable();n// Variable to track the auto-update statenvar autoUpdate = true;nn// Function to auto-update the tablenfunction autoUpdateTable() {n    if (autoUpdate) {n        table_HeatsList.ajax.reload(null, false); // Reloads without resetting paginationn        table_HeatsStamps.ajax.reload(null, false); // Reloads without resetting paginationn       table_ResultsHeats.ajax.reload(null, false); // Reloads without resetting paginationn    }n}nn// Set an interval for auto-updating (e.g., every 5 seconds)nvar updateInterval = setInterval(autoUpdateTable, 5000);nn// Toggle button functionalitynjQuery('.toggle-update').on('click', function () {n    autoUpdate = !autoUpdate; // Toggle auto-update statenn    // Update button appearance and text based on staten    if (autoUpdate) {n        jQuery(this)n            .removeClass('text-bg-primary')n            .addClass('text-bg-success')n            .html('<span id="toggle-update" class="badge text-bg-success"> Updating ...</span>');n    } else {n        jQuery(this)n            .removeClass('text-bg-success')n            .addClass('text-bg-primary')n            .text('Resume Updates');n    }n});nnnjQuery(".dataTables_processing").addClass('syled-spinner-datatable').html('<div class="spinner-grow text-success" role="status">  <span class="visually-hidden">Loading...</span></div>');nnnn// Initialize tooltipsn  const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');n  const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));nnn    });n    n   nn</script>tttt</div>ntttt</div>ntttt</div>ntttt<section class="elementor-section elementor-top-section elementor-element elementor-element-3c860c3 elementor-section-full_width elementor-section-height-default elementor-section-height-default" data-id="3c860c3" data-element_type="section" data-settings="{&quot;_ha_eqh_enable&quot;:false}">ntttttt<div class="elementor-container elementor-column-gap-default">nttttt<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2cf6208" data-id="2cf6208" data-element_type="column">nttt<div class="elementor-widget-wrap elementor-element-populated">ntttt[elementor-element data="eyJpZCI6IjJhNWNlNTgiLCJlbFR5cGUiOiJ3aWRnZXQiLCJzZXR0aW5ncyI6eyJzaG9ydGNvZGUiOiJbZ3Jhdml0eXZpZXcgaWQ9XCIxMzFcIl0iLCJfY3NzX2NsYXNzZXMiOiJldmVudHNfYWRtaW4iLCJoYV9jbWNfdGV4dCI6IkhhcHB5IEFkZG9ucyJ9LCJlbGVtZW50cyI6W10sIndpZGdldFR5cGUiOiJzaG9ydGNvZGUifQ=="][elementor-element data="eyJpZCI6ImExNDcyMDkiLCJlbFR5cGUiOiJ3aWRnZXQiLCJzZXR0aW5ncyI6eyJzaG9ydGNvZGUiOiJbZ3Jhdml0eXZpZXcgaWQ9XCI2MDJcIl0iLCJfY3NzX2NsYXNzZXMiOiJldmVudHNfYWRtaW4iLCJoYV9jbWNfdGV4dCI6IkhhcHB5IEFkZG9ucyJ9LCJlbGVtZW50cyI6W10sIndpZGdldFR5cGUiOiJzaG9ydGNvZGUifQ=="][elementor-element data="eyJpZCI6IjRkMDgwOWEiLCJlbFR5cGUiOiJ3aWRnZXQiLCJzZXR0aW5ncyI6eyJzaG9ydGNvZGUiOiJbZ3Jhdml0eXZpZXcgaWQ9XCIxMDAzXCJdIiwiX2Nzc19jbGFzc2VzIjoiZXZlbnRzX2FkbWluIiwiaGFfY21jX3RleHQiOiJIYXBweSBBZGRvbnMifSwiZWxlbWVudHMiOltdLCJ3aWRnZXRUeXBlIjoic2hvcnRjb2RlIn0="]tt<div class="elementor-element elementor-element-f6713d5 elementor-widget elementor-widget-html" data-id="f6713d5" data-element_type="widget" data-widget_type="html.default">ntttt<div class="elementor-widget-container">nttttt<script>nn    tjQuery( document ).ready(function() {n    jQuery('.athlets-list table').addClass('table-bordered table table-striped');n});nnn// Run the function on page loadnjQuery(document).ready(function () {n    jQuery('.athlets-list table tbody tr').each(function () {n        applyStylesToTableRow(this);n    });n});n</script>tttt</div>ntttt</div>ntttt<div class="elementor-element elementor-element-3ad8390 elementor-widget elementor-widget-html" data-id="3ad8390" data-element_type="widget" data-widget_type="html.default">ntttt<div class="elementor-widget-container">nttttt<script>n    jQuery(document).on('gform_post_render', function() {n    jQuery('#event_state').on('submit', function(event) {n        event.preventDefault();nn        const formData = jQuery(this).serialize();nn        jQuery.ajax({n            url: YOUR_AJAX_URL,n            type: 'POST',n            data: formData,n            success: function(response) {n                if (response.success) {n                    alert(response.data.message); // Show success messagen                } else {n                    alert('An error occurred. Please try again.');n                }n            },n            error: function() {n                alert('An error occurred while processing the form.');n            },n        });n    });n});n</script>tttt</div>ntttt</div>nttttt</div>ntt</div>nttttt</div>ntt</section>ntt","scripts":[],"styles":[]}}