Welcome to the AI True/False Quiz, a fully interactive, timed, modern educational quiz designed using HTML, CSS, and JavaScript. This project is optimized for GitHub Pages, Blogger embeds, and mobile responsiveness.
This quiz automatically scales for Blogger, includes a floating widget launcher, smart iframe modal preview, and adaptive height communication between parent/child pages to prevent scroll clipping.
GitHub Pages Live: π https://debeatzgh1.github.io/Ai-quiz/
Blogger Embedded Live Preview: π https://beatzde4.blogspot.com/p/ai-social-carousel-grid-debeatzgh-root.html
Ai-quiz/
βββ index.html
βββ assets/
β βββ styles.css (optional external stylesheet)
βββ README.md
Each question has 5 seconds. If the user doesnβt answer, it moves automatically.
Each correct answer = 5 marks β Total = 100 marks.
At the end, users see:
Users can retake the quiz or finish with a closing message.
This floating button opens your widgets in an iframe modal.
<!-- Floating Widget Button -->
<style>
#widget-launcher {
position: fixed;
top: 20px;
right: 20px;
background: #2563eb;
padding: 10px 16px;
color: #fff;
border-radius: 10px;
font-weight: 700;
cursor: pointer;
z-index: 99999;
box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
#iframe-modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(4px);
z-index: 99998;
}
#iframe-box {
width: 90%;
height: 90%;
background: white;
margin: 3% auto;
border-radius: 14px;
overflow: hidden;
position: relative;
}
#close-modal {
position: absolute;
top: 10px;
right: 20px;
font-size: 28px;
cursor: pointer;
}
</style>
<div id="widget-launcher">Widget</div>
<div id="iframe-modal">
<div id="iframe-box">
<span id="close-modal">×</span>
<iframe id="widget-frame" style="width:100%;height:100%;border:none;"></iframe>
</div>
</div>
<script>
document.getElementById("widget-launcher").onclick = () => {
document.getElementById("widget-frame").src = "https://debeatzgh1.github.io/curly-chainsaw/";
document.getElementById("iframe-modal").style.display = "block";
};
document.getElementById("close-modal").onclick = () => {
document.getElementById("iframe-modal").style.display = "none";
document.getElementById("widget-frame").src = "";
};
</script>
Your full upgraded quiz HTML script is embedded in the repositoryβready to deploy on GitHub Pages.
It includes:
Use this snippet:
<iframe src="https://debeatzgh1.github.io/Ai-quiz/" width="100%" height="900" style="border:none;overflow:hidden;"></iframe>
Matches automatically using postMessage() resizing.
You can change:
Need help? Tell me and Iβll edit the code.
Add your logo, brand colors, gradients, animationsβor I can design a full UI theme for you. Just say βUpgrade UIβ.
Developed for Debeatzgh β AI Tools & Widgets for Web Creators.
If you want:
Just let me know!
Click below to launch the interactive quiz:
π Live Demo: https://debeatzgh1.github.io/Ai-quiz/
GitHub READMEs cannot embed iframes, so the quiz opens in a new tab.
<!DOCTYPE html>