<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Protected Document</title>
<script>
function checkPassword() {
const pwd = document.getElementById("pwd").value;
if (pwd === “kishore”) {
window.location.href = "/web/viewer.html?file=/KishoreC0Bleed.pdf";
} else {
alert("Incorrect password");
}
}
</script>
</head>
<body style="font-family:sans-serif;text-align:center;margin-top:15%;">
<h2>Enter Password</h2>
<input type="password" id="pwd">
<button onclick="checkPassword()">View Document</button>
</body>
</html>