├── Info ├── index.html ├── indexold.html └── kkkk.html ├── Old ├── Bob.js ├── egg.html ├── extra.css ├── images │ ├── B1.gif │ ├── B2.gif │ ├── B3.gif │ ├── B4.gif │ ├── B5.gif │ ├── BA.PNG │ ├── BE4.PNG │ ├── BT.PNG │ ├── ID.PNG │ ├── head.PNG │ └── search.PNG ├── index.html └── pw.html ├── README.md ├── Resource ├── CosmicCalendarrr.pdf ├── DopplerDucklingss.pdf ├── WomeninASTRO.pdf └── index.html ├── finalscript.js ├── images ├── 10Sn.png ├── 11Grav.png ├── 12hand.png ├── 13sat.png ├── 14sun.png ├── 15gal.png ├── 16rocket.png ├── 1DE.png ├── 2light.png ├── 3UFO.png ├── 4nebula.png ├── 5comet.png ├── 6ST.png ├── 7DM.png ├── 8met.png ├── 9BH.png ├── BE3.PNG ├── BE4.PNG ├── BE5.PNG ├── Q1.gif ├── Q10.gif ├── Q11.gif ├── Q12.gif ├── Q13.gif ├── Q2.gif ├── Q3.gif ├── Q4.gif ├── Q5.gif ├── Q6.gif ├── Q7.gif ├── Q8.gif ├── Q9.gif ├── all.png ├── gal.html ├── izeecon.PNG └── main.gif ├── index.html ├── styles.css └── sub.html /Info/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All 7 | 8 | 9 | 95 | 96 | 97 |

About Cosmos Persona

98 |
99 |
100 |
101 | 150 |
151 |
152 |
153 | 156 | 157 | 158 | 159 | -------------------------------------------------------------------------------- /Info/indexold.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All 7 | 8 | 9 | 48 | 49 | 50 |

Cosmos Persona

51 |
52 |
53 |
54 | 72 |
73 |
74 |
75 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Info/kkkk.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | EGG 7 | 8 | 9 | 54 | 55 | 56 |
57 |
58 |
59 | Cosmic Calendar 60 | 61 |
62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 |
72 |
73 |
74 | Egg Image 75 |

Egg #3 found!

76 |

Woahh! Good Job!!

77 |
78 |

79 |
80 |
81 | 84 |
85 |
86 | 87 | 134 | 135 | 136 | -------------------------------------------------------------------------------- /Old/Bob.js: -------------------------------------------------------------------------------- 1 | // Please do not use my code, pictures without permission! I'm happy to share this with you just please please let me know first! 2 | // took me a year to finish this project and all I had then was python knowledge lol 3 | 4 | const questions = [ 5 | { 6 | question: "...?", 7 | image: "images/B1.gif", 8 | answers: { 9 | C: { 10 | text: "OMG BOB IT'S YOU!!!", 11 | scores: { U: 0, C: +1 }, 12 | }, 13 | U: { 14 | text: "Here we go again...Where am I?", 15 | scores: { U: +1, C: 0 }, 16 | }, 17 | }, 18 | }, 19 | { 20 | question: "'You! You're not suposed to be here!'", 21 | image: "images/B2.gif", 22 | answers: { 23 | C: { 24 | text: "This place is cool! Is this where you work? Is this how the quiz was created?!", 25 | scores: { U: 0, C: +1 }, 26 | }, 27 | U: { 28 | text: "I was told by the creator to find an easter egg, any ideas?", 29 | scores: { U: +1, C: 0 }, 30 | }, 31 | }, 32 | }, 33 | { 34 | question: "'An easter egg?! Wow, my boss really need to touch some grass with all these free time in her hands...'", 35 | image: "images/B3.gif", 36 | answers: { 37 | U: { 38 | text: "Hey...It's not a crime being a homebody.", 39 | scores: { U: +1, C: 0 }, 40 | }, 41 | C: { 42 | text: "lol I know right, she must be really bored..", 43 | scores: { U: 0, C: +1 }, 44 | }, 45 | }, 46 | }, 47 | { 48 | question: "'To be honest, I have no idea. Where do people normally keep eggs?'", 49 | image: "images/B4.gif", 50 | answers: { 51 | C: { 52 | text: "Maybe I should crack you open and see if you're hiding it in there?", 53 | scores: { U: 0, C: +1 }, 54 | }, 55 | U: { 56 | text: "You know you're a bad liar, right?", 57 | scores: { U: +1, C: 0 }, 58 | }, 59 | }, 60 | }, 61 | { 62 | question: "'Fine! Fine! She asked me to keep the secret! There... one of those boxes! Gosh, I don't get paid enough for this...'", 63 | image: "images/B5.gif", 64 | answers: { 65 | U: { 66 | text: "Open 'Trash with potential' box", 67 | scores: { U: +1, C: 0 }, 68 | }, 69 | C: { 70 | text: "Open 'I forgot I made these' box", 71 | scores: { U: 0, C: +1 }, 72 | }, 73 | }, 74 | }, 75 | ]; 76 | 77 | const resultOptions = { 78 | "U": { 79 | image: "BA.PNG", 80 | }, 81 | "C": { 82 | image: "BT.PNG" 83 | }, 84 | }; 85 | 86 | let currentQuestion = 0; 87 | // let userAnswers = {}; 88 | 89 | 90 | function displayQuestion() { 91 | const quizElement = document.getElementById('quiz'); 92 | const question = questions[currentQuestion]; 93 | if (question) { 94 | let html = `

${question.question}

