24 lines
693 B
HTML
24 lines
693 B
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<script src="./js-sdk/ui.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
const verifoxUI = new CreateVerifoxUI({
|
|
width: 320,
|
|
height: 240,
|
|
allowCloseByMask: true
|
|
});
|
|
const handle = verifoxUI.getHandle();
|
|
handle.content.innerHTML = '<div style="width:100%;height:100%;display:flex;align-items:center;justify-content:center;">验证码内容</div>';
|
|
handle.onClose(() => {
|
|
console.log('验证码窗口已关闭');
|
|
});
|
|
});
|
|
</script>
|
|
</body> |