// JavaScript to reorganize the ticket table document.addEventListener('DOMContentLoaded', function() { // Find the price table const priceTable = document.querySelector('.table.price-list'); if (!priceTable) return; // Create a container for our new layout const ticketContainer = document.createElement('div'); ticketContainer.className = 'ticket-card-container'; // Get all header cells const headerCells = priceTable.querySelectorAll('thead td'); // Get all price rows const priceRows = priceTable.querySelectorAll('tbody tr'); // Create card for each ticket type headerCells.forEach((header, index) => { // Create a card element const card = document.createElement('div'); card.className = 'ticket-card'; // Add header content const headerContent = document.createElement('div'); headerContent.className = 'ticket-header'; headerContent.innerHTML = header.innerHTML; card.appendChild(headerContent); // Add price content from each row priceRows.forEach(row => { const priceCell = row.querySelector(`td[data-cell="${index+1}"]`); if (priceCell) { const priceContent = document.createElement('div'); priceContent.className = 'ticket-price'; priceContent.innerHTML = priceCell.innerHTML; card.appendChild(priceContent); } }); // Add the card to the container ticketContainer.appendChild(card); }); // Replace the table with our new container priceTable.parentNode.insertBefore(ticketContainer, priceTable); priceTable.style.display = 'none'; }); // Add CSS for the new layout const style = document.createElement('style'); style.textContent = ` .ticket-card-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; width: 100%; margin: 20px 0; } .ticket-card { background-color: #f5f5f5; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 20px; display: flex; flex-direction: column; } .ticket-header { font-weight: bold; margin-bottom: 15px; font-size: 16px; color: #333; } .ticket-price { background-color: white; border-radius: 5px; padding: 10px; margin-top: 10px; } .ticket-price .radio { margin: 10px 0; } .ticket-price .ticket-price-block { font-weight: bold; font-size: 18px; display: block; margin: 5px 0; } .ticket-price .no-available { opacity: 0.7; } .ticket-price .no-available div { color: #d9534f; font-style: italic; margin-top: 5px; } @media (max-width: 992px) { .ticket-card-container { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 576px) { .ticket-card-container { grid-template-columns: 1fr; } } `; document.head.appendChild(style); Update cookies preferences // Get the input element const inputElement = document.querySelector('.MuiInputBase-input'); if (inputElement || inputElement.parentNode) { // Get the value of the input const link = inputElement.value; // Create a link element const linkElement = document.createElement('a'); linkElement.href = link; linkElement.textContent = link; linkElement.target = '_blank'; // Wrap the link around the input container inputElement.parentNode.replaceChild(linkElement, inputElement); } -->
de

Registrierung

This is for the visitors

Choose File
Choose File
Die mit einem Sternchen (*) gekennzeichneten Felder sind Pflichtfelder.
Ausstehend. Bitte warten Sie.
Loading...