Files
cap/docs/guide/interstitial.md
T
Tiago Rangel 15291b87e0 Improve docs
2025-01-11 18:31:39 +00:00

605 B

Interstitial mode

Interstitial mode is an alternative to the floating mode that'll show a dialog with the widget. It'll automatically hide the widget until the user clicks on the trigger element, and the widget will automatically start solving.

To use it, you'll need to call await CapInterstitial() from your JS.

<script src="https://cdn.jsdelivr.net/gh/tiagorangel1/cap/src/js/min/cap.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/tiagorangel1/cap/src/js/min/cap-interstitial.min.js"></script>
const token = await CapInterstitial();
console.log("Token:", token)