`; 95 | if (question.image) { 96 | html += `Question ${currentQuestion + 1}`; 97 | } 98 | for (const option in question.answers) { 99 | html += ``; 100 | } 101 | quizElement.innerHTML = html; 102 | attachButtonClickHandlers(); 103 | } else { 104 | 105 | } 106 | } 107 | 108 | 109 | document.getElementById('start-button').addEventListener('click', function() { 110 | document.getElementById('start-page').style.display = 'none'; 111 | document.getElementById('quiz-page').style.display = 'block'; 112 | currentQuestion = 0; 113 | userAnswers = {}; 114 | displayQuestion(); 115 | // userAnswers.userName = userName; 116 | }); 117 | 118 | 119 | //click 120 | function attachButtonClickHandlers() { 121 | const choiceButtons = document.querySelectorAll('.large-rectangular'); 122 | choiceButtons.forEach((button) => { 123 | button.addEventListener('click', handleAnswer); 124 | }); 125 | } 126 | 127 | 128 | 129 | //answers 130 | function handleAnswer(event) { 131 | const selectedOption = event.target; 132 | const answerKey = selectedOption.value; 133 | const question = questions[currentQuestion]; 134 | const answer = question.answers[answerKey]; 135 | 136 | for (const dimension in answer.scores) { 137 | userAnswers[dimension] = (userAnswers[dimension] || 0) + answer.scores[dimension]; 138 | } 139 | 140 | if (currentQuestion < questions.length - 1) { 141 | currentQuestion++; 142 | displayQuestion(); 143 | } else { 144 | showResult(); 145 | } 146 | } 147 | 148 | // ... 149 | 150 | function showResult() { 151 | const resultElement = document.getElementById('result'); 152 | const resultTextContainer = document.querySelector('.result-text'); 153 | const resultImage = document.getElementById('result-image'); 154 | 155 | // Decide the result based on the scores 156 | const result = (userAnswers['U'] || 0) > (userAnswers['C'] || 0) ? 'U' : 'C'; 157 | 158 | // Show result 159 | const personalityData = resultOptions[result]; 160 | if (personalityData) { 161 | resultTextContainer.innerHTML = ` 162 | 163 | `; 164 | resultImage.src = "images/" + personalityData.image; 165 | resultImage.alt = `${personalityData.image} Image`; 166 | } else { 167 | // Handle case if result is not found 168 | } 169 | 170 | // Hide the quiz, show the result, and show the restart button 171 | document.getElementById('quiz').style.display = 'none'; 172 | resultElement.style.display = 'block'; // Show the result 173 | } 174 | 175 | 176 | 177 | 178 | //Function to restart the quiz 179 | function restartQuiz() { 180 | currentQuestion = 0; 181 | userAnswers = {}; 182 | document.getElementById('result').style.display = 'none'; 183 | document.getElementById('quiz').style.display = 'block'; 184 | displayQuestion(); // Start the quiz from the beginning 185 | } 186 | 187 | document.getElementById('restart-button').addEventListener('click', restartQuiz); 188 | 189 | displayQuestion(); 190 | -------------------------------------------------------------------------------- /Old/egg.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Eggg 8 | 9 | 10 | 11 | 12 |
13 |
14 |

SYSTEM OVERRIDES

15 |

"You have broken the fourth wall!"

16 | 17 |
18 |
19 | 20 | 43 |
44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Old/extra.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: 'Comfortaa', sans-serif; 3 | background-color: #ffb997; 4 | font-size: 20px; 5 | margin: 0; 6 | padding: 0; 7 | display: flex; 8 | justify-content: center; 9 | align-items: center; 10 | height: 1000; 11 | /*hight: 100vd;;*/ 12 | 13 | } 14 | 15 | .dark { 16 | font-family: 'Comfortaa', sans-serif; 17 | background-color: #843b62; 18 | font-size: 20px; 19 | margin: 0; 20 | padding: 0; 21 | display: flex; 22 | justify-content: center; 23 | align-items: center; 24 | height: 1000; 25 | /*hight: 100vd;;*/ 26 | 27 | } 28 | 29 | .quiz-container { 30 | font-family: 'Comfortaa', sans-serif; 31 | text-align: center; 32 | font-size: 20px; 33 | background-color: #ffb997; 34 | color: #0b032d; 35 | padding: 20px; 36 | border-radius: 10px; 37 | /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/ 38 | width: 90%; /* Set width to 90% of the viewport */ 39 | max-width: 400px; /* Set max-width to 400px */ 40 | font-weight: bold; 41 | } 42 | 43 | .dark-container { 44 | font-family: 'Comfortaa', sans-serif; 45 | text-align: center; 46 | font-size: 20px; 47 | background-color: #843b62; 48 | color: #ffb997; 49 | padding: 20px; 50 | border-radius: 10px; 51 | /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/ 52 | width: 90%; /* Set width to 90% of the viewport */ 53 | max-width: 400px; /* Set max-width to 400px */ 54 | font-weight: bold; 55 | } 56 | 57 | 58 | h1 { 59 | font-family: 'Comfortaa', sans-serif; 60 | font-size: 28px; 61 | font-weight: bold; 62 | 63 | } 64 | p{ 65 | font-size: 20px; 66 | } 67 | 68 | .large-rectangular { 69 | font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; 70 | display: block; 71 | width: 80%; 72 | font-size: 20px; 73 | max-width: 400px; 74 | padding: 10px 20px; 75 | margin: 10px auto; 76 | background-color: #843b62; 77 | color: #fff; 78 | border: none; 79 | /*border: 2px solid #333;*/ 80 | border-radius: 5px; 81 | cursor: pointer; 82 | } 83 | 84 | .large-rectangular:hover { 85 | background-color: #f7e6dd; 86 | color: #000000; 87 | } 88 | 89 | 90 | #result { 91 | margin-top: 20px; 92 | padding: 20px; 93 | background-color: transparent; 94 | /*border: 2px solid #ddd; 95 | border-radius: 5px;*/ 96 | display: none; 97 | width: 90%; /* Set width to 90% of the viewport */ 98 | max-width: 400px; /* Set max-width to 400px */ 99 | } 100 | 101 | 102 | #quiz p{ 103 | font-size: 22px; 104 | margin: 10px 0; 105 | 106 | } 107 | #result p { 108 | font-size: 18px; 109 | margin: 10px 0; 110 | } 111 | 112 | #quiz { 113 | /* Add your other styles here */ 114 | font-size: 24px; 115 | } 116 | 117 | #quiz img { 118 | max-width: 100%; /* Ensure the image doesn't exceed the container width */ 119 | max-height: 300px; /* Set a maximum height to prevent excessively tall images */ 120 | display: block; /* Ensure the image is displayed as a block element */ 121 | margin: auto; /* Center the image horizontally */ 122 | font-size: 24px; 123 | } 124 | 125 | /* Adjust the size of the question images */ 126 | question-image { 127 | max-width: 360px; 128 | height: auto; 129 | align-items: center; 130 | margin: 4px; 131 | } 132 | 133 | 134 | .result-content { 135 | display: flex; 136 | justify-content: space-between; /* Distribute content evenly */ 137 | align-items: center; /* Center vertically */ 138 | margin-top: 20px; /* Adjust as needed */ 139 | } 140 | 141 | .result-text { 142 | flex-grow: 1; /* Allow text to expand and take available space */ 143 | } 144 | 145 | .result-image-container { 146 | margin-top: 20px; /* Adjust as needed */ 147 | text-align: center; 148 | align-items: center; 149 | } 150 | 151 | .result-image img { 152 | max-width: 360px; 153 | height: auto; 154 | align-items: center; 155 | margin: 4px; 156 | margin-top: 20px; 157 | } 158 | 159 | 160 | .start-button { 161 | font-family: 'Comfortaa', sans-serif; 162 | background-color: #843b62; 163 | border: none; 164 | color: #ffffff; 165 | padding: 15px 32px; 166 | text-align: center; 167 | text-decoration: none; 168 | display: inline-block; 169 | font-size: 16px; 170 | margin-top: 20px; 171 | cursor: pointer; 172 | border-radius: 5px; 173 | transition: background-color 0.3s ease; 174 | } 175 | 176 | .start-button:hover { 177 | background-color: #ffffff; /* Darker green */ 178 | color: #090808; 179 | } 180 | 181 | 182 | .top-image { 183 | width: 100%; 184 | /*max-height: 200px;*/ 185 | object-fit: cover; /* To maintain aspect ratio */ 186 | } 187 | 188 | .do-not-press-button { 189 | font-family: 'Comfortaa', sans-serif; 190 | background-color: #f46b6b; /* Red */ 191 | color: #fff; 192 | padding: 20px; /* Adjust padding */ 193 | border: none; 194 | border-radius: 50%; /* Make it a circle */ 195 | cursor: pointer; 196 | font-size: 14px; /* Adjust font size */ 197 | margin-top: 10px; 198 | display: inline-block; 199 | text-decoration: none; /* Remove default link underline */ 200 | width: 100px; /* Set width to maintain circular shape */ 201 | height: 100px; /* Set height to maintain circular shape */ 202 | line-height: 1.5; /* Adjust line height */ 203 | text-align: center; /* Horizontally center content */ 204 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow */ 205 | } 206 | 207 | 208 | 209 | .do-not-press-button:hover { 210 | background-color: #bd2828; /* Darker red on hover */ 211 | } 212 | 213 | /* Target all anchor elements */ 214 | a { 215 | font-size: 20px; 216 | color: #4b2d2d; 217 | } 218 | 219 | a:hover { 220 | color: #ffffff; 221 | } 222 | 223 | 224 | a.no-underline { 225 | color: #000000; 226 | text-decoration: none; 227 | } 228 | 229 | a.no-underline:hover { 230 | color: #000000; 231 | text-decoration: none; 232 | } 233 | 234 | a.bright{ 235 | color: #ffb997; 236 | } 237 | a.bright:hover { 238 | color: #ffffff; 239 | } 240 | 241 | .hover-container { 242 | position: relative; 243 | display: inline-block; 244 | cursor: pointer; 245 | } 246 | 247 | .tooltip { 248 | visibility: hidden; 249 | width: 200px; 250 | font-size: 10px; 251 | background-color: #555; 252 | color: #fff; 253 | text-align: center; 254 | border-radius: 6px; 255 | padding: 5px; 256 | position: absolute; 257 | z-index: 1; 258 | bottom: 125%; 259 | left: 50%; 260 | margin-left: -60px; 261 | opacity: 0; 262 | transition: opacity 0.3s; 263 | } 264 | 265 | .hover-container:hover .tooltip { 266 | visibility: visible; 267 | opacity: 1; 268 | } 269 | 270 | 271 | footer { 272 | text-align: center; 273 | } 274 | 275 | footer p { 276 | font-size: 10px; 277 | color: #843b62; 278 | } 279 | 280 | 281 | 282 | /*more magic*/ 283 | /* for the container */ 284 | .container { 285 | position: relative; 286 | display: inline-block; /* Ensure the container wraps around the image */ 287 | } 288 | 289 | /* for the image */ 290 | .top-image2 { 291 | display: block; 292 | width: 100%; /* Ensure the image fills its container */ 293 | height: auto; /* Maintain aspect ratio */ 294 | } 295 | 296 | /* for the invisible button */ 297 | .invisible-button { 298 | position: absolute; 299 | top: 170px; 300 | left: 300px; 301 | width: 50px; 302 | height: 50px; 303 | background-color: transparent; 304 | border: none; 305 | padding: 0; 306 | margin: 0; 307 | cursor: pointer; 308 | outline: none; 309 | } 310 | -------------------------------------------------------------------------------- /Old/images/B1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/B1.gif -------------------------------------------------------------------------------- /Old/images/B2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/B2.gif -------------------------------------------------------------------------------- /Old/images/B3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/B3.gif -------------------------------------------------------------------------------- /Old/images/B4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/B4.gif -------------------------------------------------------------------------------- /Old/images/B5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/B5.gif -------------------------------------------------------------------------------- /Old/images/BA.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/BA.PNG -------------------------------------------------------------------------------- /Old/images/BE4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/BE4.PNG -------------------------------------------------------------------------------- /Old/images/BT.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/BT.PNG -------------------------------------------------------------------------------- /Old/images/ID.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/ID.PNG -------------------------------------------------------------------------------- /Old/images/head.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/head.PNG -------------------------------------------------------------------------------- /Old/images/search.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Old/images/search.PNG -------------------------------------------------------------------------------- /Old/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | BobDotSpace 7 | 8 | 9 | 164 | 165 | 166 |
167 | Top Image 168 |
169 | 170 | 171 |
172 |
173 | 174 | Result Image 175 |
176 | 177 |
178 | 179 | 256 | 257 | 260 | 261 | 262 | 263 | 264 | -------------------------------------------------------------------------------- /Old/pw.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | GrantAccess 8 | 9 | 10 | 11 | 12 |
13 |
14 |
15 |
16 | 17 | 30 | 31 | 32 |
33 |
34 | 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CosmosPersona 2 | Fun personality quiz inspired by [MBTI](https://www.16personalities.com/free-personality-test), [Innate Personality Traits](https://typeofyou.alltheway.tw/en/), and [Cake resume](https://www.cakeresume.com/campaigns/what-cake-r-u/en?locale=en). 3 | 4 | 5 | Made by I-see Warisa Jaidee 6 | Current link: https://iseej.github.io/CosmosPersona/ (last updated 3/27/24) 7 | 8 | Please do not use my code, arts without permission! 9 | Modification, redistribution of this code is not allowed. 10 | 11 | Copyright © 2024-2025 I-see Warisa Jaidee 12 | All Rights Reserved. 13 | 14 | 1. Modification, redistribution of this code is not allowed. 15 | 2. Commercial use of this project is not allowed under any circumstances. 16 | 3. Please do not use my code without my permission. 17 | 4. All of my art is copyrighted, please do not use them without my permission. 18 | 19 | 20 | Thank you for your understanding! 21 | 22 | 23 | 24 | 25 | 26 | ## My corner 27 | 28 | Project Started: ~September, 2023 29 | 30 | Project Launched: March 15, 2024 31 | -------------------------------------------------------------------------------- /Resource/CosmicCalendarrr.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Resource/CosmicCalendarrr.pdf -------------------------------------------------------------------------------- /Resource/DopplerDucklingss.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Resource/DopplerDucklingss.pdf -------------------------------------------------------------------------------- /Resource/WomeninASTRO.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/Resource/WomeninASTRO.pdf -------------------------------------------------------------------------------- /Resource/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Resource 7 | 8 | 9 | 94 | 95 | 96 |

Resources

97 | *open on PC, laptop to download pdf files* 98 |
99 |
100 |
101 | Cosmic Calendar 102 | 103 | Women In Astronomy 104 | 105 | Doppler Ducklings Worksheet 106 | 107 |
108 |
109 |
110 | 113 |
114 | 115 | 116 | -------------------------------------------------------------------------------- /finalscript.js: -------------------------------------------------------------------------------- 1 | // please do not use my source code without my permission, I put a lot of effort into it and please do let me know if you want to clone it, use it for your project, I begggg 2 | 3 | const questions = [ 4 | { 5 | question: "Q1/12: You're taking the bus on your way back home. It's been a loooong day, what are you thinking about?", 6 | image: "images/Q1.gif", 7 | answers: { 8 | F: { 9 | text: "I'm just so tired and can't wait to go home. Why does everyday feel the same...", 10 | scores: { T: 0, F: +1 }, 11 | }, 12 | T: { 13 | text: "Should I rest or work first when I get home? Most importantly, what's for dinner?", 14 | scores: { T: +1, F: 0 }, 15 | }, 16 | }, 17 | }, 18 | { 19 | question: "Q2/12: You look outside the windows, seems like it's going to rain soon. Suddenly everything turns into darkness!!", 20 | image: "images/Q2.gif", 21 | answers: { 22 | J: { 23 | text: "I don't remember this tunnel. *Pull out your phone to look at the map*", 24 | scores: { P: 0, J: +1 }, 25 | }, 26 | P: { 27 | text: "*Turn around to see the other's reaction* Should I ask the driver what's going on?", 28 | scores: { P: +1, J: 0 }, 29 | }, 30 | }, 31 | }, 32 | { 33 | question: "Q3/12: Before you can do anything, the bus stops and everything around you floats up!", 34 | image: "images/Q3.gif", 35 | answers: { 36 | S: { 37 | text: "Ok this is weird, am I dreaming? *pinch your arm*", 38 | scores: { S: +1, N: 0 }, 39 | }, 40 | N: { 41 | text: "Is this a prank? Am I getting kidnapped by aliens?!", 42 | scores: { S: 0, N: +1 }, 43 | }, 44 | }, 45 | }, 46 | { 47 | question: "Q4/12: Amidst the surprise, your eyes catch something drifting past the window.", 48 | image: "images/Q4.gif", 49 | answers: { 50 | F: { 51 | text: "Woahhh...so many cats! How cute!! I wanna give them a hug!", 52 | scores: { T: 0, F: +1 }, 53 | }, 54 | T: { 55 | text: "Cats? In space? That's kinda odd... How do they survive out there?!", 56 | scores: { T: +1, F: 0 }, 57 | }, 58 | }, 59 | }, 60 | { 61 | question: "Q5/12: 'Welcome Aboard!' a small robot appears and announces, 'We will reach our destination in 5 months 6 days and 2 hours!'", 62 | image: "images/Q5.gif", 63 | answers: { 64 | P: { 65 | text: "Cool! A space cruise?! Where are we going? Do I get a spacesuit? This is so exciting!", 66 | scores: { P: +1, J: 0 }, 67 | }, 68 | J: { 69 | text: "Hey uh...Am I in space? How did I get here? When can I go home?! Why..", 70 | scores: { P: 0, J: +1 }, 71 | }, 72 | }, 73 | }, 74 | { 75 | question: "Q6/12: The robot just points to the back of the bus which now looks more like inside of a spaceship! What do you want to see first?", 76 | image: "images/Q6.gif", 77 | answers: { 78 | I: { 79 | text: "Solar system themed fountain in the middle. I want to take pictures with it.", 80 | scores: { I: 0, E: +1 }, 81 | }, 82 | E: { 83 | text: "Cozy corner with a massaging chair. I need to sit down and process.", 84 | scores: { I: +1, E: 0 }, 85 | }, 86 | }, 87 | }, 88 | { 89 | question: "Q7/12: On the way back to your seat, you are surrounded by cats! 'Unauthorized passenger detected, CAPTURE CAPTURE!'", 90 | image: "images/Q7.gif", 91 | answers: { 92 | S: { 93 | text: "Woah! What do you mean unauthorized? I'm the passenger of this cruise!", 94 | scores: { S: +1, N: 0 } 95 | }, 96 | N: { 97 | text: "Ok, I have no idea what's going on. How about we calm down and chat for a bit?", 98 | scores: { S: 0, N: +1 }, 99 | }, 100 | }, 101 | }, 102 | { 103 | question: "Q8/12: Suddenly, the robot glides in, it whispers something to the cats that makes them stop.", 104 | image: "images/Q8.gif", 105 | answers: { 106 | E: { 107 | text: "Bob!! Thank you! You come to save me, right?", 108 | scores: { E: +1, I: 0 }, 109 | }, 110 | I: { 111 | text: "HA! That's right! Back off, cats! Am I safe to go now?!", 112 | scores: { E: 0, I: +1 }, 113 | }, 114 | }, 115 | }, 116 | { 117 | question: "Q9/12: The robot transforms into a giant vacuum cleaner, the cats use it to point at you!", 118 | image: "images/Q9.gif", 119 | answers: { 120 | J: { 121 | text: "Throw your coat at them as distraction, run towards the big green 'EXIT' sign!", 122 | scores: { J: +1, P: 0 }, 123 | }, 124 | P: { 125 | text: "Run in random direction, confuse them, blend in with the crowd!", 126 | scores: { J: 0, P: +1 }, 127 | }, 128 | }, 129 | }, 130 | { 131 | question: "Q10/12: You run past the gift shop. Looks like you got rid of them. It wouldn't hurt to get some souvenirs, right?", 132 | image: "images/Q10.gif", 133 | answers: { 134 | F: { 135 | text: "Get the Jupiter headphone, wear it to hear people's thoughts!", 136 | scores: { F: +1, T: 0 }, 137 | }, 138 | T: { 139 | text: "Get the Mars watch, turn it and you can time travel!", 140 | scores: { F: 0, T: +1 }, 141 | }, 142 | }, 143 | 144 | }, 145 | { 146 | question: "Q11/12: The giant vacuum cleaner suddenly emerges in front of you! You're sucked into its vortex!!!", 147 | image: "images/Q11.gif", 148 | answers: { 149 | S: { 150 | text: "It's ok, this is just a dream! I'll wake up soon! *close your eyes and give up*", 151 | scores: { S: +1, N: 0 }, 152 | }, 153 | N: { 154 | text: "I'll find the way out! Maybe there are some secret doors! *look around for the way out*", 155 | scores: { S: 0, N: +1 }, 156 | }, 157 | }, 158 | }, 159 | { 160 | question: "Q12/12: After a moment of darkness, you find yourself back in the bus. 'Are you alright?' the ticket inspector asks", 161 | image: "images/Q12.gif", 162 | answers: { 163 | I: { 164 | text: "Woah! I thought I was captured... Nevermind! I'm alright now, I guess? *panic in silence*", 165 | scores: { E: 0, I: +1 }, 166 | }, 167 | E: { 168 | text: "You won't believe it...I think I just had the wildest dream ever! *tell him about your space adventure*", 169 | scores: { E: +1, I: 0 }, 170 | }, 171 | }, 172 | }, 173 | { 174 | question: "When you look up again, the inspector's already gone. You glance outside the window, darkness creeps in as the bus enters another tunnel...", 175 | image: "images/Q13.gif", 176 | answers: { 177 | K: { 178 | text: "Wait...was that Bob?", 179 | }, 180 | U: { 181 | text: "Oh no...Do I have to go through this again?", 182 | }, 183 | }, 184 | }, 185 | ]; 186 | 187 | const resultOptions = { 188 | "ISTJ": { 189 | image: "1DE.png", 190 | }, 191 | "ISFJ": { 192 | image: "2light.png" 193 | }, 194 | "INFJ": { 195 | image: "3UFO.png" 196 | }, 197 | "INTJ": { 198 | image: "4nebula.png" 199 | }, 200 | "ISTP": { 201 | image: "5comet.png" 202 | }, 203 | "ISFP": { 204 | image: "6ST.png" 205 | }, 206 | "INFP": { 207 | image: "7DM.png" 208 | }, 209 | "INTP": { 210 | image: "8met.png" 211 | }, 212 | "ESTP": { 213 | image: "9BH.png" 214 | }, 215 | "ESFP": { 216 | image: "10Sn.png" 217 | }, 218 | "ENFP": { 219 | image: "11Grav.png" 220 | }, 221 | "ENTP": { 222 | image: "12hand.png" 223 | }, 224 | "ESTJ": { 225 | image: "13sat.png" 226 | }, 227 | "ESFJ": { 228 | image: "14sun.png" 229 | }, 230 | "ENFJ": { 231 | image: "15gal.png" 232 | }, 233 | "ENTJ": { 234 | image: "16rocket.png" 235 | }, 236 | 237 | }; 238 | 239 | let currentQuestion = 0; 240 | // let userAnswers = {}; 241 | 242 | 243 | function displayQuestion() { 244 | const quizElement = document.getElementById('quiz'); 245 | const question = questions[currentQuestion]; 246 | if (question) { 247 | let html = `

