]> git.mxchange.org Git - friendica.git/blob - library/colorbox/README.md
9473a686a4f4cd5d18a257fc6f627f0ea69c92a8
[friendica.git] / library / colorbox / README.md
1 ## About Colorbox:
2 A customizable lightbox plugin for jQuery.  See the [project page](http://jacklmoore.com/colorbox/) for documentation and a demonstration, and the [FAQ](http://jacklmoore.com/colorbox/faq/) for solutions and examples to common issues.  Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
3
4 ## Changelog:
5
6 ##### Version 1.6.3 - 2015/07/27
7
8 * Fixed regression that caused error in IE8 when the calculated initial size was negative. Fixes #741
9
10 ##### Version 1.6.2 - 2015/07/13
11
12 * Fixed iframe attribute name (allowFullScreen to allowFullscreen). Fixes #737
13
14 ##### Version 1.6.1 - 2015/05/14
15
16 * Replaced the inline onclick handler for cboxPhoto with a namespaced event for easier unbinding.  Fixes #719.
17
18 ##### Version 1.6.0 - 2015/03/03
19
20 * Added two new properties that expose how `<img>` and `<iframe>` elements are created, to give users direct control over those elements. Fixes #700.
21
22 ##### Version 1.5.15 - 2015/02/25
23
24 * Adding to NPM, merged white-space cleanup & new language file.
25
26 ##### Version 1.5.14 - 2014/9/9
27
28 * When opening, append Colorbox to the DOM if it was detached for whatever reason.  Fixes #645.
29
30 ##### Version 1.5.13 - 2014/8/4
31
32 * Fixed regression introduced with v1.5.12 with legacy versions of jQuery (1.3x-1.6x).  References #628.
33
34 ##### Version 1.5.12 - 2014/7/31
35
36 * Allowed setting the overlay opacity via CSS, by setting Colorbox's opacity property to false.  References #628.
37
38 ##### Version 1.5.11 - 2014/7/31
39
40 * Fixed bug where setting opacity to 0 was ignored. Fixes #628.
41
42 ##### Version 1.5.10 - 2014/6/26
43
44 * Minor misc. tweaks (merging pull requests #611, #612, #615, #619, #620).
45
46 ##### Version 1.5.9 - 2014/4/25
47
48 * Fixed inline content bug when using child selectors.  Fixes #599
49
50 ##### Version 1.5.8 - 2014/4/15
51
52 * Fixed accidental leak of global variable.  References #591
53 * Enabled strict mode. Fixes #597
54
55 ##### Version 1.5.7 - 2014/4/15
56
57 * Fix potential error when calling Colorbox directly. References #591
58 * Potentially worked around browser limitation of reporting that an image height and width is 0 immediately after onload.  Fixes #535
59
60 ##### Version 1.5.6 - 2014/4/4
61
62 * Applied maxWidth and maxHeight to the initialWidth and initialHeight.  Fixes #391
63
64 ##### Version 1.5.5 - 2014/3/13
65
66 * Allow setting the overlay opacity through CSS, rather than having to use Colorbox's opacity property.  Fixes #580
67
68 ##### Version 1.5.4 - 2014/3/7
69
70 * Fixed potential issue where IE9+ wouldn't close the modal when clicking on the overlay.  Fixes #576
71
72 ##### Version 1.5.3 - 2014/3/4
73
74 * Added access to settings object in callbacks.
75
76 ##### Version 1.5.2 - 2014/2/28
77
78 * Added svg to image types regex.
79
80 ##### Version 1.5.1 - 2014/2/27
81
82 * Fixed regression that broke direct calls to Colorbox, ie. $.colorbox(…)
83
84 ##### Version 1.5.0 - 2014/2/27
85
86 * Changed when the className is applied: immediately on open, but only updated immediately prior to transition.  Fixes #565
87 * Fixed potential style flash if #cboxLoadedContent is given a background.  Fixes #567
88 * Misc. code cleanup
89
90 ##### Version 1.4.37 - 2014/2/11
91
92 * Fixed potential error when resizing.  Fixes #254
93 * Added Microsoft's JPEG XR to photo detection regex.
94
95 ##### Version 1.4.33 - 2013/10/31
96
97 * Fixed an issue where private events propagated to the document in versions of jQuery prior to 1.7.  Fixes #525, Fixes #526
98
99 ##### Version 1.4.32 - 2013/10/16
100
101 * Updated stylesheets to avoid issue with using `div {max-width:100%}` (Fixes #520)
102
103 ##### Version 1.4.31 - 2013/9/25
104
105 * Used setAttribute to set londesc, so that the value is accessible via DOM Node longDesc property #508
106
107 ##### Version 1.4.30 - 2013/9/24
108
109 * Added longdesc and aria-describedby attributes to photos.  Fixes #508
110
111 ##### Version 1.4.29 - 2013/9/10
112
113 * Fixed a slideshow regression from 1.4.27
114 * Fixed a potential issue with the starting size of #cboxLoadedContent
115
116 ##### Version 1.4.28 - 2013/9/4
117
118 * Fixed a potential issue with using the open property with mixed slideshow and non-slideshow groups
119
120 ##### Version 1.4.27 - 2013/7/16
121
122 * Fixed a width calculation issue relating to using margin:auto on #cboxLoadedContent.
123
124 ##### Version 1.4.26 - 2013/6/30
125
126 * Fixed a regression in IE7 and IE8 that was causing an error.
127
128 ##### Version 1.4.25 - 2013/6/28
129
130 * Use an animation speed of zero between same-sized content (fixed).
131 * Removed temporary fix for jQuery UI 1.8
132
133 ##### Version 1.4.24 - 2013/6/24
134
135 * Added closeButton option.  Set to false to remove the close button.
136
137 ##### Version 1.4.23 - 2013/6/23
138
139 * Bugfix loading overlay/graphic append order
140
141 ##### Version 1.4.22 - 2013/6/19
142
143 * Updated manifest files for the jQuery plugin repository and Bower (no changes to plugin)
144
145 ##### Version 1.4.21 - 2013/6/6
146
147 * Replaced new Image() with document.createElement('img') to avoid a potential bug in Chrome 27.
148
149 ##### Version 1.4.20 - 2013/6/5
150
151 * Fixing bug/typo from last update.
152
153 ##### Version 1.4.19 - 2013/6/3
154
155 * Fixed bug where Colorbox was capturing ctrl+click on assigned links on windows browsers with jQuery 1.7+, rather than ignoring.
156
157 ##### Version 1.4.18 - 2013/5/30
158
159 * Fixed a scroll position issue when using $.colorbox.resize()
160
161 ##### Version 1.4.17 - 2013/5/23
162
163 * Possible fix for a Chrome 27 issue (https://github.com/jackmoore/colorbox/pull/438#issuecomment-18334804)
164
165 ##### Version 1.4.16 - 2013/5/20
166
167 * Added trapFocus setting to allow disabling of focus trapping
168
169 ##### Version 1.4.15 - 2013/4/22
170
171 * Added .webp to list of recognized image extensions
172
173 ##### Version 1.4.14 - 2013/4/16
174
175 * Added fadeOut property to control the closing fadeOut speed.
176 * Removed longdesc attribute for now.
177
178 ##### Version 1.4.13 - 2013/4/11
179
180 * Fixed an error involving IE7/IE8 and legacy versions of jQuery
181
182 ##### Version 1.4.12 - 2013/4/9
183
184 * Fixed a potential conflict with Twitter Bootstrap default img styles.
185
186 ##### Version 1.4.11 - 2013/4/9
187
188 * Added `type='button'` to buttons to prevent accidental form submission
189 * Added alt and longdesc attributes to photo content if they are present on the calling element.
190
191 ##### Version 1.4.10 - 2013/4/2
192
193 * Better 'old IE' feature detection that fixes an error with jQuery 2.0.0pre.
194
195 ##### Version 1.4.9 - 2013/4/2
196
197 * Fixes bug introduced in previous version.
198
199 ##### Version 1.4.8 - 2013/4/2
200
201 * Dropped IE6 support.
202 * Fixed other issues with $.colorbox.remove.
203
204 ##### Version 1.4.7 - 2013/4/1
205
206 * Prevented an error if $.colorbox.remove is called during the transition.
207
208 ##### Version 1.4.6 - 2013/3/19
209
210 * Minor change to work around a jQuery 1.4.2 bug for legacy users.
211
212 ##### Version 1.4.5 - 2013/3/10
213
214 * Minor change to apply the close and className properties sooner.
215
216 ##### Version 1.4.4 - 2013/3/10
217
218 * Fixed an issue with percent-based heights in iOS
219 * Fixed an issue with ajax requests being applied at the wrong time.
220
221 ##### Version 1.4.3 - 2013/2/18
222
223 * Made image preloading aware of retina settings.
224
225 ##### Version 1.4.2 - 2013/2/18
226
227 * Removed $.contains for compatibility with jQuery 1.3.x
228
229 ##### Version 1.4.1 - 2013/2/14
230
231 * Ignored left and right arrow keypresses if combined with the alt key.
232
233 ##### Version 1.4.0 - 2013/2/12
234
235 * Better accessibility:
236         * Replaced div controls with buttons
237         * Tabbed navigation confined to modal window
238         * Added aria role
239
240 ##### Version 1.3.34 - 2013/2/4
241
242 * Updated manifest for plugins.jquery.com
243
244 ##### Version 1.3.33 - 2013/2/4
245
246 * Added retina display properties: retinaImage, retinaUrl, retinaSuffix
247 * Fixed iframe scrolling on iOS devices.
248
249 ##### Version 1.3.32 - 2013/1/31
250
251 * Improved internal event subscribing & fixed event bug introduced in v1.3.21
252
253 ##### Version 1.3.31 - 2013/1/28
254
255 * Fixed a size-calculation bug introduced in the previous commit.
256
257 ##### Version 1.3.30 - 2013/1/25
258
259 * Delayed border-width calculations until after opening, to avoid a bug in FF when using Colorbox in a hidden iframe.
260
261 ##### Version 1.3.29 - 2013/1/24
262
263 * Fixes bug with bubbling delegated events, introduced in the previous commit.
264
265 ##### Version 1.3.28 - 2013/1/24
266
267 * Fixed compatibility issue with old versions of jQuery (1.3.2-1.4.2)
268
269 ##### Version 1.3.27 - 2013/1/23
270
271 * Added className property.
272
273 ##### Version 1.3.26 - 2013/1/23
274
275 * Minor bugfix: clear the onload event handler after photo has loaded.
276
277 ##### Version 1.3.25 - 2013/1/23
278
279 * Removed grunt file & added Bower component.json.
280
281 ##### Version 1.3.24 - 2013/1/22
282
283 * Added generated files (jquery.colorbox.js / jquery.colorbox-min.js) back to the repository.
284
285 ##### Version 1.3.23 - 2013/1/18
286
287 * Minor bugfix for calling Colorbox on empty jQuery collections without a selector.
288
289 ##### Version 1.3.22 - 2013/1/17
290
291 * Recommit for plugins.jquery.com
292
293 ##### Version 1.3.21 - 2013/1/15
294 Files Changed: *.js
295
296 * Fixed compatibility issues with jQuery 1.9
297
298 ##### Version 1.3.20 - August 15 2012
299 Files Changed:jquery.colorbox.js
300
301 * Added temporary workaround for jQuery-UI 1.8 bug (http://bugs.jquery.com/ticket/12273)
302 * Added *.jpe extension to the list of image types.
303
304 ##### Version 1.3.19 - December 08 2011
305 Files Changed:jquery.colorbox.js, colorbox.css (all)
306
307 * Fixed bug related to using the 'fixed' property.
308 * Optimized the setup procedure to be more efficient.
309 * Removed $.colorbox.init() as it will no longer be needed (will self-init when called).
310 * Removed use of $.browser.
311
312 ##### Version 1.3.18 - October 07 2011
313 Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all) and example 1's controls.png
314
315 * Fixed a regression where Flash content displayed in Colorbox would be reloaded if the browser window was resized.
316 * Added safety check to make sure that Colorbox's markup is only added to the DOM a single time, even if $.colorbox.init() is called multiple times.  This will allow site owners to manually initialize Colorbox if they need it before the DOM has finished loading.
317 * Updated the example index.html files to be HTML5 compliant.
318 * Changed the slideshow behavior so that it immediately moves to the next slide when the slideshow is started.
319 * Minor regex bugfix to allow automatic detection of image URLs that include fragments.
320
321 ##### Version 1.3.17 - May 11 2011
322 Files Changed:jquery.colorbox.js/jquery.colorbox-min.js
323
324 * Added properties "top", "bottom", "left" and "right" to specify a position relative to the viewport, rather than using the default centering.
325 * Added property "data" to specify GET or POST data when using Ajax.  Colorbox's ajax functionality is handled by jQuery's .load() method, so the data property works the same way as it does with .load().
326 * Added property "fixed" which can provide fixed positioning for Colorbox, rather than absolute positioning.  This will allow Colorbox to remain in a fixed position within the visitors viewport, despite scrolling.  IE6 support for this was not added, it will continue to use the default absolute positioning.
327 * Fixed ClearType problem with IE7.
328 * Minor fixes.
329
330 ##### Version 1.3.16 - March 01 2011
331 Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all) and example 4 background png files
332
333 * Better IE related transparency workarounds.  IE7 and up now uses the same background image sprite as other browsers.
334 * Added error handling for broken image links. A message will be displayed telling the user that the image could not be loaded.
335 * Added new property: 'fastIframe' and set it to true by default.  Setting to fastIframe:false will delay the loading graphic removal and onComplete event until iframe has completely loaded.
336 * Ability to redefine $.colorbox.close (or prev, or next) at any time.
337
338 ##### Version 1.3.15 - October 27 2010
339 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
340
341 * Minor fixes for specific cases.
342
343 ##### Version 1.3.14 - October 27 2010
344 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
345
346 * In IE6, closing an iframe when using HTTPS no longer generates a security warning.
347
348 ##### Version 1.3.13 - October 22 2010
349 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
350
351 * Changed the index.html example files to use YouTube's new embedded link format.
352 * By default, Colorbox returns focus to the element it was launched from once it closes.  This can now be disabled by setting the 'returnFocus' property to false.  Focus was causing problems for some users who had their anchor elements inside animated containers.
353 * Minor bug fix involved in using a combination of slideshow and non-slideshow content.
354
355 ##### Version 1.3.12 - October 20 2010
356 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
357
358 * Minor bug fix involved in preloading images when using a function as a value for the href property.
359
360 ##### Version 1.3.11 - October 19 2010
361 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
362
363 * Fixed the slideshow functionality that broke with 1.3.10
364 * The slideshow now respects the loop property.
365
366 ##### Version 1.3.10 - October 16 2010
367 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
368
369 * Fixed compatibility with jQuery 1.4.3
370 * The 'open' property now accepts a function as a value, like all of the other properties.
371 * Preloading now loads the correct href for images when using a dynamic (function) value for the href property.
372 * Fixed bug in Safari 3 for Win where Colorbox centered on the document, rather than the visitor's viewport.
373 * May have fixed an issue in Opera 10.6+ where Colorbox would rarely/randomly freeze up while switching between photos in a group.
374 * Some functionality better encapsulated & minor performance improvements.
375
376 ##### Version 1.3.9 - July 7 2010
377 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/ all colorbox.css (the core styles)
378
379 * Fixed a problem where iframed youtube videos would cause a security alert in IE.
380 * More code is event driven now, making the source easier to grasp.
381 * Removed some unnecessary style from the core CSS.
382
383 ##### Version 1.3.8 - June 21 2010
384 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
385
386 * Fixed a bug in Chrome where it would sometimes render photos at 0 by 0 width and height (behavior introduced in recent update to Chrome).
387 * Fixed a bug where the onClosed callback would fire twice (only affected 1.3.7).
388 * Fixed a bug in IE7 that existed with some iframed websites that use JS to reposition the viewport caused Colorbox to move out of position.
389 * Abstracted the identifiers (HTML ids & classes, and JS plugin name, method, and events) so that the plugin can be easily rebranded.
390 * Small changes to improve either code readability or compression.
391
392 ##### Version 1.3.7 - June 13 2010
393 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/index.html
394
395 * $.colorbox can now be used for direct calls and accessing public methods. Example: $.colorbox.close();
396 * Resize now accepts 'width', 'innerWidth', 'height' and 'innerHeight'. Example: $.colorbox.resize({width:"100%"})
397 * Added option (loop:false) to disable looping in a group.
398 * Added options (escKey:false, arrowKey:false) to disable esc-key and arrow-key bindings.
399 * Added method for removing Colorbox from a document: $.colorbox.remove();
400 * Fixed a bug where iframed URLs would be truncated if they contained an unencoded apostrophe.
401 * Now uses the exact href specified on an anchor, rather than the version returned by 'this.href'. This was causing "#example" to be normalized to "http://domain/#example" which interfered with how some users were setting up links to inline content.
402 * Changed example documents over to HTML5.
403
404 ##### Version 1.3.6 - Jan 13 2010
405 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
406
407 * Small change to make Colorbox compatible with jQuery 1.4
408
409 ##### Version 1.3.5 - December 15 2009
410 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
411
412 * Fixed a bug introduced in 1.3.4 with IE7's display of example 2 and 3, and auto-width in Opera.
413 * Fixed a bug introduced in 1.3.4 where colorbox could not be launched by triggering an element's click event through JavaScript.
414 * Minor refinements.
415
416 ##### Version 1.3.4 - December 5 2009
417 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
418
419 * Event delegation is now used for elements that Colorbox is assigned to, rather than individual click events.
420 * Additional callbacks have been added to represent other stages of Colorbox's lifecycle. Available callbacks, in order of their execution: onOpen, onLoad, onComplete, onCleanup, onClosed These take place at the same time as the event hooks, but will be better suited than the hooks for targeting specific instances of Colorbox.
421 * Ajax content is now immediately added to the DOM to be more compatible if that content contains script tags.
422 * Focus is now returned to the calling element on closing.
423 * Fixed a bug where maxHeight and maxWidth did not work for non-photo content.
424 * Direct calls no longer need 'open:true', it is assumed.  Example: `$.colorbox({html:'<p>Hi</p>'});`
425
426 ##### Version 1.3.3 - November 7 2009
427 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
428
429 * Changed $.colorbox.element() to return a jQuery object rather the DOM element.
430 * jQuery.colorbox-min.js is compressed with Google's Closure Compiler rather than YUI Compressor.
431
432 ##### Version 1.3.2 - October 27 2009
433 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
434
435 * Added 'innerWidth' and 'innerHeight' options to allow people to easily set the size dimensions for Colorbox, without having to anticipate the size of the borders and buttons.
436 * Renamed 'scrollbars' option to 'scrolling' to be in keeping with the existing HTML attribute. The option now also applies to iframes.
437 * Bug fix: In Safari, positioning occassionally incorrect when using '100%' dimensions.
438 * Bug fix: In IE6, the background overlay is briefly not full size when first viewing.
439 * Bug fix: In Firefox, opening Colorbox causes a split second shift with a small minority of webpage layouts.
440 * Simplified code in a few areas.
441
442 ##### Version 1.3.1 - September 16 2009
443 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/colorbox.css/colorbox-ie.css(removed)
444
445 * Removed the IE-only stylesheets and conditional comments for example styles 1 & 4.  All CSS is handled by a single CSS file for all examples.
446 * Removed user-agent sniffing from the js and replaced it with feature detection.  This will allow correct rendering for visitors masking their agent type.
447
448 ##### Version 1.3.0 - September 15 2009
449 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/colorbox.css
450
451 * Added $.colorbox.resize() method to allow Colorbox to resize it's height if it's contents change.
452 * Added 'scrollbars' option to allow users to turn off scrollbars when using the resize() method.
453 * Renamed the 'resize' option to be less ambiguous.  It's now 'scalePhotos'.
454 * Renamed the 'cbox_close' event to be less ambiguous.  It's now 'cbox_cleanup'.  It is the first thing to happen in the close method while the 'cbox_closed' event is the last to happen.
455 * Fixed a bug with the slideshow mouseover graphics that appeared after Colorbox is opened a 2nd time.
456 * Fixed a bug where ClearType may not work in IE6&7 if using the fade transition.
457 * Minor code optimizations to increase compression.
458
459 ##### Version 1.2.9 - August 7 2009
460 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
461
462 * Minor change to enable use with $.getScript();
463 * Minor change to the timing of the 'cbox_load' event so that it is more useful.
464 * Added a direct link to a YouTube video to the examples.
465
466 ##### Version 1.2.8 - August 5 2009
467 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
468
469 * Fixed a bug with the overlay in IE6
470 * Fixed a bug where left & right keypress events might be prematurely unbound.
471
472 ##### Version 1.2.7 - July 31 2009
473 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js, example stylesheets and background images (core styles have not changed and the updates will not affect existing user themes / old example themes)
474
475 * Code cleanup and reduction, better organization and documentation in the full source.
476 * Added ability to use functions in place of static values for Colorbox's options (thanks Ken!).
477 * Added an option for straight HTML.  Example: `$.colorbox({html:'<p>Howdy</p>', open:true})`
478 * Added an event for the beginning of the closing process.  This is in addition to the event that already existed for when Colorbox had completely closed.  'cbox_close' and 'cbox_closed' respectively.
479 * Fixed a minor bug in IE6 that would cause a brief content shift in the parent document when opening Colorbox.
480 * Fixed a minor bug in IE6 that would reveal select elements that had a hidden visibility after closing Colorbox.
481 * The 'esc' key is unbound now when Colorbox is not open, to avoid any potential conflicts.
482 * Used background sprites for examples 1 & 4.  Put IE-only (non-sprite) background images in a separate folder.
483 * Example themes 1, 3, & 4 received slight visual tweaks.
484 * Optimized pngs for smaller file size.
485 * Added slices, grid, and correct sizing to the Adobe Illustrator file, all theme files are now export ready!
486
487 ##### Version 1.2.6 - July 15 2009
488 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
489
490 * Fixed a bug with fixed width/height images in Opera 9.64.
491 * Fixed a bug with trying to set a value for rel during a direct call to Colorbox. Example: `$.colorbox({rel:'foo', open:true});`
492 * Changed how href/rel/title settings are determined to avoid users having to manually update Colorbox settings if they use JavaScript to update any of those attributes, after Colorbox has been defined.
493 * Fixed a FF3 bug where the back button was disabled after closing an iframe.
494
495 ##### Version 1.2.5 - June 23 2009
496 Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
497
498 * Changed the point at which iframe srcs are set (to eliminate the need to refresh the iframe once it has been added to the DOM).
499 * Removed unnecessary return values for a very slight code reduction.
500
501 ##### Version 1.2.4 - June 9 2009
502 Files Changed: jquery.colorbox.js, jquery.colorbox-min.js
503
504 * Fixed an issue where Colorbox may not close completely if it is closed during a transition animation.
505 * Minor code reduction.
506
507 ##### Version 1.2.3 - June 4 2009
508 * Fixed a png transparency stacking issue in IE.
509 * More accurate Ajax auto-sizing if the user was depending on the #cboxLoadedContent ID for CSS styling.
510 * Added a public function for returning the current html element that Colorbox is associated with. Example use: var that = $.colorbox.element();
511 * Added bicubic scaling for resized images in the original IE7.
512 * Removed the IE6 stylesheet and png files from Example 3.  It now uses the same png file for the controls that the rest of the browsers use (an alpha transparency PNG8).  This example now only has 2 graphics files and 1 stylesheet.
513
514 ##### Version 1.2.2 - May 28 2009
515 * Fixed an issue with the 'resize' option.
516
517 ##### Version 1.2.1 - May 28 2009
518 * Note: If you are upgrading, update your jquery.colorbox.js and colorbox.css files.
519 * Added photo resizing.
520 * Added a maximum width and maximum height. Example: {height:800, maxHeight:'100%'}, would allow the box to be a maximum potential height of 800px, instead of a fixed height of 800px.  With maxHeight of 100% the height of Colorbox cannot exceed the height of the browser window.
521 * Added 'rel' setting to add the ability to set an alternative rel for any Colorbox call.  This allows the user to group any combination of elements together for a gallery, or to override an existing rel. attribute so those element are not grouped together, without having to alter their rel in the HTML.
522 * Added a 'photo' setting to force Colorbox to display a link as a photo.  Use this when automatic photo detection fails (such as using a url like 'photo.php' instead of 'photo.jpg', 'photo.jpg#1', or 'photo.jpg?pic=1')
523 * Removed the need to ever create disposable elements to call colorbox on.  Colorbox can now be called directly, without being associated with any existing element, by using the following format:
524   `$.colorbox({open:true, href:'yourLink.xxx'});`
525 * Colorbox settings are now persistent and unique for each element.  This allows for extremely flexible options for individual elements.  You could use this to create a gallery in which each page in the gallery has different settings.  One could be a photo with a fade transition, next could be an inline element with an elastic transition with a set width and height, etc.
526 * For user callbacks, 'this' now refers to the element colorbox was opened from.
527 * Fixed a minor grouping issue with IE6, when transition type is set to 'none'.
528 * Added an Adobe Illustrator file that contains the borders and buttons used in the various examples.
529
530 ##### Version 1.2 - May 13 2009
531 * Added a slideshow feature.
532 * Added re-positioning on browser resize.  If the browser is resized, Colorbox will recenter itself onscreen.
533 * Added hooks for key events: cbox_open, cbox_load, cbox_complete, cbox_closed.
534 * Fixed an IE transparency-stacking problem, where transparent PNGs would show through to the background overlay.
535 * Fixed an IE iframe issue where the ifame might shift up and to the left under certain circumstances.
536 * Fixed an IE6 bug where the loading overlay was not at full height.
537 * Removed the delay in switching between same-sized gallery content when using transitions.
538 * Changed how iframes are loaded to make it more compatible with iframed pages that use DOM dependent JavaScript.
539 * Changed how the JS is structured to be better organized and increase compression.  Increased documentation.
540 * Changed CSS :hover states to a .hover class.  This sidesteps a minor IE8 bug with css hover states and allows easier access to hover state user styles from the JavaScript.
541 * Changed: elements added to the DOM have new ID's.  The naming is more consistent and less likely to cause conflicts with existing website stylesheets.  All stylesheets have been updated.
542 * Changed the behavior for prev/next links so that Colorbox does not get hung up on broken links.  A visitor can now skip through broken or long-loading links by clicking prev/next buttons.
543 * Changed the naming of variables in the parameter map to be more concise and intuitive.
544 * Removed colorbox.css.  Combined the colorbox.css styles with jquery.colorbox.js: the css file was not large enough to warrant being a separate file.
545
546 ##### Version 1.1.6 - April 28 2009
547 * Prevented the default action of the next & previous anchors and the left and right keys for gallery mode.
548 * Fixed a bug where the title element was being added back to the DOM when closing Colorbox while using inline content.
549 * Fixed a bug where IE7 would crash for example 2.
550 * Smaller filesize: removed a small amount of unused code and rewrote the HTML injection with less syntax.
551 * Added a public method for closing Colorbox: $.colorbox.close().  This will allow iframe users to add an event to close Colorbox without having to create an additional function.
552
553 ##### Version 1.1.5 - April 11 2009
554 * Fixed minor issues with exiting Colorbox.
555  
556 ##### Version 1.1.4 - April 08 2009
557 * Fixed a bug in the fade transition where Colorbox not close completely if instructed to close during the fade-in portion of the transition.
558
559 ##### Version 1.1.3 - April 06 2009
560 * Fixed an IE6&7 issue with using Colorbox to display animated GIFs.
561
562 ##### Version 1.1.2 - April 05 2009
563 * Added ability to change content when Colorbox is already open.
564 * Added vertical photo centering now works for all browsers (this feature previously excluded IE6&7).
565 * Added namespacing to the esc-key keydown event for people who want to disable it: "keydown.colorClose"
566 * Added 'title' setting to add the ability to set an alternative title for any Colorbox call.
567 * Fixed rollover navigation issue with IE8. (Added JS-based rollover state due to a browser-bug.)
568 * Fixed an overflow issue for when the fixed width/height is smaller than the size of a photo.
569 * Fixed a bug in the fade transition where the border would still come up if Colorbox was closed mid-transition.
570 * Switch from JSMin to Yui Compressor for minification.  Minified code now under 7KB.
571
572 ##### Version 1.1.1 - March 31 2009
573 * More robust image detection regex.  Now detects image file types with url fragments and/or query strings.
574 * Added 'nofollow' exception to rel grouping.
575 * Changed how images are loaded into the DOM to prevent premature size calculation by Colorbox.
576 * Added timestamp to iframe name to prevent caching - this was a problem in some browsers if the user had multiple iframes and the visitor left the page and came back, or if they refreshed the page.
577
578 ##### Version 1.1.0 - March 21 2009
579 * Animation is now much smoother and less resource intensive.
580 * Added support for % sizing.
581 * Callback option added.
582 * Inline content now preserves JavaScript events, and changes made while Colorbox is open are also preserved.
583 * Added 'href' setting to add the ability to set an alternative href for any anchor, or to assign the Colorbox event to non-anchors. 
584   Example: $('button').colorbox({'href':'process.php'})
585   Example: $('a[href='http://msn.com']).colorbox({'href':'http://google.com', iframe:true});
586 * Photos are now horizontally centered if they are smaller than the lightbox size.  Also vertically centered for browsers newer than IE7.
587 * Buttons in the examples are now included in the 'protected zone'.  The lightbox will never expand it's borders or buttons beyond an accessible area of the screen.
588 * Keypress events don't queue up by holding down the arrow keys.
589 * Added option to close Colorbox by clicking on the background overlay.
590 * Added 'none' transition setting.
591 * Changed 'contentIframe' and 'contentInline' to 'inline' and 'iframe'.  Removed 'contentAjax' because it  is automatically assumed for non-image file types.
592 * Changed 'contentWidth' and 'contentHeight' to 'fixedWidth' and 'fixedHeight'.  These sizes now reflect  the total size of the lightbox, not just the inner content.  This is so users can accurately anticipate  % sizes without fear of creating scrollbars.
593 * Clicking on a photo will now switch to the next photo in a set.
594 * Loading.gif is more stable in it's position.
595 * Added a minified version.
596 * Code passes JSLint.
597
598 ##### Version 1.0.5 - March 11 2009
599 * Redo: Fixed a bug where IE would cut off the bottom portion of a photo, if the photo was larger than the document dimensions.
600
601 ##### Version 1.0.4 - March 10 2009
602 * Added an option to allow users to automatically open the lightbox. Example usage: $(".colorbox").colorbox({open:true});
603 * Fixed a bug where IE would cut off the bottom portion of a photo, if the photo was larger than the document dimensions.
604
605 ##### Version 1.0.3 - March 09 2009
606 * Fixed vertical centering for Safari 3.0.x.
607
608 ##### Version 1.0.2 - March 06 2009
609 * Corrected a typo.
610 * Changed the content-type check so that it does not assume all links to photos should actually display photos. This allows for Ajax/inline/and iframe calls on anchors linking to picture file types.
611
612 ##### Version 1.0.1 - March 05 2009
613 * Fixed keydown events (esc, left arrow, right arrow) for Webkit browsers.
614
615 ##### Version 1.0 - March 03 2009
616 * First release