{"id":22771437,"url":"https://github.com/ramxcodes/internet-speed-meter","last_synced_at":"2025-03-30T12:14:21.324Z","repository":{"id":183239719,"uuid":"669817722","full_name":"ramxcodes/internet-speed-meter","owner":"ramxcodes","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-24T11:22:27.000Z","size":2173,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T13:51:18.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ramxcodes.github.io/internet-speed-meter/","language":"JavaScript","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/ramxcodes.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,"publiccode":null,"codemeta":null}},"created_at":"2023-07-23T14:26:04.000Z","updated_at":"2024-03-09T17:43:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"b149e56b-b2d0-4ebe-a673-f8976af4d6d5","html_url":"https://github.com/ramxcodes/internet-speed-meter","commit_stats":null,"previous_names":["ramxcodes/internet-speed-meter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramxcodes%2Finternet-speed-meter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramxcodes%2Finternet-speed-meter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramxcodes%2Finternet-speed-meter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramxcodes%2Finternet-speed-meter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramxcodes","download_url":"https://codeload.github.com/ramxcodes/internet-speed-meter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314148,"owners_count":20757463,"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-12-11T16:13:46.677Z","updated_at":"2025-03-30T12:14:21.304Z","avatar_url":"https://github.com/ramxcodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Internet Speed Meter\n\nThe \"Internet Speed Meter\" is a web page that measures the internet speed by loading random images from Unsplash.com and calculates the download speed in bits per second (bps), kilobits per second (kbps), and megabits per second (Mbps).\n\n#### HTML Structure\n\n1. `\u003c!DOCTYPE html\u003e`: The document type declaration.\n2. `\u003chtml lang=\"en\"\u003e`: The opening tag for the HTML document, with the language set to English.\n3. `\u003chead\u003e`: Contains meta-information about the document, such as the character set and the title of the page.\n   - `\u003cmeta charset=\"UTF-8\"\u003e`: Specifies the character encoding for the document (UTF-8).\n   - `\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e`: Sets the viewport for mobile devices.\n   - `\u003clink rel=\"stylesheet\" href=\"style.css\"\u003e`: External link to a custom CSS file for styling the page.\n   - `\u003ctitle\u003eInternet Speed Meter\u003c/title\u003e`: The title of the web page, displayed in the browser's title bar.\n\n4. `\u003cbody\u003e`: Contains the visible content of the web page.\n   - `\u003cdiv class=\"container\"\u003e`: A container to hold the content of the internet speed meter.\n     - `\u003cimg src=\"speedometer.gif\"\u003e`: An animated image (speedometer.gif) representing the internet speed meter.\n     - `\u003cp id=\"info\"\u003e\u003cspan\u003e...\u003c/span\u003e\u003c/p\u003e`: A paragraph with a span to display status or messages. Initially, it shows \"...\".\n     - `\u003cp id=\"mbs\"\u003e\u003cspan\u003eSpeed In Mbs: \u003c/span\u003e\u003c/p\u003e`: A paragraph with a span to display the internet speed in Mbps.\n     - `\u003cp id=\"kbs\"\u003e\u003cspan\u003eSpeed In Kbs: \u003c/span\u003e\u003c/p\u003e`: A paragraph with a span to display the internet speed in Kbps.\n     - `\u003cp id=\"bits\"\u003e\u003cspan\u003eSpeed In Bits: \u003c/span\u003e\u003c/p\u003e`: A paragraph with a span to display the internet speed in bps.\n\n   - `\u003cp id=\"footer\"\u003e`: A paragraph displaying credits and a link to the author's portfolio.\n     - `Made with 💖 \u003ca href=\"https://ramxcodes.github.io/portfolio/\" target=\"_blank\"\u003e\u003cspan style=\"color: #02d81e; \"\u003e\u003cb\u003eRam\u003c/b\u003e\u003c/span\u003e\u003c/a\u003e`: The text \"Made with 💖\" and a link to the author's portfolio with the name \"Ram\".\n\n5. `\u003cscript src=\"script.js\"\u003e\u003c/script\u003e`: External link to a JavaScript file (\"script.js\") that contains the internet speed testing functionality.\n\n#### JavaScript Code\n\nThe provided JavaScript code is responsible for measuring the internet speed by loading random images from Unsplash.com. The script initializes a number of tests (numTests) and measures the time taken to load an image from the given Unsplash URL (\"imageApi\").\n\nUpon loading an image, the script calculates the average speed in bits per second (bps), kilobits per second (kbps), and megabits per second (Mbps) for all the tests. It then displays the average speeds in the respective HTML elements with the IDs \"bits,\" \"kbs,\" and \"mbs.\"\n\nThe output of the speed test is displayed in the HTML file within the respective paragraphs (\"Speed In Bits,\" \"Speed In Kbs,\" and \"Speed In Mbs\").\n\nNote: The provided CSS file (\"style.css\") and the actual functionality of the script (\"script.js\") are not included in the provided code snippet, so their details are not available for documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framxcodes%2Finternet-speed-meter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framxcodes%2Finternet-speed-meter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framxcodes%2Finternet-speed-meter/lists"}