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/1.2.1/ckbox.js"></script>
<style>
html, body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<script>
CKBox.mount(document.body, {
tokenUrl: 'https://your.token.url'
});
</script>
</body>
</html>