{"id":18090844,"url":"https://github.com/klml/hashsplit","last_synced_at":"2025-04-06T02:35:51.133Z","repository":{"id":15814035,"uuid":"18553664","full_name":"klml/hashsplit","owner":"klml","description":"hashsplit is a JS plugin to use values from URL fragment identifier (hash) #foo , #foo/bar or #foo=bar\u0026city=springfield.","archived":false,"fork":false,"pushed_at":"2023-06-03T16:27:03.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T08:40:53.732Z","etag":null,"topics":["hash","url-fragment-identifier"],"latest_commit_sha":null,"homepage":"https://klml.github.io/hashsplit/","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/klml.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":"2014-04-08T10:06:25.000Z","updated_at":"2023-06-03T16:27:07.000Z","dependencies_parsed_at":"2024-12-19T10:10:46.893Z","dependency_job_id":"ef71b748-d15b-423d-8495-24fa97411e64","html_url":"https://github.com/klml/hashsplit","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fhashsplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fhashsplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fhashsplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klml%2Fhashsplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klml","download_url":"https://codeload.github.com/klml/hashsplit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427034,"owners_count":20937197,"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":["hash","url-fragment-identifier"],"created_at":"2024-10-31T18:08:08.094Z","updated_at":"2025-04-06T02:35:51.104Z","avatar_url":"https://github.com/klml.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"hashsplit\n=========\n\nhashsplit is JS plugin to use various values from URL fragment identifier (hash) #foo , #foo/bar or #foo=bar\u0026amp;city=springfield\n\nIt uses the values from the hash with DOM-Id in a specific way:\n\n* forms (inputs, selects) are filled (works only with pseudogets `\u0026name=value` or `/name=value` )\n  * checkbox get checked on 'true' or any string, but unchecked with 'false' or '' (empty string) only.\n* links (`a`) get a click (e.g. you want to link on a page with an active fancybox)\n\n[Demo](https://klml.github.io/hashsplit/)\n\n## usage\n\n```\n    \u003cscript src=\"https://cdn.jsdelivr.net/gh/klml/hashsplit@master/hashsplit.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n    document.addEventListener('readystatechange', event =\u003e { \n        hashsplit(); // activate hashspilt\n        updateHash(); // get changed input values back to hash\n    })\n    \u003c/script\u003e\n```\n\n## inspiration\n\nInitial JS from [Cristian Sanchez on stackoverflow.com](http://stackoverflow.com/questions/3729150/retrieve-specific-hash-tags-value-from-url). [accounts.google.com](https://accounts.google.com/SignUpWithoutGmail#FirstName=John\u0026LastName=Doe\u0026EmailAddress=example@example.com) is using the function 'InputHolder.prototype.prefill' doing similar the same as this function 'HashSplit'.\n\nAny ideas for:\n* img\n\n## similar usage \n\n* [formassembly](http://help.formassembly.com/knowledgebase/articles/340353-prefill-through-the-url)\n* [jQuery BBQ](http://benalman.com/projects/jquery-bbq-plugin/)\n* contactform7 for wordpress [Getting Default Values from the Context](http://contactform7.com/getting-default-values-from-the-context/)\n* stackoverflow questions on this:\n  * [Pre-fill form field via URL in html](http://stackoverflow.com/questions/14070105/pre-fill-form-field-via-url-in-html)\n  * [Prefill form through url](http://stackoverflow.com/questions/29047386/prefill-form-through-url) with this [clientside working form](http://tumblr.followd.co.nz/login.php?email=masterofcoins)\n\n## version\n\n* 1.0\n* 3.0 removed tabs, use [CSS :target](//developer.mozilla.org/en-US/docs/Web/CSS/:target)\n\n## todo:\n\n* this\n* hooks\n* alert\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklml%2Fhashsplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklml%2Fhashsplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklml%2Fhashsplit/lists"}