#faq-container {
margin: 30px auto;
width: 50%;
text-align: center;
}
#faq-input {
width: 70%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
}
button[type=button] {
width: 20%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
#faq-answer {
margin: 20px 0;
padding: 12px 20px;
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 4px;
text-align: left;
}
#faq-container {
margin: 30px auto;
width: 50%;
text-align: center;
}
#faq-input {
width: 70%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
}
button[type=button] {
width: 20%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
#faq-answer {
margin: 20px 0;
padding: 12px 20px;
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 4px;
text-align: left;
}
Ana içeriğe atla
function answerQuestion() {
var question = document.getElementById("faq-input").value;
var answer;
if (question === "What is the best Minecraft mod?") {
answer = "The best Minecraft mod depends on your personal preference and what you're looking for in a mod. Some popular choices include OptiFine, Minecraft Forge, and the BetterPvP mod.";
} else if (question === "How do I install Minecraft mods?") {
answer = "To install Minecraft mods, you'll need to have the Minecraft Forge mod installer installed. Then, you can download and place the mod's .jar file in the mods folder located in your Minecraft directory.";
} else if (question === "What is the difference between Minecraft Forge and Fabric?") {
answer = "Minecraft Forge is a modding platform that allows players to install multiple mods together, while Fabric is a modding tool that allows developers to create mods for Minecraft. They are both popular choices for installing and creating Minecraft mods, but have different uses.";
} else {
answer = "I'm sorry, I don't have an answer for that question.";
}
document.getElementById("faq-answer").innerHTML = answer;
}