{"id":27251493,"url":"https://github.com/scarletsfiction/sfdynamichtml","last_synced_at":"2025-04-11T01:10:08.274Z","repository":{"id":109493761,"uuid":"142742759","full_name":"ScarletsFiction/SFDynamicHTML","owner":"ScarletsFiction","description":"Dynamically change content of a html on the client-side","archived":false,"fork":false,"pushed_at":"2019-03-29T06:39:43.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T01:10:06.357Z","etag":null,"topics":["html","mvw-framework"],"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/ScarletsFiction.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,"zenodo":null}},"created_at":"2018-07-29T08:12:36.000Z","updated_at":"2020-06-02T12:38:55.000Z","dependencies_parsed_at":"2023-07-14T22:32:09.067Z","dependency_job_id":null,"html_url":"https://github.com/ScarletsFiction/SFDynamicHTML","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/ScarletsFiction%2FSFDynamicHTML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScarletsFiction%2FSFDynamicHTML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScarletsFiction%2FSFDynamicHTML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScarletsFiction%2FSFDynamicHTML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScarletsFiction","download_url":"https://codeload.github.com/ScarletsFiction/SFDynamicHTML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322601,"owners_count":21084337,"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":["html","mvw-framework"],"created_at":"2025-04-11T01:10:05.702Z","updated_at":"2025-04-11T01:10:08.265Z","avatar_url":"https://github.com/ScarletsFiction.png","language":"JavaScript","funding_links":["https://www.patreon.com/stefansarya"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://www.patreon.com/stefansarya\"\u003e\u003cimg src=\"http://anisics.stream/assets/img/support-badge.png\" height=\"20\"\u003e\u003c/a\u003e\n\n[![Written by](https://img.shields.io/badge/Written%20by-ScarletsFiction-%231e87ff.svg)](LICENSE)\n[![Software License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE)\n\n# SFDynamicHTML\nSFDynamicHTML is a library that allow you to dynamically load HTML content from client-side/browser.\n\nThis library was useful to lazily change DOM content.\n\n## Sample Usage\n\n```html\n\u003cdiv class=\"user-list\"\u003e\n    \u003cuser id=\"1\"\u003e\n        \u003ca part=\"href\"\u003e\n            \u003cimg part=\"src\"\u003e\n            \u003cspan part=\"html\"\u003e\u003c/span\u003e\n        \u003c/a\u003e\n    \u003c/user\u003e\n\n    \u003cuser id=\"2\"\u003e\n        \u003ca part=\"href\"\u003e\n            \u003cimg part=\"src\"\u003e\n            \u003cspan part=\"html\"\u003e\u003c/span\u003e\n        \u003c/a\u003e\n    \u003c/user\u003e\n\n    \u003cuser id=\"1\"\u003e\n        \u003ca part=\"href\"\u003eVisit first user\u003c/a\u003e\n    \u003c/user\u003e\n\u003c/div\u003e\n\n\u003cscript\u003e\n    SFDynamicHTML('user', {\n        1:{\n            html:\"First\",\n            src:\"https://upload.wikimedia.org/wikipedia/en/9/95/Test_image.jpg\",\n            href:\"https://en.wikipedia.org/wiki/File:Test_image.jpg\"\n        },\n        2:{\n            html:\"Second\",\n            src:\"https://upload.wikimedia.org/wikipedia/en/9/95/Test_image.jpg\",\n            href:\"https://en.wikipedia.org/wiki/File:Test_image.jpg\"\n        }\n    }, document.querySelector('.user-list') || false)\n\u003c/script\u003e\n```\n\n## Contribution\n\nIf you want to help in SFDynamicHTML library\nPlease fork this project and edit on your repository, then make a pull request to here.\n\nKeep the code simple and clear.\n\n## License\n\nSFDynamicHTML is under the MIT license.\nBut don't forget to put the a link to this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarletsfiction%2Fsfdynamichtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscarletsfiction%2Fsfdynamichtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarletsfiction%2Fsfdynamichtml/lists"}