    <!doctype html>
    <!-- The DOCTYPE declaration above will set the     -->
    <!-- browser's rendering engine into                -->
    <!-- "Standards Mode". Replacing this declaration   -->
    <!-- with a "Quirks Mode" doctype is not supported. -->

    <html>

    <head>
        <!--                                                               -->
        <!-- Consider inlining CSS to reduce the number of requested files -->
        <!--                                                               -->
        <link type="text/css" rel="stylesheet" href="https://misjuba.com/wp-content/plugins/misjuba/qrscanner/JsQRScanner.css">


        <!--                                           -->
        <!-- This script loads your compiled module.   -->
        <script type="text/javascript" src="https://misjuba.com/wp-content/plugins/misjuba/qrscanner/jsPretty/jsqrscanner.nocache.js"></script>
    </head>

    <body>

        <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
        <noscript>
            <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
            Your web browser must have JavaScript enabled in order for this application to display correctly!            </div>
        </noscript>

        <div id = "no_misjuba_code" style = "display: none ">
            <div style="width: 22em; position: absolute; left: 50%; top: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
                It appears that this is not a Misjuba QR code.            </div>
        </div>

        <div id = "misjuba_code_found" style = "display: none ">
            <div style="width: 22em; position: absolute; left: 50%; top: 50%; margin-left: -11em; color: green; background-color: white; border: 1px solid green; padding: 4px; font-family: sans-serif">
                Code found, redirecting you.            </div>
        </div>

        <div class="row-element-set row-element-set-QRScanner">
            <div class="row-element">
                <div class="FlexPanel detailsPanel QRScannerShort">
                    <div class="FlexPanel shortInfoPanel">
                        <div class="gwt-HTML">
                            Point the webcam to a QR code.                        </div>
                    </div>
                </div>
            </div>
            <br>
            <div class="row-element">
                <div class="qrscanner" id="scanner">
                </div>
            </div>
            <div class="row-element">
                <div class="form-field form-field-memo">
                    <div class="form-field-caption-panel">
                        <div class="gwt-Label form-field-caption">
                            Misjuba QR code:                        </div>
                    </div>
                    <div class="FlexPanel form-field-input-panel">
                        <textarea id="scannedTextMemo" class="nummber form-memo form-field-input textInput-readonly" rows="1" readonly>
            </textarea>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            function onQRCodeScanned(scannedText) {
                n = scannedText.indexOf("misjuba");


                if (n == -1) {
                    document.getElementById('no_misjuba_code').style.display = 'block';
                    setTimeout(misjuba_no_code, 3000);
                    return;
                } else {
                    var code = scannedText.substring(scannedText.length - 10);
                    scannedTextMemo.value = code;

                    document.getElementById('misjuba_code_found').style.display = 'block';

                    var url = "/activate-qr-code/?qrcode=" + code;
                    window.location.href = url;
                }

            }

            function misjuba_no_code(){
                document.getElementById('no_misjuba_code').style.display = 'none';
                retrun;
            }

            function provideVideo() {
                var n = navigator;

                if (n.mediaDevices && n.mediaDevices.getUserMedia) {
                    return n.mediaDevices.getUserMedia({
                        video: {
                            facingMode: "environment"
                        },
                        audio: false
                    });
                }

                return Promise.reject('Your browser does not support getUserMedia');
            }

            function provideVideoQQ() {
                return navigator.mediaDevices.enumerateDevices()
                    .then(function(devices) {
                        var exCameras = [];
                        devices.forEach(function(device) {
                            if (device.kind === 'videoinput') {
                                exCameras.push(device.deviceId)
                            }
                        });

                        return Promise.resolve(exCameras);
                    }).then(function(ids) {
                        if (ids.length === 0) {
                            return Promise.reject('Could not find a webcam');
                        }

                        return navigator.mediaDevices.getUserMedia({
                            video: {
                                'optional': [{
                                    'sourceId': ids.length === 1 ? ids[0] : ids[1] //this way QQ browser opens the rear camera
                                }]
                            }
                        });
                    });
            }

            //this function will be called when JsQRScanner is ready to use
            function JsQRScannerReady() {
                //create a new scanner passing to it a callback function that will be invoked when
                //the scanner succesfully scan a QR code
                var jbScanner = new JsQRScanner(onQRCodeScanned);
                //var jbScanner = new JsQRScanner(onQRCodeScanned, provideVideo);
                //reduce the size of analyzed image to increase performance on mobile devices
                jbScanner.setSnapImageMaxSize(300);
                var scannerParentElement = document.getElementById("scanner");
                if (scannerParentElement) {
                    //append the jbScanner to an existing DOM element
                    jbScanner.appendTo(scannerParentElement);
                }
            }
        </script>
    </body>

    </html>

