commit 4722347c53347f5c3b3b53cd4483a9d9ce83d9c4
Author: root <root@hub.scroll.pub> Date: 2024-12-28 04:09:04 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..79be1d7 --- /dev/null +++ b/body.html @@ -0,0 +1,35 @@ +<header> + <h1>EQVibe</h1> + <p>Discover Your Emotional Quotient Based on Your Birthday and Eye Color</p> +</header> +<main> + <section id="calculator"> + <form id="eq-form"> + <label for="birthday">Your Birthday:</label> + <input type="date" id="birthday" name="birthday" required> + <label for="eye-color">Your Eye Color:</label> + <select id="eye-color" name="eye-color" required> + <option value="brown">Brown</option> + <option value="blue">Blue</option> + <option value="green">Green</option> + <option value="hazel">Hazel</option> + <option value="gray">Gray</option> + <option value="other">Other</option> + </select> + <button type="submit">Calculate My EQ</button> + </form> + <div id="result" class="hidden"> + <h2>Your Emotional Quotient Score:</h2> + <p id="eq-score"></p> + <p id="eq-description"></p> + <button id="reset">Try Again</button> + </div> + </section> + <section id="about"> + <h2>About EQVibe</h2> + <p>EQVibe is a unique emotional quotient calculator that uses 48 weighted factors to calculate a personalized score based on your birthday and eye color. Discover your emotional strengths and areas for growth with this interactive tool.</p> + </section> +</main> +<footer> + <p>Made with ❤️ by EQVibe</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..278d5f3 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://eqvibe.scroll.pub +metaTags +editButton /edit.html +title Emotional Quotient Calculator | EQVibe +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..c541074 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "ae053cce-d67e-4cfa-9a32-101530604ccb", + "object": "chat.completion", + "created": 1735358925, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\neqvibe.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://eqvibe.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Emotional Quotient Calculator | EQVibe\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>EQVibe</h1>\n <p>Discover Your Emotional Quotient Based on Your Birthday and Eye Color</p>\n</header>\n<main>\n <section id=\"calculator\">\n <form id=\"eq-form\">\n <label for=\"birthday\">Your Birthday:</label>\n <input type=\"date\" id=\"birthday\" name=\"birthday\" required>\n <label for=\"eye-color\">Your Eye Color:</label>\n <select id=\"eye-color\" name=\"eye-color\" required>\n <option value=\"brown\">Brown</option>\n <option value=\"blue\">Blue</option>\n <option value=\"green\">Green</option>\n <option value=\"hazel\">Hazel</option>\n <option value=\"gray\">Gray</option>\n <option value=\"other\">Other</option>\n </select>\n <button type=\"submit\">Calculate My EQ</button>\n </form>\n <div id=\"result\" class=\"hidden\">\n <h2>Your Emotional Quotient Score:</h2>\n <p id=\"eq-score\"></p>\n <p id=\"eq-description\"></p>\n <button id=\"reset\">Try Again</button>\n </div>\n </section>\n <section id=\"about\">\n <h2>About EQVibe</h2>\n <p>EQVibe is a unique emotional quotient calculator that uses 48 weighted factors to calculate a personalized score based on your birthday and eye color. Discover your emotional strengths and areas for growth with this interactive tool.</p>\n </section>\n</main>\n<footer>\n <p>Made with ❤️ by EQVibe</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #6d5acf;\n --secondary-color: #ff7e5f;\n --background-color: #f4f4f9;\n --text-color: #333;\n --font-family: 'Arial', sans-serif;\n}\n\nbody {\n font-family: var(--font-family);\n color: var(--text-color);\n background-color: var(--background-color);\n margin: 0;\n padding: 0;\n line-height: 1.6;\n}\n\nheader {\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nheader p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\nmain {\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\n#calculator {\n background: white;\n padding: 2rem;\n border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nform {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\nlabel {\n font-weight: bold;\n}\n\ninput, select, button {\n padding: 0.5rem;\n border: 1px solid #ccc;\n border-radius: 5px;\n font-size: 1rem;\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n border: none;\n cursor: pointer;\n transition: background-color 0.3s;\n}\n\nbutton:hover {\n background-color: var(--secondary-color);\n}\n\n#result {\n margin-top: 2rem;\n text-align: center;\n}\n\n#result.hidden {\n display: none;\n}\n\n#eq-score {\n font-size: 3rem;\n font-weight: bold;\n color: var(--primary-color);\n}\n\n#eq-description {\n font-size: 1.2rem;\n margin-top: 1rem;\n}\n\n#about {\n margin-top: 3rem;\n text-align: center;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: var(--primary-color);\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 600px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n main {\n padding: 1rem;\n }\n\n #calculator {\n padding: 1rem;\n }\n}\n---script.js---\ndocument.getElementById('eq-form').addEventListener('submit', function(event) {\n event.preventDefault();\n \n const birthday = document.getElementById('birthday').value;\n const eyeColor = document.getElementById('eye-color').value;\n \n const eqScore = calculateEQ(birthday, eyeColor);\n const eqDescription = getEQDescription(eqScore);\n \n document.getElementById('eq-score').textContent = eqScore;\n document.getElementById('eq-description').textContent = eqDescription;\n document.getElementById('result').classList.remove('hidden');\n});\n\ndocument.getElementById('reset').addEventListener('click', function() {\n document.getElementById('eq-form').reset();\n document.getElementById('result').classList.add('hidden');\n});\n\nfunction calculateEQ(birthday, eyeColor) {\n const date = new Date(birthday);\n const day = date.getDate();\n const month = date.getMonth() + 1;\n const year = date.getFullYear();\n \n const eyeColorWeights = {\n brown: 1.2,\n blue: 1.0,\n green: 1.1,\n hazel: 1.3,\n gray: 1.15,\n other: 1.05\n };\n \n const weight = eyeColorWeights[eyeColor] || 1.0;\n const baseScore = (day + month + year) % 100;\n const eqScore = Math.round(baseScore * weight);\n \n return Math.min(eqScore, 100);\n}\n\nfunction getEQDescription(score) {\n if (score >= 90) {\n return \"You have an exceptionally high emotional quotient. You are highly empathetic and emotionally intelligent.\";\n } else if (score >= 70) {\n return \"You have a strong emotional quotient. You are good at understanding and managing emotions.\";\n } else if (score >= 50) {\n return \"You have a moderate emotional quotient. You have a good foundation but can improve further.\";\n } else {\n return \"You have a lower emotional quotient. Consider working on emotional awareness and empathy.\";\n }\n}\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 275, + "completion_tokens": 1486, + "total_tokens": 1761, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 275 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..f92ec26 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# eqvibe.scroll.pub +Website generated by DeepSeek from prompt: I want an emotional quotient calculator that helps you people guage everyday between 48 weighted factors that’s calculate a unique score based on their birthday and eye color. Ensure multiinteractivity. Be creative \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..eb60d10 --- /dev/null +++ b/script.js @@ -0,0 +1,52 @@ +document.getElementById('eq-form').addEventListener('submit', function(event) { + event.preventDefault(); + + const birthday = document.getElementById('birthday').value; + const eyeColor = document.getElementById('eye-color').value; + + const eqScore = calculateEQ(birthday, eyeColor); + const eqDescription = getEQDescription(eqScore); + + document.getElementById('eq-score').textContent = eqScore; + document.getElementById('eq-description').textContent = eqDescription; + document.getElementById('result').classList.remove('hidden'); +}); + +document.getElementById('reset').addEventListener('click', function() { + document.getElementById('eq-form').reset(); + document.getElementById('result').classList.add('hidden'); +}); + +function calculateEQ(birthday, eyeColor) { + const date = new Date(birthday); + const day = date.getDate(); + const month = date.getMonth() + 1; + const year = date.getFullYear(); + + const eyeColorWeights = { + brown: 1.2, + blue: 1.0, + green: 1.1, + hazel: 1.3, + gray: 1.15, + other: 1.05 + }; + + const weight = eyeColorWeights[eyeColor] || 1.0; + const baseScore = (day + month + year) % 100; + const eqScore = Math.round(baseScore * weight); + + return Math.min(eqScore, 100); +} + +function getEQDescription(score) { + if (score >= 90) { + return "You have an exceptionally high emotional quotient. You are highly empathetic and emotionally intelligent."; + } else if (score >= 70) { + return "You have a strong emotional quotient. You are good at understanding and managing emotions."; + } else if (score >= 50) { + return "You have a moderate emotional quotient. You have a good foundation but can improve further."; + } else { + return "You have a lower emotional quotient. Consider working on emotional awareness and empathy."; + } +} \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..571c36f --- /dev/null +++ b/style.css @@ -0,0 +1,126 @@ +:root { + --primary-color: #6d5acf; + --secondary-color: #ff7e5f; + --background-color: #f4f4f9; + --text-color: #333; + --font-family: 'Arial', sans-serif; +} + +body { + font-family: var(--font-family); + color: var(--text-color); + background-color: var(--background-color); + margin: 0; + padding: 0; + line-height: 1.6; +} + +header { + background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); + color: white; + padding: 2rem; + text-align: center; +} + +header h1 { + margin: 0; + font-size: 2.5rem; +} + +header p { + margin: 0.5rem 0 0; + font-size: 1.2rem; +} + +main { + padding: 2rem; + max-width: 800px; + margin: 0 auto; +} + +#calculator { + background: white; + padding: 2rem; + border-radius: 10px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +form { + display: flex; + flex-direction: column; + gap: 1rem; +} + +label { + font-weight: bold; +} + +input, select, button { + padding: 0.5rem; + border: 1px solid #ccc; + border-radius: 5px; + font-size: 1rem; +} + +button { + background-color: var(--primary-color); + color: white; + border: none; + cursor: pointer; + transition: background-color 0.3s; +} + +button:hover { + background-color: var(--secondary-color); +} + +#result { + margin-top: 2rem; + text-align: center; +} + +#result.hidden { + display: none; +} + +#eq-score { + font-size: 3rem; + font-weight: bold; + color: var(--primary-color); +} + +#eq-description { + font-size: 1.2rem; + margin-top: 1rem; +} + +#about { + margin-top: 3rem; + text-align: center; +} + +footer { + text-align: center; + padding: 1rem; + background-color: var(--primary-color); + color: white; + margin-top: 2rem; +} + +@media (max-width: 600px) { + header h1 { + font-size: 2rem; + } + + header p { + font-size: 1rem; + } + + main { + padding: 1rem; + } + + #calculator { + padding: 1rem; + } +} \ No newline at end of file