{"id":24411158,"url":"https://github.com/divakarmanivel/simple-loader","last_synced_at":"2026-04-22T12:32:15.695Z","repository":{"id":57160030,"uuid":"159038769","full_name":"divakarmanivel/simple-loader","owner":"divakarmanivel","description":"Create fantastic full-page loading screens using minimal effort.","archived":false,"fork":false,"pushed_at":"2018-12-07T08:47:37.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T07:39:27.813Z","etag":null,"topics":["css3","javascript","javascript-css","loading-animations"],"latest_commit_sha":null,"homepage":"https://divakarmanivel.github.io/simple-loader/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/divakarmanivel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-25T14:13:19.000Z","updated_at":"2024-05-17T05:15:23.000Z","dependencies_parsed_at":"2022-09-09T07:30:27.229Z","dependency_job_id":null,"html_url":"https://github.com/divakarmanivel/simple-loader","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/divakarmanivel%2Fsimple-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divakarmanivel%2Fsimple-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divakarmanivel%2Fsimple-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divakarmanivel%2Fsimple-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divakarmanivel","download_url":"https://codeload.github.com/divakarmanivel/simple-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243382785,"owners_count":20282008,"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":["css3","javascript","javascript-css","loading-animations"],"created_at":"2025-01-20T06:19:52.467Z","updated_at":"2025-12-27T15:59:56.694Z","avatar_url":"https://github.com/divakarmanivel.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"./simple.png\" alt=\"Simple logo\"/\u003e\n\u003c/p\u003e\n\n# Simple Loader\n\nCreate fantastic full-page loading screens using minimal effort. See the full [Demo](https://divakarmanivel.github.io/simple-loader/)\n\n# Setup\n\nCopy all files from dist/js and dist/css to your applications folder.\nAdd this line in the head tag of index.html as:\n\n```html\n    \u003chead\u003e\n    ..\n    \u003c!-- Simple Loader CSS --\u003e\n    \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"./css/simple-loader.css\" /\u003e\n    ..\n    \u003c/head\u003e\n```\nAdd this line before closing body tag of index.html as:\n\n```html\n    \u003cbody\u003e\n    ..\n    \u003c!-- Simple Loader JS --\u003e\n    \u003cscript src=\"./js/simple-loader.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n    \u003c/body\u003e\n```\n\n# Usage\n\nTo show the loader add this line in your js file:\n\n```javascript\n    simpleloader.show();\n```\n  \nTo hide the loader add this line in your js file:\n\n```javascript\n    simpleloader.hide();\n```\n    \nFor example, to show a loader while in a http request:\n\n```javascript\n    function getRequest(url){\n      simpleloader.show();\n      var request = new XMLHttpRequest();\n      request.open(\"GET\", url, true);\n      request.send();\n      request.onreadystatechange = function () {\n        if (request.readyState == XMLHttpRequest.DONE) {\n          simpleloader.hide();\n          if (request.status == 200) {\n            alert(\"Success\");\n          } else {\n            alert(\"Error\");\n          }\n        }\n      };\n    }\n```\n\nTo set the loader type add this line in your js file:\n\n```javascript\n    simpleloader.type(\"spinner\")\n```\n\nThe default type if no type is specified is \"spinner\". Currently available types are:\n- spinner\n- bounceball\n- ripple\n- square-wave\n- twin-spinner\n\nTo set the background color add this line in your js file:\n\n```javascript\n    simpleloader.background(\"#fff\"); // 3-digit hexcode\n    simpleloader.background(\"#2196f3\"); // 6-digit hexcode\n```\n\nTo set the foreground color add this line in your js file:\n\n```javascript\n    simpleloader.foreground(\"#fff\"); // 3-digit hexcode\n    simpleloader.foreground(\"#2196f3\"); // 6-digit hexcode\n```\n\n# Contribution\n\nI welcome pull requests from all! Thanks in advance! Visit our [Contributions](CONTRIBUTING.md) page for more information.\n\n# Code of Conduct\n\nVisit our [Code of Conduct](CODE_OF_CONDUCT.md) page for an overview on our ground rules.\n\n # License\n\nCreated and Maintained by Divakar Manivel. Licensed under [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivakarmanivel%2Fsimple-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivakarmanivel%2Fsimple-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivakarmanivel%2Fsimple-loader/lists"}