${question.question}

`; 248 | if (question.image) { 249 | html += `Question ${currentQuestion + 1}`; 250 | } 251 | for (const option in question.answers) { 252 | html += ``; 253 | } 254 | quizElement.innerHTML = html; 255 | attachButtonClickHandlers(); 256 | } else { 257 | 258 | } 259 | } 260 | 261 | 262 | document.getElementById('start-button').addEventListener('click', function() { 263 | document.getElementById('start-page').style.display = 'none'; 264 | document.getElementById('quiz-page').style.display = 'block'; 265 | currentQuestion = 0; 266 | userAnswers = {}; 267 | displayQuestion(); 268 | // userAnswers.userName = userName; 269 | }); 270 | 271 | 272 | //click 273 | function attachButtonClickHandlers() { 274 | const choiceButtons = document.querySelectorAll('.large-rectangular'); 275 | choiceButtons.forEach((button) => { 276 | button.addEventListener('click', handleAnswer); 277 | }); 278 | } 279 | 280 | 281 | 282 | //answers 283 | function handleAnswer(event) { 284 | const selectedOption = event.target; 285 | const answerKey = selectedOption.value; 286 | const question = questions[currentQuestion]; 287 | const answer = question.answers[answerKey]; 288 | 289 | for (const dimension in answer.scores) { 290 | userAnswers[dimension] = (userAnswers[dimension] || 0) + answer.scores[dimension]; 291 | } 292 | 293 | // remove this when done debugging 294 | // Display the scores for each letter 295 | 296 | //const scoresContainer = document.querySelector('.scores-container'); 297 | //scoresContainer.innerHTML = ` 298 | //

