  <script>$(document).ready(function() {
      const movieSelect = $('#movie');
      const showSelect = $('#beginnzeit');
      const ticketInput=$('#ticket'); 
      console.log("helo");
    //reset dropdown on laod  
  	movieSelect.val(movieSelect.find('option:first').val());
    ticketInput.val("");

  	function fillDropdownMovies(data) {
              const dropdown = $('#movie');
              // Leeren des Dropdowns
              dropdown.empty().append('<option value="" class="highlight">Wählen Sie einen Film</option>');
              // Set zur Verfolgung der bereits hinzugefügten Titel
              const titlesSet = new Set();
              // Iteration über die Datenstruktur
              Object.keys(data).forEach(key => {
                  data[key].forEach(show => {
                      if (!titlesSet.has(show.title)) {
                          const option = $('<option></option>').attr('value', key).text(show.title);
                          dropdown.append(option);
                          titlesSet.add(show.title);
                      }
                  });
              });
          }
  	
    function fillDropdownShows(movieid) {
        const dropdown = $('#beginnzeit');
        dropdown.empty().append('<option value="">Beginnzeit</option>');
        data[movieid].forEach(show => {
            const option = $('<option></option>')
                .attr('value', show.showid)
                .text(show.startdate);
    
            // Überprüfen, ob "ausverkauft" im startdate enthalten ist
            if (show.startdate.toLowerCase().includes('ausverkauft')) {
                option.attr('disabled', 'disabled');
            }
    
            dropdown.append(option);
        });
    }
  
  	
  	movieSelect.on('change', function() {
          const movieid = $(this).val();
          const selectedMovieText = $(this).find('option:selected').text();
          $('#movietitle').val(selectedMovieText);

          if (movieid) {
              showSelect.prop('disabled', false);
              fillDropdownShows(movieid);
          } else {
              showSelect.html('<option value="">Wählen Sie eine Vorstellung</option>');
              showSelect.prop('disabled', true);
          }
      });

      showSelect.on('change', function() {
        const selectedShowText = $(this).find('option:selected').text();
        $('#showtitle').val(selectedShowText); 
      }); 
  
  	const data = JSON.parse($('#data-container').val());
  	fillDropdownMovies(data);
    //init some fields
    movieSelect.val(movieSelect.find('option:first').val());
    ticketInput.val(""); 
    
    
    
   
   // $('#reservation-form').on('submit', function(event) {
     // event.preventDefault();
     // if (confirm(ticketInput.val("") + 'Karten für '+movieSelect.val("")+ ' reservieren ?')) {
     //   this.submit();
     // } else {
              
       //   }
   // });
    
    
    
  });
  </script>    <!-- Automatisches Neuladen alle 20 Minuten -->
    <script>
        setTimeout(function() {
            window.location.reload();
            console.log("reloading");
        }, 1200000); // 20 Minuten
    </script>

    <input type="hidden" id="nonce" name="nonce" value="6f6f171554" /><input type="hidden" name="_wp_http_referer" value="/page-sitemap.xml" /><?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//test.kino-horn.at/main-sitemap.xsl"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd http://www.google.com/schemas/sitemap-image/1.1 http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<url>
		<loc>https://test.kino-horn.at/</loc>
		<lastmod>2026-05-24T14:39:14+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/kartenpreise.html</loc>
		<lastmod>2026-06-03T11:59:51+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/gutscheine.html</loc>
		<lastmod>2026-05-24T16:14:50+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/reservieren.html</loc>
		<lastmod>2026-05-24T15:58:55+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/veranstaltungen.html</loc>
		<lastmod>2026-05-24T15:28:40+00:00</lastmod>
		<image:image>
			<image:loc>https://test.kino-horn.at/wp-content/uploads/2026/03/volksbank_kino_horn.jpg</image:loc>
		</image:image>
		<image:image>
			<image:loc>https://test.kino-horn.at/wp-content/uploads/2026/02/benefiz_horn_filmabend.jpg</image:loc>
		</image:image>
		<image:image>
			<image:loc>https://test.kino-horn.at/wp-content/uploads/2025/01/LUX_AUDIENCE_AWARD_GENERIC_L_pos_DE.jpg</image:loc>
		</image:image>
		<image:image>
			<image:loc>https://test.kino-horn.at/wp-content/uploads/2026/03/danke2026kino.jpg</image:loc>
		</image:image>
		<image:image>
			<image:loc>https://test.kino-horn.at/wp-content/uploads/2025/10/wb_pizzera_jaus.jpg</image:loc>
		</image:image>
		<image:image>
			<image:loc>https://test.kino-horn.at/wp-content/uploads/2025/09/guardians_horn.png</image:loc>
		</image:image>
		<image:image>
			<image:loc>https://test.kino-horn.at/wp-content/uploads/2025/06/513509402_23874967958838842_393166672252846567_n.jpg</image:loc>
		</image:image>
		<image:image>
			<image:loc>https://test.kino-horn.at/wp-content/uploads/2025/05/alarm2.jpg</image:loc>
		</image:image>
		<image:image>
			<image:loc>https://test.kino-horn.at/wp-content/uploads/2025/05/IMG-20250413-WA0046.jpg</image:loc>
		</image:image>
	</url>
	<url>
		<loc>https://test.kino-horn.at/eb.html</loc>
		<lastmod>2026-05-24T14:39:41+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/snacks-und-getraenke.html</loc>
		<lastmod>2026-05-24T14:39:39+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/bestaetigung-newsletter-anmeldung-html.html</loc>
		<lastmod>2026-05-24T14:39:38+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/filmarchiv.html</loc>
		<lastmod>2026-05-24T14:39:36+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/kontakt-anfahrt.html</loc>
		<lastmod>2026-05-24T14:39:35+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/programm.html</loc>
		<lastmod>2026-05-24T14:39:32+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/ueber-uns.html</loc>
		<lastmod>2026-05-24T14:39:29+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/newsletter.html</loc>
		<lastmod>2026-05-24T14:39:27+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/film.html</loc>
		<lastmod>2026-05-24T14:39:26+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/datenschutz.html</loc>
		<lastmod>2026-05-24T14:39:23+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/impressum.html</loc>
		<lastmod>2026-05-24T14:39:21+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/reservieren/bestaetigung.html</loc>
		<lastmod>2026-05-24T14:39:19+00:00</lastmod>
	</url>
	<url>
		<loc>https://test.kino-horn.at/geschichte.html</loc>
		<lastmod>2026-05-24T14:39:16+00:00</lastmod>
	</url>
</urlset>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->