guideFull-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.4.0/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