{"id":26964224,"url":"https://github.com/jasheloper/color-choices","last_synced_at":"2026-07-02T19:02:37.854Z","repository":{"id":200878899,"uuid":"706448469","full_name":"jasheloper/color-choices","owner":"jasheloper","description":"Apply more color choices to a simple website.","archived":false,"fork":false,"pushed_at":"2023-10-18T01:40:09.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-01T00:06:26.837Z","etag":null,"topics":["conditional-statements","javascript"],"latest_commit_sha":null,"homepage":"https://jasheloper.github.io/color-choices/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasheloper.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-18T01:19:34.000Z","updated_at":"2024-03-07T08:11:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"221d1890-a627-4fd3-9ce0-3d9a1942adca","html_url":"https://github.com/jasheloper/color-choices","commit_stats":null,"previous_names":["jasheloper/color-choices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jasheloper/color-choices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasheloper%2Fcolor-choices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasheloper%2Fcolor-choices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasheloper%2Fcolor-choices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasheloper%2Fcolor-choices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasheloper","download_url":"https://codeload.github.com/jasheloper/color-choices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasheloper%2Fcolor-choices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35059251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conditional-statements","javascript"],"created_at":"2025-04-03T06:30:13.863Z","updated_at":"2026-07-02T19:02:37.829Z","avatar_url":"https://github.com/jasheloper.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Demo \nhttps://jasheloper.github.io/color-choices/\n\n##  Objective\n\nIn this example, you are going to take the ternary operator example we saw earlier and convert the ternary operator into a switch statement to allow us to apply more choices to the simple website.\n\nLook at the `\u003cselect\u003e` — this time you'll see that it has not two theme options, but five. \n\n- \u003cb\u003eMDN Link:\u003c/b\u003e https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals#active_learning_more_color_choices\n\n\n## Instructions \n\nYou need to add a switch statement just underneath the `// ADD SWITCH STATEMENT comment`:\n\n- It should accept the `choice` variable as its input expression.\n\n- For each case, the choice should equal one of the possible `\u003coption\u003e` values that can be selected, that is, `white`, `black`, `purple`, `yellow`, or `psychedelic`.\n\n- For each case, the `update()` function should be run, and be passed two color values, the first one for the background color, and the second one for the text color. Remember that color values are strings, so they need to be wrapped in quotes.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasheloper%2Fcolor-choices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasheloper%2Fcolor-choices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasheloper%2Fcolor-choices/lists"}