Compare commits

..
2 Commits
Author SHA1 Message Date
izatwin 569de48de1 Merge pull request 'Creating FAQ Page' (#5) from arceus-patch-1 into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
ci / build (push) Has been cancelled
Reviewed-on: #5
2024-05-12 10:11:25 -04:00
arceus cda716c3f7 Creating FAQ Page
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Created a very basic FAQ page with no information, using Chat GPT
2024-05-06 17:11:34 -04:00
+46
View File
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ Page</title>
<style>
/* Add your CSS styles here */
.question {
font-weight: bold;
cursor: pointer;
}
.answer {
display: none;
margin-left: 20px;
}
</style>
</head>
<body>
<h1>Frequently Asked Questions</h1>
<div class="faq-item">
<div class="question">Question 1: What is Lorem Ipsum?</div>
<div class="answer">Answer: Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
</div>
<div class="faq-item">
<div class="question">Question 2: Why do we use it?</div>
<div class="answer">Answer: It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</div>
</div>
<!-- Add more FAQ items as needed -->
<script>
// JavaScript to toggle the visibility of answers
const questions = document.querySelectorAll('.question');
questions.forEach(question => {
question.addEventListener('click', () => {
const answer = question.nextElementSibling;
answer.style.display = (answer.style.display === 'block') ? 'none' : 'block';
});
});
</script>
</body>
</html>