Full-page mode

If you want to use CKBox as a full-page application, attach the CKBox instance to the document.body.

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <script src="https://cdn.ckbox.io/ckbox/2.5.1/ckbox.js"></script>
        <style>
            html, body {
                margin: 0;
                padding: 0;
                height: 100vh;
            }
        </style>
    </head>
    <body>
        <script>
            CKBox.mount(document.body, {
                tokenUrl: 'https://your.token.url'
            });
        </script>
    </body>
</html>

Open example