Keto quiz
<!DOCTYPE html>
<html>
<head>
<title>Keto Diet Quiz</title>
<script>
function showResult() {
var totalYes = 0;
if (document.getElementById("q1-yes").checked) totalYes++;
if (document.getElementById("q2-yes").checked) totalYes++;
if (document.getElementById("q3-yes").checked) totalYes++;
if (totalYes === 3) {
window.open("https://www.digistore24.com/redir/292043/rasul786/", "_blank");
} else if (totalYes >= 1) {
window.open("https://www.digistore24.com/redir/283755/rasul786/", "_blank");
} else {
window.open("https://www.digistore24.com/redir/434557/rasul786/", "_blank");
}
}
</script>
</head>
<body>
<h1>Keto Diet Quiz</h1>
<p>Answer the following questions with "Yes" or "No".</p>
<p>Question 1: Do you want to reduce carbohydrate intake?</p>
<input type="radio" id="q1-yes" name="q1" value="yes"> Yes
<input type="radio" id="q1-no" name="q1" value="no"> No<br>
<p>Question 2: Are you willing to increase your fat consumption?</p>
<input type="radio" id="q2-yes" name="q2" value="yes"> Yes
<input type="radio" id="q2-no" name="q2" value="no"> No<br>
<p>Question 3: Can you commit to avoiding sugary foods and drinks?</p>
<input type="radio" id="q3-yes" name="q3" value="yes"> Yes
<input type="radio" id="q3-no" name="q3" value="no"> No<br>
<br>
<button onclick="showResult()">Show Result</button>
</body>
</html>
https://youtu.be/8OOYsySEkd8?si=Z-n5IBeGEpNLmkiH
Weight Loss Quiz
Answer the following questions with “Yes” or “No”.
Question 1: Do you want to lose weight?
Yes NoQuestion 2: Are you willing to improve your diet?
Yes NoQuestion 3: Can you commit to regular exercise?
Yes No