{"id":16662177,"url":"https://github.com/gorhill/efatmarker","last_synced_at":"2025-07-15T23:38:02.184Z","repository":{"id":8132127,"uuid":"9549705","full_name":"gorhill/efatmarker","owner":"gorhill","description":"This javascript library allows you to add a text highlighter to your web pages, which gives the users of your site the ability to share with others their own highlighted text passages on your web pages.","archived":false,"fork":false,"pushed_at":"2013-05-24T14:12:57.000Z","size":235,"stargazers_count":37,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-09T11:06:44.731Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gorhill.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}},"created_at":"2013-04-19T16:34:38.000Z","updated_at":"2025-04-28T04:32:51.000Z","dependencies_parsed_at":"2022-08-30T13:20:20.301Z","dependency_job_id":null,"html_url":"https://github.com/gorhill/efatmarker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gorhill/efatmarker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorhill%2Fefatmarker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorhill%2Fefatmarker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorhill%2Fefatmarker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorhill%2Fefatmarker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gorhill","download_url":"https://codeload.github.com/gorhill/efatmarker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorhill%2Fefatmarker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265467646,"owners_count":23770757,"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-10-12T10:37:12.544Z","updated_at":"2025-07-15T23:38:02.126Z","avatar_url":"https://github.com/gorhill.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"EFatMarker\n==========\n\nThis javascript library allows you to add a text highlighter to your web pages,\nwhich gives the users of your site the ability to share with others their own\nhighlighted text passages on your web pages. Another way to see EFatMarker: a \u003ca href=\"http://en.wikipedia.org/wiki/Wikipedia:Too_long;_didn't_read\"\u003e\"TL;DR\u003c/a\u003e mitigator\".\n\n\u003ca href=\"http://www.raymondhill.net/efatmarker/foreign-signs-with-jquery.html#efmAeIAfj\" target=\"_blank\"\u003e\n\u003cimg src=\"http://www.raymondhill.net/efatmarker/efatmarker-demo.gif\"\u003e\n\u003c/a\u003e\n\n## Demo\n\nI used a copy of a page on gnu.org and embedded EFatMarker's ```js``` and\n```css``` files in it, added the ```efm-target``` class to the HTML element\nwhich contains the main content, and so here are examples of permalinked\nhighlights:\n\n* http://www.raymondhill.net/efatmarker/foreign-signs.html#efmAW0AX2\n* http://www.raymondhill.net/efatmarker/foreign-signs.html#efmA8IA9h\n\nThis one is a version which include jQuery and uses the ```efm-button-container```\nclass in order to control the position of the EFatMarker button:\n\n* http://www.raymondhill.net/efatmarker/foreign-signs-with-jquery.html#efmA3IA3RA4SA4YA5zA56A7QA7VA90A96BAkBAs\n\nThe content of the page itself doesn't change, the fragment identifier\n(http://www.w3.org/TR/html4/intro/intro.html#fragment-uri) in the URL address\nspecifies what portion of text must be dynamically highlighted after the page\nloads.\n\n## Usage\n\nIn the ```\u003chead\u003e``` section of your HTML file, include:\n    ```\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"efatmarker.css\" /\u003e```\n\nTo change the style of the highlighted text, style the class ```.efm-hi```\nin your own file, provided your CSS file is loaded *after* ```efatmarker.css```.\n\nAlso, anywhere in your file, usuably preferably before the closing ```\u003c/body\u003e```\ntag, include:\n    ```\u003cscript type=\"text/javascript\" src=\"efatmarker.js\"\u003e\u003c/script\u003e```\n\nYou must identify the HTML container element in your document which\ncontains the text which will inherit the ability to be dynamically\nhighlighted. Identify this container element by adding the class\n```efm-target``` to its class attribute.\n\nIf there is more than one HTML element with class ```efm-target```, EFatMarker\nwill consider only the first one encountered.\n\nOptional: If there is an HTML element with the class ```efm-button-container```\nin the page, this element will be used to receive the EFatMarker button,\notherwise, the ```\u003cbody\u003e``` tag is used by default, with the button at the\nbottom right corner.\n\nThere are no outside dependencies, however, if jQuery or MooTools' Fx is\npresent, these will be used to auto scroll to the first highlight when the page\nloads the first time.\n\n## Compatibility\n\nSo far, tested on\n\n== LinuxMint 14 (25.0.1364.160-0ubuntu0.12.10.1):\n\n* Chromium 25.0.1364.160\n* Firefox 20.0\n\n## Limitations\n\nIf the content of the target text changes, highlights made before change\nwill no longer be accurately displayed.\n\n## Project\n\n* Author: Raymond Hill\n* Home: https://github.com/gorhill/efatmarker\n\n## Credits\n\nEFatMarker icon:\nhttp://openiconlibrary.sourceforge.net/gallery2/?./Icons/apps/kedit-2.png\n\n## License\n\nCopyright (C) 2013 Raymond Hill\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nhttp://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorhill%2Fefatmarker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgorhill%2Fefatmarker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorhill%2Fefatmarker/lists"}