{
    "componentChunkName": "component---src-templates-challenges-projects-frontend-show-tsx",
    "path": "/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-25--5-clock",
    "result": {"data":{"challengeNode":{"challenge":{"forumTopicId":301373,"title":"Build a 25 + 5 Clock","description":"<section id=\"description\">\n<p><strong>Objective:</strong> Build a CodePen app.</p>\n<p>Fulfill the below user stories and get all the tests to pass. Give it your own personal style.</p>\n<p>You can use HTML, JavaScript, and CSS to complete this project. Plain CSS is recommended because that is what the lessons have covered so far and you should get some practice with plain CSS. You can use Bootstrap or SASS if you choose. Additional technologies (just for example jQuery, React, Angular, or Vue) are not recommended for this project, and using them is at your own risk. Other projects will give you a chance to work with different technology stacks like React. We will accept and try to fix all issue reports that use the suggested technology stack for this project. Happy coding!</p>\n<p><strong>User Story #1:</strong> I can see an element with <code>id=\"break-label\"</code> that contains a string (e.g. \"Break Length\").</p>\n<p><strong>User Story #2:</strong> I can see an element with <code>id=\"session-label\"</code> that contains a string (e.g. \"Session Length\").</p>\n<p><strong>User Story #3:</strong> I can see two clickable elements with corresponding IDs: <code>id=\"break-decrement\"</code> and <code>id=\"session-decrement\"</code>.</p>\n<p><strong>User Story #4:</strong> I can see two clickable elements with corresponding IDs: <code>id=\"break-increment\"</code> and <code>id=\"session-increment\"</code>.</p>\n<p><strong>User Story #5:</strong> I can see an element with a corresponding <code>id=\"break-length\"</code>, which by default (on load) displays a value of 5.</p>\n<p><strong>User Story #6:</strong> I can see an element with a corresponding <code>id=\"session-length\"</code>, which by default displays a value of 25.</p>\n<p><strong>User Story #7:</strong> I can see an element with a corresponding <code>id=\"timer-label\"</code>, that contains a string indicating a session is initialized (e.g. \"Session\").</p>\n<p><strong>User Story #8:</strong> I can see an element with corresponding <code>id=\"time-left\"</code>. NOTE: Paused or running, the value in this field should always be displayed in <code>mm:ss</code> format (i.e. 25:00).</p>\n<p><strong>User Story #9:</strong> I can see a clickable element with a corresponding <code>id=\"start_stop\"</code>.</p>\n<p><strong>User Story #10:</strong> I can see a clickable element with a corresponding <code>id=\"reset\"</code>.</p>\n<p><strong>User Story #11:</strong> When I click the element with the id of <code>reset</code>, any running timer should be stopped, the value within <code>id=\"break-length\"</code> should return to <code>5</code>, the value within <code>id=\"session-length\"</code> should return to 25, and the element with <code>id=\"time-left\"</code> should reset to its default state.</p>\n<p><strong>User Story #12:</strong> When I click the element with the id of <code>break-decrement</code>, the value within <code>id=\"break-length\"</code> decrements by a value of 1, and I can see the updated value.</p>\n<p><strong>User Story #13:</strong> When I click the element with the id of <code>break-increment</code>, the value within <code>id=\"break-length\"</code> increments by a value of 1, and I can see the updated value.</p>\n<p><strong>User Story #14:</strong> When I click the element with the id of <code>session-decrement</code>, the value within <code>id=\"session-length\"</code> decrements by a value of 1, and I can see the updated value.</p>\n<p><strong>User Story #15:</strong> When I click the element with the id of <code>session-increment</code>, the value within <code>id=\"session-length\"</code> increments by a value of 1, and I can see the updated value.</p>\n<p><strong>User Story #16:</strong> I should not be able to set a session or break length to &#x3C;= 0.</p>\n<p><strong>User Story #17:</strong> I should not be able to set a session or break length to > 60.</p>\n<p><strong>User Story #18:</strong> When I first click the element with <code>id=\"start_stop\"</code>, the timer should begin running from the value currently displayed in <code>id=\"session-length\"</code>, even if the value has been incremented or decremented from the original value of 25.</p>\n<p><strong>User Story #19:</strong> If the timer is running, the element with the id of <code>time-left</code> should display the remaining time in <code>mm:ss</code> format (decrementing by a value of 1 and updating the display every 1000ms).</p>\n<p><strong>User Story #20:</strong> If the timer is running and I click the element with <code>id=\"start_stop\"</code>, the countdown should pause.</p>\n<p><strong>User Story #21:</strong> If the timer is paused and I click the element with <code>id=\"start_stop\"</code>, the countdown should resume running from the point at which it was paused.</p>\n<p><strong>User Story #22:</strong> When a session countdown reaches zero (NOTE: timer MUST reach 00:00), and a new countdown begins, the element with the id of <code>timer-label</code> should display a string indicating a break has begun.</p>\n<p><strong>User Story #23:</strong> When a session countdown reaches zero (NOTE: timer MUST reach 00:00), a new break countdown should begin, counting down from the value currently displayed in the <code>id=\"break-length\"</code> element.</p>\n<p><strong>User Story #24:</strong> When a break countdown reaches zero (NOTE: timer MUST reach 00:00), and a new countdown begins, the element with the id of <code>timer-label</code> should display a string indicating a session has begun.</p>\n<p><strong>User Story #25:</strong> When a break countdown reaches zero (NOTE: timer MUST reach 00:00), a new session countdown should begin, counting down from the value currently displayed in the <code>id=\"session-length\"</code> element.</p>\n<p><strong>User Story #26:</strong> When a countdown reaches zero (NOTE: timer MUST reach 00:00), a sound indicating that time is up should play. This should utilize an HTML5 <code>audio</code> tag and have a corresponding <code>id=\"beep\"</code>.</p>\n<p><strong>User Story #27:</strong> The audio element with <code>id=\"beep\"</code> must be 1 second or longer.</p>\n<p><strong>User Story #28:</strong> The audio element with id of <code>beep</code> must stop playing and be rewound to the beginning when the element with the id of <code>reset</code> is clicked.</p>\n<p>Once you're done, submit the URL to your working project with all its tests passing.</p>\n</section>","instructions":null,"challengeType":3,"helpCategory":"JavaScript","superBlock":"front-end-development-libraries","certification":"front-end-development-libraries","block":"front-end-development-libraries-projects","translationPending":false,"fields":{"blockName":"Front End Development Libraries Projects","slug":"/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-25--5-clock"}}}},"pageContext":{"challengeMeta":{"certification":"front-end-development-libraries","superBlock":"front-end-development-libraries","block":"front-end-development-libraries-projects","template":"","required":[],"nextChallengePath":"/learn/data-visualization/data-visualization-with-d3/add-document-elements-with-d3","prevChallengePath":"/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-javascript-calculator","id":"bd7158d8c442eddfaeb5bd0f"},"projectPreview":{"showProjectPreview":false,"challengeData":{"challengeType":3,"challengeFiles":[]}},"slug":"/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-25--5-clock"}},
    "staticQueryHashes": ["3216307819","3851966407"]}