Are You a Tech Genius or a Science Novice? – Atenajos Blog
body {
font-family: ‘Roboto’, Arial, sans-serif;
max-width: 900px;
margin: 0 auto;
padding: 20px;
background: linear-gradient(to bottom, #e0f7fa, #ffffff);
color: #333;
}
h1 {
font-size: 2.8em;
color: #006064;
text-align: center;
margin-bottom: 20px;
}
.quiz-container {
background: #ffffff;
padding: 30px;
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
position: relative;
}
.progress-bar {
width: 100%;
height: 12px;
background: #e0e0e0;
border-radius: 6px;
margin-bottom: 20px;
overflow: hidden;
}
.progress {
height: 100%;
background: #00acc1;
width: 0;
transition: width 0.3s ease;
}
.question {
font-size: 1.5em;
margin-bottom: 20px;
color: #004d40;
}
.answers {
display: grid;
grid-template-columns: 1fr;
gap: 12px;
}
.answer-btn {
background: #26a69a;
color: white;
padding: 12px;
border: none;
border-radius: 8px;
font-size: 1.1em;
cursor: pointer;
transition: background 0.2s;
}
.answer-btn:hover {
background: #00897b;
}
.answer-btn:disabled {
background: #b0bec5;
cursor: not-allowed;
}
#result {
margin-top: 30px;
font-size: 1.3em;
text-align: center;
display: none;
background: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#result h2 {
color: #006064;
margin-bottom: 15px;
}
#result canvas {
margin: 20px auto;
max-width: 100%;
}
.badge-img {
width: 150px;
height: 150px;
margin: 20px auto;
display: block;
border-radius: 50%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.social-share {
margin-top: 20px;
text-align: center;
}
.social-share a {
margin: 0 10px;
color: #ffffff;
font-size: 1em;
text-decoration: none;
padding: 8px 15px;
border-radius: 5px;
display: inline-block;
}
.social-share a.twitter { background: #1DA1F2; }
.social-share a.facebook { background: #3B5998; }
.social-share a.linkedin { background: #0077B5; }
.social-share a.whatsapp { background: #25D366; }
.social-share a.pinterest { background: #E60023; }
.social-share a:hover { opacity: 0.9; }
.reset-btn {
background: #d81b60;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 1.1em;
cursor: pointer;
margin-top: 20px;
}
.reset-btn:hover {
background: #b71c1c;
}
@media (max-width: 600px) {
h1 {
font-size: 2em;
}
.quiz-container {
padding: 20px;
}
.social-share a {
margin: 5px;
padding: 6px 10px;
}
.badge-img {
width: 120px;
height: 120px;
}
}
Are You a Tech Genius or a Science Novice?
Test your knowledge of cutting-edge science and technology! From AI to space exploration, see where you stand.
Start Quiz
const quizData = [
{
question: “What is the primary source of energy for Earth’s climate system?”,
answers: [
{ text: “The Sun”, correct: true },
{ text: “Geothermal heat”, correct: false },
{ text: “Nuclear fusion in Earth’s core”, correct: false },
{ text: “Cosmic radiation”, correct: false }
]
},
{
question: “Which AI model powers advanced language processing in 2025?”,
answers: [
{ text: “Grok 3”, correct: true },
{ text: “Sputnik V”, correct: false },
{ text: “QuantumNet”, correct: false },
{ text: “NeuraLink”, correct: false }
]
},
{
question: “What is the significance of quantum entanglement in computing?”,
answers: [
{ text: “It enables faster-than-light data transfer”, correct: false },
{ text: “It allows qubits to be correlated, enhancing computation”, correct: true },
{ text: “It stabilizes classical bits”, correct: false },
{ text: “It reduces energy consumption in CPUs”, correct: false }
]
},
{
question: “Which planet is the primary target for SpaceX’s 2026 crewed mission?”,
answers: [
{ text: “Mars”, correct: true },
{ text: “Venus”, correct: false },
{ text: “Jupiter”, correct: false },
{ text: “Mercury”, correct: false }
]
},
{
question: “What does CRISPR primarily enable in biotechnology?”,
answers: [
{ text: “Gene editing”, correct: true },
{ text: “Protein synthesis”, correct: false },
{ text: “Vaccine production”, correct: false },
{ text: “Antibiotic resistance”, correct: false }
]
},
{
question: “What is the main goal of Neuralink’s brain-computer interface technology?”,
answers: [
{ text: “Enhancing human cognitive abilities”, correct: true },
{ text: “Creating virtual reality games”, correct: false },
{ text: “Improving smartphone connectivity”, correct: false },
{ text: “Automating household appliances”, correct: false }
]
},
{
question: “Which material is critical for next-generation fusion reactors?”,
answers: [
{ text: “Tritium”, correct: true },
{ text: “Graphite”, correct: false },
{ text: “Silicon”, correct: false },
{ text: “Uranium”, correct: false }
]
}
];
let currentQuestion = 0;
let score = 0;
let userAnswers = [];
const totalQuestions = quizData.length;
function startQuiz() {
currentQuestion = 0;
score = 0;
userAnswers = [];
document.getElementById(“result”).style.display = “none”;
document.getElementById(“quiz”).style.display = “block”;
showQuestion();
}
function showQuestion() {
const quizContainer = document.getElementById(“quiz”);
const progress = document.getElementById(“progress”);
progress.style.width = `${(currentQuestion / totalQuestions) * 100}%`;
if (currentQuestion >= totalQuestions) {
showResult();
return;
}
const questionData = quizData[currentQuestion];
quizContainer.innerHTML = `
${questionData.question}
${questionData.answers.map((answer, index) => `
${answer.text}
`).join(”)}
`;
}
function selectAnswer(answerIndex) {
const questionData = quizData[currentQuestion];
const isCorrect = questionData.answers[answerIndex].correct;
if (isCorrect) {
score++;
}
userAnswers.push({
question: questionData.question,
selected: questionData.answers[answerIndex].text,
correct: questionData.answers.find(a => a.correct).text,
isCorrect
});
currentQuestion++;
showQuestion();
}
function drawProgressChart() {
const canvas = document.createElement(“canvas”);
canvas.width = 300;
canvas.height = 200;
const ctx = canvas.getContext(“2d”);
const correctCount = userAnswers.filter(a => a.isCorrect).length;
const incorrectCount = totalQuestions – correctCount;
// Draw bar chart
const barWidth = 100;
const maxHeight = 150;
const correctHeight = (correctCount / totalQuestions) * maxHeight;
const incorrectHeight = (incorrectCount / totalQuestions) * maxHeight;
ctx.fillStyle = “#00acc1”;
ctx.fillRect(50, 200 – correctHeight, barWidth, correctHeight);
ctx.fillStyle = “#d81b60”;
ctx.fillRect(200, 200 – incorrectHeight, barWidth, incorrectHeight);
// Labels
ctx.fillStyle = “#333”;
ctx.font = “16px Roboto”;
ctx.textAlign = “center”;
ctx.fillText(“Correct”, 100, 190);
ctx.fillText(“Incorrect”, 250, 190);
ctx.fillText(`${correctCount}`, 100, 170 – correctHeight);
ctx.fillText(`${incorrectCount}`, 250, 170 – incorrectHeight);
return canvas;
}
function showResult() {
const quizContainer = document.getElementById(“quiz”);
const resultContainer = document.getElementById(“result”);
quizContainer.style.display = “none”;
resultContainer.style.display = “block”;
let title, description, recommendation, badgeUrl;
if (score >= 6) {
title = “Tech Genius!”;
description = `Incredible! You scored ${score}/${totalQuestions}, proving you’re a master of science and technology. Your knowledge of AI, quantum computing, and space exploration is top-notch.`;
recommendation = “Keep leading the way! Check out our in-depth tech articles to stay ahead of the curve.”;
badgeUrl = “
https://atenajos.blog/wp-content/uploads/2025/08/06fba-tech-genius-badge.png”; // Replace with your hosted image URL
} else if (score >= 3) {
title = “Tech Enthusiast”;
description = `Great job! Your score of ${score}/${totalQuestions} shows you’re passionate about science and tech. A few more dives into the subject, and you’ll be a genius!`;
recommendation = “Explore our blog for tutorials and updates on AI and space exploration to level up.”;
badgeUrl = “
https://atenajos.blog/wp-content/uploads/2025/08/86305-tech-enthusiast-badge.png”; // Replace with your hosted image URL
} else {
title = “Science Novice”;
description = `You scored ${score}/${totalQuestions}. You’re just starting your tech journey, and that’s exciting! There’s a whole world of science to discover.`;
recommendation = “Start with our beginner-friendly tech guides on Atenajos Blog to boost your knowledge.”;
badgeUrl = “
https://atenajos.blog/wp-content/uploads/2025/08/fc9f3-science-novice-badge-1.png”; // Replace with your hosted image URL
}
// Detailed breakdown
let breakdown = “
Your Answers
“;
userAnswers.forEach((answer, index) => {
breakdown += `
-
Question ${index + 1}: ${answer.question}
Your answer: ${answer.selected}
Correct answer: ${answer.correct}
${answer.isCorrect ? ‘Correct!‘ : ‘Incorrect‘}
`;
});
breakdown += “
“;
resultContainer.innerHTML = `
${title}
${description}
${recommendation}
${breakdown}
Explore more on Atenajos Blog!
Play Again
`;
// Add progress chart
const chart = drawProgressChart();
resultContainer.insertBefore(chart, resultContainer.querySelector(“p:last-child”));
// Update social share links
const shareText = `I scored ${score}/${totalQuestions} and earned the ${title} badge on the Tech Genius Quiz at Atenajos Blog! Test your science and tech knowledge:
https://atenajos.wordpress.com`;
document.getElementById(“twitter-share”).href = `https://twitter.com/intent/tweet?text=${encodeURIComponent(shareText)}`;
document.getElementById(“facebook-share”).href = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(‘
https://atenajos.wordpress.com’)}”e=${encodeURIComponent(shareText)}`;
document.getElementById(“linkedin-share”).href = `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(‘
https://atenajos.wordpress.com’)}&title=${encodeURIComponent(‘Tech Genius Quiz’)}&summary=${encodeURIComponent(shareText)}`;
document.getElementById(“whatsapp-share”).href = `https://api.whatsapp.com/send?text=${encodeURIComponent(shareText)}`;
document.getElementById(“pinterest-share”).href = `https://pinterest.com/pin/create/button/?url=${encodeURIComponent(‘
https://atenajos.wordpress.com’)}&description=${encodeURIComponent(shareText)}&media=${encodeURIComponent(‘
https://atenajos.wordpress.com’ + badgeUrl)}`;
}