Merge pull request #2226 from rabuzarus/3012_colorbox
colorbox: update library to 1.6.3
|
@ -1,67 +1,307 @@
|
|||
## About ColorBox:
|
||||
## About Colorbox:
|
||||
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).
|
||||
|
||||
## Translations Welcome
|
||||
Send me your language configuration files. See /i18n/jquery.colorbox-de.js as an example.
|
||||
|
||||
## Changelog:
|
||||
|
||||
### Version 1.3.32 - 2013/1/31
|
||||
##### Version 1.6.3 - 2015/07/27
|
||||
|
||||
* Fixed regression that caused error in IE8 when the calculated initial size was negative. Fixes #741
|
||||
|
||||
##### Version 1.6.2 - 2015/07/13
|
||||
|
||||
* Fixed iframe attribute name (allowFullScreen to allowFullscreen). Fixes #737
|
||||
|
||||
##### Version 1.6.1 - 2015/05/14
|
||||
|
||||
* Replaced the inline onclick handler for cboxPhoto with a namespaced event for easier unbinding. Fixes #719.
|
||||
|
||||
##### Version 1.6.0 - 2015/03/03
|
||||
|
||||
* Added two new properties that expose how `<img>` and `<iframe>` elements are created, to give users direct control over those elements. Fixes #700.
|
||||
|
||||
##### Version 1.5.15 - 2015/02/25
|
||||
|
||||
* Adding to NPM, merged white-space cleanup & new language file.
|
||||
|
||||
##### Version 1.5.14 - 2014/9/9
|
||||
|
||||
* When opening, append Colorbox to the DOM if it was detached for whatever reason. Fixes #645.
|
||||
|
||||
##### Version 1.5.13 - 2014/8/4
|
||||
|
||||
* Fixed regression introduced with v1.5.12 with legacy versions of jQuery (1.3x-1.6x). References #628.
|
||||
|
||||
##### Version 1.5.12 - 2014/7/31
|
||||
|
||||
* Allowed setting the overlay opacity via CSS, by setting Colorbox's opacity property to false. References #628.
|
||||
|
||||
##### Version 1.5.11 - 2014/7/31
|
||||
|
||||
* Fixed bug where setting opacity to 0 was ignored. Fixes #628.
|
||||
|
||||
##### Version 1.5.10 - 2014/6/26
|
||||
|
||||
* Minor misc. tweaks (merging pull requests #611, #612, #615, #619, #620).
|
||||
|
||||
##### Version 1.5.9 - 2014/4/25
|
||||
|
||||
* Fixed inline content bug when using child selectors. Fixes #599
|
||||
|
||||
##### Version 1.5.8 - 2014/4/15
|
||||
|
||||
* Fixed accidental leak of global variable. References #591
|
||||
* Enabled strict mode. Fixes #597
|
||||
|
||||
##### Version 1.5.7 - 2014/4/15
|
||||
|
||||
* Fix potential error when calling Colorbox directly. References #591
|
||||
* Potentially worked around browser limitation of reporting that an image height and width is 0 immediately after onload. Fixes #535
|
||||
|
||||
##### Version 1.5.6 - 2014/4/4
|
||||
|
||||
* Applied maxWidth and maxHeight to the initialWidth and initialHeight. Fixes #391
|
||||
|
||||
##### Version 1.5.5 - 2014/3/13
|
||||
|
||||
* Allow setting the overlay opacity through CSS, rather than having to use Colorbox's opacity property. Fixes #580
|
||||
|
||||
##### Version 1.5.4 - 2014/3/7
|
||||
|
||||
* Fixed potential issue where IE9+ wouldn't close the modal when clicking on the overlay. Fixes #576
|
||||
|
||||
##### Version 1.5.3 - 2014/3/4
|
||||
|
||||
* Added access to settings object in callbacks.
|
||||
|
||||
##### Version 1.5.2 - 2014/2/28
|
||||
|
||||
* Added svg to image types regex.
|
||||
|
||||
##### Version 1.5.1 - 2014/2/27
|
||||
|
||||
* Fixed regression that broke direct calls to Colorbox, ie. $.colorbox(…)
|
||||
|
||||
##### Version 1.5.0 - 2014/2/27
|
||||
|
||||
* Changed when the className is applied: immediately on open, but only updated immediately prior to transition. Fixes #565
|
||||
* Fixed potential style flash if #cboxLoadedContent is given a background. Fixes #567
|
||||
* Misc. code cleanup
|
||||
|
||||
##### Version 1.4.37 - 2014/2/11
|
||||
|
||||
* Fixed potential error when resizing. Fixes #254
|
||||
* Added Microsoft's JPEG XR to photo detection regex.
|
||||
|
||||
##### Version 1.4.33 - 2013/10/31
|
||||
|
||||
* Fixed an issue where private events propagated to the document in versions of jQuery prior to 1.7. Fixes #525, Fixes #526
|
||||
|
||||
##### Version 1.4.32 - 2013/10/16
|
||||
|
||||
* Updated stylesheets to avoid issue with using `div {max-width:100%}` (Fixes #520)
|
||||
|
||||
##### Version 1.4.31 - 2013/9/25
|
||||
|
||||
* Used setAttribute to set londesc, so that the value is accessible via DOM Node longDesc property #508
|
||||
|
||||
##### Version 1.4.30 - 2013/9/24
|
||||
|
||||
* Added longdesc and aria-describedby attributes to photos. Fixes #508
|
||||
|
||||
##### Version 1.4.29 - 2013/9/10
|
||||
|
||||
* Fixed a slideshow regression from 1.4.27
|
||||
* Fixed a potential issue with the starting size of #cboxLoadedContent
|
||||
|
||||
##### Version 1.4.28 - 2013/9/4
|
||||
|
||||
* Fixed a potential issue with using the open property with mixed slideshow and non-slideshow groups
|
||||
|
||||
##### Version 1.4.27 - 2013/7/16
|
||||
|
||||
* Fixed a width calculation issue relating to using margin:auto on #cboxLoadedContent.
|
||||
|
||||
##### Version 1.4.26 - 2013/6/30
|
||||
|
||||
* Fixed a regression in IE7 and IE8 that was causing an error.
|
||||
|
||||
##### Version 1.4.25 - 2013/6/28
|
||||
|
||||
* Use an animation speed of zero between same-sized content (fixed).
|
||||
* Removed temporary fix for jQuery UI 1.8
|
||||
|
||||
##### Version 1.4.24 - 2013/6/24
|
||||
|
||||
* Added closeButton option. Set to false to remove the close button.
|
||||
|
||||
##### Version 1.4.23 - 2013/6/23
|
||||
|
||||
* Bugfix loading overlay/graphic append order
|
||||
|
||||
##### Version 1.4.22 - 2013/6/19
|
||||
|
||||
* Updated manifest files for the jQuery plugin repository and Bower (no changes to plugin)
|
||||
|
||||
##### Version 1.4.21 - 2013/6/6
|
||||
|
||||
* Replaced new Image() with document.createElement('img') to avoid a potential bug in Chrome 27.
|
||||
|
||||
##### Version 1.4.20 - 2013/6/5
|
||||
|
||||
* Fixing bug/typo from last update.
|
||||
|
||||
##### Version 1.4.19 - 2013/6/3
|
||||
|
||||
* Fixed bug where Colorbox was capturing ctrl+click on assigned links on windows browsers with jQuery 1.7+, rather than ignoring.
|
||||
|
||||
##### Version 1.4.18 - 2013/5/30
|
||||
|
||||
* Fixed a scroll position issue when using $.colorbox.resize()
|
||||
|
||||
##### Version 1.4.17 - 2013/5/23
|
||||
|
||||
* Possible fix for a Chrome 27 issue (https://github.com/jackmoore/colorbox/pull/438#issuecomment-18334804)
|
||||
|
||||
##### Version 1.4.16 - 2013/5/20
|
||||
|
||||
* Added trapFocus setting to allow disabling of focus trapping
|
||||
|
||||
##### Version 1.4.15 - 2013/4/22
|
||||
|
||||
* Added .webp to list of recognized image extensions
|
||||
|
||||
##### Version 1.4.14 - 2013/4/16
|
||||
|
||||
* Added fadeOut property to control the closing fadeOut speed.
|
||||
* Removed longdesc attribute for now.
|
||||
|
||||
##### Version 1.4.13 - 2013/4/11
|
||||
|
||||
* Fixed an error involving IE7/IE8 and legacy versions of jQuery
|
||||
|
||||
##### Version 1.4.12 - 2013/4/9
|
||||
|
||||
* Fixed a potential conflict with Twitter Bootstrap default img styles.
|
||||
|
||||
##### Version 1.4.11 - 2013/4/9
|
||||
|
||||
* Added `type='button'` to buttons to prevent accidental form submission
|
||||
* Added alt and longdesc attributes to photo content if they are present on the calling element.
|
||||
|
||||
##### Version 1.4.10 - 2013/4/2
|
||||
|
||||
* Better 'old IE' feature detection that fixes an error with jQuery 2.0.0pre.
|
||||
|
||||
##### Version 1.4.9 - 2013/4/2
|
||||
|
||||
* Fixes bug introduced in previous version.
|
||||
|
||||
##### Version 1.4.8 - 2013/4/2
|
||||
|
||||
* Dropped IE6 support.
|
||||
* Fixed other issues with $.colorbox.remove.
|
||||
|
||||
##### Version 1.4.7 - 2013/4/1
|
||||
|
||||
* Prevented an error if $.colorbox.remove is called during the transition.
|
||||
|
||||
##### Version 1.4.6 - 2013/3/19
|
||||
|
||||
* Minor change to work around a jQuery 1.4.2 bug for legacy users.
|
||||
|
||||
##### Version 1.4.5 - 2013/3/10
|
||||
|
||||
* Minor change to apply the close and className properties sooner.
|
||||
|
||||
##### Version 1.4.4 - 2013/3/10
|
||||
|
||||
* Fixed an issue with percent-based heights in iOS
|
||||
* Fixed an issue with ajax requests being applied at the wrong time.
|
||||
|
||||
##### Version 1.4.3 - 2013/2/18
|
||||
|
||||
* Made image preloading aware of retina settings.
|
||||
|
||||
##### Version 1.4.2 - 2013/2/18
|
||||
|
||||
* Removed $.contains for compatibility with jQuery 1.3.x
|
||||
|
||||
##### Version 1.4.1 - 2013/2/14
|
||||
|
||||
* Ignored left and right arrow keypresses if combined with the alt key.
|
||||
|
||||
##### Version 1.4.0 - 2013/2/12
|
||||
|
||||
* Better accessibility:
|
||||
* Replaced div controls with buttons
|
||||
* Tabbed navigation confined to modal window
|
||||
* Added aria role
|
||||
|
||||
##### Version 1.3.34 - 2013/2/4
|
||||
|
||||
* Updated manifest for plugins.jquery.com
|
||||
|
||||
##### Version 1.3.33 - 2013/2/4
|
||||
|
||||
* Added retina display properties: retinaImage, retinaUrl, retinaSuffix
|
||||
* Fixed iframe scrolling on iOS devices.
|
||||
|
||||
##### Version 1.3.32 - 2013/1/31
|
||||
|
||||
* Improved internal event subscribing & fixed event bug introduced in v1.3.21
|
||||
|
||||
### Version 1.3.31 - 2013/1/28
|
||||
##### Version 1.3.31 - 2013/1/28
|
||||
|
||||
* Fixed a size-calculation bug introduced in the previous commit.
|
||||
|
||||
### Version 1.3.30 - 2013/1/25
|
||||
##### Version 1.3.30 - 2013/1/25
|
||||
|
||||
* Delayed border-width calculations until after opening, to avoid a bug in FF when using ColorBox in a hidden iframe.
|
||||
* Delayed border-width calculations until after opening, to avoid a bug in FF when using Colorbox in a hidden iframe.
|
||||
|
||||
### Version 1.3.29 - 2013/1/24
|
||||
##### Version 1.3.29 - 2013/1/24
|
||||
|
||||
* Fixes bug with bubbling delegated events, introduced in the previous commit.
|
||||
|
||||
### Version 1.3.28 - 2013/1/24
|
||||
##### Version 1.3.28 - 2013/1/24
|
||||
|
||||
* Fixed compatibility issue with old versions of jQuery (1.3.2-1.4.2)
|
||||
|
||||
### Version 1.3.27 - 2013/1/23
|
||||
##### Version 1.3.27 - 2013/1/23
|
||||
|
||||
* Added className property.
|
||||
|
||||
### Version 1.3.26 - 2013/1/23
|
||||
##### Version 1.3.26 - 2013/1/23
|
||||
|
||||
* Minor bugfix: clear the onload event handler after photo has loaded.
|
||||
|
||||
### Version 1.3.25 - 2013/1/23
|
||||
##### Version 1.3.25 - 2013/1/23
|
||||
|
||||
* Removed grunt file & added Bower component.json.
|
||||
|
||||
### Version 1.3.24 - 2013/1/22
|
||||
##### Version 1.3.24 - 2013/1/22
|
||||
|
||||
* Added generated files (jquery.colorbox.js / jquery.colorbox-min.js) back to the repository.
|
||||
|
||||
### Version 1.3.23 - 2013/1/18
|
||||
##### Version 1.3.23 - 2013/1/18
|
||||
|
||||
* Minor bugfix for calling ColorBox on empty jQuery collections without a selector.
|
||||
* Minor bugfix for calling Colorbox on empty jQuery collections without a selector.
|
||||
|
||||
### Version 1.3.22 - 2013/1/17
|
||||
##### Version 1.3.22 - 2013/1/17
|
||||
|
||||
* Recommit for plugins.jquery.com
|
||||
|
||||
### Version 1.3.21 - 2013/1/15
|
||||
##### Version 1.3.21 - 2013/1/15
|
||||
Files Changed: *.js
|
||||
|
||||
* Fixed compatability issues with jQuery 1.9
|
||||
* Fixed compatibility issues with jQuery 1.9
|
||||
|
||||
### Version 1.3.20 - August 15 2012
|
||||
##### Version 1.3.20 - August 15 2012
|
||||
Files Changed:jquery.colorbox.js
|
||||
|
||||
* Added temporary workaround for jQuery-UI 1.8 bug (http://bugs.jquery.com/ticket/12273)
|
||||
* Added *.jpe extension to the list of image types.
|
||||
|
||||
### Version 1.3.19 - December 08 2011
|
||||
##### Version 1.3.19 - December 08 2011
|
||||
Files Changed:jquery.colorbox.js, colorbox.css (all)
|
||||
|
||||
* Fixed bug related to using the 'fixed' property.
|
||||
|
@ -69,25 +309,25 @@ Files Changed:jquery.colorbox.js, colorbox.css (all)
|
|||
* Removed $.colorbox.init() as it will no longer be needed (will self-init when called).
|
||||
* Removed use of $.browser.
|
||||
|
||||
### Version 1.3.18 - October 07 2011
|
||||
##### Version 1.3.18 - October 07 2011
|
||||
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all) and example 1's controls.png
|
||||
|
||||
* Fixed a regression where Flash content displayed in ColorBox would be reloaded if the browser window was resized.
|
||||
* 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.
|
||||
* Fixed a regression where Flash content displayed in Colorbox would be reloaded if the browser window was resized.
|
||||
* 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.
|
||||
* Updated the example index.html files to be HTML5 compliant.
|
||||
* Changed the slideshow behavior so that it immediately moves to the next slide when the slideshow is started.
|
||||
* Minor regex bugfix to allow automatic detection of image URLs that include fragments.
|
||||
|
||||
### Version 1.3.17 - May 11 2011
|
||||
##### Version 1.3.17 - May 11 2011
|
||||
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Added properties "top", "bottom", "left" and "right" to specify a position relative to the viewport, rather than using the default centering.
|
||||
* 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().
|
||||
* 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.
|
||||
* 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().
|
||||
* 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.
|
||||
* Fixed ClearType problem with IE7.
|
||||
* Minor fixes.
|
||||
|
||||
### Version 1.3.16 - March 01 2011
|
||||
##### Version 1.3.16 - March 01 2011
|
||||
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all) and example 4 background png files
|
||||
|
||||
* Better IE related transparency workarounds. IE7 and up now uses the same background image sprite as other browsers.
|
||||
|
@ -95,201 +335,201 @@ Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all) and
|
|||
* 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.
|
||||
* Ability to redefine $.colorbox.close (or prev, or next) at any time.
|
||||
|
||||
### Version 1.3.15 - October 27 2010
|
||||
##### Version 1.3.15 - October 27 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Minor fixes for specific cases.
|
||||
|
||||
### Version 1.3.14 - October 27 2010
|
||||
##### Version 1.3.14 - October 27 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* In IE6, closing an iframe when using HTTPS no longer generates a security warning.
|
||||
|
||||
### Version 1.3.13 - October 22 2010
|
||||
##### Version 1.3.13 - October 22 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Changed the index.html example files to use YouTube's new embedded link format.
|
||||
* 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.
|
||||
* 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.
|
||||
* Minor bug fix involved in using a combination of slideshow and non-slideshow content.
|
||||
|
||||
### Version 1.3.12 - October 20 2010
|
||||
##### Version 1.3.12 - October 20 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Minor bug fix involved in preloading images when using a function as a value for the href property.
|
||||
|
||||
### Version 1.3.11 - October 19 2010
|
||||
##### Version 1.3.11 - October 19 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed the slideshow functionality that broke with 1.3.10
|
||||
* The slideshow now respects the loop property.
|
||||
|
||||
### Version 1.3.10 - October 16 2010
|
||||
##### Version 1.3.10 - October 16 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed compatibility with jQuery 1.4.3
|
||||
* The 'open' property now accepts a function as a value, like all of the other properties.
|
||||
* Preloading now loads the correct href for images when using a dynamic (function) value for the href property.
|
||||
* Fixed bug in Safari 3 for Win where ColorBox centered on the document, rather than the visitor's viewport.
|
||||
* May have fixed an issue in Opera 10.6+ where ColorBox would rarely/randomly freeze up while switching between photos in a group.
|
||||
* Fixed bug in Safari 3 for Win where Colorbox centered on the document, rather than the visitor's viewport.
|
||||
* May have fixed an issue in Opera 10.6+ where Colorbox would rarely/randomly freeze up while switching between photos in a group.
|
||||
* Some functionality better encapsulated & minor performance improvements.
|
||||
|
||||
### Version 1.3.9 - July 7 2010
|
||||
##### Version 1.3.9 - July 7 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/ all colorbox.css (the core styles)
|
||||
|
||||
* Fixed a problem where iframed youtube videos would cause a security alert in IE.
|
||||
* More code is event driven now, making the source easier to grasp.
|
||||
* Removed some unnecessary style from the core CSS.
|
||||
|
||||
### Version 1.3.8 - June 21 2010
|
||||
##### Version 1.3.8 - June 21 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* 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).
|
||||
* Fixed a bug where the onClosed callback would fire twice (only affected 1.3.7).
|
||||
* 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.
|
||||
* 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.
|
||||
* Abstracted the identifiers (HTML ids & classes, and JS plugin name, method, and events) so that the plugin can be easily rebranded.
|
||||
* Small changes to improve either code readability or compression.
|
||||
|
||||
### Version 1.3.7 - June 13 2010
|
||||
##### Version 1.3.7 - June 13 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/index.html
|
||||
|
||||
* $.colorbox can now be used for direct calls and accessing public methods. Example: $.colorbox.close();
|
||||
* Resize now accepts 'width', 'innerWidth', 'height' and 'innerHeight'. Example: $.colorbox.resize({width:"100%"})
|
||||
* Added option (loop:false) to disable looping in a group.
|
||||
* Added options (escKey:false, arrowKey:false) to disable esc-key and arrow-key bindings.
|
||||
* Added method for removing ColorBox from a document: $.colorbox.remove();
|
||||
* Added method for removing Colorbox from a document: $.colorbox.remove();
|
||||
* Fixed a bug where iframed URLs would be truncated if they contained an unencoded apostrophe.
|
||||
* 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.
|
||||
* Changed example documents over to HTML5.
|
||||
|
||||
### Version 1.3.6 - Jan 13 2010
|
||||
##### Version 1.3.6 - Jan 13 2010
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Small change to make ColorBox compatible with jQuery 1.4
|
||||
* Small change to make Colorbox compatible with jQuery 1.4
|
||||
|
||||
### Version 1.3.5 - December 15 2009
|
||||
##### Version 1.3.5 - December 15 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed a bug introduced in 1.3.4 with IE7's display of example 2 and 3, and auto-width in Opera.
|
||||
* Fixed a bug introduced in 1.3.4 where colorbox could not be launched by triggering an element's click event through JavaScript.
|
||||
* Minor refinements.
|
||||
|
||||
### Version 1.3.4 - December 5 2009
|
||||
##### Version 1.3.4 - December 5 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Event delegation is now used for elements that ColorBox is assigned to, rather than individual click events.
|
||||
* 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.
|
||||
* Event delegation is now used for elements that Colorbox is assigned to, rather than individual click events.
|
||||
* 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.
|
||||
* Ajax content is now immediately added to the DOM to be more compatible if that content contains script tags.
|
||||
* Focus is now returned to the calling element on closing.
|
||||
* Fixed a bug where maxHeight and maxWidth did not work for non-photo content.
|
||||
* Direct calls no longer need 'open:true', it is assumed. Example: `$.fn.colorbox({html:'<p>Hi</p>'});`
|
||||
* Direct calls no longer need 'open:true', it is assumed. Example: `$.colorbox({html:'<p>Hi</p>'});`
|
||||
|
||||
### Version 1.3.3 - November 7 2009
|
||||
##### Version 1.3.3 - November 7 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Changed $.fn.colorbox.element() to return a jQuery object rather the DOM element.
|
||||
* Changed $.colorbox.element() to return a jQuery object rather the DOM element.
|
||||
* jQuery.colorbox-min.js is compressed with Google's Closure Compiler rather than YUI Compressor.
|
||||
|
||||
### Version 1.3.2 - October 27 2009
|
||||
##### Version 1.3.2 - October 27 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* 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.
|
||||
* 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.
|
||||
* Renamed 'scrollbars' option to 'scrolling' to be in keeping with the existing HTML attribute. The option now also applies to iframes.
|
||||
* Bug fix: In Safari, positioning occassionally incorrect when using '100%' dimensions.
|
||||
* Bug fix: In IE6, the background overlay is briefly not full size when first viewing.
|
||||
* Bug fix: In Firefox, opening ColorBox causes a split second shift with a small minority of webpage layouts.
|
||||
* Bug fix: In Firefox, opening Colorbox causes a split second shift with a small minority of webpage layouts.
|
||||
* Simplified code in a few areas.
|
||||
|
||||
### Version 1.3.1 - September 16 2009
|
||||
##### Version 1.3.1 - September 16 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/colorbox.css/colorbox-ie.css(removed)
|
||||
|
||||
* 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.
|
||||
* Removed user-agent sniffing from the js and replaced it with feature detection. This will allow correct rendering for visitors masking their agent type.
|
||||
|
||||
### Version 1.3.0 - September 15 2009
|
||||
##### Version 1.3.0 - September 15 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/colorbox.css
|
||||
|
||||
* Added $.fn.colorbox.resize() method to allow ColorBox to resize it's height if it's contents change.
|
||||
* Added $.colorbox.resize() method to allow Colorbox to resize it's height if it's contents change.
|
||||
* Added 'scrollbars' option to allow users to turn off scrollbars when using the resize() method.
|
||||
* Renamed the 'resize' option to be less ambiguous. It's now 'scalePhotos'.
|
||||
* 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.
|
||||
* Fixed a bug with the slideshow mouseover graphics that appeared after ColorBox is opened a 2nd time.
|
||||
* Fixed a bug with the slideshow mouseover graphics that appeared after Colorbox is opened a 2nd time.
|
||||
* Fixed a bug where ClearType may not work in IE6&7 if using the fade transition.
|
||||
* Minor code optimizations to increase compression.
|
||||
|
||||
### Version 1.2.9 - August 7 2009
|
||||
##### Version 1.2.9 - August 7 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Minor change to enable use with $.getScript();
|
||||
* Minor change to the timing of the 'cbox_load' event so that it is more useful.
|
||||
* Added a direct link to a YouTube video to the examples.
|
||||
|
||||
### Version 1.2.8 - August 5 2009
|
||||
##### Version 1.2.8 - August 5 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed a bug with the overlay in IE6
|
||||
* Fixed a bug where left & right keypress events might be prematurely unbound.
|
||||
|
||||
### Version 1.2.7 - July 31 2009
|
||||
##### Version 1.2.7 - July 31 2009
|
||||
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)
|
||||
|
||||
* Code cleanup and reduction, better organization and documentation in the full source.
|
||||
* Added ability to use functions in place of static values for ColorBox's options (thanks Ken!).
|
||||
* Added an option for straight HTML. Example: `$.fn.colorbox({html:'<p>Howdy</p>', open:true})`
|
||||
* 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.
|
||||
* Fixed a minor bug in IE6 that would cause a brief content shift in the parent document when opening ColorBox.
|
||||
* Fixed a minor bug in IE6 that would reveal select elements that had a hidden visibility after closing ColorBox.
|
||||
* The 'esc' key is unbound now when ColorBox is not open, to avoid any potential conflicts.
|
||||
* Added ability to use functions in place of static values for Colorbox's options (thanks Ken!).
|
||||
* Added an option for straight HTML. Example: `$.colorbox({html:'<p>Howdy</p>', open:true})`
|
||||
* 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.
|
||||
* Fixed a minor bug in IE6 that would cause a brief content shift in the parent document when opening Colorbox.
|
||||
* Fixed a minor bug in IE6 that would reveal select elements that had a hidden visibility after closing Colorbox.
|
||||
* The 'esc' key is unbound now when Colorbox is not open, to avoid any potential conflicts.
|
||||
* Used background sprites for examples 1 & 4. Put IE-only (non-sprite) background images in a separate folder.
|
||||
* Example themes 1, 3, & 4 received slight visual tweaks.
|
||||
* Optimized pngs for smaller file size.
|
||||
* Added slices, grid, and correct sizing to the Adobe Illustrator file, all theme files are now export ready!
|
||||
|
||||
### Version 1.2.6 - July 15 2009
|
||||
##### Version 1.2.6 - July 15 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* Fixed a bug with fixed width/height images in Opera 9.64.
|
||||
* Fixed a bug with trying to set a value for rel during a direct call to ColorBox. Example: `$.fn.colorbox({rel:'foo', open:true});`
|
||||
* 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.
|
||||
* Fixed a bug with trying to set a value for rel during a direct call to Colorbox. Example: `$.colorbox({rel:'foo', open:true});`
|
||||
* 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.
|
||||
* Fixed a FF3 bug where the back button was disabled after closing an iframe.
|
||||
|
||||
### Version 1.2.5 - June 23 2009
|
||||
##### Version 1.2.5 - June 23 2009
|
||||
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||
|
||||
* 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).
|
||||
* Removed unnecessary return values for a very slight code reduction.
|
||||
|
||||
### Version 1.2.4 - June 9 2009
|
||||
##### Version 1.2.4 - June 9 2009
|
||||
Files Changed: jquery.colorbox.js, jquery.colorbox-min.js
|
||||
|
||||
* Fixed an issue where ColorBox may not close completely if it is closed during a transition animation.
|
||||
* Fixed an issue where Colorbox may not close completely if it is closed during a transition animation.
|
||||
* Minor code reduction.
|
||||
|
||||
### Version 1.2.3 - June 4 2009
|
||||
##### Version 1.2.3 - June 4 2009
|
||||
* Fixed a png transparency stacking issue in IE.
|
||||
* More accurate Ajax auto-sizing if the user was depending on the #cboxLoadedContent ID for CSS styling.
|
||||
* Added a public function for returning the current html element that ColorBox is associated with. Example use: var that = $.fn.colorbox.element();
|
||||
* Added a public function for returning the current html element that Colorbox is associated with. Example use: var that = $.colorbox.element();
|
||||
* Added bicubic scaling for resized images in the original IE7.
|
||||
* 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.
|
||||
|
||||
### Version 1.2.2 - May 28 2009
|
||||
##### Version 1.2.2 - May 28 2009
|
||||
* Fixed an issue with the 'resize' option.
|
||||
|
||||
### Version 1.2.1 - May 28 2009
|
||||
##### Version 1.2.1 - May 28 2009
|
||||
* Note: If you are upgrading, update your jquery.colorbox.js and colorbox.css files.
|
||||
* Added photo resizing.
|
||||
* 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.
|
||||
* 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.
|
||||
* 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')
|
||||
* 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:
|
||||
`$.fn.colorbox({open:true, href:'yourLink.xxx'});`
|
||||
* 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.
|
||||
* 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.
|
||||
* 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.
|
||||
* 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')
|
||||
* 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:
|
||||
`$.colorbox({open:true, href:'yourLink.xxx'});`
|
||||
* 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.
|
||||
* For user callbacks, 'this' now refers to the element colorbox was opened from.
|
||||
* Fixed a minor grouping issue with IE6, when transition type is set to 'none'.
|
||||
* Added an Adobe Illustrator file that contains the borders and buttons used in the various examples.
|
||||
|
||||
### Version 1.2 - May 13 2009
|
||||
##### Version 1.2 - May 13 2009
|
||||
* Added a slideshow feature.
|
||||
* Added re-positioning on browser resize. If the browser is resized, ColorBox will recenter itself onscreen.
|
||||
* Added re-positioning on browser resize. If the browser is resized, Colorbox will recenter itself onscreen.
|
||||
* Added hooks for key events: cbox_open, cbox_load, cbox_complete, cbox_closed.
|
||||
* Fixed an IE transparency-stacking problem, where transparent PNGs would show through to the background overlay.
|
||||
* Fixed an IE iframe issue where the ifame might shift up and to the left under certain circumstances.
|
||||
|
@ -299,54 +539,54 @@ Files Changed: jquery.colorbox.js, jquery.colorbox-min.js
|
|||
* Changed how the JS is structured to be better organized and increase compression. Increased documentation.
|
||||
* 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.
|
||||
* 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.
|
||||
* 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.
|
||||
* 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.
|
||||
* Changed the naming of variables in the parameter map to be more concise and intuitive.
|
||||
* 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.
|
||||
|
||||
### Version 1.1.6 - April 28 2009
|
||||
##### Version 1.1.6 - April 28 2009
|
||||
* Prevented the default action of the next & previous anchors and the left and right keys for gallery mode.
|
||||
* Fixed a bug where the title element was being added back to the DOM when closing ColorBox while using inline content.
|
||||
* Fixed a bug where the title element was being added back to the DOM when closing Colorbox while using inline content.
|
||||
* Fixed a bug where IE7 would crash for example 2.
|
||||
* Smaller filesize: removed a small amount of unused code and rewrote the HTML injection with less syntax.
|
||||
* Added a public method for closing ColorBox: $.fn.colorbox.close(). This will allow iframe users to add an event to close ColorBox without having to create an additional function.
|
||||
* 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.
|
||||
|
||||
### Version 1.1.5 - April 11 2009
|
||||
* Fixed minor issues with exiting ColorBox.
|
||||
##### Version 1.1.5 - April 11 2009
|
||||
* Fixed minor issues with exiting Colorbox.
|
||||
|
||||
### Version 1.1.4 - April 08 2009
|
||||
* Fixed a bug in the fade transition where ColorBox not close completely if instructed to close during the fade-in portion of the transition.
|
||||
##### Version 1.1.4 - April 08 2009
|
||||
* Fixed a bug in the fade transition where Colorbox not close completely if instructed to close during the fade-in portion of the transition.
|
||||
|
||||
### Version 1.1.3 - April 06 2009
|
||||
* Fixed an IE6&7 issue with using ColorBox to display animated GIFs.
|
||||
##### Version 1.1.3 - April 06 2009
|
||||
* Fixed an IE6&7 issue with using Colorbox to display animated GIFs.
|
||||
|
||||
### Version 1.1.2 - April 05 2009
|
||||
* Added ability to change content when ColorBox is already open.
|
||||
##### Version 1.1.2 - April 05 2009
|
||||
* Added ability to change content when Colorbox is already open.
|
||||
* Added vertical photo centering now works for all browsers (this feature previously excluded IE6&7).
|
||||
* Added namespacing to the esc-key keydown event for people who want to disable it: "keydown.colorClose"
|
||||
* Added 'title' setting to add the ability to set an alternative title for any ColorBox call.
|
||||
* Added 'title' setting to add the ability to set an alternative title for any Colorbox call.
|
||||
* Fixed rollover navigation issue with IE8. (Added JS-based rollover state due to a browser-bug.)
|
||||
* Fixed an overflow issue for when the fixed width/height is smaller than the size of a photo.
|
||||
* Fixed a bug in the fade transition where the border would still come up if ColorBox was closed mid-transition.
|
||||
* Fixed a bug in the fade transition where the border would still come up if Colorbox was closed mid-transition.
|
||||
* Switch from JSMin to Yui Compressor for minification. Minified code now under 7KB.
|
||||
|
||||
### Version 1.1.1 - March 31 2009
|
||||
##### Version 1.1.1 - March 31 2009
|
||||
* More robust image detection regex. Now detects image file types with url fragments and/or query strings.
|
||||
* Added 'nofollow' exception to rel grouping.
|
||||
* Changed how images are loaded into the DOM to prevent premature size calculation by ColorBox.
|
||||
* Changed how images are loaded into the DOM to prevent premature size calculation by Colorbox.
|
||||
* 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.
|
||||
|
||||
### Version 1.1.0 - March 21 2009
|
||||
##### Version 1.1.0 - March 21 2009
|
||||
* Animation is now much smoother and less resource intensive.
|
||||
* Added support for % sizing.
|
||||
* Callback option added.
|
||||
* Inline content now preserves JavaScript events, and changes made while ColorBox is open are also preserved.
|
||||
* Added 'href' setting to add the ability to set an alternative href for any anchor, or to assign the ColorBox event to non-anchors.
|
||||
* Inline content now preserves JavaScript events, and changes made while Colorbox is open are also preserved.
|
||||
* Added 'href' setting to add the ability to set an alternative href for any anchor, or to assign the Colorbox event to non-anchors.
|
||||
Example: $('button').colorbox({'href':'process.php'})
|
||||
Example: $('a[href='http://msn.com']).colorbox({'href':'http://google.com', iframe:true});
|
||||
* Photos are now horizontally centered if they are smaller than the lightbox size. Also vertically centered for browsers newer than IE7.
|
||||
* 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.
|
||||
* Keypress events don't queue up by holding down the arrow keys.
|
||||
* Added option to close ColorBox by clicking on the background overlay.
|
||||
* Added option to close Colorbox by clicking on the background overlay.
|
||||
* Added 'none' transition setting.
|
||||
* Changed 'contentIframe' and 'contentInline' to 'inline' and 'iframe'. Removed 'contentAjax' because it is automatically assumed for non-image file types.
|
||||
* 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.
|
||||
|
@ -355,22 +595,22 @@ Files Changed: jquery.colorbox.js, jquery.colorbox-min.js
|
|||
* Added a minified version.
|
||||
* Code passes JSLint.
|
||||
|
||||
### Version 1.0.5 - March 11 2009
|
||||
##### Version 1.0.5 - March 11 2009
|
||||
* Redo: Fixed a bug where IE would cut off the bottom portion of a photo, if the photo was larger than the document dimensions.
|
||||
|
||||
### Version 1.0.4 - March 10 2009
|
||||
##### Version 1.0.4 - March 10 2009
|
||||
* Added an option to allow users to automatically open the lightbox. Example usage: $(".colorbox").colorbox({open:true});
|
||||
* Fixed a bug where IE would cut off the bottom portion of a photo, if the photo was larger than the document dimensions.
|
||||
|
||||
### Version 1.0.3 - March 09 2009
|
||||
##### Version 1.0.3 - March 09 2009
|
||||
* Fixed vertical centering for Safari 3.0.x.
|
||||
|
||||
### Version 1.0.2 - March 06 2009
|
||||
##### Version 1.0.2 - March 06 2009
|
||||
* Corrected a typo.
|
||||
* 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.
|
||||
|
||||
### Version 1.0.1 - March 05 2009
|
||||
##### Version 1.0.1 - March 05 2009
|
||||
* Fixed keydown events (esc, left arrow, right arrow) for Webkit browsers.
|
||||
|
||||
### Version 1.0 - March 03 2009
|
||||
##### Version 1.0 - March 03 2009
|
||||
* First release
|
||||
|
|
40
library/colorbox/bower.json
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"name": "jquery-colorbox",
|
||||
"description": "jQuery lightbox and modal window plugin",
|
||||
"dependencies": {
|
||||
"jquery": ">=1.3.2"
|
||||
},
|
||||
"keywords": [
|
||||
"modal",
|
||||
"lightbox",
|
||||
"gallery",
|
||||
"popup",
|
||||
"ui",
|
||||
"jquery-plugin"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Jack Moore",
|
||||
"url": "http://www.jacklmoore.com",
|
||||
"email": "hello@jacklmoore.com"
|
||||
}
|
||||
],
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "http://www.opensource.org/licenses/mit-license.php"
|
||||
}
|
||||
],
|
||||
"homepage": "http://www.jacklmoore.com/colorbox",
|
||||
"main": "jquery.colorbox.js",
|
||||
"ignore": [
|
||||
"colorbox.jquery.json",
|
||||
"colorbox.ai",
|
||||
"content",
|
||||
"example1/index.html",
|
||||
"example2/index.html",
|
||||
"example3/index.html",
|
||||
"example4/index.html",
|
||||
"example5/index.html"
|
||||
]
|
||||
}
|
|
@ -1,26 +1,27 @@
|
|||
/*
|
||||
ColorBox Core Style:
|
||||
Colorbox Core Style:
|
||||
The following CSS is consistent between example themes and should not be altered.
|
||||
*/
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||
#cboxWrapper {max-width:none;}
|
||||
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||
#cboxContent{position:relative;}
|
||||
#cboxLoadedContent{overflow:auto;}
|
||||
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
||||
#cboxTitle{margin:0;}
|
||||
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
|
||||
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||
|
||||
/*
|
||||
User Style:
|
||||
Change the following styles to modify the appearance of ColorBox. They are
|
||||
Change the following styles to modify the appearance of Colorbox. They are
|
||||
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||
*/
|
||||
#cboxOverlay{background:#000;}
|
||||
#colorbox{}
|
||||
#cboxOverlay{background:#000; opacity: 0.9; filter: alpha(opacity = 90);}
|
||||
#colorbox{outline:0;}
|
||||
#cboxTopLeft{width:14px; height:14px; background:url(images/controls.png) no-repeat 0 0;}
|
||||
#cboxTopCenter{height:14px; background:url(images/border.png) repeat-x top left;}
|
||||
#cboxTopRight{width:14px; height:14px; background:url(images/controls.png) no-repeat -36px 0;}
|
||||
|
@ -38,7 +39,12 @@
|
|||
#cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
|
||||
#cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
|
||||
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(images/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
|
||||
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
||||
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; position:absolute; bottom:-29px; background:url(images/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
|
||||
|
||||
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
||||
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
||||
|
||||
#cboxPrevious{left:0px; background-position: -51px -25px;}
|
||||
#cboxPrevious:hover{background-position:-51px 0px;}
|
||||
#cboxNext{left:27px; background-position:-75px -25px;}
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
"name": "colorbox",
|
||||
"title": "ColorBox",
|
||||
"description": "A lightweight customizable lightbox plugin",
|
||||
"keywords": [
|
||||
"modal",
|
||||
"lightbox",
|
||||
"window",
|
||||
"popup",
|
||||
"ui"
|
||||
],
|
||||
"version": "1.3.32",
|
||||
"author": {
|
||||
"name": "Jack Moore",
|
||||
"url": "http://www.jacklmoore.com",
|
||||
"email": "jack@colorpowered.com"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "http://www.opensource.org/licenses/mit-license.php"
|
||||
}
|
||||
],
|
||||
"homepage": "http://jacklmoore.com/colorbox",
|
||||
"demo": "http://jacklmoore.com/colorbox",
|
||||
"download": "http://jacklmoore.com/colorbox/colorbox.zip",
|
||||
"dependencies": {
|
||||
"jquery": ">=1.3.2"
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"name": "jquery-autosize",
|
||||
"version": "1.3.32",
|
||||
"main": "./jquery.autosize.js",
|
||||
"dependencies": {
|
||||
"jquery": ">=1.3.2"
|
||||
}
|
||||
}
|
BIN
library/colorbox/content/daisy.jpg
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
library/colorbox/content/daisy@2x.jpg
Normal file
After Width: | Height: | Size: 328 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 68 KiB |
|
@ -1,26 +1,27 @@
|
|||
/*
|
||||
ColorBox Core Style:
|
||||
Colorbox Core Style:
|
||||
The following CSS is consistent between example themes and should not be altered.
|
||||
*/
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||
#cboxWrapper {max-width:none;}
|
||||
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||
#cboxContent{position:relative;}
|
||||
#cboxLoadedContent{overflow:auto;}
|
||||
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
||||
#cboxTitle{margin:0;}
|
||||
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
|
||||
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||
|
||||
/*
|
||||
User Style:
|
||||
Change the following styles to modify the appearance of ColorBox. They are
|
||||
Change the following styles to modify the appearance of Colorbox. They are
|
||||
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||
*/
|
||||
#cboxOverlay{background:url(images/overlay.png) repeat 0 0;}
|
||||
#colorbox{}
|
||||
#cboxOverlay{background:url(images/overlay.png) repeat 0 0; opacity: 0.9; filter: alpha(opacity = 90);}
|
||||
#colorbox{outline:0;}
|
||||
#cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px 0;}
|
||||
#cboxTopRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px 0;}
|
||||
#cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px -29px;}
|
||||
|
@ -35,13 +36,20 @@
|
|||
#cboxLoadedContent{margin-bottom:28px;}
|
||||
#cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
|
||||
#cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
|
||||
#cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
|
||||
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||
|
||||
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
||||
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
|
||||
|
||||
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
||||
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
||||
|
||||
#cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
|
||||
#cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||
#cboxPrevious:hover{background-position:-75px -25px;}
|
||||
#cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||
#cboxNext:hover{background-position:-50px -25px;}
|
||||
#cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
|
||||
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||
#cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||
#cboxClose:hover{background-position:-25px -25px;}
|
||||
|
||||
|
@ -60,27 +68,3 @@
|
|||
.cboxIE #cboxMiddleRight {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
|
||||
}
|
||||
|
||||
/*
|
||||
The following provides PNG transparency support for IE6
|
||||
Feel free to remove this and the /ie6/ directory if you have dropped IE6 support.
|
||||
*/
|
||||
.cboxIE6 #cboxTopLeft{background:url(images/ie6/borderTopLeft.png);}
|
||||
.cboxIE6 #cboxTopCenter{background:url(images/ie6/borderTopCenter.png);}
|
||||
.cboxIE6 #cboxTopRight{background:url(images/ie6/borderTopRight.png);}
|
||||
.cboxIE6 #cboxBottomLeft{background:url(images/ie6/borderBottomLeft.png);}
|
||||
.cboxIE6 #cboxBottomCenter{background:url(images/ie6/borderBottomCenter.png);}
|
||||
.cboxIE6 #cboxBottomRight{background:url(images/ie6/borderBottomRight.png);}
|
||||
.cboxIE6 #cboxMiddleLeft{background:url(images/ie6/borderMiddleLeft.png);}
|
||||
.cboxIE6 #cboxMiddleRight{background:url(images/ie6/borderMiddleRight.png);}
|
||||
|
||||
.cboxIE6 #cboxTopLeft,
|
||||
.cboxIE6 #cboxTopCenter,
|
||||
.cboxIE6 #cboxTopRight,
|
||||
.cboxIE6 #cboxBottomLeft,
|
||||
.cboxIE6 #cboxBottomCenter,
|
||||
.cboxIE6 #cboxBottomRight,
|
||||
.cboxIE6 #cboxMiddleLeft,
|
||||
.cboxIE6 #cboxMiddleRight {
|
||||
_behavior: expression(this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1], this.style.background = "none", this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')");
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 112 B After Width: | Height: | Size: 76 B |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 215 B |
Before Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 115 B |
|
@ -2,24 +2,24 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'/>
|
||||
<title>ColorBox Examples</title>
|
||||
<title>Colorbox Examples</title>
|
||||
<style>
|
||||
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||
h2{font-size:13px; margin:15px 0 0 0;}
|
||||
</style>
|
||||
<link rel="stylesheet" href="colorbox.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="../jquery.colorbox.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
//Examples of how to assign the ColorBox event to elements
|
||||
//Examples of how to assign the Colorbox event to elements
|
||||
$(".group1").colorbox({rel:'group1'});
|
||||
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||
$(".ajax").colorbox();
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
|
||||
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
|
@ -31,6 +31,9 @@
|
|||
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||
});
|
||||
|
||||
$('.non-retina').colorbox({rel:'group5', transition:'none'})
|
||||
$('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true});
|
||||
|
||||
//Example of preserving a JavaScript event for inline calls.
|
||||
$("#click").click(function(){
|
||||
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||
|
@ -40,7 +43,7 @@
|
|||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>ColorBox Demonstration</h1>
|
||||
<h1>Colorbox Demonstration</h1>
|
||||
<h2>Elastic Transition</h2>
|
||||
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||
|
@ -63,7 +66,7 @@
|
|||
|
||||
<h2>Other Content Types</h2>
|
||||
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||
|
@ -71,6 +74,11 @@
|
|||
<h2>Demonstration of using callbacks</h2>
|
||||
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||
|
||||
|
||||
<h2>Retina Images</h2>
|
||||
<p><a class="retina" href="../content/daisy.jpg" title="Retina">Retina</a></p>
|
||||
<p><a class="non-retina" href="../content/daisy.jpg" title="Non-Retina">Non-Retina</a></p>
|
||||
|
||||
<!-- This contains the hidden content for inline calls -->
|
||||
<div style='display:none'>
|
||||
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||
|
@ -78,7 +86,7 @@
|
|||
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||
|
||||
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p><strong>If you try to open a new Colorbox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p>Updating Content Example:<br />
|
||||
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||
</div>
|
||||
|
|
|
@ -1,27 +1,28 @@
|
|||
/*
|
||||
ColorBox Core Style:
|
||||
Colorbox Core Style:
|
||||
The following CSS is consistent between example themes and should not be altered.
|
||||
*/
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||
#cboxWrapper {max-width:none;}
|
||||
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||
#cboxContent{position:relative;}
|
||||
#cboxLoadedContent{overflow:auto;}
|
||||
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
||||
#cboxTitle{margin:0;}
|
||||
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
|
||||
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||
|
||||
/*
|
||||
User Style:
|
||||
Change the following styles to modify the appearance of ColorBox. They are
|
||||
Change the following styles to modify the appearance of Colorbox. They are
|
||||
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||
*/
|
||||
#cboxOverlay{background:#fff;}
|
||||
#colorbox{}
|
||||
#cboxContent{margin-top:32px; overflow:visible;}
|
||||
#cboxOverlay{background:#fff; opacity: 0.9; filter: alpha(opacity = 90);}
|
||||
#colorbox{outline:0;}
|
||||
#cboxContent{margin-top:32px; overflow:visible; background:#000;}
|
||||
.cboxIframe{background:#fff;}
|
||||
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||
#cboxLoadedContent{background:#000; padding:1px;}
|
||||
|
@ -29,7 +30,13 @@
|
|||
#cboxLoadingOverlay{background:#000;}
|
||||
#cboxTitle{position:absolute; top:-22px; left:0; color:#000;}
|
||||
#cboxCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;}
|
||||
#cboxSlideshow, #cboxPrevious, #cboxNext, #cboxClose{text-indent:-9999px; width:20px; height:20px; position:absolute; top:-20px; background:url(images/controls.png) no-repeat 0 0;}
|
||||
|
||||
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
||||
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; text-indent:-9999px; width:20px; height:20px; position:absolute; top:-20px; background:url(images/controls.png) no-repeat 0 0;}
|
||||
|
||||
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
||||
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
||||
|
||||
#cboxPrevious{background-position:0px 0px; right:44px;}
|
||||
#cboxPrevious:hover{background-position:0px -25px;}
|
||||
#cboxNext{background-position:-25px 0px; right:22px;}
|
||||
|
|
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 6.1 KiB |
|
@ -2,24 +2,24 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'/>
|
||||
<title>ColorBox Examples</title>
|
||||
<title>Colorbox Examples</title>
|
||||
<style>
|
||||
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||
h2{font-size:13px; margin:15px 0 0 0;}
|
||||
</style>
|
||||
<link rel="stylesheet" href="colorbox.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="../jquery.colorbox.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
//Examples of how to assign the ColorBox event to elements
|
||||
//Examples of how to assign the Colorbox event to elements
|
||||
$(".group1").colorbox({rel:'group1'});
|
||||
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||
$(".ajax").colorbox();
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
|
||||
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
|
@ -31,6 +31,9 @@
|
|||
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||
});
|
||||
|
||||
$('.non-retina').colorbox({rel:'group5', transition:'none'})
|
||||
$('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true});
|
||||
|
||||
//Example of preserving a JavaScript event for inline calls.
|
||||
$("#click").click(function(){
|
||||
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||
|
@ -40,7 +43,7 @@
|
|||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>ColorBox Demonstration</h1>
|
||||
<h1>Colorbox Demonstration</h1>
|
||||
<h2>Elastic Transition</h2>
|
||||
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||
|
@ -63,7 +66,7 @@
|
|||
|
||||
<h2>Other Content Types</h2>
|
||||
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||
|
@ -71,6 +74,11 @@
|
|||
<h2>Demonstration of using callbacks</h2>
|
||||
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||
|
||||
|
||||
<h2>Retina Images</h2>
|
||||
<p><a class="retina" href="../content/daisy.jpg" title="Retina">Retina</a></p>
|
||||
<p><a class="non-retina" href="../content/daisy.jpg" title="Non-Retina">Non-Retina</a></p>
|
||||
|
||||
<!-- This contains the hidden content for inline calls -->
|
||||
<div style='display:none'>
|
||||
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||
|
@ -78,7 +86,7 @@
|
|||
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||
|
||||
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p><strong>If you try to open a new Colorbox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p>Updating Content Example:<br />
|
||||
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||
</div>
|
||||
|
|
|
@ -1,38 +1,45 @@
|
|||
/*
|
||||
ColorBox Core Style:
|
||||
Colorbox Core Style:
|
||||
The following CSS is consistent between example themes and should not be altered.
|
||||
*/
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||
#cboxWrapper {max-width:none;}
|
||||
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||
#cboxContent{position:relative;}
|
||||
#cboxLoadedContent{overflow:auto;}
|
||||
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
||||
#cboxTitle{margin:0;}
|
||||
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
|
||||
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||
|
||||
/*
|
||||
User Style:
|
||||
Change the following styles to modify the appearance of ColorBox. They are
|
||||
Change the following styles to modify the appearance of Colorbox. They are
|
||||
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||
*/
|
||||
#cboxOverlay{background:#000;}
|
||||
#colorbox{}
|
||||
#cboxContent{margin-top:20px;}
|
||||
#cboxOverlay{background:#000; opacity: 0.9; filter: alpha(opacity = 90);}
|
||||
#colorbox{outline:0;}
|
||||
#cboxContent{margin-top:20px;background:#000;}
|
||||
.cboxIframe{background:#fff;}
|
||||
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||
#cboxLoadedContent{border:5px solid #000; background:#fff;}
|
||||
#cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;}
|
||||
#cboxCurrent{position:absolute; top:-20px; right:0px; color:#ccc;}
|
||||
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||
|
||||
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
||||
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
|
||||
|
||||
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
||||
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
||||
|
||||
#cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;}
|
||||
#cboxPrevious{position:absolute; top:50%; left:5px; margin-top:-32px; background:url(images/controls.png) no-repeat top left; width:28px; height:65px; text-indent:-9999px;}
|
||||
#cboxPrevious:hover{background-position:bottom left;}
|
||||
#cboxNext{position:absolute; top:50%; right:5px; margin-top:-32px; background:url(images/controls.png) no-repeat top right; width:28px; height:65px; text-indent:-9999px;}
|
||||
#cboxNext:hover{background-position:bottom right;}
|
||||
#cboxLoadingOverlay{background:#000;}
|
||||
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||
#cboxClose{position:absolute; top:5px; right:5px; display:block; background:url(images/controls.png) no-repeat top center; width:38px; height:19px; text-indent:-9999px;}
|
||||
#cboxClose:hover{background-position:bottom center;}
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 6.1 KiB |
|
@ -2,24 +2,24 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'/>
|
||||
<title>ColorBox Examples</title>
|
||||
<title>Colorbox Examples</title>
|
||||
<style>
|
||||
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||
h2{font-size:13px; margin:15px 0 0 0;}
|
||||
</style>
|
||||
<link rel="stylesheet" href="colorbox.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="../jquery.colorbox.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
//Examples of how to assign the ColorBox event to elements
|
||||
//Examples of how to assign the Colorbox event to elements
|
||||
$(".group1").colorbox({rel:'group1'});
|
||||
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||
$(".ajax").colorbox();
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
|
||||
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
|
@ -31,6 +31,9 @@
|
|||
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||
});
|
||||
|
||||
$('.non-retina').colorbox({rel:'group5', transition:'none'})
|
||||
$('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true});
|
||||
|
||||
//Example of preserving a JavaScript event for inline calls.
|
||||
$("#click").click(function(){
|
||||
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||
|
@ -40,7 +43,7 @@
|
|||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>ColorBox Demonstration</h1>
|
||||
<h1>Colorbox Demonstration</h1>
|
||||
<h2>Elastic Transition</h2>
|
||||
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||
|
@ -63,7 +66,7 @@
|
|||
|
||||
<h2>Other Content Types</h2>
|
||||
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||
|
@ -71,6 +74,11 @@
|
|||
<h2>Demonstration of using callbacks</h2>
|
||||
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||
|
||||
|
||||
<h2>Retina Images</h2>
|
||||
<p><a class="retina" href="../content/daisy.jpg" title="Retina">Retina</a></p>
|
||||
<p><a class="non-retina" href="../content/daisy.jpg" title="Non-Retina">Non-Retina</a></p>
|
||||
|
||||
<!-- This contains the hidden content for inline calls -->
|
||||
<div style='display:none'>
|
||||
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||
|
@ -78,7 +86,7 @@
|
|||
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||
|
||||
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p><strong>If you try to open a new Colorbox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p>Updating Content Example:<br />
|
||||
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||
</div>
|
||||
|
|
|
@ -1,26 +1,27 @@
|
|||
/*
|
||||
ColorBox Core Style:
|
||||
Colorbox Core Style:
|
||||
The following CSS is consistent between example themes and should not be altered.
|
||||
*/
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||
#cboxWrapper {max-width:none;}
|
||||
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||
#cboxContent{position:relative;}
|
||||
#cboxLoadedContent{overflow:auto;}
|
||||
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
||||
#cboxTitle{margin:0;}
|
||||
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
|
||||
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||
|
||||
/*
|
||||
User Style:
|
||||
Change the following styles to modify the appearance of ColorBox. They are
|
||||
Change the following styles to modify the appearance of Colorbox. They are
|
||||
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||
*/
|
||||
#cboxOverlay{background:#fff;}
|
||||
#colorbox{}
|
||||
#cboxOverlay{background:#fff; opacity: 0.9; filter: alpha(opacity = 90);}
|
||||
#colorbox{outline:0;}
|
||||
#cboxTopLeft{width:25px; height:25px; background:url(images/border1.png) no-repeat 0 0;}
|
||||
#cboxTopCenter{height:25px; background:url(images/border1.png) repeat-x 0 -50px;}
|
||||
#cboxTopRight{width:25px; height:25px; background:url(images/border1.png) no-repeat -25px 0;}
|
||||
|
@ -35,10 +36,17 @@
|
|||
#cboxLoadedContent{margin-bottom:20px;}
|
||||
#cboxTitle{position:absolute; bottom:0px; left:0; text-align:center; width:100%; color:#999;}
|
||||
#cboxCurrent{position:absolute; bottom:0px; left:100px; color:#999;}
|
||||
#cboxLoadingOverlay{background:#fff url(images/loading.gif) no-repeat 5px 5px;}
|
||||
|
||||
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
||||
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
|
||||
|
||||
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
||||
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
||||
|
||||
#cboxSlideshow{position:absolute; bottom:0px; right:42px; color:#444;}
|
||||
#cboxPrevious{position:absolute; bottom:0px; left:0; color:#444;}
|
||||
#cboxNext{position:absolute; bottom:0px; left:63px; color:#444;}
|
||||
#cboxLoadingOverlay{background:#fff url(images/loading.gif) no-repeat 5px 5px;}
|
||||
#cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;}
|
||||
|
||||
/*
|
||||
|
@ -56,27 +64,3 @@
|
|||
.cboxIE #cboxMiddleRight {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
|
||||
}
|
||||
|
||||
/*
|
||||
The following provides PNG transparency support for IE6
|
||||
Feel free to remove this and the /ie6/ directory if you have dropped IE6 support.
|
||||
*/
|
||||
.cboxIE6 #cboxTopLeft{background:url(images/ie6/borderTopLeft.png);}
|
||||
.cboxIE6 #cboxTopCenter{background:url(images/ie6/borderTopCenter.png);}
|
||||
.cboxIE6 #cboxTopRight{background:url(images/ie6/borderTopRight.png);}
|
||||
.cboxIE6 #cboxBottomLeft{background:url(images/ie6/borderBottomLeft.png);}
|
||||
.cboxIE6 #cboxBottomCenter{background:url(images/ie6/borderBottomCenter.png);}
|
||||
.cboxIE6 #cboxBottomRight{background:url(images/ie6/borderBottomRight.png);}
|
||||
.cboxIE6 #cboxMiddleLeft{background:url(images/ie6/borderMiddleLeft.png);}
|
||||
.cboxIE6 #cboxMiddleRight{background:url(images/ie6/borderMiddleRight.png);}
|
||||
|
||||
.cboxIE6 #cboxTopLeft,
|
||||
.cboxIE6 #cboxTopCenter,
|
||||
.cboxIE6 #cboxTopRight,
|
||||
.cboxIE6 #cboxBottomLeft,
|
||||
.cboxIE6 #cboxBottomCenter,
|
||||
.cboxIE6 #cboxBottomRight,
|
||||
.cboxIE6 #cboxMiddleLeft,
|
||||
.cboxIE6 #cboxMiddleRight {
|
||||
_behavior: expression(this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1], this.style.background = "none", this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')");
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 629 B |
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 359 B |
Before Width: | Height: | Size: 465 B |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 6.1 KiB |
|
@ -2,24 +2,24 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'/>
|
||||
<title>ColorBox Examples</title>
|
||||
<title>Colorbox Examples</title>
|
||||
<style>
|
||||
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||
h2{font-size:13px; margin:15px 0 0 0;}
|
||||
</style>
|
||||
<link rel="stylesheet" href="colorbox.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="../jquery.colorbox.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
//Examples of how to assign the ColorBox event to elements
|
||||
//Examples of how to assign the Colorbox event to elements
|
||||
$(".group1").colorbox({rel:'group1'});
|
||||
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||
$(".ajax").colorbox();
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
|
||||
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
|
@ -31,6 +31,9 @@
|
|||
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||
});
|
||||
|
||||
$('.non-retina').colorbox({rel:'group5', transition:'none'})
|
||||
$('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true});
|
||||
|
||||
//Example of preserving a JavaScript event for inline calls.
|
||||
$("#click").click(function(){
|
||||
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||
|
@ -40,7 +43,7 @@
|
|||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>ColorBox Demonstration</h1>
|
||||
<h1>Colorbox Demonstration</h1>
|
||||
<h2>Elastic Transition</h2>
|
||||
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||
|
@ -63,7 +66,7 @@
|
|||
|
||||
<h2>Other Content Types</h2>
|
||||
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||
|
@ -71,6 +74,11 @@
|
|||
<h2>Demonstration of using callbacks</h2>
|
||||
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||
|
||||
|
||||
<h2>Retina Images</h2>
|
||||
<p><a class="retina" href="../content/daisy.jpg" title="Retina">Retina</a></p>
|
||||
<p><a class="non-retina" href="../content/daisy.jpg" title="Non-Retina">Non-Retina</a></p>
|
||||
|
||||
<!-- This contains the hidden content for inline calls -->
|
||||
<div style='display:none'>
|
||||
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||
|
@ -78,7 +86,7 @@
|
|||
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||
|
||||
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p><strong>If you try to open a new Colorbox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p>Updating Content Example:<br />
|
||||
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||
</div>
|
||||
|
|
|
@ -1,26 +1,27 @@
|
|||
/*
|
||||
ColorBox Core Style:
|
||||
Colorbox Core Style:
|
||||
The following CSS is consistent between example themes and should not be altered.
|
||||
*/
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||
#cboxWrapper {max-width:none;}
|
||||
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||
#cboxContent{position:relative;}
|
||||
#cboxLoadedContent{overflow:auto;}
|
||||
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
||||
#cboxTitle{margin:0;}
|
||||
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
|
||||
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||
|
||||
/*
|
||||
User Style:
|
||||
Change the following styles to modify the appearance of ColorBox. They are
|
||||
Change the following styles to modify the appearance of Colorbox. They are
|
||||
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||
*/
|
||||
#cboxOverlay{background:#000;}
|
||||
#colorbox{}
|
||||
#cboxOverlay{background:#000; opacity: 0.9; filter: alpha(opacity = 90);}
|
||||
#colorbox{outline:0;}
|
||||
#cboxTopLeft{width:14px; height:14px; background:url(images/controls.png) no-repeat 0 0;}
|
||||
#cboxTopCenter{height:14px; background:url(images/border.png) repeat-x top left;}
|
||||
#cboxTopRight{width:14px; height:14px; background:url(images/controls.png) no-repeat -36px 0;}
|
||||
|
@ -38,7 +39,12 @@
|
|||
#cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
|
||||
#cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
|
||||
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(images/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
|
||||
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
||||
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; position:absolute; bottom:-29px; background:url(images/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
|
||||
|
||||
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
||||
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
||||
|
||||
#cboxPrevious{left:0px; background-position: -51px -25px;}
|
||||
#cboxPrevious:hover{background-position:-51px 0px;}
|
||||
#cboxNext{left:27px; background-position:-75px -25px;}
|
||||
|
|
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 131 B |
|
@ -2,24 +2,24 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'/>
|
||||
<title>ColorBox Examples</title>
|
||||
<title>Colorbox Examples</title>
|
||||
<style>
|
||||
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||
h2{font-size:13px; margin:15px 0 0 0;}
|
||||
</style>
|
||||
<link rel="stylesheet" href="colorbox.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="../jquery.colorbox.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
//Examples of how to assign the ColorBox event to elements
|
||||
//Examples of how to assign the Colorbox event to elements
|
||||
$(".group1").colorbox({rel:'group1'});
|
||||
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||
$(".ajax").colorbox();
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||
$(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
|
||||
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
|
@ -31,6 +31,9 @@
|
|||
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||
});
|
||||
|
||||
$('.non-retina').colorbox({rel:'group5', transition:'none'})
|
||||
$('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true});
|
||||
|
||||
//Example of preserving a JavaScript event for inline calls.
|
||||
$("#click").click(function(){
|
||||
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||
|
@ -40,7 +43,7 @@
|
|||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>ColorBox Demonstration</h1>
|
||||
<h1>Colorbox Demonstration</h1>
|
||||
<h2>Elastic Transition</h2>
|
||||
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||
|
@ -63,7 +66,7 @@
|
|||
|
||||
<h2>Other Content Types</h2>
|
||||
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&wmode=transparent">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||
|
@ -71,6 +74,11 @@
|
|||
<h2>Demonstration of using callbacks</h2>
|
||||
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||
|
||||
|
||||
<h2>Retina Images</h2>
|
||||
<p><a class="retina" href="../content/daisy.jpg" title="Retina">Retina</a></p>
|
||||
<p><a class="non-retina" href="../content/daisy.jpg" title="Non-Retina">Non-Retina</a></p>
|
||||
|
||||
<!-- This contains the hidden content for inline calls -->
|
||||
<div style='display:none'>
|
||||
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||
|
@ -78,7 +86,7 @@
|
|||
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||
|
||||
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p><strong>If you try to open a new Colorbox while it is already open, it will update itself with the new content.</strong></p>
|
||||
<p>Updating Content Example:<br />
|
||||
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||
</div>
|
||||
|
|
15
library/colorbox/i18n/jquery.colorbox-ar.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Arabic (ar)
|
||||
translated by: A.Rhman Sayes
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "الصورة {current} من {total}",
|
||||
previous: "السابق",
|
||||
next: "التالي",
|
||||
close: "إغلاق",
|
||||
xhrError: "حدث خطأ أثناء تحميل المحتوى.",
|
||||
imgError: "حدث خطأ أثناء تحميل الصورة.",
|
||||
slideshowStart: "تشغيل العرض",
|
||||
slideshowStop: "إيقاف العرض"
|
||||
});
|
16
library/colorbox/i18n/jquery.colorbox-bg.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Bulgarian (bg)
|
||||
translated by: Marian M.Bida
|
||||
site: webmax.bg
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "изображение {current} от {total}",
|
||||
previous: "предишна",
|
||||
next: "следваща",
|
||||
close: "затвори",
|
||||
xhrError: "Неуспешно зареждане на съдържанието.",
|
||||
imgError: "Неуспешно зареждане на изображението.",
|
||||
slideshowStart: "пусни слайд-шоу",
|
||||
slideshowStop: "спри слайд-шоу"
|
||||
});
|
16
library/colorbox/i18n/jquery.colorbox-bn.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Bengali (bn)
|
||||
translated by: Arkaprava Majumder
|
||||
http://github.com/arkaindas
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "ছবি {current} এর {total}",
|
||||
previous: "আগে",
|
||||
next: "পরে",
|
||||
close: "বন্ধ",
|
||||
xhrError: "এই কন্টেন্ট লোড করা যায়নি.",
|
||||
imgError: "এই ছবিটি লোড করা যায়নি.",
|
||||
slideshowStart: "স্লাইডশো শুরু",
|
||||
slideshowStop: "স্লাইডশো বন্ধ"
|
||||
});
|
13
library/colorbox/i18n/jquery.colorbox-ca.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Catala (ca)
|
||||
translated by: eduard salla
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Imatge {current} de {total}",
|
||||
previous: "Anterior",
|
||||
next: "Següent",
|
||||
close: "Tancar",
|
||||
xhrError: "Error en la càrrega del contingut.",
|
||||
imgError: "Error en la càrrega de la imatge."
|
||||
});
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
jQuery ColorBox language configuration
|
||||
jQuery Colorbox language configuration
|
||||
language: Czech (cs)
|
||||
translated by: Filip Novak
|
||||
site: mame.napilno.cz/filip-novak
|
||||
|
@ -10,5 +10,7 @@ jQuery.extend(jQuery.colorbox.settings, {
|
|||
next: "Následující",
|
||||
close: "Zavřít",
|
||||
xhrError: "Obsah se nepodařilo načíst.",
|
||||
imgError: "Obrázek se nepodařilo načíst."
|
||||
imgError: "Obrázek se nepodařilo načíst.",
|
||||
slideshowStart: "Spustit slideshow",
|
||||
slideshowStop: "Zastavit slideshow"
|
||||
});
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
jQuery ColorBox language configuration
|
||||
jQuery Colorbox language configuration
|
||||
language: Danish (da)
|
||||
translated by: danieljuhl
|
||||
site: danieljuhl.dk
|
||||
|
@ -10,5 +10,7 @@ jQuery.extend(jQuery.colorbox.settings, {
|
|||
next: "Næste",
|
||||
close: "Luk",
|
||||
xhrError: "Indholdet fejlede i indlæsningen.",
|
||||
imgError: "Billedet fejlede i indlæsningen."
|
||||
imgError: "Billedet fejlede i indlæsningen.",
|
||||
slideshowStart: "Start slideshow",
|
||||
slideshowStop: "Stop slideshow"
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
jQuery ColorBox language configuration
|
||||
jQuery Colorbox language configuration
|
||||
language: German (de)
|
||||
translated by: wallenium
|
||||
*/
|
||||
|
@ -9,5 +9,7 @@ jQuery.extend(jQuery.colorbox.settings, {
|
|||
next: "Vor",
|
||||
close: "Schließen",
|
||||
xhrError: "Dieser Inhalt konnte nicht geladen werden.",
|
||||
imgError: "Dieses Bild konnte nicht geladen werden."
|
||||
imgError: "Dieses Bild konnte nicht geladen werden.",
|
||||
slideshowStart: "Slideshow starten",
|
||||
slideshowStop: "Slideshow anhalten"
|
||||
});
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
jQuery ColorBox language configuration
|
||||
jQuery Colorbox language configuration
|
||||
language: Spanish (es)
|
||||
translated by: migolo
|
||||
*/
|
||||
|
|
15
library/colorbox/i18n/jquery.colorbox-et.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Estonian (et)
|
||||
translated by: keevitaja
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "{current}/{total}",
|
||||
previous: "eelmine",
|
||||
next: "järgmine",
|
||||
close: "sulge",
|
||||
xhrError: "Sisu ei õnnestunud laadida.",
|
||||
imgError: "Pilti ei õnnestunud laadida.",
|
||||
slideshowStart: "Käivita slaidid",
|
||||
slideshowStop: "Peata slaidid"
|
||||
});
|
18
library/colorbox/i18n/jquery.colorbox-fa.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Persian (Farsi)
|
||||
translated by: Mahdi Jaberzadeh Ansari (MJZSoft)
|
||||
site: www.mjzsoft.ir
|
||||
email: mahdijaberzadehansari (at) yahoo.co.uk
|
||||
Please note : Persian language is right to left like arabic.
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "تصویر {current} از {total}",
|
||||
previous: "قبلی",
|
||||
next: "بعدی",
|
||||
close: "بستن",
|
||||
xhrError: "متاسفانه محتویات مورد نظر قابل نمایش نیست.",
|
||||
imgError: "متاسفانه بارگذاری این عکس با مشکل مواجه شده است.",
|
||||
slideshowStart: "آغاز نمایش خودکار",
|
||||
slideshowStop: "توقف نمایش خودکار"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-fi.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Finnish (fi)
|
||||
translated by: Mikko
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Kuva {current} / {total}",
|
||||
previous: "Edellinen",
|
||||
next: "Seuraava",
|
||||
close: "Sulje",
|
||||
xhrError: "Sisällön lataaminen epäonnistui.",
|
||||
imgError: "Kuvan lataaminen epäonnistui.",
|
||||
slideshowStart: "Aloita kuvaesitys.",
|
||||
slideshowStop: "Lopeta kuvaesitys."
|
||||
});
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
jQuery ColorBox language configuration
|
||||
jQuery Colorbox language configuration
|
||||
language: French (fr)
|
||||
translated by: oaubert
|
||||
*/
|
||||
|
@ -9,6 +9,7 @@ previous: "précédente",
|
|||
next: "suivante",
|
||||
close: "fermer",
|
||||
xhrError: "Impossible de charger ce contenu.",
|
||||
imgError: "Impossible de charger cette image."
|
||||
imgError: "Impossible de charger cette image.",
|
||||
slideshowStart: "démarrer la présentation",
|
||||
slideshowStop: "arrêter la présentation"
|
||||
});
|
||||
|
||||
|
|
13
library/colorbox/i18n/jquery.colorbox-gl.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Galician (gl)
|
||||
translated by: donatorouco
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Imaxe {current} de {total}",
|
||||
previous: "Anterior",
|
||||
next: "Seguinte",
|
||||
close: "Pechar",
|
||||
xhrError: "Erro na carga do contido.",
|
||||
imgError: "Erro na carga da imaxe."
|
||||
});
|
16
library/colorbox/i18n/jquery.colorbox-gr.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Greek (gr)
|
||||
translated by: S.Demirtzoglou
|
||||
site: webiq.gr
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Εικόνα {current} από {total}",
|
||||
previous: "Προηγούμενη",
|
||||
next: "Επόμενη",
|
||||
close: "Απόκρυψη",
|
||||
xhrError: "Το περιεχόμενο δεν μπόρεσε να φορτωθεί.",
|
||||
imgError: "Απέτυχε η φόρτωση της εικόνας.",
|
||||
slideshowStart: "Έναρξη παρουσίασης",
|
||||
slideshowStop: "Παύση παρουσίασης"
|
||||
});
|
16
library/colorbox/i18n/jquery.colorbox-he.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Hebrew (he)
|
||||
translated by: David Cohen
|
||||
site: dav.co.il
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "תמונה {current} מתוך {total}",
|
||||
previous: "הקודם",
|
||||
next: "הבא",
|
||||
close: "סגור",
|
||||
xhrError: "שגיאה בטעינת התוכן.",
|
||||
imgError: "שגיאה בטעינת התמונה.",
|
||||
slideshowStart: "התחל מצגת",
|
||||
slideshowStop: "עצור מצגת"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-hr.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Croatian (hr)
|
||||
translated by: Mladen Bicanic (base.hr)
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Slika {current} od {total}",
|
||||
previous: "Prethodna",
|
||||
next: "Sljedeća",
|
||||
close: "Zatvori",
|
||||
xhrError: "Neuspješno učitavanje sadržaja.",
|
||||
imgError: "Neuspješno učitavanje slike.",
|
||||
slideshowStart: "Pokreni slideshow",
|
||||
slideshowStop: "Zaustavi slideshow"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-hu.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Hungarian (hu)
|
||||
translated by: kovadani
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "{current}/{total} kép",
|
||||
previous: "Előző",
|
||||
next: "Következő",
|
||||
close: "Bezár",
|
||||
xhrError: "A tartalmat nem sikerült betölteni.",
|
||||
imgError: "A képet nem sikerült betölteni.",
|
||||
slideshowStart: "Diavetítés indítása",
|
||||
slideshowStop: "Diavetítés leállítása"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-id.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Indonesian (id)
|
||||
translated by: sarwasunda
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "ke {current} dari {total}",
|
||||
previous: "Sebelumnya",
|
||||
next: "Berikutnya",
|
||||
close: "Tutup",
|
||||
xhrError: "Konten ini tidak dapat dimuat.",
|
||||
imgError: "Gambar ini tidak dapat dimuat.",
|
||||
slideshowStart: "Putar",
|
||||
slideshowStop: "Berhenti"
|
||||
});
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
jQuery ColorBox language configuration
|
||||
jQuery Colorbox language configuration
|
||||
language: Italian (it)
|
||||
translated by: maur8ino
|
||||
*/
|
||||
|
@ -9,5 +9,7 @@ jQuery.extend(jQuery.colorbox.settings, {
|
|||
next: "Successiva",
|
||||
close: "Chiudi",
|
||||
xhrError: "Errore nel caricamento del contenuto.",
|
||||
imgError: "Errore nel caricamento dell'immagine."
|
||||
imgError: "Errore nel caricamento dell'immagine.",
|
||||
slideshowStart: "Inizia la presentazione",
|
||||
slideshowStop: "Termina la presentazione"
|
||||
});
|
||||
|
|
15
library/colorbox/i18n/jquery.colorbox-ja.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Japanaese (ja)
|
||||
translated by: Hajime Fujimoto
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "{total}枚中{current}枚目",
|
||||
previous: "前",
|
||||
next: "次",
|
||||
close: "閉じる",
|
||||
xhrError: "コンテンツの読み込みに失敗しました",
|
||||
imgError: "画像の読み込みに失敗しました",
|
||||
slideshowStart: "スライドショー開始",
|
||||
slideshowStop: "スライドショー終了"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-kr.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Korean (kr)
|
||||
translated by: lunareffect
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "총 {total} 중 {current}",
|
||||
previous: "이전",
|
||||
next: "다음",
|
||||
close: "닫기",
|
||||
xhrError: "컨텐츠를 불러오는 데 실패했습니다.",
|
||||
imgError: "이미지를 불러오는 데 실패했습니다.",
|
||||
slideshowStart: "슬라이드쇼 시작",
|
||||
slideshowStop: "슬라이드쇼 중지"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-lt.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Lithuanian (lt)
|
||||
translated by: Tomas Norkūnas
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Nuotrauka {current} iš {total}",
|
||||
previous: "Atgal",
|
||||
next: "Pirmyn",
|
||||
close: "Uždaryti",
|
||||
xhrError: "Nepavyko užkrauti turinio.",
|
||||
imgError: "Nepavyko užkrauti nuotraukos.",
|
||||
slideshowStart: "Pradėti automatinę peržiūrą",
|
||||
slideshowStop: "Sustabdyti automatinę peržiūrą"
|
||||
});
|
16
library/colorbox/i18n/jquery.colorbox-lv.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Latvian (lv)
|
||||
translated by: Matiss Roberts Treinis
|
||||
site: x0.lv
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "attēls {current} no {total}",
|
||||
previous: "iepriekšējais",
|
||||
next: "nākamais",
|
||||
close: "aizvērt",
|
||||
xhrError: "Neizdevās ielādēt saturu.",
|
||||
imgError: "Neizdevās ielādēt attēlu.",
|
||||
slideshowStart: "sākt slaidrādi",
|
||||
slideshowStop: "apturēt slaidrādi"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-my.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Myanmar (my)
|
||||
translated by: Yan Naing
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "ပုံ {total} မှာ {current} မြောက်ပုံ",
|
||||
previous: "ရှေ့သို့",
|
||||
next: "နောက်သို့",
|
||||
close: "ပိတ်မည်",
|
||||
xhrError: "ပါဝင်သော အကြောင်းအရာများ ဖော်ပြရာတွင် အနည်းငယ် ချို့ယွင်းမှုရှိနေပါသည်",
|
||||
imgError: "ပုံပြသရာတွင် အနည်းငယ် ချို့ယွင်းချက် ရှိနေပါသည်",
|
||||
slideshowStart: "ပုံများ စတင်ပြသမည်",
|
||||
slideshowStop: "ပုံပြသခြင်း ရပ်ဆိုင်မည်"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-nl.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Dutch (nl)
|
||||
translated by: barryvdh
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Afbeelding {current} van {total}",
|
||||
previous: "Vorige",
|
||||
next: "Volgende",
|
||||
close: "Sluiten",
|
||||
xhrError: "Deze inhoud kan niet geladen worden.",
|
||||
imgError: "Deze afbeelding kan niet geladen worden.",
|
||||
slideshowStart: "Diashow starten",
|
||||
slideshowStop: "Diashow stoppen"
|
||||
});
|
16
library/colorbox/i18n/jquery.colorbox-no.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Norwegian (no)
|
||||
translated by: lars-erik
|
||||
site: markedspartner.no
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Bilde {current} av {total}",
|
||||
previous: "Forrige",
|
||||
next: "Neste",
|
||||
close: "Lukk",
|
||||
xhrError: "Feil ved lasting av innhold.",
|
||||
imgError: "Feil ved lasting av bilde.",
|
||||
slideshowStart: "Start lysbildefremvisning",
|
||||
slideshowStop: "Stopp lysbildefremvisning"
|
||||
});
|
16
library/colorbox/i18n/jquery.colorbox-pl.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Polski (pl)
|
||||
translated by: Tomasz Wasiński
|
||||
site: 2bevisible.pl
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "{current}. obrazek z {total}",
|
||||
previous: "Poprzedni",
|
||||
next: "Następny",
|
||||
close: "Zamknij",
|
||||
xhrError: "Nie udało się załadować treści.",
|
||||
imgError: "Nie udało się załadować obrazka.",
|
||||
slideshowStart: "rozpocznij pokaz slajdów",
|
||||
slideshowStop: "zatrzymaj pokaz slajdów"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-pt-BR.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Brazilian Portuguese (pt-BR)
|
||||
translated by: ReinaldoMT
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Imagem {current} de {total}",
|
||||
previous: "Anterior",
|
||||
next: "Próxima",
|
||||
close: "Fechar",
|
||||
slideshowStart: "iniciar apresentação de slides",
|
||||
slideshowStop: "parar apresentação de slides",
|
||||
xhrError: "Erro ao carregar o conteúdo.",
|
||||
imgError: "Erro ao carregar a imagem."
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-ro.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Romanian (ro)
|
||||
translated by: shurub3l
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "imagine {current} din {total}",
|
||||
previous: "precedenta",
|
||||
next: "următoarea",
|
||||
close: "închideți",
|
||||
xhrError: "Acest conținut nu poate fi încărcat.",
|
||||
imgError: "Această imagine nu poate fi încărcată",
|
||||
slideshowStart: "începeți prezentarea (slideshow)",
|
||||
slideshowStop: "opriți prezentarea (slideshow)"
|
||||
});
|
|
@ -1,14 +1,16 @@
|
|||
/*
|
||||
jQuery ColorBox language configuration
|
||||
jQuery Colorbox language configuration
|
||||
language: Russian (ru)
|
||||
translated by: Marfa
|
||||
site: themarfa.name
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "изображение {current} из {total}",
|
||||
previous: "предыдущее",
|
||||
next: "следующее",
|
||||
previous: "назад",
|
||||
next: "вперёд",
|
||||
close: "закрыть",
|
||||
xhrError: "Не удалось загрузить содержимое.",
|
||||
imgError: "Не удалось загрузить изображение."
|
||||
imgError: "Не удалось загрузить изображение.",
|
||||
slideshowStart: "начать слайд-шоу",
|
||||
slideshowStop: "остановить слайд-шоу"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-si.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Slovenian (si)
|
||||
translated by: Boštjan Pišler (pisler.si)
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Slika {current} od {total}",
|
||||
previous: "Prejšnja",
|
||||
next: "Naslednja",
|
||||
close: "Zapri",
|
||||
xhrError: "Vsebine ni bilo mogoče naložiti.",
|
||||
imgError: "Slike ni bilo mogoče naložiti.",
|
||||
slideshowStart: "Zaženi prezentacijo",
|
||||
slideshowStop: "Zaustavi prezentacijo"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-sk.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Slovak (sk)
|
||||
translated by: Jaroslav Kostal
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "{current}. obrázok z {total}",
|
||||
previous: "Predchádzajúci",
|
||||
next: "Následujúci",
|
||||
close: "Zatvoriť",
|
||||
xhrError: "Obsah sa nepodarilo načítať.",
|
||||
imgError: "Obrázok sa nepodarilo načítať.",
|
||||
slideshowStart: "Spustiť slideshow",
|
||||
slideshowStop: "zastaviť slideshow"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-sr.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Serbian (sr)
|
||||
translated by: Sasa Stefanovic (baguje.com)
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Slika {current} od {total}",
|
||||
previous: "Prethodna",
|
||||
next: "Sledeća",
|
||||
close: "Zatvori",
|
||||
xhrError: "Neuspešno učitavanje sadržaja.",
|
||||
imgError: "Neuspešno učitavanje slike.",
|
||||
slideshowStart: "Pokreni slideshow",
|
||||
slideshowStop: "Zaustavi slideshow"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-sv.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Swedish (sv)
|
||||
translated by: Mattias Reichel
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Bild {current} av {total}",
|
||||
previous: "Föregående",
|
||||
next: "Nästa",
|
||||
close: "Stäng",
|
||||
xhrError: "Innehållet kunde inte laddas.",
|
||||
imgError: "Den här bilden kunde inte laddas.",
|
||||
slideshowStart: "Starta bildspel",
|
||||
slideshowStop: "Stoppa bildspel"
|
||||
});
|
19
library/colorbox/i18n/jquery.colorbox-tr.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Turkish (tr)
|
||||
translated by: Caner ÖNCEL
|
||||
site: egonomik.com
|
||||
|
||||
edited by: Sinan Eldem
|
||||
www.sinaneldem.com.tr
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "Görsel {current} / {total}",
|
||||
previous: "Önceki",
|
||||
next: "Sonraki",
|
||||
close: "Kapat",
|
||||
xhrError: "İçerik yüklenirken hata meydana geldi.",
|
||||
imgError: "Resim yüklenirken hata meydana geldi.",
|
||||
slideshowStart: "Slaytı Başlat",
|
||||
slideshowStop: "Slaytı Durdur"
|
||||
});
|
16
library/colorbox/i18n/jquery.colorbox-uk.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
jQuery ColorBox language configuration
|
||||
language: Ukrainian (uk)
|
||||
translated by: Andrew
|
||||
http://acisoftware.com.ua
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "зображення {current} з {total}",
|
||||
previous: "попереднє",
|
||||
next: "наступне",
|
||||
close: "закрити",
|
||||
xhrError: "Не вдалося завантажити вміст.",
|
||||
imgError: "Не вдалося завантажити зображення.",
|
||||
slideshowStart: "почати слайд-шоу",
|
||||
slideshowStop: "зупинити слайд-шоу"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-zh-CN.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Chinese Simplified (zh-CN)
|
||||
translated by: zhao weiming
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "当前图像 {current} 总共 {total}",
|
||||
previous: "前一页",
|
||||
next: "后一页",
|
||||
close: "关闭",
|
||||
xhrError: "此内容无法加载",
|
||||
imgError: "此图片无法加载",
|
||||
slideshowStart: "开始播放幻灯片",
|
||||
slideshowStop: "停止播放幻灯片"
|
||||
});
|
15
library/colorbox/i18n/jquery.colorbox-zh-TW.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
jQuery Colorbox language configuration
|
||||
language: Chinese Traditional (zh-TW)
|
||||
translated by: Atans Chiu
|
||||
*/
|
||||
jQuery.extend(jQuery.colorbox.settings, {
|
||||
current: "圖片 {current} 總共 {total}",
|
||||
previous: "上一頁",
|
||||
next: "下一頁",
|
||||
close: "關閉",
|
||||
xhrError: "此內容載入失敗.",
|
||||
imgError: "此圖片加入失敗.",
|
||||
slideshowStart: "開始幻燈片",
|
||||
slideshowStop: "結束幻燈片"
|
||||
});
|
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 131 B |
7
library/colorbox/jquery.colorbox-min.js
vendored
29
library/colorbox/package.json
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"name": "jquery-colorbox",
|
||||
"description": "jQuery lightbox and modal window plugin.",
|
||||
"version": "1.6.3",
|
||||
"keywords": [
|
||||
"modal",
|
||||
"lightbox",
|
||||
"gallery",
|
||||
"popup",
|
||||
"ui",
|
||||
"jquery-plugin"
|
||||
],
|
||||
"author": {
|
||||
"name": "Jack Moore",
|
||||
"url": "http://www.jacklmoore.com",
|
||||
"email": "hello@jacklmoore.com"
|
||||
},
|
||||
"main": "jquery.colorbox.js",
|
||||
"license": "MIT",
|
||||
"homepage": "http://www.jacklmoore.com/colorbox",
|
||||
"demo": "http://www.jacklmoore.com/colorbox",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "http://github.com/jackmoore/colorbox.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"jquery": ">=1.3.2"
|
||||
}
|
||||
}
|