{"id":36,"date":"2024-10-26T22:25:43","date_gmt":"2024-10-26T22:25:43","guid":{"rendered":"https:\/\/m7lauhbiqx.onrocket.site\/?page_id=303"},"modified":"2025-06-09T18:57:14","modified_gmt":"2025-06-09T18:57:14","slug":"qr-scan","status":"publish","type":"page","link":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/","title":{"rendered":"QR Scan"},"content":{"rendered":"<div class=\"ticket-verification-container\">\n\n            <div id=\"verification-result\" class=\"ticket-verification-result\">\n                            <\/div>\n            <div id=\"scanner-container\" style=\"display: none;\">\n                <video id=\"qr-video\" style=\"width: 100%; max-width: 500px;\"><\/video>\n                <canvas id=\"qr-canvas\" style=\"display: none;\"><\/canvas>\n            <\/div>\n            <a href=\"#\" class=\"qr-code-scan-btn\" id=\"start-scanner\">\n                <img decoding=\"async\" src=\"https:\/\/puntacanahotdeals.com\/wp-content\/plugins\/listeo-core\/assets\/images\/listeo_qr.svg\" \/>\n                <span>Click to Open QR Code Scanner<\/span>\n            <\/a>\n\n            <div id=\"debug-info\" style=\"display:none; margin-top: 20px; padding: 10px; background-color: #f0f0f0;\"><\/div>\n        <\/div>\n\n        <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/jsqr@1.3.1\/dist\/jsQR.min.js\"><\/script>\n        <script>\n            document.addEventListener('DOMContentLoaded', function() {\n                const video = document.getElementById('qr-video');\n                const canvas = document.getElementById('qr-canvas');\n                const ctx = canvas.getContext('2d');\n                const startButton = document.getElementById('start-scanner');\n                const scannerContainer = document.getElementById('scanner-container');\n                const resultDiv = document.getElementById('verification-result');\n\n                const debugInfo = document.getElementById('debug-info');\n                let scanning = false;\n                let stream = null;\n\n                function log(message) {\n                    console.log(message);\n                    debugInfo.innerHTML += message + '<br>';\n                }\n\n                startButton.addEventListener('click', function() {\n                    if (scanning) {\n                        stopScanner();\n                    } else {\n                        startScanner();\n                    }\n                });\n\n                function startScanner() {\n                    if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) {\n                        log('Sorry, your browser doesn\\'t support accessing the camera.');\n                        return;\n                    }\n\n                    navigator.mediaDevices.getUserMedia({\n                            video: {\n                                facingMode: \"environment\"\n                            }\n                        })\n                        .then(function(mediaStream) {\n                            log('Camera access granted');\n                            scanning = true;\n                            stream = mediaStream;\n                            startButton.textContent = 'Stop Scanner';\n                            scannerContainer.style.display = 'block';\n                            video.srcObject = stream;\n                            video.setAttribute(\"playsinline\", true);\n                            video.play();\n                            requestAnimationFrame(tick);\n                        })\n                        .catch(function(err) {\n                            log('Error accessing the camera: ' + err.message);\n                        });\n                }\n\n                function stopScanner() {\n                    log('Stopping scanner');\n                    scanning = false;\n                    startButton.textContent = 'Start Scanner';\n                    scannerContainer.style.display = 'none';\n                    if (stream) {\n                        stream.getTracks().forEach(track => track.stop());\n                        stream = null;\n                    }\n                    video.srcObject = null;\n                }\n\n                function tick() {\n                    if (scanning) {\n                        if (video.readyState === video.HAVE_ENOUGH_DATA) {\n                            canvas.height = video.videoHeight;\n                            canvas.width = video.videoWidth;\n                            ctx.drawImage(video, 0, 0, canvas.width, canvas.height);\n                            var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);\n                            var code = jsQR(imageData.data, imageData.width, imageData.height, {\n                                inversionAttempts: \"dontInvert\",\n                            });\n                            if (code) {\n                                log(\"Found QR code: \" + code.data);\n                                stopScanner();\n                                window.location.href = code.data; \/\/ Automatically redirect to the URL in the QR code\n                            }\n                        }\n                        requestAnimationFrame(tick);\n                    }\n                }\n\n                function verifyTicket(url) {\n                    const verifyParam = new URL(url).searchParams.get('verify');\n                    if (verifyParam) {\n                        log('Verifying ticket: ' + verifyParam);\n                        window.location.href = url; \/\/ Redirect to the verification URL\n                    } else {\n                        resultDiv.innerHTML = '<p>Invalid QR code. Please try again.<\/p>';\n                    }\n                }\n\n                window.addEventListener('unload', stopScanner);\n            });\n        <\/script>\n        \n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-dashboard.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-36","page","type-page","status-publish","hentry"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ru_RU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Puntacanahotdeals -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"QR Scan - Puntacanahotdeals\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-10-26T22:25:43+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-06-09T18:57:14+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/search\/top\/?q=puntacanahotdeals\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"QR Scan - Puntacanahotdeals\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/qr-scan\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/qr-scan\\\/#listItem\",\"name\":\"QR Scan\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/qr-scan\\\/#listItem\",\"position\":2,\"name\":\"QR Scan\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru#listItem\",\"name\":\"Home\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/#organization\",\"name\":\"Puntacanahotdeals Puntacanahotdeals\",\"description\":\"Discover the best deals on hotels, thrilling activities, Restaurants, Transport and unforgettable excursions in Punta Cana. Your trusted marketplace for seamless booking and incredible experiences!\",\"url\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/puntacanahotdeals.com\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/1000334090-removebg-preview-1.png\",\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/qr-scan\\\/#organizationLogo\",\"width\":674,\"height\":370,\"caption\":\"logos\"},\"image\":{\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/qr-scan\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/search\\\/top\\\/?q=puntacanahotdeals\",\"https:\\\/\\\/www.instagram.com\\\/puntacanahotdeals_com?igsh=OG1ka2V5MGRmOTVu\"]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/qr-scan\\\/#webpage\",\"url\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/qr-scan\\\/\",\"name\":\"QR Scan - Puntacanahotdeals\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/qr-scan\\\/#breadcrumblist\"},\"datePublished\":\"2024-10-26T22:25:43+00:00\",\"dateModified\":\"2025-06-09T18:57:14+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/#website\",\"url\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/\",\"name\":\"Puntacanahotdeals\",\"inLanguage\":\"ru-RU\",\"publisher\":{\"@id\":\"https:\\\/\\\/puntacanahotdeals.com\\\/ru\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"QR Scan - Puntacanahotdeals","description":"","canonical_url":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/puntacanahotdeals.com\/ru#listItem","position":1,"name":"Home","item":"https:\/\/puntacanahotdeals.com\/ru","nextItem":{"@type":"ListItem","@id":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/#listItem","name":"QR Scan"}},{"@type":"ListItem","@id":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/#listItem","position":2,"name":"QR Scan","previousItem":{"@type":"ListItem","@id":"https:\/\/puntacanahotdeals.com\/ru#listItem","name":"Home"}}]},{"@type":"Organization","@id":"https:\/\/puntacanahotdeals.com\/ru\/#organization","name":"Puntacanahotdeals Puntacanahotdeals","description":"Discover the best deals on hotels, thrilling activities, Restaurants, Transport and unforgettable excursions in Punta Cana. Your trusted marketplace for seamless booking and incredible experiences!","url":"https:\/\/puntacanahotdeals.com\/ru\/","logo":{"@type":"ImageObject","url":"https:\/\/puntacanahotdeals.com\/wp-content\/uploads\/2025\/05\/1000334090-removebg-preview-1.png","@id":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/#organizationLogo","width":674,"height":370,"caption":"logos"},"image":{"@id":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/search\/top\/?q=puntacanahotdeals","https:\/\/www.instagram.com\/puntacanahotdeals_com?igsh=OG1ka2V5MGRmOTVu"]},{"@type":"WebPage","@id":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/#webpage","url":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/","name":"QR Scan - Puntacanahotdeals","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/puntacanahotdeals.com\/ru\/#website"},"breadcrumb":{"@id":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/#breadcrumblist"},"datePublished":"2024-10-26T22:25:43+00:00","dateModified":"2025-06-09T18:57:14+00:00"},{"@type":"WebSite","@id":"https:\/\/puntacanahotdeals.com\/ru\/#website","url":"https:\/\/puntacanahotdeals.com\/ru\/","name":"Puntacanahotdeals","inLanguage":"ru-RU","publisher":{"@id":"https:\/\/puntacanahotdeals.com\/ru\/#organization"}}]},"og:locale":"ru_RU","og:site_name":"Puntacanahotdeals -","og:type":"article","og:title":"QR Scan - Puntacanahotdeals","og:url":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/","article:published_time":"2024-10-26T22:25:43+00:00","article:modified_time":"2025-06-09T18:57:14+00:00","article:publisher":"https:\/\/www.facebook.com\/search\/top\/?q=puntacanahotdeals","twitter:card":"summary_large_image","twitter:title":"QR Scan - Puntacanahotdeals"},"aioseo_meta_data":{"post_id":"36","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":false,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-05-23 01:18:53","updated":"2025-06-09 19:13:03","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/puntacanahotdeals.com\/ru\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tQR Scan\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/puntacanahotdeals.com\/ru"},{"label":"QR Scan","link":"https:\/\/puntacanahotdeals.com\/ru\/qr-scan\/"}],"_links":{"self":[{"href":"https:\/\/puntacanahotdeals.com\/ru\/wp-json\/wp\/v2\/pages\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puntacanahotdeals.com\/ru\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/puntacanahotdeals.com\/ru\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/puntacanahotdeals.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puntacanahotdeals.com\/ru\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":1,"href":"https:\/\/puntacanahotdeals.com\/ru\/wp-json\/wp\/v2\/pages\/36\/revisions"}],"predecessor-version":[{"id":2088,"href":"https:\/\/puntacanahotdeals.com\/ru\/wp-json\/wp\/v2\/pages\/36\/revisions\/2088"}],"wp:attachment":[{"href":"https:\/\/puntacanahotdeals.com\/ru\/wp-json\/wp\/v2\/media?parent=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}