50 lines
1.3 KiB
HTML
50 lines
1.3 KiB
HTML
<!-- test-page.html -->
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Test CAPTCHA with iFrame</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
padding: 20px;
|
|
background-color: #f4f4f4;
|
|
}
|
|
h1 {
|
|
text-align: center;
|
|
}
|
|
iframe {
|
|
width: 100%;
|
|
height: 500px;
|
|
border: none;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
.button {
|
|
padding: 10px 20px;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
.button:hover {
|
|
background-color: #45a049;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Test CAPTCHA Page</h1>
|
|
<p>This page checks if the CAPTCHA has been passed using the URL argument "captcha" embedded in an iframe.</p>
|
|
|
|
<iframe id="captcha-frame" src="captcha.html" title="Captcha Test"></iframe>
|
|
<p><button class="button" onclick="checkCaptchaFromIframe()">Check CAPTCHA Status</button></p>
|
|
<p id="captcha-status" style="font-size: 20px;"></p>
|
|
|
|
<!-- Link the external JS file -->
|
|
<script src="captcha-passcheck.js"></script>
|
|
|
|
</body>
|
|
</html>
|