{"id":22495080,"url":"https://github.com/antitim/iwd","last_synced_at":"2025-03-27T21:15:45.383Z","repository":{"id":22029761,"uuid":"94995196","full_name":"antitim/iwd","owner":"antitim","description":"JS starter","archived":false,"fork":false,"pushed_at":"2022-08-06T20:50:33.000Z","size":563,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T08:17:21.960Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/antitim.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}},"created_at":"2017-06-21T11:04:03.000Z","updated_at":"2022-06-18T00:38:25.000Z","dependencies_parsed_at":"2022-08-07T10:01:27.991Z","dependency_job_id":null,"html_url":"https://github.com/antitim/iwd","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antitim%2Fiwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antitim%2Fiwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antitim%2Fiwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antitim%2Fiwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antitim","download_url":"https://codeload.github.com/antitim/iwd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924507,"owners_count":20694730,"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-06T19:25:08.918Z","updated_at":"2025-03-27T21:15:45.255Z","avatar_url":"https://github.com/antitim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IWD (init with DOM) [![NPM version][npm-image]][npm-url]\n## About\n\nThis script performs the function with the name specified in the attribute of the dom element in the context of this item.\n\nSupported the start of the function even if the DOM Element has been added after initialization of the script (MutationObserver).\n\n## Browser\n- IE 10+\n- Edge\n- Firefox 14+\n- Chrome 18+\n- Safary 6+\n- Opera 15+\n- iOS Safari 6.1+\n- Android Browser 4.4 +\n\n\n## Usage\n\n```html\n\u003cdiv data-js=\"time\" data-name=\"Hi\" id=\"megaId\"\u003e\u003c/div\u003e\n\u003cscript\u003e\n  function time (params) {\n    var self = this; // DOM Element \u003cdiv data-js=\"time\"\u003e\u003c/div\u003e\n    var seconds;\n\n    params; // { data: { name: \"Hi\" }, class: \"js\", id: \"megaId\" }\n\n    setInterval(function () {\n      var dt = new Date();\n\n      if (seconds !== dt.getSeconds()) {\n        self.innerText = dt.getHours() + ':' + dt.getMinutes() + ':' + dt.getSeconds();\n      }\n      seconds = dt.getSeconds();\n    }, 100)\n  }\n\u003c/script\u003e\n\u003cscript src=\"../build/iwd.min.js\"\u003e\u003c/script\u003e\n```\n## Test\n[\u003cimg src=\"https://www.browserstack.com/images/mail/browserstack-logo-footer.png\" width=\"120\"\u003e](https://www.browserstack.com/)\n\nThank you to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows to test in real browsers.\n\n[Test](https://antitim.github.io/iwd/test/index.html)\n\n## License\n\nMIT © [antitim](http://vk.com/antitim)\n\n\n[npm-image]: https://badge.fury.io/js/init-with-dom.svg\n[npm-url]: https://npmjs.org/package/init-with-dom\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantitim%2Fiwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantitim%2Fiwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantitim%2Fiwd/lists"}