{"id":4616,"date":"2025-05-06T22:19:30","date_gmt":"2025-05-06T19:19:30","guid":{"rendered":"https:\/\/ptichka.dp.ua\/?page_id=4616"},"modified":"2025-05-08T16:30:05","modified_gmt":"2025-05-08T13:30:05","slug":"test","status":"publish","type":"page","link":"https:\/\/ptichka.dp.ua\/ru\/test\/","title":{"rendered":"\u0442\u0435\u0441\u0442"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1216.8px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\"><div style=\"max-width: 400px; margin: 20px auto; padding: 15px; border: 1px solid #ccc; border-radius: 10px;\">\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0430\u0443\u0447\u0435\u0440<\/h3>\n<p><input id=\"voucherInput\" style=\"width: 100%; padding: 8px;\" type=\"text\" placeholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, P-023)\" \/><br \/>\n<button style=\"margin-top: 10px; padding: 8px 12px;\">\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c<\/button><\/p>\n<div id=\"result\" style=\"margin-top: 15px;\"><\/div>\n<\/div>\n<p><script><br \/>\n  async function checkVoucher() {<br \/>\n    const code = document.getElementById(\"voucherInput\").value.trim().toUpperCase();<br \/>\n    const resultEl = document.getElementById(\"result\");<br \/>\n    if (!code) {<br \/>\n      resultEl.innerHTML = \"\u2757 \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0432\u0430\u0443\u0447\u0435\u0440\u0430.\";<br \/>\n      return;<br \/>\n    }<br \/>\n    resultEl.innerHTML = \"\ud83d\udd04 \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430...\";<\/p>\n<p>    const csvUrl = 'https:\/\/docs.google.com\/spreadsheets\/d\/e\/2PACX-1vR3o0MmD1RhurvxNpyj-z0eUkrv9Cx1G9sicEyuKXwzga6Wl9SCi4ti76kHSzJsoCw4O6Fes1WSLrZD\/pub?output=csv';<\/p>\n<p>    try {<br \/>\n      const res = await fetch(csvUrl);<br \/>\n      const text = await res.text();<br \/>\n      const rows = text.split(\"n\").map(r => r.split(\",\"));<\/p>\n<p>      const headers = rows[0].map(h => h.trim().toLowerCase());<br \/>\n      const codeIndex = headers.indexOf(\"\u043a\u043e\u0434 \u0432\u0430\u0443\u0447\u0435\u0440\u0430\");<br \/>\n      const statusIndex = headers.indexOf(\"\u0441\u0442\u0430\u0442\u0443\u0441\");<br \/>\n      const serviceIndex = headers.indexOf(\"\u0443\u0441\u043b\u0443\u0433\u0438\");<br \/>\n      const nameIndex = headers.indexOf(\"\u0438\u043c\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f\");<br \/>\n      const dateIndex = headers.indexOf(\"\u0434\u0430\u0442\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438\");<br \/>\n      const whoIndex = headers.indexOf(\"\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043b\");<\/p>\n<p>      const match = rows.find((r, i) => i > 0 && r[codeIndex]?.trim().toUpperCase() === code);<\/p>\n<p>      if (!match) {<br \/>\n        resultEl.innerHTML = \"\u274c \u0412\u0430\u0443\u0447\u0435\u0440 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d.\";<br \/>\n        return;<br \/>\n      }<\/p>\n<p>      const status = match[statusIndex]?.trim().toLowerCase();<br \/>\n      const services = match[serviceIndex] || \"-\";<br \/>\n      const name = match[nameIndex] || \"-\";<br \/>\n      const date = match[dateIndex] || \"-\";<br \/>\n      const who = match[whoIndex] || \"-\";<\/p>\n<p>      if (status === \"\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\") {<br \/>\n        resultEl.innerHTML = `\u274c \u0412\u0430\u0443\u0447\u0435\u0440 \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d<br \/>\n          <strong>\u0414\u0430\u0442\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438:<\/strong> ${date}<br \/>\n          <strong>\u041a\u0435\u043c:<\/strong> ${who}`;<br \/>\n      } else {<br \/>\n        resultEl.innerHTML = `\u2705 \u0412\u0430\u0443\u0447\u0435\u0440 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d<br \/>\n          <strong>\u041f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c:<\/strong> ${name}<br \/>\n          <strong>\u0423\u0441\u043b\u0443\u0433\u0438:<\/strong> ${services}<br \/>\n          <em>\u041f\u043e\u043a\u0430\u0436\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0443<\/em>`;<br \/>\n      }<\/p>\n<p>    } catch (err) {<br \/>\n      resultEl.innerHTML = \"\u26a0\ufe0f \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u0437\u0436\u0435.\";<br \/>\n    }<br \/>\n  }<br \/>\n<\/script><\/p>\n<\/div><div class=\"fusion-text fusion-text-2\"><div style=\"max-width: 400px; margin: 20px auto; padding: 15px; border: 1px solid #ccc; border-radius: 10px;\">\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0430\u0443\u0447\u0435\u0440<\/h3>\n<p>  <input type=\"text\" id=\"voucherInput\" placeholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, P-023)\" style=\"width: 100%; padding: 8px;\"><br \/>\n  <button onclick=\"checkVoucher()\" style=\"margin-top: 10px; padding: 8px 12px;\">\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c<\/button><\/p>\n<div id=\"result\" style=\"margin-top: 15px;\"><\/div>\n<\/div>\n<\/div><a class=\"fusion-modal-text-link\" href=\"#\">\n<div style=\"max-width: 400px; margin: 20px auto; padding: 15px; border: 1px solid #ccc; border-radius: 10px;\">\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0430\u0443\u0447\u0435\u0440<\/h3>\n<p>  <input type=\"text\" id=\"voucherInput\" placeholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, P-023)\" style=\"width: 100%; padding: 8px;\"><br \/>\n  <button onclick=\"checkVoucher()\" style=\"margin-top: 10px; padding: 8px 12px;\">\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c<\/button><\/p>\n<div id=\"result\" style=\"margin-top: 15px;\"><\/div>\n<\/div>\n<\/a><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"rs_blank_template":"","rs_page_bg_color":"","slide_template_v7":"","footnotes":""},"class_list":["post-4616","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0442\u0435\u0441\u0442 - \u041f\u0422\u0418\u0427\u041a\u0410<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ptichka.dp.ua\/test\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0442\u0435\u0441\u0442 - \u041f\u0422\u0418\u0427\u041a\u0410\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ptichka.dp.ua\/test\/\" \/>\n<meta property=\"og:site_name\" content=\"\u041f\u0422\u0418\u0427\u041a\u0410\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-08T13:30:05+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 \u043c\u0438\u043d\u0443\u0442\u044b\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ptichka.dp.ua\/test\/\",\"url\":\"https:\/\/ptichka.dp.ua\/test\/\",\"name\":\"\u0442\u0435\u0441\u0442 - \u041f\u0422\u0418\u0427\u041a\u0410\",\"isPartOf\":{\"@id\":\"https:\/\/ptichka.dp.ua\/?lang=uk\/#website\"},\"datePublished\":\"2025-05-06T19:19:30+00:00\",\"dateModified\":\"2025-05-08T13:30:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ptichka.dp.ua\/test\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ptichka.dp.ua\/test\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ptichka.dp.ua\/test\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/ptichka.dp.ua\/ru\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0442\u0435\u0441\u0442\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ptichka.dp.ua\/?lang=uk\/#website\",\"url\":\"https:\/\/ptichka.dp.ua\/?lang=uk\/\",\"name\":\"\u041f\u0422\u0418\u0427\u041a\u0410\",\"description\":\"\u0414\u0438\u0437\u0430\u0439\u043d \u0438 \u0431\u0440\u0435\u043d\u0434\u0438\u043d\u0433\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ptichka.dp.ua\/?lang=uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ru-RU\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0442\u0435\u0441\u0442 - \u041f\u0422\u0418\u0427\u041a\u0410","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ptichka.dp.ua\/test\/","og_locale":"ru_RU","og_type":"article","og_title":"\u0442\u0435\u0441\u0442 - \u041f\u0422\u0418\u0427\u041a\u0410","og_url":"https:\/\/ptichka.dp.ua\/test\/","og_site_name":"\u041f\u0422\u0418\u0427\u041a\u0410","article_modified_time":"2025-05-08T13:30:05+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"2 \u043c\u0438\u043d\u0443\u0442\u044b"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ptichka.dp.ua\/test\/","url":"https:\/\/ptichka.dp.ua\/test\/","name":"\u0442\u0435\u0441\u0442 - \u041f\u0422\u0418\u0427\u041a\u0410","isPartOf":{"@id":"https:\/\/ptichka.dp.ua\/?lang=uk\/#website"},"datePublished":"2025-05-06T19:19:30+00:00","dateModified":"2025-05-08T13:30:05+00:00","breadcrumb":{"@id":"https:\/\/ptichka.dp.ua\/test\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ptichka.dp.ua\/test\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ptichka.dp.ua\/test\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/ptichka.dp.ua\/ru\/"},{"@type":"ListItem","position":2,"name":"\u0442\u0435\u0441\u0442"}]},{"@type":"WebSite","@id":"https:\/\/ptichka.dp.ua\/?lang=uk\/#website","url":"https:\/\/ptichka.dp.ua\/?lang=uk\/","name":"\u041f\u0422\u0418\u0427\u041a\u0410","description":"\u0414\u0438\u0437\u0430\u0439\u043d \u0438 \u0431\u0440\u0435\u043d\u0434\u0438\u043d\u0433","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ptichka.dp.ua\/?lang=uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ru-RU"}]}},"_links":{"self":[{"href":"https:\/\/ptichka.dp.ua\/ru\/wp-json\/wp\/v2\/pages\/4616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ptichka.dp.ua\/ru\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ptichka.dp.ua\/ru\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ptichka.dp.ua\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ptichka.dp.ua\/ru\/wp-json\/wp\/v2\/comments?post=4616"}],"version-history":[{"count":11,"href":"https:\/\/ptichka.dp.ua\/ru\/wp-json\/wp\/v2\/pages\/4616\/revisions"}],"predecessor-version":[{"id":4631,"href":"https:\/\/ptichka.dp.ua\/ru\/wp-json\/wp\/v2\/pages\/4616\/revisions\/4631"}],"wp:attachment":[{"href":"https:\/\/ptichka.dp.ua\/ru\/wp-json\/wp\/v2\/media?parent=4616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}