{"id":16221922,"url":"https://github.com/bajajcodes/learn-triangles","last_synced_at":"2025-08-17T22:11:09.710Z","repository":{"id":115440278,"uuid":"405340841","full_name":"bajajcodes/learn-triangles","owner":"bajajcodes","description":"Learn about triangles. Check what makes a triangle with 3 angles, what you know about triangles in quiz section, calculate hypotenuse of a triangle, and calculate area of a triangle.","archived":false,"fork":false,"pushed_at":"2021-09-23T04:20:19.000Z","size":522,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T00:46:02.291Z","etag":null,"topics":["css","html","javascript","reset-css"],"latest_commit_sha":null,"homepage":"https://triangles-made-easy.netlify.app/","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/bajajcodes.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-09-11T09:46:32.000Z","updated_at":"2021-09-23T04:20:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b72788d-b20a-4582-953d-dfd6f68a5b87","html_url":"https://github.com/bajajcodes/learn-triangles","commit_stats":null,"previous_names":["bajajcodes/learn-triangles"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bajajcodes/learn-triangles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Flearn-triangles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Flearn-triangles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Flearn-triangles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Flearn-triangles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bajajcodes","download_url":"https://codeload.github.com/bajajcodes/learn-triangles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Flearn-triangles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270912602,"owners_count":24666751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":["css","html","javascript","reset-css"],"created_at":"2024-10-10T12:10:26.699Z","updated_at":"2025-08-17T22:11:09.643Z","avatar_url":"https://github.com/bajajcodes.png","language":"HTML","readme":"# Learn Triangles\n\n## List of Contents\n- \u003ca href=\"#description\"\u003eDescription\u003c/a\u003e\n- \u003ca href=\"#input\"\u003eInput\u003c/a\u003e\n- \u003ca href=\"#output\"\u003eOutput\u003c/a\u003e\n- \u003ca href=\"#processing\"\u003eProcessing\u003c/a\u003e\n- \u003ca href=\"#screenshots\"\u003eScreenshots\u003c/a\u003e\n- \u003ca href=\"#link\"\u003eLink\u003c/a\u003e\n\n\u003e**Description:**\u003cp id=\"description\"\u003eLearn about Triangle. Check whether it makes a triangle by passing three sides of a triangle. Challenge your knowledge about triangle, by answering the questions in triangle quiz section. Calculate hypotenuse of a triangle by passing other two sides of triangle, similarly calculate area of a triangle by passing base and height of triangle. Click on the link below to learn about triangle.\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003e**Input:** \u003cp id=\"input\"\u003e\nA user has to enter input in number format only for sections `Is Triangle`,  `Hypotenuse of a triangle` and `Area of a triangle` where input cannot be zero, negative number and floating-point number. Whereas in `Triangle quiz` section a user has to select a radio button as input to answer questions. A user has to enter all inputs, if any missed then informed with message. \n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003e**Output:** \u003cp id=\"output\"\u003e\nOutput will be a simple message, displaying whether its a triangle giving three sides of traingle, what will be the hypotenuse of a triangle giving two sides, what will be the area of a traingle giving base \u0026 height and what you scored in the quiz.\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003e**Processing:** \u003cp id=\"processing\"\u003e\n\u003cul\u003e\n\u003cli\u003eGet inputs from user and match aginst input constraints, if not meet  then inform the user with the desrired message.\u003c/li\u003e\n\u003cli\u003eClick on button to get outcome on each page or section.\u003c/li\u003e\n\u003cli\u003eIn Is Triangle section or page a user has to enter three sides of the triangle and click on Is Triangle button, on each input(side) function check angle is called and checks for side not to be less then zero, not negative number, not be a floating-point number and other (if any). Then function solveAngle checks wether three sides makes a traingle or not by computing sum of three sides. After that user is informed with message wether sides form a traingle or not.\u003c/li\u003e\n\u003cli\u003eIn Hypotenuse of a triangle page, a user has to enter two sides (side a, side b) and then click on Calculate Hypotenuse button, on each input(side) function check side is called and checks for side not to be less then zero, not negative number, not be a floating-point number and other (if any). Then function calculate hypotenuse computes hypotenuse of two sides and updates user. Meanwhile if any error or input voilation occurs user is informed with message.\u003c/li\u003e\n\u003cli\u003eIn Area of triangle page, a user has to enter base(b) and height(h) of a triangle and to calculate area click on calculate area button. on each input function check side is called to check for side not to be less then zero, not negative number, not be a floating-point number and other (if any). Then function calulateArea calculates area of the triangle and updates the user. Meanwhile if any error or input voilation occurs user is informed with message.\u003c/li\u003e\n\u003cli\u003eIn Triangle quiz page a user has to select answer to question, and click on check answers button. For each correct a user will get +50 points and for incorrect -50 points. Function onFormSubmit and function checkAnswers check for input constraints and updates the user with message either score or error message.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003e**Screenshots:** \u003cp id=\"screenshots\"\u003e\u003c/p\u003e\n![is traingle image not available](https://github.com/shmbajaj/learn-triangles/blob/main/screenshots/is_traingle.png?raw=true)\n![is traingle IO image not available](https://github.com/shmbajaj/learn-triangles/blob/main/screenshots/is_traingle_io.png?raw=true)\n![quiz image not available](https://github.com/shmbajaj/learn-triangles/blob/main/screenshots/quiz.png?raw=true)\n![hypo image not available](https://github.com/shmbajaj/learn-triangles/blob/main/screenshots/hypo.png?raw=true)\n![hypo io image not available](https://github.com/shmbajaj/learn-triangles/blob/main/screenshots/hypo_io.png?raw=true)\n![area  image not available](https://github.com/shmbajaj/learn-triangles/blob/main/screenshots/area.png?raw=true)\n![area io image not available](https://github.com/shmbajaj/learn-triangles/blob/main/screenshots/area_io.png?raw=true)\n\n\u003cbr\u003e\n\n\u003e**Link:**\u003cp id=\"link\"\u003e[Learn Triangles](https://triangles-made-easy.netlify.app/)\u003c/p\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbajajcodes%2Flearn-triangles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbajajcodes%2Flearn-triangles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbajajcodes%2Flearn-triangles/lists"}