{"id":15601194,"url":"https://github.com/hacknlove/semantic-input-binary","last_synced_at":"2026-06-11T18:31:10.072Z","repository":{"id":77996243,"uuid":"93652232","full_name":"hacknlove/semantic-input-binary","owner":"hacknlove","description":null,"archived":false,"fork":false,"pushed_at":"2017-12-18T18:17:50.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T07:34:20.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hacknlove.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":"2017-06-07T15:43:24.000Z","updated_at":"2017-06-07T15:44:47.000Z","dependencies_parsed_at":"2023-03-12T03:10:09.248Z","dependency_job_id":null,"html_url":"https://github.com/hacknlove/semantic-input-binary","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"9cbabdadd877d6a2edbec29b72f9e6e4e28b98fc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hacknlove/semantic-input-binary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacknlove%2Fsemantic-input-binary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacknlove%2Fsemantic-input-binary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacknlove%2Fsemantic-input-binary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacknlove%2Fsemantic-input-binary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hacknlove","download_url":"https://codeload.github.com/hacknlove/semantic-input-binary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacknlove%2Fsemantic-input-binary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34213180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-03T02:19:38.033Z","updated_at":"2026-06-11T18:31:10.052Z","avatar_url":"https://github.com/hacknlove.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# semantic-input-image\n\n## use:\n\n### Template:\n    {{\u003e inputImage name=\"foo\" class=\"bar buz\" default=\"/example.jpg\"}}\n\nwhere: `name`, `class` and `default` are optionals\n\n* `name` sets the name of the `\u003cinput type=\"file\"`\n* `class` adds some clases to the `\u003cdiv class=\"field\"\u003e` wrapper\n* `default` sets the default image src\n\n### Events:\n\n    Template.yourtemplate.events({\n        'fileloaded input[name=foo]': function (event, instance, dataURL) {\n          // image has been loaded\n          // dataURL = \"data:image/...;base64,iVBORw0KGgo...\"\n        },\n        'cancel input[name=foo]': function (event, instance) {\n          // user has canceled (and data was set to default)\n        },\n        'cancel input[name=foo]': function (event, instance) {\n          // the file choosen is not an image (and data was set to default)\n        },\n    })\n\n### Data:\n    $('input[name=foo]').data('dataURL') =\u003e default or \"data:image/...;base64,iVBORw0KGgo...\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacknlove%2Fsemantic-input-binary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacknlove%2Fsemantic-input-binary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacknlove%2Fsemantic-input-binary/lists"}