{"id":47,"date":"2025-07-13T11:58:55","date_gmt":"2025-07-13T09:58:55","guid":{"rendered":"https:\/\/alex.kafilm.de\/restaurant\/?page_id=47"},"modified":"2025-09-24T14:34:26","modified_gmt":"2025-09-24T12:34:26","slug":"speisekarte","status":"publish","type":"page","link":"https:\/\/alex.kafilm.de\/restaurant\/speisekarte\/","title":{"rendered":"Speisekarte"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"47\" class=\"elementor elementor-47\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-14c188d e-flex e-con-boxed e-con e-parent\" data-id=\"14c188d\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-33a51ae e-con-full e-flex e-con e-child\" data-id=\"33a51ae\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-bfcbd33 elementor-widget elementor-widget-heading\" data-id=\"bfcbd33\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">\ud83c\udf7d\ufe0f Speisekarte\u200b<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-48c4f87 e-flex e-con-boxed e-con e-parent\" data-id=\"48c4f87\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-06c64c9 elementor-widget elementor-widget-html\" data-id=\"06c64c9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div id=\"speisekarte\"><\/div>\n\n<script>\nconst tsvUrl = \"https:\/\/docs.google.com\/spreadsheets\/d\/e\/2PACX-1vQX0arT2E_1s4UheMzK5vhqfSL-7zxPxnoX4Sp20ZsI1jO8rN8NFDdxPJundljTx7f6dRds1ezrlOzB\/pub?gid=1898287883&single=true&output=tsv\"; \/\/ <<< Hier deine TSV-URL einf\u00fcgen\n\n\nfetch(tsvUrl)\n  .then(response => response.text())\n  .then(data => {\n    const rows = data.trim().split(\"\\n\");\n    const headers = rows.shift().split(\"\\t\");\n\n    const items = rows.map(row => {\n      const values = row.split(\"\\t\");\n      const item = {};\n      headers.forEach((header, index) => {\n        item[header] = values[index];\n      });\n      return item;\n    });\n\n    const grouped = {};\n    items.forEach(item => {\n      const category = item.category || \"Ohne Kategorie\";\n      if (!grouped[category]) {\n        grouped[category] = [];\n      }\n      grouped[category].push(item);\n    });\n\n    const container = document.getElementById(\"speisekarte\");\n    container.style.fontFamily = \"Arial, sans-serif\";\n    for (const [category, entries] of Object.entries(grouped)) {\n      const categoryHeader = document.createElement(\"h2\");\n      categoryHeader.textContent = category;\n      categoryHeader.style.marginTop = \"30px\";\n      container.appendChild(categoryHeader);\n\n      const table = document.createElement(\"table\");\n      table.style.width = \"100%\";\n      table.style.borderCollapse = \"collapse\";\n      table.style.marginBottom = \"20px\";\n\n      entries.forEach(entry => {\n        const row = document.createElement(\"tr\");\n\n        \/\/ Linke Spalte mit Title und (falls vorhanden) Description darunter\n        const leftCell = document.createElement(\"td\");\n        leftCell.style.padding = \"5px\";\n\n        const titleDiv = document.createElement(\"div\");\n        titleDiv.textContent = entry.title;\n        titleDiv.style.fontWeight = \"bold\";\n\n\n        leftCell.appendChild(titleDiv);\n\n        if (entry.description) {\n          const descDiv = document.createElement(\"div\");\n          descDiv.textContent = entry.description;\n          descDiv.style.fontWeight = \"normal\";\n          descDiv.style.fontSize = \"0.9em\";\n          descDiv.style.marginTop = \"2px\";\n          leftCell.appendChild(descDiv);\n        }\n\n        row.appendChild(leftCell);\n        \n        \/\/ Rechte Spalte mit Preis\n        const priceCell = document.createElement(\"td\");\n        priceCell.textContent = entry.price;\n        priceCell.style.textAlign = \"right\";\n        priceCell.style.padding = \"5px\";\n        row.appendChild(priceCell);\n\n        table.appendChild(row);\n      });\n\n      container.appendChild(table);\n    }\n  })\n  .catch(error => {\n    console.error(\"Fehler beim Laden der TSV:\", error);\n    document.getElementById(\"speisekarte\").innerHTML = \"<p>Speisekarte konnte nicht geladen werden.<\/p>\";\n  });\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-eea91a3 e-flex e-con-boxed e-con e-parent\" data-id=\"eea91a3\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9db7103 elementor-widget elementor-widget-html\" data-id=\"9db7103\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<iframe type=\"text\/html\" src=\"https:\/\/www.speisekarte.de\/partner\/digital\/menu\/478436\" width=\"1200px\" height=\"600px\" frameBorder=\"0\"><\/iframe>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\ud83c\udf7d\ufe0f Speisekarte\u200b<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-47","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/alex.kafilm.de\/restaurant\/wp-json\/wp\/v2\/pages\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alex.kafilm.de\/restaurant\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/alex.kafilm.de\/restaurant\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/alex.kafilm.de\/restaurant\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alex.kafilm.de\/restaurant\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":10,"href":"https:\/\/alex.kafilm.de\/restaurant\/wp-json\/wp\/v2\/pages\/47\/revisions"}],"predecessor-version":[{"id":1988,"href":"https:\/\/alex.kafilm.de\/restaurant\/wp-json\/wp\/v2\/pages\/47\/revisions\/1988"}],"wp:attachment":[{"href":"https:\/\/alex.kafilm.de\/restaurant\/wp-json\/wp\/v2\/media?parent=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}