script.js
script.js
cameraContainer.style.display = "block";
function captureImage() {
let video = document.getElementById("video");
let canvas = document.getElementById("canvas");
let ctx = canvas.getContext("2d");
canvas.width = video.videoWidth;
canvas.height = video.videoHeight;
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
function startLearning() {
document.getElementById("content").innerHTML = "<h2>Learning Mode</h2><p>Here
you will see educational content.</p>";
}
function startQuiz() {
document.getElementById("content").innerHTML = "<h2>Quiz
Mode</h2><p>Interactive quiz will be here.</p>";
}