-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Rob Garrison edited this page Feb 18, 2016
·
2 revisions
- Core:
- Code cleanup & use readable variable names.
- Removed
live
option and replaced it with jQuery delegated event binding. So this plugin now requires jQuery 1.7+. - Prefix triggered Jatt events with "jatt-".
- Fix image preload code.
- Add triggered events as options.
- Fix thumbnail service url.
- Docs:
- General cleanup.
- Added new options.
- Readme:
- Renamed with ".md" extension.
- Moved change log to wiki.
- Add gitignore & gitattributes.
- Fixed an issue with preloading a non-existent image. Also from issue #1.
- Fixed an error that occurrs when no preload images are found. Fix for issue #1.
- Fixed an issue where links to "#" without a title would cause an error
- Added
extradata
option to point to the extra tooltip data; default is the "rel" attribute.
- Fixed an issue with the hidden event/callback not firing on sticky tooltips
- Added package file to register this plugin with jQuery plugins.
- Changed events from "jatt-{event}" to "{event}.jatt" to better fit namespaced events. This makes Jatt events only work properly with jQuery 1.4.3+.
- Changed callback named from "jatt-{event}" to just "{event}".
- Added a sticky class, which when added to the tooltip, will make the tooltip sticky and included a close button.
- Cleaned up and updated pages to be HTML5 compliant and added a new navigation menu.
- Moved CSS from the file into an external file.
- Moved all demo files into a separate directory.
- Preview and Screenshot images will not automatically preload without having a preload class.
-
Modified the code to work better with HTML5 data-attributes.
- It will first look in the bracketed metadata stored in the attribute named in
metadata
option. - Then it'll look for unbracketed metadata - you really only need to put brackets around the metadata when in the class attribute.
- If still nothing is found, it will fall back on any metadata stored in "data-jatt".
- Updated the demo page to demonstrate the differences - look for the "Meta in class" checkbox at the bottom.
- It will first look in the bracketed metadata stored in the attribute named in
-
Added
websitePreview
option which should contain the thumbnail provider api string (everything but the url). Also, the thumbnail provider is now "thumbalizr.com". -
Added callbacks (initialization option) and events (bound to the document).
// Callback example $.jatt({ 'jatt-revealed' : function(obj) { // obj = object hovered/focused // do something } }); // Event example $(document).bind('jatt-revealed', function(e, obj) { // e = event object, obj = object hovered/focused // do something after the tooltip has been revealed });
- Added a
preloadContent
option which contains the class to trigger tooltip content to preload from an external page.- This change was necessary for tooltips with direction set to 'n' (north) because when the content is added, it stretches the tooltip down and under the mouse causing the tooltip link to trigger a
mouseleave
event closing the tooltip. Then the user must move the mouse to trigger themouseover
event to open the tooltip again. And we all know how none of use like things that flicker. Whew. - Also note that the tooltip element itself must have the preload class. So using '.tooltips a' would not trigger the preloads.
- If you want to preload all the tooltip content, then just set the
preloadContent
to the same class astooltip
.
- This change was necessary for tooltips with direction set to 'n' (north) because when the content is added, it stretches the tooltip down and under the mouse causing the tooltip link to trigger a
- Added
cacheData
option to save data obtained from external pages. Set it to false for dynamic tooltip data. - Fixed preloading image script, so now the Websnapr image does preload.
- Added content preload (for external pages) for tooltips.
- Added more options to allow modification of messages - in case you want to use a different language ;)
- Separated image preview and screenshot scripts to work properly if the
screenshot
orpreview
class is made to target tags without the class (e.g. '.previews a')
- Added image preload for preview and screenshot tooltips to fix tooltip positioning issues, but this doesn't seem to work for Websnapr images.
- Fixed a problem that was only occurring in IE - undefined variable error.
- Cleaned up the code a bit and tried to fix other potential problems.
- Added github pages
- Changed object cloning method - now using jQuery method
- Added support for old tooltip script (css contained in rel attribute)
- Convert script into a plugin.
- Added Metadata - can modify tooltip css and script options.
- Added tooltip positioning - tooltips will display in a specific direction.
- Added additional contents sources - can be obtained from external pages (domains if you use James Padolsey's included script).
- Removed dhtmltooltip support, but the commented code was left in, in case someone still needs it.
- Added Websnapr.com support to the screenshot script.
- Combined the three original scripts by Alen Grakalic.
- Added support for dhtmltooltip.
- Original tooltip script by Alen Grakalic.