{"id":336,"date":"2020-05-08T16:38:48","date_gmt":"2020-05-08T14:38:48","guid":{"rendered":"https:\/\/new.misjuba.com\/?page_id=336"},"modified":"2020-07-09T18:53:47","modified_gmt":"2020-07-09T16:53:47","slug":"scan-code-activate","status":"publish","type":"page","link":"https:\/\/misjuba.com\/en\/scan-code-activate\/","title":{"rendered":"Scan activate code"},"content":{"rendered":"<div id=\"modal-ready\">\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"\/en\/activate-qr-code\/\">Voer handmatig in<\/a><\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-336","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Scan activate code - Misjuba<\/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:\/\/misjuba.com\/en\/scan-code-activate\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Scan activate code - Misjuba\" \/>\n<meta property=\"og:url\" content=\"https:\/\/misjuba.com\/en\/scan-code-activate\/\" \/>\n<meta property=\"og:site_name\" content=\"Misjuba\" \/>\n<meta property=\"article:modified_time\" content=\"2020-07-09T16:53:47+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/misjuba.com\\\/scan-code-activate\\\/\",\"url\":\"https:\\\/\\\/misjuba.com\\\/scan-code-activate\\\/\",\"name\":\"Scan activate code - Misjuba\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/misjuba.com\\\/#website\"},\"datePublished\":\"2020-05-08T14:38:48+00:00\",\"dateModified\":\"2020-07-09T16:53:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/misjuba.com\\\/scan-code-activate\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/misjuba.com\\\/scan-code-activate\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/misjuba.com\\\/scan-code-activate\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/misjuba.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scan activate code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/misjuba.com\\\/#website\",\"url\":\"https:\\\/\\\/misjuba.com\\\/\",\"name\":\"Misjuba\",\"description\":\"Gevonden en veloren\",\"publisher\":{\"@id\":\"https:\\\/\\\/misjuba.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/misjuba.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/misjuba.com\\\/#organization\",\"name\":\"Misjuba\",\"url\":\"https:\\\/\\\/misjuba.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/misjuba.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/misjuba.com\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/cropped-Misjuba.png\",\"contentUrl\":\"https:\\\/\\\/misjuba.com\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/cropped-Misjuba.png\",\"width\":1165,\"height\":301,\"caption\":\"Misjuba\"},\"image\":{\"@id\":\"https:\\\/\\\/misjuba.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Scan activate code - Misjuba","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:\/\/misjuba.com\/en\/scan-code-activate\/","og_locale":"en_GB","og_type":"article","og_title":"Scan activate code - Misjuba","og_url":"https:\/\/misjuba.com\/en\/scan-code-activate\/","og_site_name":"Misjuba","article_modified_time":"2020-07-09T16:53:47+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/misjuba.com\/scan-code-activate\/","url":"https:\/\/misjuba.com\/scan-code-activate\/","name":"Scan activate code - Misjuba","isPartOf":{"@id":"https:\/\/misjuba.com\/#website"},"datePublished":"2020-05-08T14:38:48+00:00","dateModified":"2020-07-09T16:53:47+00:00","breadcrumb":{"@id":"https:\/\/misjuba.com\/scan-code-activate\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/misjuba.com\/scan-code-activate\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/misjuba.com\/scan-code-activate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/misjuba.com\/"},{"@type":"ListItem","position":2,"name":"Scan activate code"}]},{"@type":"WebSite","@id":"https:\/\/misjuba.com\/#website","url":"https:\/\/misjuba.com\/","name":"Misjuba","description":"Gevonden en veloren","publisher":{"@id":"https:\/\/misjuba.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/misjuba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/misjuba.com\/#organization","name":"Misjuba","url":"https:\/\/misjuba.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/misjuba.com\/#\/schema\/logo\/image\/","url":"https:\/\/misjuba.com\/wp-content\/uploads\/2020\/07\/cropped-Misjuba.png","contentUrl":"https:\/\/misjuba.com\/wp-content\/uploads\/2020\/07\/cropped-Misjuba.png","width":1165,"height":301,"caption":"Misjuba"},"image":{"@id":"https:\/\/misjuba.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/misjuba.com\/en\/wp-json\/wp\/v2\/pages\/336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/misjuba.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/misjuba.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/misjuba.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/misjuba.com\/en\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":4,"href":"https:\/\/misjuba.com\/en\/wp-json\/wp\/v2\/pages\/336\/revisions"}],"predecessor-version":[{"id":417,"href":"https:\/\/misjuba.com\/en\/wp-json\/wp\/v2\/pages\/336\/revisions\/417"}],"wp:attachment":[{"href":"https:\/\/misjuba.com\/en\/wp-json\/wp\/v2\/media?parent=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}