{"id":23588133,"url":"https://github.com/sonirico/jiris","last_synced_at":"2026-04-07T09:32:26.217Z","repository":{"id":92458630,"uuid":"81688923","full_name":"sonirico/jiris","owner":"sonirico","description":"jQuery plugin for setting background styles and colors within contenteditable elements in a Twitter like way.","archived":false,"fork":false,"pushed_at":"2017-02-18T23:25:26.000Z","size":46,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T18:51:39.810Z","etag":null,"topics":["contenteditable","css","jquery","jquery-plugin","styling"],"latest_commit_sha":null,"homepage":"https://sonirico.github.io/jiris/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sonirico.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":"2017-02-11T23:10:27.000Z","updated_at":"2017-02-12T21:29:15.000Z","dependencies_parsed_at":"2023-06-02T12:45:25.823Z","dependency_job_id":null,"html_url":"https://github.com/sonirico/jiris","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sonirico/jiris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonirico%2Fjiris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonirico%2Fjiris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonirico%2Fjiris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonirico%2Fjiris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonirico","download_url":"https://codeload.github.com/sonirico/jiris/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonirico%2Fjiris/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31508061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["contenteditable","css","jquery","jquery-plugin","styling"],"created_at":"2024-12-27T05:12:29.839Z","updated_at":"2026-04-07T09:32:26.201Z","avatar_url":"https://github.com/sonirico.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jiris\n\nHave you ever noticed that some apps set a different style to text excess in a form-like element? E.g: like Twitter, when the well-known 140 are exceeded, the background of the over-140 text is red. This inmature plugin intends to provide that functionality.\n[Check out online working demo](https://sonirico.github.io/jiris/)\n\n## Screenshot\n\n![Screenshoot](screenshot.png)\n\n## Quick start\n\nLibraries required: \n  - jQuery ~\u003e 1.9.\\* \n\nCode\n\n```css\n\n.ok {\n\n}\n\n.excess {\n    background-color: #f9f2f4;\n    color: #c7254e;\n}\n```\n\n```javascript\nvar config = {\n   'segments': [\n       {'len': 140, 'className': 'ok', 'tag': 'span'},\n       {'len': 200, 'className': 'excess', 'tag': 'em'}\n   ]\n};\n\n    $('#sample').jiris(config);\n```\n\n## Additional/Default configuration\n\n```javascript\n$.fn.jiris.debugMode = false;\n$.fn.jiris.defaultEditableClass = \"editable-area\";\n$.fn.jiris.namespace = \"jiris\";\n$.fn.jiris.defaults = {\n    'maxlength': 0,\n    'min-width': '100%',\n    'min-height': \"100px\",\n    'height': \"auto\",\n    'resize': \"both\",\n    'segments': [\n        {'len': 11,  'className': $.fn.jiris.namespace + ' jiris-default-1', 'tag': 'span'},\n        {'len': 13,  'className': $.fn.jiris.namespace + ' jiris-default-2', 'tag': 'span'},\n        {'len': 17,  'className': $.fn.jiris.namespace + ' jiris-default-3', 'tag': 'span'}\n    ]\n};\n```\n\n## TODO\n\n  - Implement **onSegmentChanged** method. Event fired whenever the number of styled elements changes.\n  - Evolve *len* property to something like `{'from': 20, 'len': 7}` to allow styling based in ranges.\n \n### Contributing\n\n... Have you got here? Be my guest.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonirico%2Fjiris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonirico%2Fjiris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonirico%2Fjiris/lists"}