E Score: ${userAnswers['E'] || 0}, S Score: ${userAnswers['S'] || 0}, T Score: ${userAnswers['T'] || 0}, P Score: ${userAnswers['P'] || 0}

299 | //

I Score: ${userAnswers['I'] || 0}, N Score: ${userAnswers['N'] || 0}, F Score: ${userAnswers['F'] || 0}, J Score: ${userAnswers['J'] || 0}

300 | // 301 | //`; 302 | // to here 303 | 304 | if (currentQuestion < questions.length - 1) { 305 | currentQuestion++; 306 | displayQuestion(); 307 | } else { 308 | showResult(); 309 | } 310 | } 311 | 312 | // ... 313 | 314 | 315 | function showResult() { 316 | const resultElement = document.getElementById('result'); 317 | const resultTextContainer = document.querySelector('.result-text'); 318 | const resultImage = document.getElementById('result-image'); 319 | const topLetters = {}; 320 | 321 | const pairs = ["IE", "NS", "TF", "PJ"]; 322 | pairs.forEach(pair => { 323 | const options = pair.split(''); 324 | const scores = options.map(option => userAnswers[option] || 0); 325 | const topOptionIndex = scores.indexOf(Math.max(...scores)); 326 | const topOption = options[topOptionIndex]; 327 | topLetters[pair] = topOption; 328 | }); 329 | 330 | //each pair 331 | const result = pairs.map(pair => topLetters[pair]).join(''); 332 | 333 | //show result 334 | const personalityData = resultOptions[result]; 335 | if (personalityData) { 336 | resultTextContainer.innerHTML = ` 337 | `; 338 | 339 | resultImage.src = "images/"+personalityData.image; 340 | resultImage.alt = `${personalityData.image} Image`; 341 | } else { 342 | 343 | } 344 | 345 | document.getElementById('quiz').style.display = 'none'; // Hide the quiz 346 | document.getElementById('result').style.display = 'block'; // Show the result 347 | document.getElementById('restart-button').style.display = 'block'; // Show the restart button 348 | } 349 | 350 | 351 | 352 | //Function to restart the quiz 353 | function restartQuiz() { 354 | currentQuestion = 0; 355 | userAnswers = {}; 356 | document.getElementById('result').style.display = 'none'; 357 | document.getElementById('quiz').style.display = 'block'; 358 | displayQuestion(); // Start the quiz from the beginning 359 | } 360 | 361 | document.getElementById('restart-button').addEventListener('click', restartQuiz); 362 | 363 | displayQuestion(); 364 | 365 | 366 | -------------------------------------------------------------------------------- /images/10Sn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/10Sn.png -------------------------------------------------------------------------------- /images/11Grav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/11Grav.png -------------------------------------------------------------------------------- /images/12hand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/12hand.png -------------------------------------------------------------------------------- /images/13sat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/13sat.png -------------------------------------------------------------------------------- /images/14sun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/14sun.png -------------------------------------------------------------------------------- /images/15gal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/15gal.png -------------------------------------------------------------------------------- /images/16rocket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/16rocket.png -------------------------------------------------------------------------------- /images/1DE.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/1DE.png -------------------------------------------------------------------------------- /images/2light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/2light.png -------------------------------------------------------------------------------- /images/3UFO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/3UFO.png -------------------------------------------------------------------------------- /images/4nebula.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/4nebula.png -------------------------------------------------------------------------------- /images/5comet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/5comet.png -------------------------------------------------------------------------------- /images/6ST.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/6ST.png -------------------------------------------------------------------------------- /images/7DM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/7DM.png -------------------------------------------------------------------------------- /images/8met.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/8met.png -------------------------------------------------------------------------------- /images/9BH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/9BH.png -------------------------------------------------------------------------------- /images/BE3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/BE3.PNG -------------------------------------------------------------------------------- /images/BE4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/BE4.PNG -------------------------------------------------------------------------------- /images/BE5.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/BE5.PNG -------------------------------------------------------------------------------- /images/Q1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q1.gif -------------------------------------------------------------------------------- /images/Q10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q10.gif -------------------------------------------------------------------------------- /images/Q11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q11.gif -------------------------------------------------------------------------------- /images/Q12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q12.gif -------------------------------------------------------------------------------- /images/Q13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q13.gif -------------------------------------------------------------------------------- /images/Q2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q2.gif -------------------------------------------------------------------------------- /images/Q3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q3.gif -------------------------------------------------------------------------------- /images/Q4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q4.gif -------------------------------------------------------------------------------- /images/Q5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q5.gif -------------------------------------------------------------------------------- /images/Q6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q6.gif -------------------------------------------------------------------------------- /images/Q7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q7.gif -------------------------------------------------------------------------------- /images/Q8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q8.gif -------------------------------------------------------------------------------- /images/Q9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/Q9.gif -------------------------------------------------------------------------------- /images/all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/all.png -------------------------------------------------------------------------------- /images/gal.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All 7 | 8 | 9 | 48 | 49 | 50 |

