{"id":21714477,"url":"https://github.com/frizbee/js-cart-calculator","last_synced_at":"2025-03-20T19:23:02.638Z","repository":{"id":72570765,"uuid":"136708852","full_name":"frizbee/js-cart-calculator","owner":"frizbee","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-09T09:44:43.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T17:33:08.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frizbee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2018-06-09T09:20:21.000Z","updated_at":"2018-06-09T09:44:44.000Z","dependencies_parsed_at":"2023-03-24T10:46:25.293Z","dependency_job_id":null,"html_url":"https://github.com/frizbee/js-cart-calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frizbee%2Fjs-cart-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frizbee%2Fjs-cart-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frizbee%2Fjs-cart-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frizbee%2Fjs-cart-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frizbee","download_url":"https://codeload.github.com/frizbee/js-cart-calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244676451,"owners_count":20491828,"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","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":[],"created_at":"2024-11-26T00:35:33.262Z","updated_at":"2025-03-20T19:23:02.633Z","avatar_url":"https://github.com/frizbee.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS Cart Calculator\r\n\r\n### Screenshot\r\n![alt text](/js-cart-calculate.png)\r\n\r\n### Add more fields\r\nJust Add another form-group:\r\n```\r\n\u003cdiv class=\"form-group\"\u003e\r\n\t\u003clabel\u003ePets\u003c/label\u003e\r\n\t\u003cdiv class=\"numbers-row\"\u003e\r\n\t\u003cinput type=\"text\" value=\"0\" id=\"pets\" class=\"qty2 form-control\" name=\"order_item[quantity_pets]\"\u003e\r\n\t\u003cdiv class=\"inc button_inc\"\u003e+\u003c/div\u003e\u003cdiv class=\"dec button_inc\"\u003e-\u003c/div\u003e\r\n\t\u003c/div\u003e\r\n\u003c/div\u003e\r\n```\r\nAfter that add new object item in js file:\r\n```\r\nvar price = {\r\n  adults: document.getElementById('price_adults').value,\r\n  children: document.getElementById('price_children').value,\r\n  pets: 14.50\r\n}\r\n```\r\nPlease feel free to improve\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrizbee%2Fjs-cart-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrizbee%2Fjs-cart-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrizbee%2Fjs-cart-calculator/lists"}