I have recently developed a JavaScript quiz application and included a progress bar feature. While it works flawlessly offline on my laptop, I encountered an issue when uploading the files to Codepen.io - the progress bar fails to display.
I would appreciate it if someone could help me identify where I might be going wrong.
Below is the code snippet:
var allQuestions = [
{
question: "Before Mt. Everest was discovered, which mountain was considered to be the highest mountain in the world?",
choices: ["Mt. Kilimanjaro", "Kanchenjunga", "Mount Everest"],
correctAnswer:1
},
{
question: "Does England have a 4th of July?",
choices: ["Yes","No","I don't know"],
correctAnswer:0
},
// Remaining quiz questions and answers
// ...
// Additional CSS and HTML code provided
// ...
Aside from the issue on Codepen.io, I also have a few other concerns not related to the platform:
The "Quiz" heading does not adapt well to different screen sizes. Any suggestions on how to make it responsive?
The alignment of text options with the radio buttons is slightly off. How can I adjust this?
When transitioning between questions, the webpage's positioning seems to shift. Is there a way to maintain consistency?