Spaces:
Running
Running
File size: 36,041 Bytes
4d44914 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SoulCharge Energy Meter | Discover Your Vibration Frequency</title>
<meta name="description" content="Take our energy frequency quiz based on Dr. David Hawkins' Map of Consciousness to discover your current vibration level and receive personalized guidance.">
<meta name="keywords" content="energy frequency quiz, raise your vibration, consciousness levels tool, vibration assessment, emotional frequency">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<style>
body {
font-family: 'Nunito', sans-serif;
background-color: #f8f9fa;
}
.glow-text {
animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
from {
text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
to {
text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
}
}
.energy-gradient {
background: linear-gradient(135deg, #4b0082, #6a5acd, #87ceeb, #fffacd, #ffffff);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.energy-level-shame { background-color: #8b0000; }
.energy-level-guilt { background-color: #a52a2a; }
.energy-level-apathy { background-color: #696969; }
.energy-level-grief { background-color: #708090; }
.energy-level-fear { background-color: #9370db; }
.energy-level-desire { background-color: #ff4500; }
.energy-level-anger { background-color: #ff0000; }
.energy-level-pride { background-color: #ffa500; }
.energy-level-courage { background-color: #9acd32; }
.energy-level-neutrality { background-color: #a9a9a9; }
.energy-level-willingness { background-color: #7cfc00; }
.energy-level-acceptance { background-color: #20b2aa; }
.energy-level-reason { background-color: #4169e1; }
.energy-level-love { background-color: #ff69b4; }
.energy-level-joy { background-color: #ffd700; }
.energy-level-peace { background-color: #9932cc; }
.energy-level-enlightenment { background-color: #ffffff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
</style>
</head>
<body class="min-h-screen flex flex-col">
<!-- Navigation -->
<nav class="bg-indigo-900 text-white shadow-lg">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-gradient-to-br from-yellow-200 to-yellow-500 flex items-center justify-center">
<i class="fas fa-bolt text-indigo-900"></i>
</div>
<span class="text-xl font-bold">SoulCharge</span>
</div>
<div class="hidden md:flex space-x-6">
<a href="#home" class="hover:text-yellow-200 transition">Home</a>
<a href="#quiz" class="hover:text-yellow-200 transition">Energy Quiz</a>
<a href="#library" class="hover:text-yellow-200 transition">Energy Library</a>
<a href="#about" class="hover:text-yellow-200 transition">About</a>
</div>
<button class="md:hidden focus:outline-none" id="mobile-menu-button">
<i class="fas fa-bars text-2xl"></i>
</button>
</div>
<!-- Mobile Menu -->
<div class="md:hidden hidden bg-indigo-800 px-4 py-2" id="mobile-menu">
<a href="#home" class="block py-2 hover:text-yellow-200 transition">Home</a>
<a href="#quiz" class="block py-2 hover:text-yellow-200 transition">Energy Quiz</a>
<a href="#library" class="block py-2 hover:text-yellow-200 transition">Energy Library</a>
<a href="#about" class="block py-2 hover:text-yellow-200 transition">About</a>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="energy-gradient text-white py-20 md:py-32 px-4 text-center">
<div class="container mx-auto max-w-4xl">
<h1 class="text-4xl md:text-6xl font-bold mb-6 glow-text">What's Your Energy Today?</h1>
<p class="text-xl md:text-2xl mb-8 opacity-90">Discover your current vibration frequency and receive personalized guidance to elevate your consciousness.</p>
<a href="#quiz" class="inline-block bg-white text-indigo-900 font-bold py-3 px-8 rounded-full hover:bg-yellow-200 transition transform hover:scale-105 shadow-lg">
Take the Energy Check-In
</a>
</div>
</section>
<!-- How It Works -->
<section class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center text-indigo-900 mb-12">How It Works</h2>
<div class="grid md:grid-cols-3 gap-8">
<div class="text-center p-6 rounded-lg bg-indigo-50">
<div class="w-16 h-16 mx-auto mb-4 rounded-full bg-indigo-100 flex items-center justify-center">
<i class="fas fa-question text-indigo-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-3 text-indigo-800">Answer Simple Questions</h3>
<p class="text-gray-700">Our 7-question assessment helps identify your current emotional and energetic state.</p>
</div>
<div class="text-center p-6 rounded-lg bg-indigo-50">
<div class="w-16 h-16 mx-auto mb-4 rounded-full bg-indigo-100 flex items-center justify-center">
<i class="fas fa-chart-line text-indigo-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-3 text-indigo-800">Receive Your Energy Level</h3>
<p class="text-gray-700">Based on Dr. Hawkins' Map of Consciousness, we'll show you where you're vibrating.</p>
</div>
<div class="text-center p-6 rounded-lg bg-indigo-50">
<div class="w-16 h-16 mx-auto mb-4 rounded-full bg-indigo-100 flex items-center justify-center">
<i class="fas fa-hands-helping text-indigo-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-3 text-indigo-800">Get Personalized Guidance</h3>
<p class="text-gray-700">Receive affirmations, practices, and tips to help raise your vibration.</p>
</div>
</div>
</div>
</section>
<!-- Energy Quiz Section -->
<section id="quiz" class="py-16 bg-gray-50">
<div class="container mx-auto px-4 max-w-3xl">
<h2 class="text-3xl font-bold text-center text-indigo-900 mb-12">Energy Frequency Quiz</h2>
<div id="quiz-container" class="bg-white rounded-xl shadow-lg overflow-hidden">
<!-- Quiz Intro -->
<div id="quiz-intro" class="p-8">
<h3 class="text-2xl font-bold mb-4 text-indigo-800">Ready to check your energy?</h3>
<p class="mb-6 text-gray-700">This simple 7-question assessment will help identify your current vibration level based on Dr. David Hawkins' Map of Consciousness.</p>
<p class="mb-8 text-gray-600 italic">Answer honestly based on how you're feeling right now. There are no right or wrong answers.</p>
<button id="start-quiz" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-bold hover:bg-indigo-700 transition">
Begin Energy Assessment
</button>
</div>
<!-- Quiz Questions (hidden initially) -->
<div id="quiz-questions" class="hidden p-6">
<div id="progress-bar" class="h-2 bg-gray-200 rounded-full mb-6">
<div id="progress" class="h-full bg-indigo-600 rounded-full" style="width: 0%"></div>
</div>
<div id="question-container">
<!-- Questions will be inserted here by JavaScript -->
</div>
<div class="flex justify-between mt-8">
<button id="prev-btn" class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition hidden">
<i class="fas fa-arrow-left mr-2"></i> Previous
</button>
<button id="next-btn" class="ml-auto px-6 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition">
Next <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
<!-- Quiz Results (hidden initially) -->
<div id="quiz-results" class="hidden p-8 text-center">
<div id="result-icon" class="w-24 h-24 mx-auto mb-6 rounded-full flex items-center justify-center text-4xl">
<!-- Icon will be inserted here -->
</div>
<h3 id="result-title" class="text-2xl font-bold mb-4"></h3>
<div id="result-level" class="text-xl font-semibold mb-2"></div>
<div id="result-score" class="text-lg mb-6"></div>
<p id="result-description" class="mb-6 text-gray-700"></p>
<div class="bg-gray-100 p-6 rounded-lg mb-6">
<h4 class="font-bold text-lg mb-3">Your Affirmation</h4>
<p id="result-affirmation" class="text-lg italic"></p>
</div>
<div class="bg-gray-100 p-6 rounded-lg mb-6">
<h4 class="font-bold text-lg mb-3">Practice to Elevate</h4>
<p id="result-practice" class="text-gray-700"></p>
</div>
<div class="flex flex-col sm:flex-row justify-center gap-4 mt-8">
<button id="retake-btn" class="px-6 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition">
Check Again
</button>
<a href="#library" class="px-6 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition">
Explore Energy Library
</a>
</div>
</div>
</div>
</div>
</section>
<!-- Energy Library Preview -->
<section id="library" class="py-16 bg-indigo-900 text-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Energy Library</h2>
<div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
<div class="bg-indigo-800 p-6 rounded-lg hover:bg-indigo-700 transition cursor-pointer">
<div class="w-12 h-12 mb-4 rounded-full bg-indigo-600 flex items-center justify-center">
<i class="fas fa-book-open"></i>
</div>
<h3 class="text-xl font-bold mb-2">Level Descriptions</h3>
<p class="text-indigo-200">Detailed explanations of all 17 consciousness levels from Shame to Enlightenment.</p>
</div>
<div class="bg-indigo-800 p-6 rounded-lg hover:bg-indigo-700 transition cursor-pointer">
<div class="w-12 h-12 mb-4 rounded-full bg-indigo-600 flex items-center justify-center">
<i class="fas fa-spa"></i>
</div>
<h3 class="text-xl font-bold mb-2">Guided Practices</h3>
<p class="text-indigo-200">Meditations, breathwork, and exercises tailored to each energy level.</p>
</div>
<div class="bg-indigo-800 p-6 rounded-lg hover:bg-indigo-700 transition cursor-pointer">
<div class="w-12 h-12 mb-4 rounded-full bg-indigo-600 flex items-center justify-center">
<i class="fas fa-music"></i>
</div>
<h3 class="text-xl font-bold mb-2">Sound Frequencies</h3>
<p class="text-indigo-200">Music and tones to help shift your vibration to higher frequencies.</p>
</div>
<div class="bg-indigo-800 p-6 rounded-lg hover:bg-indigo-700 transition cursor-pointer">
<div class="w-12 h-12 mb-4 rounded-full bg-indigo-600 flex items-center justify-center">
<i class="fas fa-pen-fancy"></i>
</div>
<h3 class="text-xl font-bold mb-2">Journal Prompts</h3>
<p class="text-indigo-200">Thought-provoking questions to help process and elevate your energy.</p>
</div>
</div>
<div class="text-center mt-12">
<button class="px-8 py-3 bg-white text-indigo-900 font-bold rounded-lg hover:bg-yellow-200 transition">
Explore Full Energy Library
</button>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="py-16 bg-white">
<div class="container mx-auto px-4 max-w-4xl">
<h2 class="text-3xl font-bold text-center text-indigo-900 mb-12">About SoulCharge</h2>
<div class="grid md:grid-cols-2 gap-8 items-center">
<div>
<h3 class="text-xl font-bold mb-4 text-indigo-800">The Science of Consciousness</h3>
<p class="mb-4 text-gray-700">Our energy frequency assessment is based on Dr. David Hawkins' groundbreaking Map of Consciousness, which maps human emotions and states of being to specific vibrational frequencies.</p>
<p class="mb-4 text-gray-700">Dr. Hawkins' research demonstrated that higher energy states correlate with greater peace, clarity, and positive life experiences.</p>
<p class="text-gray-700">By becoming aware of your current vibration, you can consciously work to elevate it through specific practices and mindset shifts.</p>
</div>
<div class="bg-gray-100 p-6 rounded-lg">
<h3 class="text-xl font-bold mb-4 text-indigo-800">Why Check Your Energy?</h3>
<ul class="space-y-3">
<li class="flex items-start">
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
<span class="text-gray-700">Gain awareness of your current emotional state</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
<span class="text-gray-700">Understand how your vibration affects your experiences</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
<span class="text-gray-700">Receive personalized guidance to raise your frequency</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
<span class="text-gray-700">Track your progress over time (coming soon)</span>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-8">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-gradient-to-br from-yellow-200 to-yellow-500 flex items-center justify-center">
<i class="fas fa-bolt text-indigo-900"></i>
</div>
<span class="text-xl font-bold">SoulCharge</span>
</div>
<p class="text-gray-400 mt-2">Elevate your vibration, transform your life.</p>
</div>
<div class="flex space-x-6">
<a href="#" class="hover:text-yellow-200 transition"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="hover:text-yellow-200 transition"><i class="fab fa-twitter"></i></a>
<a href="#" class="hover:text-yellow-200 transition"><i class="fab fa-instagram"></i></a>
<a href="#" class="hover:text-yellow-200 transition"><i class="fab fa-pinterest"></i></a>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400 text-sm">
<p>© 2023 SoulCharge Energy Meter. All rights reserved.</p>
<div class="mt-2 space-x-4">
<a href="#" class="hover:text-white transition">Privacy Policy</a>
<a href="#" class="hover:text-white transition">Terms of Service</a>
<a href="#" class="hover:text-white transition">Contact Us</a>
</div>
</div>
</div>
</footer>
<script>
// Mobile menu toggle
document.getElementById('mobile-menu-button').addEventListener('click', function() {
const menu = document.getElementById('mobile-menu');
menu.classList.toggle('hidden');
});
// Quiz functionality
const quizData = [
{
question: "Right now, do you feel safe, threatened, or uncertain?",
options: [
{ text: "Threatened (on guard)", value: 100 },
{ text: "Uncertain (unsure)", value: 125 },
{ text: "Mostly safe", value: 250 },
{ text: "Completely safe and at peace", value: 600 }
]
},
{
question: "Do you hold any regret, guilt, or shame about something today?",
options: [
{ text: "Yes, strong shame or guilt", value: 20 },
{ text: "Some regret", value: 75 },
{ text: "A little guilt but moving on", value: 200 },
{ text: "No, I've processed and released these", value: 350 }
]
},
{
question: "Is your mind full of blame, hope, love, or acceptance?",
options: [
{ text: "Blame (of self or others)", value: 150 },
{ text: "Hope (looking forward)", value: 310 },
{ text: "Love (compassion and care)", value: 500 },
{ text: "Acceptance (peace with what is)", value: 540 }
]
},
{
question: "What emotions have been strongest for you this week?",
options: [
{ text: "Fear, anxiety, or worry", value: 100 },
{ text: "Anger or frustration", value: 150 },
{ text: "Courage or determination", value: 200 },
{ text: "Love, joy, or peace", value: 500 }
]
},
{
question: "How do you respond to challenge: with fear, courage, or neutrality?",
options: [
{ text: "Fear (avoidance or panic)", value: 100 },
{ text: "Courage (facing it head on)", value: 200 },
{ text: "Neutrality (it is what it is)", value: 250 },
{ text: "Seeing opportunity in challenge", value: 350 }
]
},
{
question: "Do you feel life is against you or working with you?",
options: [
{ text: "Against me (or indifferent)", value: 100 },
{ text: "Sometimes for, sometimes against", value: 175 },
{ text: "Generally working with me", value: 300 },
{ text: "Always supporting my growth", value: 500 }
]
},
{
question: "What word resonates most right now: Control, Flow, Forgiveness, Joy?",
options: [
{ text: "Control (needing it)", value: 150 },
{ text: "Flow (going with it)", value: 250 },
{ text: "Forgiveness (releasing)", value: 350 },
{ text: "Joy (appreciation)", value: 540 }
]
}
];
const energyLevels = [
{ min: 1, max: 20, name: "Shame", color: "energy-level-shame",
description: "At this level, you may feel worthless, humiliated, or full of self-loathing. The worldview is bleak and hopeless.",
affirmation: "I am worthy of love and respect exactly as I am.",
practice: "Practice self-compassion. Write a letter to yourself with kindness, as you would to a dear friend." },
{ min: 30, max: 50, name: "Guilt", color: "energy-level-guilt",
description: "You may be dwelling on past mistakes, feeling remorse, or punishing yourself. There's a sense of 'I should have...'",
affirmation: "I release the past with love and learn from my experiences.",
practice: "Make amends where possible, then practice forgiveness - both of yourself and others." },
{ min: 75, max: 100, name: "Apathy", color: "energy-level-apathy",
description: "You may feel hopeless, helpless, or indifferent. Energy is low and there's little motivation to change.",
affirmation: "Small steps forward are still progress. I choose to engage with life.",
practice: "Start with tiny actions - a short walk, making your bed. Celebrate small wins to build momentum." },
{ min: 125, max: 150, name: "Grief", color: "energy-level-grief",
description: "You may be experiencing sadness, loss, or regret. While painful, this is a step up from apathy as you're actually feeling.",
affirmation: "It's okay to feel. My emotions are valid and will pass in time.",
practice: "Allow yourself to feel fully. Journal about your feelings or create art to express them." },
{ min: 175, max: 200, name: "Fear", color: "energy-level-fear",
description: "You may feel anxious, worried about the future, or see threats everywhere. There's a sense of needing to be on guard.",
affirmation: "I am safe in this moment. I have the strength to handle what comes.",
practice: "Ground yourself in the present with deep breathing. List things you're grateful for to shift perspective." },
{ min: 250, max: 300, name: "Desire", color: "energy-level-desire",
description: "You're motivated by wants - for money, approval, success. This drives action but can lead to addiction or frustration.",
affirmation: "I am enough as I am. My worth isn't tied to external things.",
practice: "Practice contentment. Notice when you're chasing versus when you're truly present." },
{ min: 350, max: 400, name: "Anger", color: "energy-level-anger",
description: "You may feel frustrated, resentful, or rebellious. While uncomfortable, anger can fuel needed change.",
affirmation: "I channel my energy constructively. My power is in my response.",
practice: "Use physical activity to release energy. Then explore what needs your anger is signaling." },
{ min: 425, max: 475, name: "Pride", color: "energy-level-pride",
description: "You feel confident in your achievements or status, but this can be defensive and look down on others.",
affirmation: "I celebrate my growth while staying humble and connected.",
practice: "Practice gratitude for those who helped you. Find ways to lift others up." },
{ min: 500, max: 550, name: "Courage", color: "energy-level-courage",
description: "You're willing to face challenges and grow. This is where true empowerment begins.",
affirmation: "I have what it takes to handle life's challenges.",
practice: "Identify one fear to face this week. Take action despite discomfort." },
{ min: 600, max: 650, name: "Neutrality", color: "energy-level-neutrality",
description: "You feel okay with how things are. There's less need to control or prove yourself.",
affirmation: "I trust the process of life. Things are working out as they should.",
practice: "Notice when you're trying to force outcomes. Practice allowing and observing." },
{ min: 700, max: 750, name: "Willingness", color: "energy-level-willingness",
description: "You're open to learning and growing. There's optimism and cooperation with life.",
affirmation: "I welcome new experiences and opportunities to expand.",
practice: "Say yes to something outside your comfort zone this week." },
{ min: 800, max: 850, name: "Acceptance", color: "energy-level-acceptance",
description: "You understand that life is as it is. There's emotional balance and clarity.",
affirmation: "I accept what I cannot change and take responsibility for what I can.",
practice: "Practice non-judgment. Observe your experiences without labeling them good/bad." },
{ min: 900, max: 950, name: "Reason", color: "energy-level-reason",
description: "You think clearly and objectively. There's ability to solve problems and understand complex ideas.",
affirmation: "I trust my ability to discern truth and make wise choices.",
practice: "Engage in learning something new. Share your knowledge with others." },
{ min: 1000, max: 1100, name: "Love", color: "energy-level-love",
description: "You feel unconditional love and compassion. There's recognition of the sacred in all life.",
affirmation: "I am love. I give and receive love freely.",
practice: "Perform small acts of kindness without expectation. Send loving thoughts to those you find difficult." },
{ min: 1200, max: 1300, name: "Joy", color: "energy-level-joy",
description: "You feel inner happiness not tied to circumstances. There's appreciation for life's beauty.",
affirmation: "My heart is open to life's wonder and delight.",
practice: "Create moments of play and laughter. Notice and savor small pleasures." },
{ min: 1400, max: 1500, name: "Peace", color: "energy-level-peace",
description: "You experience deep serenity and oneness. There's complete acceptance of what is.",
affirmation: "I am at peace with all that was, is, and will be.",
practice: "Spend time in nature. Meditate on the interconnectedness of all things." },
{ min: 1600, max: 2000, name: "Enlightenment", color: "energy-level-enlightenment",
description: "You experience the highest state of consciousness - complete transcendence of the ego.",
affirmation: "I am that I am. All is one.",
practice: "Simply be. Teach through your presence and being." }
];
// Quiz state
let currentQuestion = 0;
let answers = [];
let totalScore = 0;
// DOM elements
const quizIntro = document.getElementById('quiz-intro');
const quizQuestions = document.getElementById('quiz-questions');
const quizResults = document.getElementById('quiz-results');
const questionContainer = document.getElementById('question-container');
const progressBar = document.getElementById('progress');
const prevBtn = document.getElementById('prev-btn');
const nextBtn = document.getElementById('next-btn');
const startBtn = document.getElementById('start-quiz');
const retakeBtn = document.getElementById('retake-btn');
// Start quiz
startBtn.addEventListener('click', () => {
quizIntro.classList.add('hidden');
quizQuestions.classList.remove('hidden');
showQuestion();
});
// Show current question
function showQuestion() {
const question = quizData[currentQuestion];
progressBar.style.width = `${((currentQuestion + 1) / quizData.length) * 100}%`;
let optionsHtml = '';
question.options.forEach((option, index) => {
optionsHtml += `
<div class="mb-3">
<input type="radio" name="answer" id="option-${index}" value="${option.value}" class="hidden peer">
<label for="option-${index}" class="block p-4 border border-gray-200 rounded-lg cursor-pointer hover:bg-indigo-50 peer-checked:bg-indigo-100 peer-checked:border-indigo-300 transition">
${option.text}
</label>
</div>
`;
});
questionContainer.innerHTML = `
<h3 class="text-xl font-bold mb-6 text-indigo-800">${question.question}</h3>
<div class="space-y-3">
${optionsHtml}
</div>
`;
// Show/hide previous button
prevBtn.classList.toggle('hidden', currentQuestion === 0);
// Change next button text if last question
if (currentQuestion === quizData.length - 1) {
nextBtn.innerHTML = 'See Results <i class="fas fa-star ml-2"></i>';
} else {
nextBtn.innerHTML = 'Next <i class="fas fa-arrow-right ml-2"></i>';
}
}
// Next question
nextBtn.addEventListener('click', () => {
const selectedOption = document.querySelector('input[name="answer"]:checked');
if (!selectedOption) {
alert('Please select an answer');
return;
}
// Save answer
answers[currentQuestion] = parseInt(selectedOption.value);
// If last question, show results
if (currentQuestion === quizData.length - 1) {
calculateResults();
return;
}
// Go to next question
currentQuestion++;
showQuestion();
});
// Previous question
prevBtn.addEventListener('click', () => {
currentQuestion--;
showQuestion();
});
// Calculate results
function calculateResults() {
// Calculate average score
totalScore = Math.round(answers.reduce((sum, value) => sum + value, 0) / answers.length);
// Find energy level
const resultLevel = energyLevels.find(level => totalScore >= level.min && totalScore <= level.max);
// Display results
document.getElementById('result-title').textContent = `Your Energy Frequency: ${resultLevel.name}`;
document.getElementById('result-level').textContent = `Level ${resultLevel.min}-${resultLevel.max}`;
document.getElementById('result-score').textContent = `Your Score: ${totalScore}`;
document.getElementById('result-description').textContent = resultLevel.description;
document.getElementById('result-affirmation').textContent = resultLevel.affirmation;
document.getElementById('result-practice').textContent = resultLevel.practice;
// Set icon color
const resultIcon = document.getElementById('result-icon');
resultIcon.className = `w-24 h-24 mx-auto mb-6 rounded-full flex items-center justify-center text-4xl ${resultLevel.color} text-white`;
resultIcon.innerHTML = '<i class="fas fa-bolt"></i>';
// Show results
quizQuestions.classList.add('hidden');
quizResults.classList.remove('hidden');
// Scroll to results
setTimeout(() => {
quizResults.scrollIntoView({ behavior: 'smooth' });
}, 100);
}
// Retake quiz
retakeBtn.addEventListener('click', () => {
currentQuestion = 0;
answers = [];
totalScore = 0;
quizResults.classList.add('hidden');
quizQuestions.classList.remove('hidden');
showQuestion();
// Scroll to quiz
setTimeout(() => {
quizQuestions.scrollIntoView({ behavior: 'smooth' });
}, 100);
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const targetId = this.getAttribute('href');
if (targetId === '#') return;
const targetElement = document.querySelector(targetId);
if (targetElement) {
targetElement.scrollIntoView({
behavior: 'smooth'
});
// Close mobile menu if open
const mobileMenu = document.getElementById('mobile-menu');
if (!mobileMenu.classList.contains('hidden')) {
mobileMenu.classList.add('hidden');
}
}
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=CodellaDeville/energymeter" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |