{"id":7,"date":"2025-10-15T12:44:07","date_gmt":"2025-10-15T11:44:07","guid":{"rendered":"http:\/\/kinlink.uk\/?page_id=7"},"modified":"2025-11-04T10:17:37","modified_gmt":"2025-11-04T10:17:37","slug":"nothing-to-see-here","status":"publish","type":"page","link":"https:\/\/kinlink.uk\/","title":{"rendered":"Nothing to see here"},"content":{"rendered":"<div class=\"et_pb_section_1 et_pb_section et_section_regular et_block_section\">\n<div class=\"et_pb_row_1 et_pb_row et_pb_gutters3 et_block_row\">\n<div class=\"et_pb_column_1 et_pb_column et_pb_column_4_4 et-last-child et_block_column et_pb_css_mix_blend_mode_passthrough\">\n<div class=\"et_pb_heading_1 et_pb_heading et_pb_module\"><div class=\"et_pb_heading_container\"><h1 class=\"et_pb_module_header\">Got a KinLink? Pop it below and we&#8217;ll send you on your way!<\/h1><\/div><\/div>\n\n<div class=\"et_pb_text_1 et_pb_text et_pb_bg_layout_light et_pb_text_align_left et_pb_module\"><div class=\"et_pb_text_inner\">    <div class=\"kinlink-lookup-widget\">\r\n        <style>\r\n            .kinlink-lookup-widget {\r\n                max-width: 600px;\r\n                margin: 20px auto;\r\n                text-align: center;\r\n            }\r\n            .kinlink-lookup-title {\r\n                font-size: 32px;\r\n                font-weight: bold;\r\n                color: #667eea;\r\n                margin: 0 0 30px;\r\n            }\r\n            .kinlink-lookup-form {\r\n                display: flex;\r\n                gap: 10px;\r\n                align-items: stretch;\r\n            }\r\n            .kinlink-lookup-input {\r\n                flex: 1;\r\n                padding: 18px 24px;\r\n                font-size: 20px;\r\n                font-weight: 600;\r\n                border: 2px solid #ddd;\r\n                border-radius: 12px;\r\n                outline: none;\r\n                transition: all 0.3s;\r\n            }\r\n            .kinlink-lookup-input:focus {\r\n                border-color: #667eea;\r\n                box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);\r\n            }\r\n            .kinlink-lookup-button {\r\n                padding: 18px 40px;\r\n                font-size: 20px;\r\n                font-weight: bold;\r\n                color: #fff;\r\n                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\r\n                border: none;\r\n                border-radius: 12px;\r\n                cursor: pointer;\r\n                transition: transform 0.2s, box-shadow 0.2s;\r\n            }\r\n            .kinlink-lookup-button:hover {\r\n                transform: translateY(-2px);\r\n                box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);\r\n            }\r\n            .kinlink-lookup-button:active {\r\n                transform: translateY(0);\r\n            }\r\n            .kinlink-lookup-message {\r\n                margin-top: 20px;\r\n                padding: 15px;\r\n                border-radius: 8px;\r\n                font-size: 16px;\r\n                font-weight: 500;\r\n            }\r\n            .kinlink-lookup-error {\r\n                background: #fee;\r\n                color: #c33;\r\n                border: 2px solid #fcc;\r\n            }\r\n            .kinlink-lookup-success {\r\n                background: #efe;\r\n                color: #3a3;\r\n                border: 2px solid #cfc;\r\n            }\r\n            @media (max-width: 600px) {\r\n                .kinlink-lookup-widget {\r\n                    padding: 30px 20px;\r\n                }\r\n                .kinlink-lookup-form {\r\n                    flex-direction: column;\r\n                }\r\n                .kinlink-lookup-input,\r\n                .kinlink-lookup-button {\r\n                    font-size: 18px;\r\n                }\r\n            }\r\n        <\/style>\r\n        \r\n                \r\n        <form class=\"kinlink-lookup-form\" id=\"kinlink-lookup-form\">\r\n            <input \r\n                type=\"text\" \r\n                class=\"kinlink-lookup-input\" \r\n                id=\"kinlink-lookup-input\"\r\n                placeholder=\"Enter shortlink or paste full URL...\"\r\n                required\r\n            >\r\n            <button type=\"submit\" class=\"kinlink-lookup-button\">\r\n                Go            <\/button>\r\n        <\/form>\r\n        \r\n        <div id=\"kinlink-lookup-message\" style=\"display: none;\"><\/div>\r\n        \r\n        <script>\r\n        (function() {\r\n            const form = document.getElementById('kinlink-lookup-form');\r\n            const input = document.getElementById('kinlink-lookup-input');\r\n            const message = document.getElementById('kinlink-lookup-message');\r\n            \r\n            form.addEventListener('submit', function(e) {\r\n                e.preventDefault();\r\n                \r\n                let value = input.value.trim();\r\n                if (!value) return;\r\n                \r\n                \/\/ Extract short code from full URL or use as-is\r\n                let shortCode = value;\r\n                \r\n                \/\/ If it's a full URL, extract the path\r\n                try {\r\n                    const url = new URL(value);\r\n                    shortCode = url.pathname.replace(\/^\\\/\/, '').split('\/')[0];\r\n                } catch (e) {\r\n                    \/\/ Not a URL, treat as short code\r\n                    \/\/ Remove any leading slashes or domain parts\r\n                    shortCode = value.replace(\/^https?:\\\/\\\/[^\\\/]+\\\/?\/, '').split('\/')[0];\r\n                }\r\n                \r\n                if (!shortCode) {\r\n                    showMessage('Please enter a valid shortlink', 'error');\r\n                    return;\r\n                }\r\n                \r\n                \/\/ Redirect to the shortlink\r\n                showMessage('Redirecting...', 'success');\r\n                setTimeout(function() {\r\n                    window.location.href = 'https:\/\/kinlink.uk\/' + shortCode;\r\n                }, 500);\r\n            });\r\n            \r\n            function showMessage(text, type) {\r\n                message.textContent = text;\r\n                message.className = 'kinlink-lookup-message kinlink-lookup-' + type;\r\n                message.style.display = 'block';\r\n            }\r\n        })();\r\n        <\/script>\r\n    <\/div>\r\n    \n<\/div><\/div>\n<\/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-7","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kinlink.uk\/index.php\/wp-json\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinlink.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kinlink.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kinlink.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kinlink.uk\/index.php\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":3,"href":"https:\/\/kinlink.uk\/index.php\/wp-json\/wp\/v2\/pages\/7\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/kinlink.uk\/index.php\/wp-json\/wp\/v2\/pages\/7\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/kinlink.uk\/index.php\/wp-json\/wp\/v2\/media?parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}