{"id":13418982,"url":"https://github.com/enyo/opentip","last_synced_at":"2025-04-08T09:07:03.632Z","repository":{"id":678657,"uuid":"322350","full_name":"enyo/opentip","owner":"enyo","description":"Opentip is an open source javascript tooltip based on the protoype framework.","archived":false,"fork":false,"pushed_at":"2020-09-18T20:04:50.000Z","size":5219,"stargazers_count":1246,"open_issues_count":72,"forks_count":399,"subscribers_count":84,"default_branch":"master","last_synced_at":"2025-04-01T07:49:07.469Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.opentip.org","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/enyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-09-30T14:49:34.000Z","updated_at":"2025-03-10T06:47:47.000Z","dependencies_parsed_at":"2022-08-16T10:40:30.376Z","dependency_job_id":null,"html_url":"https://github.com/enyo/opentip","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enyo%2Fopentip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enyo%2Fopentip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enyo%2Fopentip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enyo%2Fopentip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enyo","download_url":"https://codeload.github.com/enyo/opentip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809964,"owners_count":20999816,"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-07-30T22:01:09.697Z","updated_at":"2025-04-08T09:07:03.614Z","avatar_url":"https://github.com/enyo.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Tips","Tips [🔝](#readme)","UI","提示"],"sub_categories":["Other","其它"],"readme":"Opentip\n=======\n\n[Opentip][opentip] is a free opensource Java-Script tooltip class.\n\n\nFeatures\n--------\n\nIt supports:\n\n- Stems (little pointers)\n- Automatic content download with [AJAX][ajax]\n- Different styles\n- Automatic repositioning of the tooltip if it's not in the viewport of the browser anymore\n- All kind of triggers (The tooltip can be triggered by mouse over, click, form submit,... everything you can think of really)\n- CSS3 Animations\n- Well tested, with over 200 unit tests\n\nAs of Version 2.0 Opentip does **no longer depend on [Prototype]**. You can choose\n*any* adapter you want so you can work with the framework of your choice.\n\nSupported frameworks are:\n\n- Native. You can use this one if you don't use any framework.\n- [Ender]\n- [Component]\n- [jQuery]\n- [Prototype]\n\n\n\u003e If you want to contribute, please read on in the [contribute](https://github.com/enyo/opentip/blob/master/CONTRIBUTING.md)\n\u003e file. If you are migrating from version **1.x** please refer to the\n\u003e [migration section](#migrating-from-opentip-1x-to-2x)\n\n### Build status\n\nMaster [![Build Status](https://travis-ci.org/enyo/opentip.png?branch=master)](https://travis-ci.org/enyo/opentip)  \n\nDevelop [![Build Status](https://travis-ci.org/enyo/opentip.png?branch=develop)](https://travis-ci.org/enyo/opentip) \n\n\nInstallation\n------------\n\n### jQuery, Prototype, Native\n\nJust download `lib/opentip.js` and `lib/adapter.FRAMEWORK.js` and include them\nin this order. You can also take the already minified and combined files in the\n`downloads/` folder.\n\n### Component\n\nThe easiest and recommended way to install *opentip* is with [component]. Just\nadd `enyo/opentip` as dependency in your `component.json` and rebuild it.\n\nSimply requiring opentip then activates the tooltips: `require \"opentip\";`\n\n\n### Ender\n\nIf you prefer [ender] as package manager just install it like this:\n\n```bash\n$ ender build opentip\n```\n\n### Bower\n\nAnother package manager supported is [bower]:\n\n```bash\n$ bower install opentip\n```\n\n* * *\n\nYou should include opentip's CSS as well. It's in `css/opentip.css`. (Except\nfor [component] of course which automatically bundles the css.)\n\n* * *\n\nIf you want to work it with \u003c=IE8, you have to include excanvas as well. Please\nrefer to the [installation guide](http://www.opentip.org/installation.html).\n\nUsage\n-----\n\n*Version 2.4.6*\n\nWith HTML data attributes:\n\n```html\n\u003cdiv data-ot=\"Tooltip content\" data-ot-show-on=\"click\"\u003eClick me\u003c/div\u003e\n```\n\nor with the Javascript API:\n\n```js\n$('elementId').opentip('Content', { showOn: \"click\", ...options... });\n```\n\nFor the complete documentation please visit [www.opentip.org][opentip].\n\n\nFuture plans\n------------\n\n- ~~Become library independant. I'm currently working on\n  extracting all prototype functionality, so I can switch library easily. The\n  next library   I'll support will be jquery, and then mootools.~~\n\n- Add more skins.\n\n- ~~Add cooler loading animation.~~\n\n- ~~Implement unit tests.~~\n\n\nIf you have ideas, please contact me!\n\n\nContribute\n----------\n\nPlease refer to the [CONTRIBUTING](https://github.com/enyo/opentip/blob/develop/CONTRIBUTING.md) readme.\n\n\n\nMigrating from Opentip 1.x to 2.x\n---------------------------------\n\nThose are the major changes you should look out for when migrating from 1.x to 2.x:\n\n- There's no `Tip` or `Tips` object anymore. Everything is done through\n  `Opentip`\n\n- The recommend way to create opentips now is to call\n  `new Opentip(element, content, title, options)`, or with the framework of\n  your choice (eg, [ender]: `$(\"#my-div\").opentip(content, title options)`)\n\n- The instantiation of new tips inside an event (eg: `onclick`, `onmouseover`)\n  is no   longer supported! This would create new opentips everytime the event\n  is fired.\n\n- `Opentip.debugging = true;` does no longer exist. Use `Opentip.debug = true;`\n\n- Positions are no longer of the weird form `[ \"left\", \"top\" ]` but simply\n  strings   like `\"top left\"` or `\"right\"`\n\n- `stem.size` has been dropped in favor of `stem.length` and `stem.base`\n\n- Most of the design is now done in JS since the whole thing is a canvas now.\n\n- The way close buttons are defined has completely changed. Please refer to the\n  docs for more information.\n\nTagging\n-------\n\nTagging in this project is done with my [tag script](http://github.com/enyo/tag).\n\n\nAuthors\n-------\n\nOpentip is written by Matias Meno.\u003cbr\u003e\nOriginal graphics by Tjandra Mayerhold.\n\n### Contributors\n\nThanks to the following people for providing bug reports, feature requests and fixes:\n\n- Torsten Saam\n- Aaron Peckham\n- Oguri\n- MaxKirillov\n- Nick Daugherty\n\nIf I forgot somebody, please just tell me.\n\n### Related projects\n\nYou might also be interested in my [formwatcher](http://www.formwatcher.org/) or\n[dropzone](http://www.dropzonejs.com/).\n\nLicense\n-------\n(The MIT License)\n\nCopyright (c) 2012 Matias Meno \u0026lt;m@tias.me\u0026gt;\u003cbr\u003e\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\n[opentip]: http://www.opentip.org/\n[prototype]: http://www.prototypejs.org/\n[jquery]: http://jquery.com/\n[ajax]: http://en.wikipedia.org/wiki/Ajax_(programming)\n[excanvas]: https://github.com/enyo/excanvas\n[ender]: http://ender.no.de\n[component]: https://github.com/component\n[bower]: https://github.com/twitter/bower#readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenyo%2Fopentip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenyo%2Fopentip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenyo%2Fopentip/lists"}