Cosmos Persona

51 |
52 |
53 |
54 | 72 |
73 |
74 |
75 | 78 |
79 | 80 | 81 | -------------------------------------------------------------------------------- /images/izeecon.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/izeecon.PNG -------------------------------------------------------------------------------- /images/main.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IseeJ/CosmosPersona/94c83d06f1f6ad2ee326ed5ace2c5ef8c5ec9680/images/main.gif -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | CosmosPersona 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |

Cosmos Persona

17 |

Enter a journey across space and time and find out your Persona!

18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | A fun personality quiz inspired by MBTI types, Innate Personality Traits, Cake resume, etc. 26 | Made by I-see Warisa Jaidee 27 |
28 | 29 | 68 |
69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: 'Comfortaa', sans-serif; 3 | background-color: #ffb997; 4 | font-size: 20px; 5 | margin: 0; 6 | padding: 0; 7 | display: flex; 8 | justify-content: center; 9 | align-items: center; 10 | height: 1000; 11 | /*hight: 100vd;;*/ 12 | 13 | } 14 | 15 | .dark { 16 | font-family: 'Comfortaa', sans-serif; 17 | background-color: #843b62; 18 | font-size: 20px; 19 | margin: 0; 20 | padding: 0; 21 | display: flex; 22 | justify-content: center; 23 | align-items: center; 24 | height: 1000; 25 | /*hight: 100vd;;*/ 26 | 27 | } 28 | 29 | .quiz-container { 30 | font-family: 'Comfortaa', sans-serif; 31 | text-align: center; 32 | font-size: 20px; 33 | background-color: #ffb997; 34 | color: #0b032d; 35 | padding: 20px; 36 | border-radius: 10px; 37 | /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/ 38 | width: 90%; /* Set width to 90% of the viewport */ 39 | max-width: 400px; /* Set max-width to 400px */ 40 | font-weight: bold; 41 | } 42 | 43 | .dark-container { 44 | font-family: 'Comfortaa', sans-serif; 45 | text-align: center; 46 | font-size: 20px; 47 | background-color: #843b62; 48 | color: #ffb997; 49 | padding: 20px; 50 | border-radius: 10px; 51 | /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/ 52 | width: 90%; /* Set width to 90% of the viewport */ 53 | max-width: 400px; /* Set max-width to 400px */ 54 | font-weight: bold; 55 | } 56 | 57 | 58 | h1 { 59 | font-family: 'Comfortaa', sans-serif; 60 | font-size: 28px; 61 | font-weight: bold; 62 | 63 | } 64 | p{ 65 | font-size: 20px; 66 | } 67 | 68 | p1{ 69 | font-size: 10px; 70 | } 71 | 72 | .large-rectangular { 73 | font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; 74 | display: block; 75 | width: 80%; 76 | font-size: 20px; 77 | max-width: 400px; 78 | padding: 10px 20px; 79 | margin: 10px auto; 80 | background-color: #f7e6dd; 81 | color: rgb(0, 0, 0); 82 | border: none; 83 | /*border: 2px solid #333;*/ 84 | border-radius: 5px; 85 | cursor: pointer; 86 | } 87 | 88 | .large-rectangular:hover { 89 | background-color: #843b62; 90 | color: #fff; 91 | } 92 | 93 | 94 | #result { 95 | /*margin-top: 20px;*/ 96 | padding: 10px; 97 | background-color: #ffb997; 98 | /*border: 2px solid #ddd; 99 | border-radius: 5px;*/ 100 | display: none; 101 | width: 90%; /* Set width to 90% of the viewport */ 102 | max-width: 400px; /* Set max-width to 400px */ 103 | } 104 | 105 | 106 | #quiz p{ 107 | font-size: 22px; 108 | margin: 10px 0; 109 | 110 | } 111 | #result p { 112 | font-size: 18px; 113 | margin: 10px 0; 114 | } 115 | 116 | #quiz { 117 | /* Add your other styles here */ 118 | font-size: 24px; 119 | } 120 | 121 | #quiz img { 122 | max-width: 100%; /* Ensure the image doesn't exceed the container width */ 123 | max-height: 300px; /* Set a maximum height to prevent excessively tall images */ 124 | display: block; /* Ensure the image is displayed as a block element */ 125 | margin: auto; /* Center the image horizontally */ 126 | font-size: 24px; 127 | } 128 | 129 | /* Adjust the size of the question images */ 130 | question-image { 131 | max-width: 360px; 132 | height: auto; 133 | align-items: center; 134 | margin: 4px; 135 | } 136 | 137 | .keywords-container { 138 | display: flex; 139 | justify-content: center; /* Center horizontally */ 140 | align-items: center; /* Center vertically */ 141 | flex-wrap: wrap; 142 | margin-top: 20px; /* Adjust as needed */ 143 | } 144 | 145 | .keyword-bubble { 146 | background-color: #23282d; 147 | color: white; 148 | border-radius: 16px; 149 | padding: 4px 12px; 150 | margin: 4px; 151 | font-size: 14px; 152 | } 153 | 154 | .result-content { 155 | display: flex; 156 | justify-content: space-between; /* Distribute content evenly */ 157 | align-items: center; /* Center vertically */ 158 | margin-top: 20px; /* Adjust as needed */ 159 | } 160 | 161 | .result-text { 162 | flex-grow: 1; /* Allow text to expand and take available space */ 163 | } 164 | 165 | .result-image-container { 166 | margin-top: 20px; /* Adjust as needed */ 167 | text-align: center; 168 | align-items: center; 169 | } 170 | 171 | .result-image img { 172 | max-width: 360px; 173 | height: auto; 174 | align-items: center; 175 | margin: 4px; 176 | margin-top: 20px; 177 | } 178 | 179 | 180 | .start-button { 181 | font-family: 'Comfortaa', sans-serif; 182 | background-color: #843b62; 183 | border: none; 184 | color: #ffffff; 185 | padding: 15px 32px; 186 | text-align: center; 187 | text-decoration: none; 188 | display: inline-block; 189 | font-size: 16px; 190 | margin-top: 20px; 191 | cursor: pointer; 192 | border-radius: 5px; 193 | transition: background-color 0.3s ease; 194 | } 195 | 196 | .start-button:hover { 197 | background-color: #ffffff; /* Darker green */ 198 | color: #090808; 199 | } 200 | 201 | 202 | .restart-button { 203 | font-family: 'Comfortaa', sans-serif; 204 | background-color: #ffb997; 205 | border: none; 206 | color: rgb(0, 0, 0); 207 | padding: 15px 32px; 208 | text-align: center; 209 | font-size: 16px; 210 | margin-top: 20px; 211 | cursor: pointer; 212 | display: inline-block; 213 | } 214 | 215 | .restart-button:hover { 216 | background-color: #ffb997; 217 | color: rgb(132, 107, 107); 218 | } 219 | 220 | 221 | .top-image { 222 | width: 100%; 223 | /*max-height: 200px;*/ 224 | object-fit: cover; /* To maintain aspect ratio */ 225 | } 226 | 227 | .do-not-press-button { 228 | font-family: 'Comfortaa', sans-serif; 229 | background-color: #f46b6b; /* Red */ 230 | color: #fff; 231 | padding: 20px; /* Adjust padding */ 232 | border: none; 233 | border-radius: 50%; /* Make it a circle */ 234 | cursor: pointer; 235 | font-size: 14px; /* Adjust font size */ 236 | margin-top: 10px; 237 | display: inline-block; 238 | text-decoration: none; /* Remove default link underline */ 239 | width: 100px; /* Set width to maintain circular shape */ 240 | height: 100px; /* Set height to maintain circular shape */ 241 | line-height: 1.5; /* Adjust line height */ 242 | text-align: center; /* Horizontally center content */ 243 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow */ 244 | } 245 | 246 | 247 | 248 | .do-not-press-button:hover { 249 | background-color: #bd2828; /* Darker red on hover */ 250 | } 251 | 252 | /* Target all anchor elements */ 253 | a { 254 | font-size: 20px; 255 | color: #4b2d2d; /* Change to the desired color */ 256 | } 257 | 258 | a:hover { 259 | color: #ffffff; /* Change to the desired color */ 260 | } 261 | 262 | 263 | a.no-underline { 264 | color: #000000; /* Change to the desired color */ 265 | text-decoration: none; 266 | } 267 | 268 | a.no-underline:hover { 269 | color: #000000; /* Change to the desired color */ 270 | text-decoration: none; 271 | } 272 | 273 | .hover-container { 274 | position: relative; 275 | display: inline-block; 276 | cursor: pointer; 277 | } 278 | 279 | .tooltip { 280 | visibility: hidden; 281 | width: 200px; 282 | font-size: 10px; 283 | background-color: #555; 284 | color: #fff; 285 | text-align: center; 286 | border-radius: 6px; 287 | padding: 5px; 288 | position: absolute; 289 | z-index: 1; 290 | bottom: 125%; 291 | left: 50%; 292 | margin-left: -60px; 293 | opacity: 0; 294 | transition: opacity 0.3s; 295 | } 296 | 297 | .hover-container:hover .tooltip { 298 | visibility: visible; 299 | opacity: 1; 300 | } 301 | 302 | 303 | footer { 304 | text-align: center; 305 | } 306 | 307 | footer p { 308 | font-size: 10px; 309 | color: #843b62; 310 | } 311 | 312 | 313 | 314 | /*more magic*/ 315 | /* for the container */ 316 | .container { 317 | position: relative; 318 | display: inline-block; /* Ensure the container wraps around the image */ 319 | } 320 | 321 | /* for the image */ 322 | .top-image2 { 323 | display: block; 324 | width: 100%; /* Ensure the image fills its container */ 325 | height: auto; /* Maintain aspect ratio */ 326 | } 327 | 328 | /* for the invisible button */ 329 | .invisible-button { 330 | position: absolute; 331 | top: 170px; 332 | left: 300px; 333 | width: 50px; 334 | height: 50px; 335 | background-color: transparent; 336 | border: none; 337 | padding: 0; 338 | margin: 0; 339 | cursor: pointer; 340 | outline: none; 341 | } 342 | -------------------------------------------------------------------------------- /sub.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Queezeeee 7 | 8 | 9 | 10 | 11 |
12 |
13 |

A curious one, aren't you?

14 | 15 |

Easter egg hunters...here's the hint, Find my persona!!

16 | 17 |
18 | Your Image 19 | 20 | 21 | 22 |
23 | 24 | 25 |
26 |
27 |
28 | Acknowledgement 29 | Thanks to my family for being my number one fans, 30 | my sister for tons of support, they really are amazing. 31 | My friends who I forced to play this quiz. 32 | That person who asked my MBTI last year and led me to making this six months long project. 33 | The cat that ignores me but totally makes my day. 34 | You guys for playing this quiz <3. 35 |
36 |
37 | 38 | --------------------------------------------------------------------------------