Merge pull request #599 from fermionic/20130129-colorbox
Switch to Colorbox
|
@ -103,9 +103,13 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// fancyboxes
|
// fancyboxes
|
||||||
$("a.popupbox").fancybox({
|
/*$("a.popupbox").fancybox({
|
||||||
'transitionIn' : 'elastic',
|
'transitionIn' : 'elastic',
|
||||||
'transitionOut' : 'elastic'
|
'transitionOut' : 'elastic'
|
||||||
|
});*/
|
||||||
|
$("a.popupbox").colorbox({
|
||||||
|
'inline' : true,
|
||||||
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
2
js/main.min.js
vendored
376
library/colorbox/README.md
Normal file
|
@ -0,0 +1,376 @@
|
||||||
|
## 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
|
||||||
|
|
||||||
|
* Improved internal event subscribing & fixed event bug introduced in v1.3.21
|
||||||
|
|
||||||
|
### Version 1.3.31 - 2013/1/28
|
||||||
|
|
||||||
|
* Fixed a size-calculation bug introduced in the previous commit.
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
|
||||||
|
* Fixed compatibility issue with old versions of jQuery (1.3.2-1.4.2)
|
||||||
|
|
||||||
|
### Version 1.3.27 - 2013/1/23
|
||||||
|
|
||||||
|
* Added className property.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
|
||||||
|
* Removed grunt file & added Bower component.json.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
|
||||||
|
* Minor bugfix for calling ColorBox on empty jQuery collections without a selector.
|
||||||
|
|
||||||
|
### Version 1.3.22 - 2013/1/17
|
||||||
|
|
||||||
|
* Recommit for plugins.jquery.com
|
||||||
|
|
||||||
|
### Version 1.3.21 - 2013/1/15
|
||||||
|
Files Changed: *.js
|
||||||
|
|
||||||
|
* Fixed compatability issues with jQuery 1.9
|
||||||
|
|
||||||
|
### 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
|
||||||
|
Files Changed:jquery.colorbox.js, colorbox.css (all)
|
||||||
|
|
||||||
|
* Fixed bug related to using the 'fixed' property.
|
||||||
|
* Optimized the setup procedure to be more efficient.
|
||||||
|
* 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
|
||||||
|
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.
|
||||||
|
* 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
|
||||||
|
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.
|
||||||
|
* Fixed ClearType problem with IE7.
|
||||||
|
* Minor fixes.
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
* Added error handling for broken image links. A message will be displayed telling the user that the image could not be loaded.
|
||||||
|
* 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
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Minor fixes for specific cases.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
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.
|
||||||
|
* Minor bug fix involved in using a combination of slideshow and non-slideshow content.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
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
|
||||||
|
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.
|
||||||
|
* Some functionality better encapsulated & minor performance improvements.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
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.
|
||||||
|
* 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
|
||||||
|
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();
|
||||||
|
* 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
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Small change to make ColorBox compatible with jQuery 1.4
|
||||||
|
|
||||||
|
### 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
|
||||||
|
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.
|
||||||
|
* 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>'});`
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
* jQuery.colorbox-min.js is compressed with Google's Closure Compiler rather than YUI Compressor.
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
* 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.
|
||||||
|
* Simplified code in a few areas.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
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 '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 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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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.
|
||||||
|
* 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
|
||||||
|
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 FF3 bug where the back button was disabled after closing an iframe.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
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.
|
||||||
|
* Minor code reduction.
|
||||||
|
|
||||||
|
### 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 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
|
||||||
|
* Fixed an issue with the 'resize' option.
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
* 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
|
||||||
|
* Added a slideshow feature.
|
||||||
|
* 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.
|
||||||
|
* Fixed an IE6 bug where the loading overlay was not at full height.
|
||||||
|
* Removed the delay in switching between same-sized gallery content when using transitions.
|
||||||
|
* Changed how iframes are loaded to make it more compatible with iframed pages that use DOM dependent JavaScript.
|
||||||
|
* 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 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
|
||||||
|
* 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 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.
|
||||||
|
|
||||||
|
### 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.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.
|
||||||
|
* 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.
|
||||||
|
* 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.
|
||||||
|
* Switch from JSMin to Yui Compressor for minification. Minified code now under 7KB.
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
* 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
|
||||||
|
* 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.
|
||||||
|
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 '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.
|
||||||
|
* Clicking on a photo will now switch to the next photo in a set.
|
||||||
|
* Loading.gif is more stable in it's position.
|
||||||
|
* Added a minified version.
|
||||||
|
* Code passes JSLint.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
* 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
|
||||||
|
* Fixed vertical centering for Safari 3.0.x.
|
||||||
|
|
||||||
|
### 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
|
||||||
|
* Fixed keydown events (esc, left arrow, right arrow) for Webkit browsers.
|
||||||
|
|
||||||
|
### Version 1.0 - March 03 2009
|
||||||
|
* First release
|
1811
library/colorbox/colorbox.ai
Normal file
52
library/colorbox/colorbox.css
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
/*
|
||||||
|
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;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#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;}
|
||||||
|
#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
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#000;}
|
||||||
|
#colorbox{}
|
||||||
|
#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;}
|
||||||
|
#cboxBottomLeft{width:14px; height:43px; background:url(images/controls.png) no-repeat 0 -32px;}
|
||||||
|
#cboxBottomCenter{height:43px; background:url(images/border.png) repeat-x bottom left;}
|
||||||
|
#cboxBottomRight{width:14px; height:43px; background:url(images/controls.png) no-repeat -36px -32px;}
|
||||||
|
#cboxMiddleLeft{width:14px; background:url(images/controls.png) repeat-y -175px 0;}
|
||||||
|
#cboxMiddleRight{width:14px; background:url(images/controls.png) repeat-y -211px 0;}
|
||||||
|
#cboxContent{background:#fff; overflow:visible;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#cboxLoadedContent{margin-bottom:5px;}
|
||||||
|
#cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
|
||||||
|
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||||
|
#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;}
|
||||||
|
#cboxPrevious{left:0px; background-position: -51px -25px;}
|
||||||
|
#cboxPrevious:hover{background-position:-51px 0px;}
|
||||||
|
#cboxNext{left:27px; background-position:-75px -25px;}
|
||||||
|
#cboxNext:hover{background-position:-75px 0px;}
|
||||||
|
#cboxClose{right:0; background-position:-100px -25px;}
|
||||||
|
#cboxClose:hover{background-position:-100px 0px;}
|
||||||
|
|
||||||
|
.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
|
||||||
|
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
|
30
library/colorbox/colorbox.jquery.json
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
8
library/colorbox/component.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"name": "jquery-autosize",
|
||||||
|
"version": "1.3.32",
|
||||||
|
"main": "./jquery.autosize.js",
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": ">=1.3.2"
|
||||||
|
}
|
||||||
|
}
|
11
library/colorbox/content/ajax.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<div id='homer' style="background:url(../content/homer.jpg) right center no-repeat #ececec; height:135px; width:280px; padding:30px 10px;">
|
||||||
|
<strong>Homer</strong><br/>
|
||||||
|
<em>\noun\</em><br/>
|
||||||
|
<strong>1.</strong> American bonehead<br/>
|
||||||
|
<strong>2. Pull a Homer-</strong><br/>
|
||||||
|
to succeed despite<br/>
|
||||||
|
idiocy
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$('#homer strong').css({color:'red'});
|
||||||
|
</script>
|
BIN
library/colorbox/content/homer.jpg
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
library/colorbox/content/marylou.jpg
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
library/colorbox/content/ohoopee1.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
library/colorbox/content/ohoopee2.jpg
Normal file
After Width: | Height: | Size: 115 KiB |
BIN
library/colorbox/content/ohoopee3.jpg
Normal file
After Width: | Height: | Size: 70 KiB |
86
library/colorbox/example1/colorbox.css
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
/*
|
||||||
|
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;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#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;}
|
||||||
|
#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
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:url(images/overlay.png) repeat 0 0;}
|
||||||
|
#colorbox{}
|
||||||
|
#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;}
|
||||||
|
#cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px -29px;}
|
||||||
|
#cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
|
||||||
|
#cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
|
||||||
|
#cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
|
||||||
|
#cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
|
||||||
|
#cboxContent{background:#fff; overflow:hidden;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#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;}
|
||||||
|
#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;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
|
||||||
|
when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
|
||||||
|
See: http://jacklmoore.com/notes/ie-transparency-problems/
|
||||||
|
*/
|
||||||
|
.cboxIE #cboxTopLeft,
|
||||||
|
.cboxIE #cboxTopCenter,
|
||||||
|
.cboxIE #cboxTopRight,
|
||||||
|
.cboxIE #cboxBottomLeft,
|
||||||
|
.cboxIE #cboxBottomCenter,
|
||||||
|
.cboxIE #cboxBottomRight,
|
||||||
|
.cboxIE #cboxMiddleLeft,
|
||||||
|
.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')");
|
||||||
|
}
|
BIN
library/colorbox/example1/images/border.png
Normal file
After Width: | Height: | Size: 112 B |
BIN
library/colorbox/example1/images/controls.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
library/colorbox/example1/images/ie6/borderBottomCenter.png
Normal file
After Width: | Height: | Size: 111 B |
BIN
library/colorbox/example1/images/ie6/borderBottomLeft.png
Normal file
After Width: | Height: | Size: 215 B |
BIN
library/colorbox/example1/images/ie6/borderBottomRight.png
Normal file
After Width: | Height: | Size: 217 B |
BIN
library/colorbox/example1/images/ie6/borderMiddleLeft.png
Normal file
After Width: | Height: | Size: 108 B |
BIN
library/colorbox/example1/images/ie6/borderMiddleRight.png
Normal file
After Width: | Height: | Size: 108 B |
BIN
library/colorbox/example1/images/ie6/borderTopCenter.png
Normal file
After Width: | Height: | Size: 111 B |
BIN
library/colorbox/example1/images/ie6/borderTopLeft.png
Normal file
After Width: | Height: | Size: 216 B |
BIN
library/colorbox/example1/images/ie6/borderTopRight.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
library/colorbox/example1/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
library/colorbox/example1/images/loading_background.png
Normal file
After Width: | Height: | Size: 157 B |
BIN
library/colorbox/example1/images/overlay.png
Normal file
After Width: | Height: | Size: 182 B |
87
library/colorbox/example1/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<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="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//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});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//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.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<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>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<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='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>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<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>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
43
library/colorbox/example2/colorbox.css
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
/*
|
||||||
|
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;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#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;}
|
||||||
|
#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
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#fff;}
|
||||||
|
#colorbox{}
|
||||||
|
#cboxContent{margin-top:32px; overflow:visible;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#cboxLoadedContent{background:#000; padding:1px;}
|
||||||
|
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||||
|
#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;}
|
||||||
|
#cboxPrevious{background-position:0px 0px; right:44px;}
|
||||||
|
#cboxPrevious:hover{background-position:0px -25px;}
|
||||||
|
#cboxNext{background-position:-25px 0px; right:22px;}
|
||||||
|
#cboxNext:hover{background-position:-25px -25px;}
|
||||||
|
#cboxClose{background-position:-50px 0px; right:0;}
|
||||||
|
#cboxClose:hover{background-position:-50px -25px;}
|
||||||
|
.cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{right:66px;}
|
||||||
|
.cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px; right:44px;}
|
||||||
|
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-100px -25px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow{background-position:-100px 0px; right:44px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-75px -25px;}
|
BIN
library/colorbox/example2/images/controls.png
Normal file
After Width: | Height: | Size: 570 B |
BIN
library/colorbox/example2/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
87
library/colorbox/example2/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<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="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//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});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//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.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<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>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<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='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>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<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>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
38
library/colorbox/example3/colorbox.css
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
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;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#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;}
|
||||||
|
#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
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#000;}
|
||||||
|
#colorbox{}
|
||||||
|
#cboxContent{margin-top:20px;}
|
||||||
|
.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;}
|
||||||
|
#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;}
|
BIN
library/colorbox/example3/images/controls.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
library/colorbox/example3/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
87
library/colorbox/example3/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<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="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//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});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//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.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<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>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<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='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>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<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>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
82
library/colorbox/example4/colorbox.css
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
/*
|
||||||
|
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;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#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;}
|
||||||
|
#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
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#fff;}
|
||||||
|
#colorbox{}
|
||||||
|
#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;}
|
||||||
|
#cboxBottomLeft{width:25px; height:25px; background:url(images/border1.png) no-repeat 0 -25px;}
|
||||||
|
#cboxBottomCenter{height:25px; background:url(images/border1.png) repeat-x 0 -75px;}
|
||||||
|
#cboxBottomRight{width:25px; height:25px; background:url(images/border1.png) no-repeat -25px -25px;}
|
||||||
|
#cboxMiddleLeft{width:25px; background:url(images/border2.png) repeat-y 0 0;}
|
||||||
|
#cboxMiddleRight{width:25px; background:url(images/border2.png) repeat-y -25px 0;}
|
||||||
|
#cboxContent{background:#fff; overflow:hidden;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#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;}
|
||||||
|
#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;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
|
||||||
|
when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
|
||||||
|
See: http://jacklmoore.com/notes/ie-transparency-problems/
|
||||||
|
*/
|
||||||
|
.cboxIE #cboxTopLeft,
|
||||||
|
.cboxIE #cboxTopCenter,
|
||||||
|
.cboxIE #cboxTopRight,
|
||||||
|
.cboxIE #cboxBottomLeft,
|
||||||
|
.cboxIE #cboxBottomCenter,
|
||||||
|
.cboxIE #cboxBottomRight,
|
||||||
|
.cboxIE #cboxMiddleLeft,
|
||||||
|
.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')");
|
||||||
|
}
|
BIN
library/colorbox/example4/images/border1.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
library/colorbox/example4/images/border2.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
library/colorbox/example4/images/ie6/borderBottomCenter.png
Normal file
After Width: | Height: | Size: 153 B |
BIN
library/colorbox/example4/images/ie6/borderBottomLeft.png
Normal file
After Width: | Height: | Size: 473 B |
BIN
library/colorbox/example4/images/ie6/borderBottomRight.png
Normal file
After Width: | Height: | Size: 470 B |
BIN
library/colorbox/example4/images/ie6/borderMiddleLeft.png
Normal file
After Width: | Height: | Size: 148 B |
BIN
library/colorbox/example4/images/ie6/borderMiddleRight.png
Normal file
After Width: | Height: | Size: 139 B |
BIN
library/colorbox/example4/images/ie6/borderTopCenter.png
Normal file
After Width: | Height: | Size: 153 B |
BIN
library/colorbox/example4/images/ie6/borderTopLeft.png
Normal file
After Width: | Height: | Size: 359 B |
BIN
library/colorbox/example4/images/ie6/borderTopRight.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
library/colorbox/example4/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
87
library/colorbox/example4/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<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="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//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});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//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.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<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>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<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='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>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<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>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
52
library/colorbox/example5/colorbox.css
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
/*
|
||||||
|
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;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#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;}
|
||||||
|
#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
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#000;}
|
||||||
|
#colorbox{}
|
||||||
|
#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;}
|
||||||
|
#cboxBottomLeft{width:14px; height:43px; background:url(images/controls.png) no-repeat 0 -32px;}
|
||||||
|
#cboxBottomCenter{height:43px; background:url(images/border.png) repeat-x bottom left;}
|
||||||
|
#cboxBottomRight{width:14px; height:43px; background:url(images/controls.png) no-repeat -36px -32px;}
|
||||||
|
#cboxMiddleLeft{width:14px; background:url(images/controls.png) repeat-y -175px 0;}
|
||||||
|
#cboxMiddleRight{width:14px; background:url(images/controls.png) repeat-y -211px 0;}
|
||||||
|
#cboxContent{background:#fff; overflow:visible;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#cboxLoadedContent{margin-bottom:5px;}
|
||||||
|
#cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
|
||||||
|
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||||
|
#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;}
|
||||||
|
#cboxPrevious{left:0px; background-position: -51px -25px;}
|
||||||
|
#cboxPrevious:hover{background-position:-51px 0px;}
|
||||||
|
#cboxNext{left:27px; background-position:-75px -25px;}
|
||||||
|
#cboxNext:hover{background-position:-75px 0px;}
|
||||||
|
#cboxClose{right:0; background-position:-100px -25px;}
|
||||||
|
#cboxClose:hover{background-position:-100px 0px;}
|
||||||
|
|
||||||
|
.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
|
||||||
|
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
|
BIN
library/colorbox/example5/images/border.png
Normal file
After Width: | Height: | Size: 163 B |
BIN
library/colorbox/example5/images/controls.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
library/colorbox/example5/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
library/colorbox/example5/images/loading_background.png
Normal file
After Width: | Height: | Size: 166 B |
87
library/colorbox/example5/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<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="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//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});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//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.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<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>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<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='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>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<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>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
14
library/colorbox/i18n/jquery.colorbox-cs.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/*
|
||||||
|
jQuery ColorBox language configuration
|
||||||
|
language: Czech (cs)
|
||||||
|
translated by: Filip Novak
|
||||||
|
site: mame.napilno.cz/filip-novak
|
||||||
|
*/
|
||||||
|
jQuery.extend(jQuery.colorbox.settings, {
|
||||||
|
current: "{current}. obrázek z {total}",
|
||||||
|
previous: "Předchozí",
|
||||||
|
next: "Následující",
|
||||||
|
close: "Zavřít",
|
||||||
|
xhrError: "Obsah se nepodařilo načíst.",
|
||||||
|
imgError: "Obrázek se nepodařilo načíst."
|
||||||
|
});
|
14
library/colorbox/i18n/jquery.colorbox-da.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/*
|
||||||
|
jQuery ColorBox language configuration
|
||||||
|
language: Danish (da)
|
||||||
|
translated by: danieljuhl
|
||||||
|
site: danieljuhl.dk
|
||||||
|
*/
|
||||||
|
jQuery.extend(jQuery.colorbox.settings, {
|
||||||
|
current: "Billede {current} af {total}",
|
||||||
|
previous: "Forrige",
|
||||||
|
next: "Næste",
|
||||||
|
close: "Luk",
|
||||||
|
xhrError: "Indholdet fejlede i indlæsningen.",
|
||||||
|
imgError: "Billedet fejlede i indlæsningen."
|
||||||
|
});
|
13
library/colorbox/i18n/jquery.colorbox-de.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/*
|
||||||
|
jQuery ColorBox language configuration
|
||||||
|
language: German (de)
|
||||||
|
translated by: wallenium
|
||||||
|
*/
|
||||||
|
jQuery.extend(jQuery.colorbox.settings, {
|
||||||
|
current: "Bild {current} von {total}",
|
||||||
|
previous: "Zurück",
|
||||||
|
next: "Vor",
|
||||||
|
close: "Schließen",
|
||||||
|
xhrError: "Dieser Inhalt konnte nicht geladen werden.",
|
||||||
|
imgError: "Dieses Bild konnte nicht geladen werden."
|
||||||
|
});
|
13
library/colorbox/i18n/jquery.colorbox-es.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/*
|
||||||
|
jQuery ColorBox language configuration
|
||||||
|
language: Spanish (es)
|
||||||
|
translated by: migolo
|
||||||
|
*/
|
||||||
|
jQuery.extend(jQuery.colorbox.settings, {
|
||||||
|
current: "Imagen {current} de {total}",
|
||||||
|
previous: "Anterior",
|
||||||
|
next: "Siguiente",
|
||||||
|
close: "Cerrar",
|
||||||
|
xhrError: "Error en la carga del contenido.",
|
||||||
|
imgError: "Error en la carga de la imagen."
|
||||||
|
});
|
14
library/colorbox/i18n/jquery.colorbox-fr.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/*
|
||||||
|
jQuery ColorBox language configuration
|
||||||
|
language: French (fr)
|
||||||
|
translated by: oaubert
|
||||||
|
*/
|
||||||
|
jQuery.extend(jQuery.colorbox.settings, {
|
||||||
|
current: "image {current} sur {total}",
|
||||||
|
previous: "précédente",
|
||||||
|
next: "suivante",
|
||||||
|
close: "fermer",
|
||||||
|
xhrError: "Impossible de charger ce contenu.",
|
||||||
|
imgError: "Impossible de charger cette image."
|
||||||
|
});
|
||||||
|
|
13
library/colorbox/i18n/jquery.colorbox-it.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/*
|
||||||
|
jQuery ColorBox language configuration
|
||||||
|
language: Italian (it)
|
||||||
|
translated by: maur8ino
|
||||||
|
*/
|
||||||
|
jQuery.extend(jQuery.colorbox.settings, {
|
||||||
|
current: "Immagine {current} di {total}",
|
||||||
|
previous: "Precedente",
|
||||||
|
next: "Successiva",
|
||||||
|
close: "Chiudi",
|
||||||
|
xhrError: "Errore nel caricamento del contenuto.",
|
||||||
|
imgError: "Errore nel caricamento dell'immagine."
|
||||||
|
});
|
14
library/colorbox/i18n/jquery.colorbox-ru.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/*
|
||||||
|
jQuery ColorBox language configuration
|
||||||
|
language: Russian (ru)
|
||||||
|
translated by: Marfa
|
||||||
|
site: themarfa.name
|
||||||
|
*/
|
||||||
|
jQuery.extend(jQuery.colorbox.settings, {
|
||||||
|
current: "изображение {current} из {total}",
|
||||||
|
previous: "предыдущее",
|
||||||
|
next: "следующее",
|
||||||
|
close: "закрыть",
|
||||||
|
xhrError: "Не удалось загрузить содержимое.",
|
||||||
|
imgError: "Не удалось загрузить изображение."
|
||||||
|
});
|
BIN
library/colorbox/images/border.png
Normal file
After Width: | Height: | Size: 163 B |
BIN
library/colorbox/images/controls.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
library/colorbox/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
library/colorbox/images/loading_background.png
Normal file
After Width: | Height: | Size: 166 B |
1
library/colorbox/jquery.colorbox-min.js
vendored
Normal file
975
library/colorbox/jquery.colorbox.js
Normal file
|
@ -0,0 +1,975 @@
|
||||||
|
/*
|
||||||
|
jQuery ColorBox v1.3.32 - 2013-01-31
|
||||||
|
(c) 2013 Jack Moore - jacklmoore.com/colorbox
|
||||||
|
license: http://www.opensource.org/licenses/mit-license.php
|
||||||
|
*/
|
||||||
|
(function ($, document, window) {
|
||||||
|
var
|
||||||
|
// Default settings object.
|
||||||
|
// See http://jacklmoore.com/colorbox for details.
|
||||||
|
defaults = {
|
||||||
|
transition: "elastic",
|
||||||
|
speed: 300,
|
||||||
|
width: false,
|
||||||
|
initialWidth: "600",
|
||||||
|
innerWidth: false,
|
||||||
|
maxWidth: false,
|
||||||
|
height: false,
|
||||||
|
initialHeight: "450",
|
||||||
|
innerHeight: false,
|
||||||
|
maxHeight: false,
|
||||||
|
scalePhotos: true,
|
||||||
|
scrolling: true,
|
||||||
|
inline: false,
|
||||||
|
html: false,
|
||||||
|
iframe: false,
|
||||||
|
fastIframe: true,
|
||||||
|
photo: false,
|
||||||
|
href: false,
|
||||||
|
title: false,
|
||||||
|
rel: false,
|
||||||
|
opacity: 0.9,
|
||||||
|
preloading: true,
|
||||||
|
className: false,
|
||||||
|
|
||||||
|
current: "image {current} of {total}",
|
||||||
|
previous: "previous",
|
||||||
|
next: "next",
|
||||||
|
close: "close",
|
||||||
|
xhrError: "This content failed to load.",
|
||||||
|
imgError: "This image failed to load.",
|
||||||
|
|
||||||
|
open: false,
|
||||||
|
returnFocus: true,
|
||||||
|
reposition: true,
|
||||||
|
loop: true,
|
||||||
|
slideshow: false,
|
||||||
|
slideshowAuto: true,
|
||||||
|
slideshowSpeed: 2500,
|
||||||
|
slideshowStart: "start slideshow",
|
||||||
|
slideshowStop: "stop slideshow",
|
||||||
|
onOpen: false,
|
||||||
|
onLoad: false,
|
||||||
|
onComplete: false,
|
||||||
|
onCleanup: false,
|
||||||
|
onClosed: false,
|
||||||
|
overlayClose: true,
|
||||||
|
escKey: true,
|
||||||
|
arrowKey: true,
|
||||||
|
top: false,
|
||||||
|
bottom: false,
|
||||||
|
left: false,
|
||||||
|
right: false,
|
||||||
|
fixed: false,
|
||||||
|
data: undefined
|
||||||
|
},
|
||||||
|
|
||||||
|
// Abstracting the HTML and event identifiers for easy rebranding
|
||||||
|
colorbox = 'colorbox',
|
||||||
|
prefix = 'cbox',
|
||||||
|
boxElement = prefix + 'Element',
|
||||||
|
|
||||||
|
// Events
|
||||||
|
event_open = prefix + '_open',
|
||||||
|
event_load = prefix + '_load',
|
||||||
|
event_complete = prefix + '_complete',
|
||||||
|
event_cleanup = prefix + '_cleanup',
|
||||||
|
event_closed = prefix + '_closed',
|
||||||
|
event_purge = prefix + '_purge',
|
||||||
|
|
||||||
|
// Special Handling for IE
|
||||||
|
isIE = !$.support.leadingWhitespace, // IE6 to IE8
|
||||||
|
isIE6 = isIE && !window.XMLHttpRequest, // IE6
|
||||||
|
event_ie6 = prefix + '_IE6',
|
||||||
|
|
||||||
|
// Cached jQuery Object Variables
|
||||||
|
$overlay,
|
||||||
|
$box,
|
||||||
|
$wrap,
|
||||||
|
$content,
|
||||||
|
$topBorder,
|
||||||
|
$leftBorder,
|
||||||
|
$rightBorder,
|
||||||
|
$bottomBorder,
|
||||||
|
$related,
|
||||||
|
$window,
|
||||||
|
$loaded,
|
||||||
|
$loadingBay,
|
||||||
|
$loadingOverlay,
|
||||||
|
$title,
|
||||||
|
$current,
|
||||||
|
$slideshow,
|
||||||
|
$next,
|
||||||
|
$prev,
|
||||||
|
$close,
|
||||||
|
$groupControls,
|
||||||
|
$events = $({}),
|
||||||
|
|
||||||
|
// Variables for cached values or use across multiple functions
|
||||||
|
settings,
|
||||||
|
interfaceHeight,
|
||||||
|
interfaceWidth,
|
||||||
|
loadedHeight,
|
||||||
|
loadedWidth,
|
||||||
|
element,
|
||||||
|
index,
|
||||||
|
photo,
|
||||||
|
open,
|
||||||
|
active,
|
||||||
|
closing,
|
||||||
|
loadingTimer,
|
||||||
|
publicMethod,
|
||||||
|
div = "div",
|
||||||
|
className,
|
||||||
|
init;
|
||||||
|
|
||||||
|
// ****************
|
||||||
|
// HELPER FUNCTIONS
|
||||||
|
// ****************
|
||||||
|
|
||||||
|
// Convience function for creating new jQuery objects
|
||||||
|
function $tag(tag, id, css) {
|
||||||
|
var element = document.createElement(tag);
|
||||||
|
|
||||||
|
if (id) {
|
||||||
|
element.id = prefix + id;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (css) {
|
||||||
|
element.style.cssText = css;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $(element);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Determine the next and previous members in a group.
|
||||||
|
function getIndex(increment) {
|
||||||
|
var
|
||||||
|
max = $related.length,
|
||||||
|
newIndex = (index + increment) % max;
|
||||||
|
|
||||||
|
return (newIndex < 0) ? max + newIndex : newIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert '%' and 'px' values to integers
|
||||||
|
function setSize(size, dimension) {
|
||||||
|
return Math.round((/%/.test(size) ? ((dimension === 'x' ? $window.width() : $window.height()) / 100) : 1) * parseInt(size, 10));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Checks an href to see if it is a photo.
|
||||||
|
// There is a force photo option (photo: true) for hrefs that cannot be matched by this regex.
|
||||||
|
function isImage(url) {
|
||||||
|
return settings.photo || /\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i.test(url);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Assigns function results to their respective properties
|
||||||
|
function makeSettings() {
|
||||||
|
var i,
|
||||||
|
data = $.data(element, colorbox);
|
||||||
|
|
||||||
|
if (data == null) {
|
||||||
|
settings = $.extend({}, defaults);
|
||||||
|
if (console && console.log) {
|
||||||
|
console.log('Error: cboxElement missing settings object');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
settings = $.extend({}, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i in settings) {
|
||||||
|
if ($.isFunction(settings[i]) && i.slice(0, 2) !== 'on') { // checks to make sure the function isn't one of the callbacks, they will be handled at the appropriate time.
|
||||||
|
settings[i] = settings[i].call(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
settings.rel = settings.rel || element.rel || $(element).data('rel') || 'nofollow';
|
||||||
|
settings.href = settings.href || $(element).attr('href');
|
||||||
|
settings.title = settings.title || element.title;
|
||||||
|
|
||||||
|
if (typeof settings.href === "string") {
|
||||||
|
settings.href = $.trim(settings.href);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function trigger(event, callback) {
|
||||||
|
// for external use
|
||||||
|
$(document).trigger(event);
|
||||||
|
|
||||||
|
// for internal use
|
||||||
|
$events.trigger(event);
|
||||||
|
|
||||||
|
if ($.isFunction(callback)) {
|
||||||
|
callback.call(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Slideshow functionality
|
||||||
|
function slideshow() {
|
||||||
|
var
|
||||||
|
timeOut,
|
||||||
|
className = prefix + "Slideshow_",
|
||||||
|
click = "click." + prefix,
|
||||||
|
clear,
|
||||||
|
set,
|
||||||
|
start,
|
||||||
|
stop;
|
||||||
|
|
||||||
|
if (settings.slideshow && $related[1]) {
|
||||||
|
clear = function () {
|
||||||
|
clearTimeout(timeOut);
|
||||||
|
};
|
||||||
|
|
||||||
|
set = function () {
|
||||||
|
if (settings.loop || $related[index + 1]) {
|
||||||
|
timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
start = function () {
|
||||||
|
$slideshow
|
||||||
|
.html(settings.slideshowStop)
|
||||||
|
.unbind(click)
|
||||||
|
.one(click, stop);
|
||||||
|
|
||||||
|
$events
|
||||||
|
.bind(event_complete, set)
|
||||||
|
.bind(event_load, clear)
|
||||||
|
.bind(event_cleanup, stop);
|
||||||
|
|
||||||
|
$box.removeClass(className + "off").addClass(className + "on");
|
||||||
|
};
|
||||||
|
|
||||||
|
stop = function () {
|
||||||
|
clear();
|
||||||
|
|
||||||
|
$events
|
||||||
|
.unbind(event_complete, set)
|
||||||
|
.unbind(event_load, clear)
|
||||||
|
.unbind(event_cleanup, stop);
|
||||||
|
|
||||||
|
$slideshow
|
||||||
|
.html(settings.slideshowStart)
|
||||||
|
.unbind(click)
|
||||||
|
.one(click, function () {
|
||||||
|
publicMethod.next();
|
||||||
|
start();
|
||||||
|
});
|
||||||
|
|
||||||
|
$box.removeClass(className + "on").addClass(className + "off");
|
||||||
|
};
|
||||||
|
|
||||||
|
if (settings.slideshowAuto) {
|
||||||
|
start();
|
||||||
|
} else {
|
||||||
|
stop();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$box.removeClass(className + "off " + className + "on");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function launch(target) {
|
||||||
|
if (!closing) {
|
||||||
|
|
||||||
|
element = target;
|
||||||
|
|
||||||
|
makeSettings();
|
||||||
|
|
||||||
|
$related = $(element);
|
||||||
|
|
||||||
|
index = 0;
|
||||||
|
|
||||||
|
if (settings.rel !== 'nofollow') {
|
||||||
|
$related = $('.' + boxElement).filter(function () {
|
||||||
|
var data = $.data(this, colorbox),
|
||||||
|
relRelated;
|
||||||
|
|
||||||
|
if (data) {
|
||||||
|
relRelated = $(this).data('rel') || data.rel || this.rel;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (relRelated === settings.rel);
|
||||||
|
});
|
||||||
|
index = $related.index(element);
|
||||||
|
|
||||||
|
// Check direct calls to ColorBox.
|
||||||
|
if (index === -1) {
|
||||||
|
$related = $related.add(element);
|
||||||
|
index = $related.length - 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!open) {
|
||||||
|
open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.
|
||||||
|
|
||||||
|
// Show colorbox so the sizes can be calculated in older versions of jQuery
|
||||||
|
$box.css({visibility:'hidden', display:'block'});
|
||||||
|
|
||||||
|
$loaded = $tag(div, 'LoadedContent', 'width:0; height:0; overflow:hidden').appendTo($content);
|
||||||
|
|
||||||
|
// Cache values needed for size calculations
|
||||||
|
interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(true) - $content.height();//Subtraction needed for IE6
|
||||||
|
interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(true) - $content.width();
|
||||||
|
loadedHeight = $loaded.outerHeight(true);
|
||||||
|
loadedWidth = $loaded.outerWidth(true);
|
||||||
|
|
||||||
|
if (settings.returnFocus) {
|
||||||
|
$(element).blur();
|
||||||
|
$events.one(event_closed, function () {
|
||||||
|
$(element).focus();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$overlay.css({
|
||||||
|
opacity: parseFloat(settings.opacity),
|
||||||
|
cursor: settings.overlayClose ? "pointer" : "auto",
|
||||||
|
visibility: 'visible'
|
||||||
|
}).show();
|
||||||
|
|
||||||
|
// Opens inital empty ColorBox prior to content being loaded.
|
||||||
|
settings.w = setSize(settings.initialWidth, 'x');
|
||||||
|
settings.h = setSize(settings.initialHeight, 'y');
|
||||||
|
publicMethod.position();
|
||||||
|
|
||||||
|
if (isIE6) {
|
||||||
|
$window.bind('resize.' + event_ie6 + ' scroll.' + event_ie6, function () {
|
||||||
|
$overlay.css({width: $window.width(), height: $window.height(), top: $window.scrollTop(), left: $window.scrollLeft()});
|
||||||
|
}).trigger('resize.' + event_ie6);
|
||||||
|
}
|
||||||
|
|
||||||
|
slideshow();
|
||||||
|
|
||||||
|
trigger(event_open, settings.onOpen);
|
||||||
|
|
||||||
|
$groupControls.add($title).hide();
|
||||||
|
|
||||||
|
$close.html(settings.close).show();
|
||||||
|
}
|
||||||
|
|
||||||
|
publicMethod.load(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ColorBox's markup needs to be added to the DOM prior to being called
|
||||||
|
// so that the browser will go ahead and load the CSS background images.
|
||||||
|
function appendHTML() {
|
||||||
|
if (!$box && document.body) {
|
||||||
|
init = false;
|
||||||
|
|
||||||
|
$window = $(window);
|
||||||
|
$box = $tag(div).attr({id: colorbox, 'class': isIE ? prefix + (isIE6 ? 'IE6' : 'IE') : ''}).hide();
|
||||||
|
$overlay = $tag(div, "Overlay", isIE6 ? 'position:absolute' : '').hide();
|
||||||
|
$loadingOverlay = $tag(div, "LoadingOverlay").add($tag(div, "LoadingGraphic"));
|
||||||
|
$wrap = $tag(div, "Wrapper");
|
||||||
|
$content = $tag(div, "Content").append(
|
||||||
|
$title = $tag(div, "Title"),
|
||||||
|
$current = $tag(div, "Current"),
|
||||||
|
$next = $tag(div, "Next"),
|
||||||
|
$prev = $tag(div, "Previous"),
|
||||||
|
$slideshow = $tag(div, "Slideshow"),
|
||||||
|
$close = $tag(div, "Close")
|
||||||
|
);
|
||||||
|
|
||||||
|
$wrap.append( // The 3x3 Grid that makes up ColorBox
|
||||||
|
$tag(div).append(
|
||||||
|
$tag(div, "TopLeft"),
|
||||||
|
$topBorder = $tag(div, "TopCenter"),
|
||||||
|
$tag(div, "TopRight")
|
||||||
|
),
|
||||||
|
$tag(div, false, 'clear:left').append(
|
||||||
|
$leftBorder = $tag(div, "MiddleLeft"),
|
||||||
|
$content,
|
||||||
|
$rightBorder = $tag(div, "MiddleRight")
|
||||||
|
),
|
||||||
|
$tag(div, false, 'clear:left').append(
|
||||||
|
$tag(div, "BottomLeft"),
|
||||||
|
$bottomBorder = $tag(div, "BottomCenter"),
|
||||||
|
$tag(div, "BottomRight")
|
||||||
|
)
|
||||||
|
).find('div div').css({'float': 'left'});
|
||||||
|
|
||||||
|
$loadingBay = $tag(div, false, 'position:absolute; width:9999px; visibility:hidden; display:none');
|
||||||
|
|
||||||
|
$groupControls = $next.add($prev).add($current).add($slideshow);
|
||||||
|
|
||||||
|
$(document.body).append($overlay, $box.append($wrap, $loadingBay));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add ColorBox's event bindings
|
||||||
|
function addBindings() {
|
||||||
|
function clickHandler(e) {
|
||||||
|
// ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt.
|
||||||
|
// See: http://jacklmoore.com/notes/click-events/
|
||||||
|
if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey)) {
|
||||||
|
e.preventDefault();
|
||||||
|
launch(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($box) {
|
||||||
|
if (!init) {
|
||||||
|
init = true;
|
||||||
|
|
||||||
|
// Anonymous functions here keep the public method from being cached, thereby allowing them to be redefined on the fly.
|
||||||
|
$next.click(function () {
|
||||||
|
publicMethod.next();
|
||||||
|
});
|
||||||
|
$prev.click(function () {
|
||||||
|
publicMethod.prev();
|
||||||
|
});
|
||||||
|
$close.click(function () {
|
||||||
|
publicMethod.close();
|
||||||
|
});
|
||||||
|
$overlay.click(function () {
|
||||||
|
if (settings.overlayClose) {
|
||||||
|
publicMethod.close();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Key Bindings
|
||||||
|
$(document).bind('keydown.' + prefix, function (e) {
|
||||||
|
var key = e.keyCode;
|
||||||
|
if (open && settings.escKey && key === 27) {
|
||||||
|
e.preventDefault();
|
||||||
|
publicMethod.close();
|
||||||
|
}
|
||||||
|
if (open && settings.arrowKey && $related[1]) {
|
||||||
|
if (key === 37) {
|
||||||
|
e.preventDefault();
|
||||||
|
$prev.click();
|
||||||
|
} else if (key === 39) {
|
||||||
|
e.preventDefault();
|
||||||
|
$next.click();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if ($.isFunction($.fn.on)) {
|
||||||
|
$(document).on('click.'+prefix, '.'+boxElement, clickHandler);
|
||||||
|
} else { // For jQuery 1.3.x -> 1.6.x
|
||||||
|
$('.'+boxElement).live('click.'+prefix, clickHandler);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Don't do anything if ColorBox already exists.
|
||||||
|
if ($.colorbox) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Append the HTML when the DOM loads
|
||||||
|
$(appendHTML);
|
||||||
|
|
||||||
|
|
||||||
|
// ****************
|
||||||
|
// PUBLIC FUNCTIONS
|
||||||
|
// Usage format: $.fn.colorbox.close();
|
||||||
|
// Usage from within an iframe: parent.$.fn.colorbox.close();
|
||||||
|
// ****************
|
||||||
|
|
||||||
|
publicMethod = $.fn[colorbox] = $[colorbox] = function (options, callback) {
|
||||||
|
var $this = this;
|
||||||
|
|
||||||
|
options = options || {};
|
||||||
|
|
||||||
|
appendHTML();
|
||||||
|
|
||||||
|
if (addBindings()) {
|
||||||
|
if ($.isFunction($this)) { // assume a call to $.colorbox
|
||||||
|
$this = $('<a/>');
|
||||||
|
options.open = true;
|
||||||
|
} else if (!$this[0]) { // colorbox being applied to empty collection
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (callback) {
|
||||||
|
options.onComplete = callback;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this.each(function () {
|
||||||
|
$.data(this, colorbox, $.extend({}, $.data(this, colorbox) || defaults, options));
|
||||||
|
}).addClass(boxElement);
|
||||||
|
|
||||||
|
if (($.isFunction(options.open) && options.open.call($this)) || options.open) {
|
||||||
|
launch($this[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
};
|
||||||
|
|
||||||
|
publicMethod.position = function (speed, loadedCallback) {
|
||||||
|
var
|
||||||
|
css,
|
||||||
|
top = 0,
|
||||||
|
left = 0,
|
||||||
|
offset = $box.offset(),
|
||||||
|
scrollTop,
|
||||||
|
scrollLeft;
|
||||||
|
|
||||||
|
$window.unbind('resize.' + prefix);
|
||||||
|
|
||||||
|
// remove the modal so that it doesn't influence the document width/height
|
||||||
|
$box.css({top: -9e4, left: -9e4});
|
||||||
|
|
||||||
|
scrollTop = $window.scrollTop();
|
||||||
|
scrollLeft = $window.scrollLeft();
|
||||||
|
|
||||||
|
if (settings.fixed && !isIE6) {
|
||||||
|
offset.top -= scrollTop;
|
||||||
|
offset.left -= scrollLeft;
|
||||||
|
$box.css({position: 'fixed'});
|
||||||
|
} else {
|
||||||
|
top = scrollTop;
|
||||||
|
left = scrollLeft;
|
||||||
|
$box.css({position: 'absolute'});
|
||||||
|
}
|
||||||
|
|
||||||
|
// keeps the top and left positions within the browser's viewport.
|
||||||
|
if (settings.right !== false) {
|
||||||
|
left += Math.max($window.width() - settings.w - loadedWidth - interfaceWidth - setSize(settings.right, 'x'), 0);
|
||||||
|
} else if (settings.left !== false) {
|
||||||
|
left += setSize(settings.left, 'x');
|
||||||
|
} else {
|
||||||
|
left += Math.round(Math.max($window.width() - settings.w - loadedWidth - interfaceWidth, 0) / 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settings.bottom !== false) {
|
||||||
|
top += Math.max($window.height() - settings.h - loadedHeight - interfaceHeight - setSize(settings.bottom, 'y'), 0);
|
||||||
|
} else if (settings.top !== false) {
|
||||||
|
top += setSize(settings.top, 'y');
|
||||||
|
} else {
|
||||||
|
top += Math.round(Math.max($window.height() - settings.h - loadedHeight - interfaceHeight, 0) / 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
$box.css({top: offset.top, left: offset.left, visibility:'visible'});
|
||||||
|
|
||||||
|
// setting the speed to 0 to reduce the delay between same-sized content.
|
||||||
|
speed = ($box.width() === settings.w + loadedWidth && $box.height() === settings.h + loadedHeight) ? 0 : speed || 0;
|
||||||
|
|
||||||
|
// this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
|
||||||
|
// but it has to be shrank down around the size of div#colorbox when it's done. If not,
|
||||||
|
// it can invoke an obscure IE bug when using iframes.
|
||||||
|
$wrap[0].style.width = $wrap[0].style.height = "9999px";
|
||||||
|
|
||||||
|
function modalDimensions(that) {
|
||||||
|
$topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = (parseInt(that.style.width,10) - interfaceWidth)+'px';
|
||||||
|
$content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = (parseInt(that.style.height,10) - interfaceHeight)+'px';
|
||||||
|
}
|
||||||
|
|
||||||
|
css = {width: settings.w + loadedWidth + interfaceWidth, height: settings.h + loadedHeight + interfaceHeight, top: top, left: left};
|
||||||
|
|
||||||
|
if(speed===0){ // temporary workaround to side-step jQuery-UI 1.8 bug (http://bugs.jquery.com/ticket/12273)
|
||||||
|
$box.css(css);
|
||||||
|
}
|
||||||
|
$box.dequeue().animate(css, {
|
||||||
|
duration: speed,
|
||||||
|
complete: function () {
|
||||||
|
modalDimensions(this);
|
||||||
|
|
||||||
|
active = false;
|
||||||
|
|
||||||
|
// shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation.
|
||||||
|
$wrap[0].style.width = (settings.w + loadedWidth + interfaceWidth) + "px";
|
||||||
|
$wrap[0].style.height = (settings.h + loadedHeight + interfaceHeight) + "px";
|
||||||
|
|
||||||
|
if (settings.reposition) {
|
||||||
|
setTimeout(function () { // small delay before binding onresize due to an IE8 bug.
|
||||||
|
$window.bind('resize.' + prefix, publicMethod.position);
|
||||||
|
}, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (loadedCallback) {
|
||||||
|
loadedCallback();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
step: function () {
|
||||||
|
modalDimensions(this);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
publicMethod.resize = function (options) {
|
||||||
|
if (open) {
|
||||||
|
options = options || {};
|
||||||
|
|
||||||
|
if (options.width) {
|
||||||
|
settings.w = setSize(options.width, 'x') - loadedWidth - interfaceWidth;
|
||||||
|
}
|
||||||
|
if (options.innerWidth) {
|
||||||
|
settings.w = setSize(options.innerWidth, 'x');
|
||||||
|
}
|
||||||
|
$loaded.css({width: settings.w});
|
||||||
|
|
||||||
|
if (options.height) {
|
||||||
|
settings.h = setSize(options.height, 'y') - loadedHeight - interfaceHeight;
|
||||||
|
}
|
||||||
|
if (options.innerHeight) {
|
||||||
|
settings.h = setSize(options.innerHeight, 'y');
|
||||||
|
}
|
||||||
|
if (!options.innerHeight && !options.height) {
|
||||||
|
$loaded.css({height: "auto"});
|
||||||
|
settings.h = $loaded.height();
|
||||||
|
}
|
||||||
|
$loaded.css({height: settings.h});
|
||||||
|
|
||||||
|
publicMethod.position(settings.transition === "none" ? 0 : settings.speed);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
publicMethod.prep = function (object) {
|
||||||
|
if (!open) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var callback, speed = settings.transition === "none" ? 0 : settings.speed;
|
||||||
|
|
||||||
|
$loaded.empty().remove(); // Using empty first may prevent some IE7 issues.
|
||||||
|
|
||||||
|
$loaded = $tag(div, 'LoadedContent').append(object);
|
||||||
|
|
||||||
|
function getWidth() {
|
||||||
|
settings.w = settings.w || $loaded.width();
|
||||||
|
settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w;
|
||||||
|
return settings.w;
|
||||||
|
}
|
||||||
|
function getHeight() {
|
||||||
|
settings.h = settings.h || $loaded.height();
|
||||||
|
settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h;
|
||||||
|
return settings.h;
|
||||||
|
}
|
||||||
|
|
||||||
|
$loaded.hide()
|
||||||
|
.appendTo($loadingBay.show())// content has to be appended to the DOM for accurate size calculations.
|
||||||
|
.css({width: getWidth(), overflow: settings.scrolling ? 'auto' : 'hidden'})
|
||||||
|
.css({height: getHeight()})// sets the height independently from the width in case the new width influences the value of height.
|
||||||
|
.prependTo($content);
|
||||||
|
|
||||||
|
$loadingBay.hide();
|
||||||
|
|
||||||
|
// floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width.
|
||||||
|
//$(photo).css({'float': 'none', marginLeft: 'auto', marginRight: 'auto'});
|
||||||
|
|
||||||
|
$(photo).css({'float': 'none'});
|
||||||
|
|
||||||
|
|
||||||
|
callback = function () {
|
||||||
|
var total = $related.length,
|
||||||
|
iframe,
|
||||||
|
frameBorder = 'frameBorder',
|
||||||
|
allowTransparency = 'allowTransparency',
|
||||||
|
complete;
|
||||||
|
|
||||||
|
if (!open) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
function removeFilter() {
|
||||||
|
if (isIE) {
|
||||||
|
$box[0].style.removeAttribute('filter');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
complete = function () {
|
||||||
|
clearTimeout(loadingTimer);
|
||||||
|
$loadingOverlay.remove();
|
||||||
|
trigger(event_complete, settings.onComplete);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (isIE) {
|
||||||
|
//This fadeIn helps the bicubic resampling to kick-in.
|
||||||
|
if (photo) {
|
||||||
|
$loaded.fadeIn(100);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$title.html(settings.title).add($loaded).show();
|
||||||
|
|
||||||
|
if (total > 1) { // handle grouping
|
||||||
|
if (typeof settings.current === "string") {
|
||||||
|
$current.html(settings.current.replace('{current}', index + 1).replace('{total}', total)).show();
|
||||||
|
}
|
||||||
|
|
||||||
|
$next[(settings.loop || index < total - 1) ? "show" : "hide"]().html(settings.next);
|
||||||
|
$prev[(settings.loop || index) ? "show" : "hide"]().html(settings.previous);
|
||||||
|
|
||||||
|
if (settings.slideshow) {
|
||||||
|
$slideshow.show();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Preloads images within a rel group
|
||||||
|
if (settings.preloading) {
|
||||||
|
$.each([getIndex(-1), getIndex(1)], function(){
|
||||||
|
var src,
|
||||||
|
img,
|
||||||
|
i = $related[this],
|
||||||
|
data = $.data(i, colorbox);
|
||||||
|
|
||||||
|
if (data && data.href) {
|
||||||
|
src = data.href;
|
||||||
|
if ($.isFunction(src)) {
|
||||||
|
src = src.call(i);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
src = $(i).attr('href');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (src && (isImage(src) || data.photo)) {
|
||||||
|
img = new Image();
|
||||||
|
img.src = src;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$groupControls.hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settings.iframe) {
|
||||||
|
iframe = $tag('iframe')[0];
|
||||||
|
|
||||||
|
if (frameBorder in iframe) {
|
||||||
|
iframe[frameBorder] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (allowTransparency in iframe) {
|
||||||
|
iframe[allowTransparency] = "true";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!settings.scrolling) {
|
||||||
|
iframe.scrolling = "no";
|
||||||
|
}
|
||||||
|
|
||||||
|
$(iframe)
|
||||||
|
.attr({
|
||||||
|
src: settings.href,
|
||||||
|
name: (new Date()).getTime(), // give the iframe a unique name to prevent caching
|
||||||
|
'class': prefix + 'Iframe',
|
||||||
|
allowFullScreen : true, // allow HTML5 video to go fullscreen
|
||||||
|
webkitAllowFullScreen : true,
|
||||||
|
mozallowfullscreen : true
|
||||||
|
})
|
||||||
|
.one('load', complete)
|
||||||
|
.appendTo($loaded);
|
||||||
|
|
||||||
|
$events.one(event_purge, function () {
|
||||||
|
iframe.src = "//about:blank";
|
||||||
|
});
|
||||||
|
|
||||||
|
if (settings.fastIframe) {
|
||||||
|
$(iframe).trigger('load');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
complete();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settings.transition === 'fade') {
|
||||||
|
$box.fadeTo(speed, 1, removeFilter);
|
||||||
|
} else {
|
||||||
|
removeFilter();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (settings.transition === 'fade') {
|
||||||
|
$box.fadeTo(speed, 0, function () {
|
||||||
|
publicMethod.position(0, callback);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
publicMethod.position(speed, callback);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
publicMethod.load = function (launched) {
|
||||||
|
var href, setResize, prep = publicMethod.prep, $inline;
|
||||||
|
|
||||||
|
active = true;
|
||||||
|
|
||||||
|
photo = false;
|
||||||
|
|
||||||
|
element = $related[index];
|
||||||
|
|
||||||
|
if (!launched) {
|
||||||
|
makeSettings();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (className) {
|
||||||
|
$box.add($overlay).removeClass(className);
|
||||||
|
}
|
||||||
|
if (settings.className) {
|
||||||
|
$box.add($overlay).addClass(settings.className);
|
||||||
|
}
|
||||||
|
className = settings.className;
|
||||||
|
|
||||||
|
trigger(event_purge);
|
||||||
|
|
||||||
|
trigger(event_load, settings.onLoad);
|
||||||
|
|
||||||
|
settings.h = settings.height ?
|
||||||
|
setSize(settings.height, 'y') - loadedHeight - interfaceHeight :
|
||||||
|
settings.innerHeight && setSize(settings.innerHeight, 'y');
|
||||||
|
|
||||||
|
settings.w = settings.width ?
|
||||||
|
setSize(settings.width, 'x') - loadedWidth - interfaceWidth :
|
||||||
|
settings.innerWidth && setSize(settings.innerWidth, 'x');
|
||||||
|
|
||||||
|
// Sets the minimum dimensions for use in image scaling
|
||||||
|
settings.mw = settings.w;
|
||||||
|
settings.mh = settings.h;
|
||||||
|
|
||||||
|
// Re-evaluate the minimum width and height based on maxWidth and maxHeight values.
|
||||||
|
// If the width or height exceed the maxWidth or maxHeight, use the maximum values instead.
|
||||||
|
if (settings.maxWidth) {
|
||||||
|
settings.mw = setSize(settings.maxWidth, 'x') - loadedWidth - interfaceWidth;
|
||||||
|
settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw;
|
||||||
|
}
|
||||||
|
if (settings.maxHeight) {
|
||||||
|
settings.mh = setSize(settings.maxHeight, 'y') - loadedHeight - interfaceHeight;
|
||||||
|
settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh;
|
||||||
|
}
|
||||||
|
|
||||||
|
href = settings.href;
|
||||||
|
|
||||||
|
loadingTimer = setTimeout(function () {
|
||||||
|
$loadingOverlay.appendTo($content);
|
||||||
|
}, 100);
|
||||||
|
|
||||||
|
if (settings.inline) {
|
||||||
|
// Inserts an empty placeholder where inline content is being pulled from.
|
||||||
|
// An event is bound to put inline content back when ColorBox closes or loads new content.
|
||||||
|
$inline = $tag(div).hide().insertBefore($(href)[0]);
|
||||||
|
|
||||||
|
$events.one(event_purge, function () {
|
||||||
|
$inline.replaceWith($loaded.children());
|
||||||
|
});
|
||||||
|
|
||||||
|
prep($(href));
|
||||||
|
} else if (settings.iframe) {
|
||||||
|
// IFrame element won't be added to the DOM until it is ready to be displayed,
|
||||||
|
// to avoid problems with DOM-ready JS that might be trying to run in that iframe.
|
||||||
|
prep(" ");
|
||||||
|
} else if (settings.html) {
|
||||||
|
prep(settings.html);
|
||||||
|
} else if (isImage(href)) {
|
||||||
|
$(photo = new Image())
|
||||||
|
.addClass(prefix + 'Photo')
|
||||||
|
.bind('error',function () {
|
||||||
|
settings.title = false;
|
||||||
|
prep($tag(div, 'Error').html(settings.imgError));
|
||||||
|
})
|
||||||
|
.one('load', function () {
|
||||||
|
var percent;
|
||||||
|
|
||||||
|
if (settings.scalePhotos) {
|
||||||
|
setResize = function () {
|
||||||
|
photo.height -= photo.height * percent;
|
||||||
|
photo.width -= photo.width * percent;
|
||||||
|
};
|
||||||
|
if (settings.mw && photo.width > settings.mw) {
|
||||||
|
percent = (photo.width - settings.mw) / photo.width;
|
||||||
|
setResize();
|
||||||
|
}
|
||||||
|
if (settings.mh && photo.height > settings.mh) {
|
||||||
|
percent = (photo.height - settings.mh) / photo.height;
|
||||||
|
setResize();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settings.h) {
|
||||||
|
photo.style.marginTop = Math.max(settings.mh - photo.height, 0) / 2 + 'px';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($related[1] && (settings.loop || $related[index + 1])) {
|
||||||
|
photo.style.cursor = 'pointer';
|
||||||
|
photo.onclick = function () {
|
||||||
|
publicMethod.next();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isIE) {
|
||||||
|
photo.style.msInterpolationMode = 'bicubic';
|
||||||
|
}
|
||||||
|
|
||||||
|
setTimeout(function () { // A pause because Chrome will sometimes report a 0 by 0 size otherwise.
|
||||||
|
prep(photo);
|
||||||
|
}, 1);
|
||||||
|
});
|
||||||
|
|
||||||
|
setTimeout(function () { // A pause because Opera 10.6+ will sometimes not run the onload function otherwise.
|
||||||
|
photo.src = href;
|
||||||
|
}, 1);
|
||||||
|
} else if (href) {
|
||||||
|
$loadingBay.load(href, settings.data, function (data, status) {
|
||||||
|
prep(status === 'error' ? $tag(div, 'Error').html(settings.xhrError) : $(this).contents());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Navigates to the next page/image in a set.
|
||||||
|
publicMethod.next = function () {
|
||||||
|
if (!active && $related[1] && (settings.loop || $related[index + 1])) {
|
||||||
|
index = getIndex(1);
|
||||||
|
publicMethod.load();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
publicMethod.prev = function () {
|
||||||
|
if (!active && $related[1] && (settings.loop || index)) {
|
||||||
|
index = getIndex(-1);
|
||||||
|
publicMethod.load();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Note: to use this within an iframe use the following format: parent.$.fn.colorbox.close();
|
||||||
|
publicMethod.close = function () {
|
||||||
|
if (open && !closing) {
|
||||||
|
|
||||||
|
closing = true;
|
||||||
|
|
||||||
|
open = false;
|
||||||
|
|
||||||
|
trigger(event_cleanup, settings.onCleanup);
|
||||||
|
|
||||||
|
$window.unbind('.' + prefix + ' .' + event_ie6);
|
||||||
|
|
||||||
|
$overlay.fadeTo(200, 0);
|
||||||
|
|
||||||
|
$box.stop().fadeTo(300, 0, function () {
|
||||||
|
|
||||||
|
$box.add($overlay).css({'opacity': 1, cursor: 'auto'}).hide();
|
||||||
|
|
||||||
|
trigger(event_purge);
|
||||||
|
|
||||||
|
$loaded.empty().remove(); // Using empty first may prevent some IE7 issues.
|
||||||
|
|
||||||
|
setTimeout(function () {
|
||||||
|
closing = false;
|
||||||
|
trigger(event_closed, settings.onClosed);
|
||||||
|
}, 1);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Removes changes ColorBox made to the document, but does not remove the plugin
|
||||||
|
// from jQuery.
|
||||||
|
publicMethod.remove = function () {
|
||||||
|
$([]).add($box).add($overlay).remove();
|
||||||
|
$box = null;
|
||||||
|
$('.' + boxElement)
|
||||||
|
.removeData(colorbox)
|
||||||
|
.removeClass(boxElement);
|
||||||
|
|
||||||
|
$(document).unbind('click.'+prefix);
|
||||||
|
};
|
||||||
|
|
||||||
|
// A method for fetching the current element ColorBox is referencing.
|
||||||
|
// returns a jQuery object.
|
||||||
|
publicMethod.element = function () {
|
||||||
|
return $(element);
|
||||||
|
};
|
||||||
|
|
||||||
|
publicMethod.settings = defaults;
|
||||||
|
|
||||||
|
}(jQuery, document, window));
|
|
@ -22,11 +22,33 @@ JSFILES=(
|
||||||
"view/theme/frost-mobile/js/theme.js"
|
"view/theme/frost-mobile/js/theme.js"
|
||||||
"view/theme/decaf-mobile/js/theme.js"
|
"view/theme/decaf-mobile/js/theme.js"
|
||||||
)
|
)
|
||||||
|
JSFILES2=(
|
||||||
|
"library/colorbox/jquery.colorbox.js"
|
||||||
|
)
|
||||||
|
JSFILES3=(
|
||||||
|
"library/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js"
|
||||||
|
)
|
||||||
|
|
||||||
for i in ${JSFILES[@]}
|
for i in ${JSFILES[@]}
|
||||||
do
|
do
|
||||||
echo "Processing $i"
|
|
||||||
MINFILE=${i%%.js}.min.js
|
MINFILE=${i%%.js}.min.js
|
||||||
|
echo "Minifying $i into $MINFILE"
|
||||||
|
rm $MINFILE
|
||||||
|
$MINIFY_CMD -o $MINFILE $i
|
||||||
|
done
|
||||||
|
|
||||||
|
for i in ${JSFILES2[@]}
|
||||||
|
do
|
||||||
|
MINFILE=${i%%.js}-min.js
|
||||||
|
echo "Minifying $i into $MINFILE"
|
||||||
|
rm $MINFILE
|
||||||
|
$MINIFY_CMD -o $MINFILE $i
|
||||||
|
done
|
||||||
|
|
||||||
|
for i in ${JSFILES3[@]}
|
||||||
|
do
|
||||||
|
MINFILE=${i%%_src.js}.js
|
||||||
|
echo "Minifying $i into $MINFILE"
|
||||||
rm $MINFILE
|
rm $MINFILE
|
||||||
$MINIFY_CMD -o $MINFILE $i
|
$MINIFY_CMD -o $MINFILE $i
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
$("#cnftheme").fancybox({
|
$("#cnftheme").click(function(){
|
||||||
|
$.colorbox({
|
||||||
width: 800,
|
width: 800,
|
||||||
autoDimensions: false,
|
height: '90%',
|
||||||
onStart: function(){
|
/*onOpen: function(){
|
||||||
var theme = $("#id_theme :selected").val();
|
var theme = $("#id_theme :selected").val();
|
||||||
var theme_mobile = $("#id_theme_mobile :selected").val();
|
|
||||||
$("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
|
$("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
|
||||||
},
|
},*/
|
||||||
|
href: "$baseurl/admin/themes/" + $("#id_theme :selected").val(),
|
||||||
onComplete: function(){
|
onComplete: function(){
|
||||||
$("div#fancybox-content form").submit(function(e){
|
$("div#fancybox-content form").submit(function(e){
|
||||||
var url = $(this).attr('action');
|
var url = $(this).attr('action');
|
||||||
|
@ -25,7 +26,7 @@
|
||||||
$.post(url, data, function(data) {
|
$.post(url, data, function(data) {
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
NavUpdate();
|
NavUpdate();
|
||||||
$.fancybox.close();
|
$.colorbox.close();
|
||||||
})
|
})
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -33,6 +34,8 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<div id='adminpage'>
|
<div id='adminpage'>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
$.get(
|
$.get(
|
||||||
'$baseurl/events/?id='+eventid,
|
'$baseurl/events/?id='+eventid,
|
||||||
function(data){
|
function(data){
|
||||||
$.fancybox(data);
|
$.colorbox({html:data});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<base href="$baseurl/" />
|
<base href="$baseurl/" />
|
||||||
<meta name="generator" content="$generator" />
|
<meta name="generator" content="$generator" />
|
||||||
<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
|
{#<!--<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />-->#}
|
||||||
|
<link rel="stylesheet" href="$baseurl/library/colorbox/colorbox.css" type="text/css" media="screen" />
|
||||||
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
|
<link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
|
||||||
|
@ -23,7 +24,8 @@
|
||||||
<script type="text/javascript" src="$baseurl/js/jquery.js" ></script>
|
<script type="text/javascript" src="$baseurl/js/jquery.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
|
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/js/fk.autocomplete.js" ></script>
|
<script type="text/javascript" src="$baseurl/js/fk.autocomplete.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox.pack.js"></script>
|
{#<!--<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox.pack.js"></script>-->#}
|
||||||
|
<script type="text/javascript" src="$baseurl/library/colorbox/jquery.colorbox-min.js"></script>
|
||||||
<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||||
<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
|
<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/js/acl.js" ></script>
|
<script type="text/javascript" src="$baseurl/js/acl.js" ></script>
|
||||||
|
|
|
@ -13,9 +13,9 @@ function initEditor(cb){
|
||||||
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
||||||
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
||||||
editor = true;
|
editor = true;
|
||||||
$("a#jot-perms-icon").fancybox({
|
$("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
$(".jothidden").show();
|
$(".jothidden").show();
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -105,9 +105,9 @@ function initEditor(cb){
|
||||||
});
|
});
|
||||||
editor = true;
|
editor = true;
|
||||||
// setup acl popup
|
// setup acl popup
|
||||||
$("a#jot-perms-icon").fancybox({
|
$("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -274,7 +274,7 @@ function enableOnUser(){
|
||||||
var bordercolor = $("input").css("border-color");
|
var bordercolor = $("input").css("border-color");
|
||||||
|
|
||||||
$.get('filer/', function(data){
|
$.get('filer/', function(data){
|
||||||
$.fancybox(data);
|
$.colorbox({html:data});
|
||||||
$("#id_term").keypress(function(){
|
$("#id_term").keypress(function(){
|
||||||
$(this).css("border-color",bordercolor);
|
$(this).css("border-color",bordercolor);
|
||||||
})
|
})
|
||||||
|
@ -292,7 +292,7 @@ function enableOnUser(){
|
||||||
// if(timer) clearTimeout(timer);
|
// if(timer) clearTimeout(timer);
|
||||||
// timer = setTimeout(NavUpdate,3000);
|
// timer = setTimeout(NavUpdate,3000);
|
||||||
liking = 1;
|
liking = 1;
|
||||||
$.fancybox.close();
|
$.colorbox.close();
|
||||||
} else {
|
} else {
|
||||||
$("#id_term").css("border-color","#FF0000");
|
$("#id_term").css("border-color","#FF0000");
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,14 +6,15 @@
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
$("#cnftheme").fancybox({
|
$("#cnftheme").click(function(){
|
||||||
|
$.colorbox({
|
||||||
width: 800,
|
width: 800,
|
||||||
autoDimensions: false,
|
height: '90%',
|
||||||
onStart: function(){
|
/*onOpen: function(){
|
||||||
var theme = $("#id_theme :selected").val();
|
var theme = $("#id_theme :selected").val();
|
||||||
var theme_mobile = $("#id_theme_mobile :selected").val();
|
|
||||||
$("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
|
$("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
|
||||||
},
|
},*/
|
||||||
|
href: "{{$baseurl}}/admin/themes/" + $("#id_theme :selected").val(),
|
||||||
onComplete: function(){
|
onComplete: function(){
|
||||||
$("div#fancybox-content form").submit(function(e){
|
$("div#fancybox-content form").submit(function(e){
|
||||||
var url = $(this).attr('action');
|
var url = $(this).attr('action');
|
||||||
|
@ -30,7 +31,7 @@
|
||||||
$.post(url, data, function(data) {
|
$.post(url, data, function(data) {
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
NavUpdate();
|
NavUpdate();
|
||||||
$.fancybox.close();
|
$.colorbox.close();
|
||||||
})
|
})
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -38,6 +39,8 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<div id='adminpage'>
|
<div id='adminpage'>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
$.get(
|
$.get(
|
||||||
'{{$baseurl}}/events/?id='+eventid,
|
'{{$baseurl}}/events/?id='+eventid,
|
||||||
function(data){
|
function(data){
|
||||||
$.fancybox(data);
|
$.colorbox({html:data});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<base href="{{$baseurl}}/" />
|
<base href="{{$baseurl}}/" />
|
||||||
<meta name="generator" content="{{$generator}}" />
|
<meta name="generator" content="{{$generator}}" />
|
||||||
<link rel="stylesheet" href="{{$baseurl}}/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
|
{{*<!--<link rel="stylesheet" href="{{$baseurl}}/library/fancybox/jquery.fancybox.css" type="text/css" media="screen" />-->*}}
|
||||||
|
<link rel="stylesheet" href="{{$baseurl}}/library/colorbox/colorbox.css" type="text/css" media="screen" />
|
||||||
<link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
<link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
|
<link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
|
||||||
|
@ -28,7 +29,8 @@
|
||||||
<script type="text/javascript" src="{{$baseurl}}/js/jquery.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/js/jquery.js" ></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/js/jquery.textinputs.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/js/jquery.textinputs.js" ></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/js/fk.autocomplete.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/js/fk.autocomplete.js" ></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/library/fancybox/jquery.fancybox.pack.js"></script>
|
{{*<!--<script type="text/javascript" src="{{$baseurl}}/library/fancybox/jquery.fancybox.pack.js"></script>-->*}}
|
||||||
|
<script type="text/javascript" src="{{$baseurl}}/library/colorbox/jquery.colorbox-min.js"></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
<script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/js/acl.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/js/acl.js" ></script>
|
||||||
|
|
|
@ -18,9 +18,9 @@ function initEditor(cb){
|
||||||
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
||||||
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
||||||
editor = true;
|
editor = true;
|
||||||
$("a#jot-perms-icon").fancybox({
|
$("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
$(".jothidden").show();
|
$(".jothidden").show();
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -110,9 +110,9 @@ function initEditor(cb){
|
||||||
});
|
});
|
||||||
editor = true;
|
editor = true;
|
||||||
// setup acl popup
|
// setup acl popup
|
||||||
$("a#jot-perms-icon").fancybox({
|
$("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -279,7 +279,7 @@ function enableOnUser(){
|
||||||
var bordercolor = $("input").css("border-color");
|
var bordercolor = $("input").css("border-color");
|
||||||
|
|
||||||
$.get('filer/', function(data){
|
$.get('filer/', function(data){
|
||||||
$.fancybox(data);
|
$.colorbox({html:data});
|
||||||
$("#id_term").keypress(function(){
|
$("#id_term").keypress(function(){
|
||||||
$(this).css("border-color",bordercolor);
|
$(this).css("border-color",bordercolor);
|
||||||
})
|
})
|
||||||
|
@ -297,7 +297,7 @@ function enableOnUser(){
|
||||||
// if(timer) clearTimeout(timer);
|
// if(timer) clearTimeout(timer);
|
||||||
// timer = setTimeout(NavUpdate,3000);
|
// timer = setTimeout(NavUpdate,3000);
|
||||||
liking = 1;
|
liking = 1;
|
||||||
$.fancybox.close();
|
$.colorbox.close();
|
||||||
} else {
|
} else {
|
||||||
$("#id_term").css("border-color","#FF0000");
|
$("#id_term").css("border-color","#FF0000");
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
<script type="text/javascript" src="$baseurl/view/theme/decaf-mobile/js/jquery.divgrow-1.3.1.f1.js" ></script>
|
<script type="text/javascript" src="$baseurl/view/theme/decaf-mobile/js/jquery.divgrow-1.3.1.f1.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
|
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/view/theme/decaf-mobile/js/fk.autocomplete.js" ></script>-->#}
|
<script type="text/javascript" src="$baseurl/view/theme/decaf-mobile/js/fk.autocomplete.js" ></script>-->#}
|
||||||
{#<!--<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>-->#}
|
{#<!--<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||||||
|
<script type="text/javascript" src="$baseurl/library/colorbox/jquery.colorbox-min.js"></script>-->#}
|
||||||
{#<!--<script type="text/javascript" src="$baseurl/library/tiptip/jquery.tipTip.minified.js"></script>-->#}
|
{#<!--<script type="text/javascript" src="$baseurl/library/tiptip/jquery.tipTip.minified.js"></script>-->#}
|
||||||
{#<!--<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
{#<!--<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||||
<script type="text/javascript" src="$baseurl/view/theme/decaf-mobile/js/acl.js" ></script>
|
<script type="text/javascript" src="$baseurl/view/theme/decaf-mobile/js/acl.js" ></script>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<base href="$baseurl/" />
|
<base href="$baseurl/" />
|
||||||
<meta name="generator" content="$generator" />
|
<meta name="generator" content="$generator" />
|
||||||
{#<!--<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
{#<!--<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
||||||
|
<link rel="stylesheet" href="$baseurl/library/colorbox/colorbox.css" type="text/css" media="screen" />
|
||||||
<link rel="stylesheet" href="$baseurl/library/tiptip/tipTip.css" type="text/css" media="screen" />
|
<link rel="stylesheet" href="$baseurl/library/tiptip/tipTip.css" type="text/css" media="screen" />
|
||||||
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />-->#}
|
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />-->#}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,8 @@
|
||||||
<script type="text/javascript" src="{{$baseurl}}/view/theme/decaf-mobile/js/jquery.divgrow-1.3.1.f1.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/view/theme/decaf-mobile/js/jquery.divgrow-1.3.1.f1.js" ></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/js/jquery.textinputs.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/js/jquery.textinputs.js" ></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/view/theme/decaf-mobile/js/fk.autocomplete.js" ></script>-->*}}
|
<script type="text/javascript" src="{{$baseurl}}/view/theme/decaf-mobile/js/fk.autocomplete.js" ></script>-->*}}
|
||||||
{{*<!--<script type="text/javascript" src="{{$baseurl}}/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>-->*}}
|
{{*<!--<script type="text/javascript" src="{{$baseurl}}/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||||||
|
<script type="text/javascript" src="{{$baseurl}}/library/colorbox/jquery.colorbox-min.js"></script>-->*}}
|
||||||
{{*<!--<script type="text/javascript" src="{{$baseurl}}/library/tiptip/jquery.tipTip.minified.js"></script>-->*}}
|
{{*<!--<script type="text/javascript" src="{{$baseurl}}/library/tiptip/jquery.tipTip.minified.js"></script>-->*}}
|
||||||
{{*<!--<script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
{{*<!--<script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/view/theme/decaf-mobile/js/acl.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/view/theme/decaf-mobile/js/acl.js" ></script>
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
<base href="{{$baseurl}}/" />
|
<base href="{{$baseurl}}/" />
|
||||||
<meta name="generator" content="{{$generator}}" />
|
<meta name="generator" content="{{$generator}}" />
|
||||||
{{*<!--<link rel="stylesheet" href="{{$baseurl}}/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
{{*<!--<link rel="stylesheet" href="{{$baseurl}}/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
||||||
|
<link rel="stylesheet" href="{{$baseurl}}/library/colorbox/colorbox.css" type="text/css" media="screen" />
|
||||||
<link rel="stylesheet" href="{{$baseurl}}/library/tiptip/tipTip.css" type="text/css" media="screen" />
|
<link rel="stylesheet" href="{{$baseurl}}/library/tiptip/tipTip.css" type="text/css" media="screen" />
|
||||||
<link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />-->*}}
|
<link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />-->*}}
|
||||||
|
|
||||||
|
|
|
@ -169,10 +169,10 @@ if ($color=="dark") $color_path = "/diabook-dark/";
|
||||||
$a->page['htmlhead'] .= '
|
$a->page['htmlhead'] .= '
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$("a.lightbox").fancybox(); // Select all links with lightbox class
|
$("a.lightbox").colorbox({maxHeight:"90%"}); // Select all links with lightbox class
|
||||||
$("a#twittersettings-link").fancybox({onClosed: function() { $("#twittersettings").attr("style","display: none;");}} );
|
$("a#twittersettings-link").colorbox({inline:true,onClosed: function() { $("#twittersettings").attr("style","display: none;");}} );
|
||||||
$("a#mapcontrol-link").fancybox({onClosed: function() { $("#mapcontrol").attr("style","display: none;");}} );
|
$("a#mapcontrol-link").colorbox({inline:true,onClosed: function() { $("#mapcontrol").attr("style","display: none;");}} );
|
||||||
$("a#closeicon").fancybox({onClosed: function() { $("#boxsettings").attr("style","display: none;");}} );
|
$("a#closeicon").colorbox({inline:true,onClosed: function() { $("#boxsettings").attr("style","display: none;");}} );
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).load(function() {
|
$(window).load(function() {
|
||||||
|
|
|
@ -11,9 +11,9 @@ function initEditor(cb) {
|
||||||
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
||||||
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
||||||
editor = true;
|
editor = true;
|
||||||
$("a#jot-perms-icon").fancybox({
|
$("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
$(".jothidden").show();
|
$(".jothidden").show();
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -102,9 +102,9 @@ function initEditor(cb) {
|
||||||
});
|
});
|
||||||
editor = true;
|
editor = true;
|
||||||
// setup acl popup
|
// setup acl popup
|
||||||
$("a#jot-perms-icon").fancybox({
|
$("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -268,7 +268,7 @@ function enableOnUser(){
|
||||||
var bordercolor = $("input").css("border-color");
|
var bordercolor = $("input").css("border-color");
|
||||||
|
|
||||||
$.get('filer/', function(data){
|
$.get('filer/', function(data){
|
||||||
$.fancybox(data);
|
$.colorbox({html:data});
|
||||||
$("#id_term").keypress(function(){
|
$("#id_term").keypress(function(){
|
||||||
$(this).css("border-color",bordercolor);
|
$(this).css("border-color",bordercolor);
|
||||||
})
|
})
|
||||||
|
@ -286,7 +286,7 @@ function enableOnUser(){
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
timer = setTimeout(NavUpdate,3000);
|
timer = setTimeout(NavUpdate,3000);
|
||||||
liking = 1;
|
liking = 1;
|
||||||
$.fancybox.close();
|
$.colorbox.close();
|
||||||
} else {
|
} else {
|
||||||
$("#id_term").css("border-color","#FF0000");
|
$("#id_term").css("border-color","#FF0000");
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$("a#photo-edit-perms-menu").fancybox({
|
$("a#photo-edit-perms-menu").colorbox({
|
||||||
'transitionIn' : 'none',
|
'inline' : true,
|
||||||
'transitionOut' : 'none'
|
'transition' : 'none'
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -16,9 +16,9 @@ function initEditor(cb) {
|
||||||
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
||||||
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
||||||
editor = true;
|
editor = true;
|
||||||
$("a#jot-perms-icon").fancybox({
|
$("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
$(".jothidden").show();
|
$(".jothidden").show();
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -107,9 +107,9 @@ function initEditor(cb) {
|
||||||
});
|
});
|
||||||
editor = true;
|
editor = true;
|
||||||
// setup acl popup
|
// setup acl popup
|
||||||
$("a#jot-perms-icon").fancybox({
|
$("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -273,7 +273,7 @@ function enableOnUser(){
|
||||||
var bordercolor = $("input").css("border-color");
|
var bordercolor = $("input").css("border-color");
|
||||||
|
|
||||||
$.get('filer/', function(data){
|
$.get('filer/', function(data){
|
||||||
$.fancybox(data);
|
$.colorbox({html:data});
|
||||||
$("#id_term").keypress(function(){
|
$("#id_term").keypress(function(){
|
||||||
$(this).css("border-color",bordercolor);
|
$(this).css("border-color",bordercolor);
|
||||||
})
|
})
|
||||||
|
@ -291,7 +291,7 @@ function enableOnUser(){
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
timer = setTimeout(NavUpdate,3000);
|
timer = setTimeout(NavUpdate,3000);
|
||||||
liking = 1;
|
liking = 1;
|
||||||
$.fancybox.close();
|
$.colorbox.close();
|
||||||
} else {
|
} else {
|
||||||
$("#id_term").css("border-color","#FF0000");
|
$("#id_term").css("border-color","#FF0000");
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,8 +51,8 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$("a#photo-edit-perms-menu").fancybox({
|
$("a#photo-edit-perms-menu").colorbox({
|
||||||
'transitionIn' : 'none',
|
'inline' : true,
|
||||||
'transitionOut' : 'none'
|
'transition' : 'none'
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -52,7 +52,7 @@ function dispy_init(&$a) {
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// Select all links with lightbox class
|
// Select all links with lightbox class
|
||||||
$("a.lightbox").fancybox();
|
$("a.lightbox").colorbox({maxHeight:"90%"});
|
||||||
|
|
||||||
$('.group-edit-icon').hover(
|
$('.group-edit-icon').hover(
|
||||||
function() {
|
function() {
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
<script type="text/javascript" src="$baseurl/view/theme/frost-mobile/js/main.min.js" ></script>
|
<script type="text/javascript" src="$baseurl/view/theme/frost-mobile/js/main.min.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
|
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/view/theme/frost-mobile/js/fk.autocomplete.min.js" ></script>
|
<script type="text/javascript" src="$baseurl/view/theme/frost-mobile/js/fk.autocomplete.min.js" ></script>
|
||||||
<!--<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>-->
|
<!--<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||||||
|
<script type="text/javascript" src="$baseurl/library/colorbox/jquery.colorbox-min.js"></script>-->
|
||||||
<!--<script type="text/javascript" src="$baseurl/library/tiptip/jquery.tipTip.minified.js"></script>-->
|
<!--<script type="text/javascript" src="$baseurl/library/tiptip/jquery.tipTip.minified.js"></script>-->
|
||||||
<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||||
<script type="text/javascript" src="$baseurl/view/theme/frost-mobile/js/acl.min.js" ></script>
|
<script type="text/javascript" src="$baseurl/view/theme/frost-mobile/js/acl.min.js" ></script>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<base href="$baseurl/" />
|
<base href="$baseurl/" />
|
||||||
<meta name="generator" content="$generator" />
|
<meta name="generator" content="$generator" />
|
||||||
<!--<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
<!--<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
||||||
|
<link rel="stylesheet" href="$baseurl/library/colorbox/colorbox.css" type="text/css" media="screen" />
|
||||||
<link rel="stylesheet" href="$baseurl/library/tiptip/tipTip.css" type="text/css" media="screen" />-->
|
<link rel="stylesheet" href="$baseurl/library/tiptip/tipTip.css" type="text/css" media="screen" />-->
|
||||||
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
|
|
@ -132,9 +132,9 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// fancyboxes
|
// fancyboxes
|
||||||
/*$j("a.popupbox").fancybox({
|
/*$j("a.popupbox").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'none'
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -295,9 +295,9 @@ function initEditor(cb){
|
||||||
$j("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
$j("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
||||||
$j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
$j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
||||||
editor = true;
|
editor = true;
|
||||||
/* $j("a#jot-perms-icon").fancybox({
|
/* $j("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'none',
|
'inline' : true,
|
||||||
'transitionOut' : 'none'
|
'transition' : 'elastic'
|
||||||
});*/
|
});*/
|
||||||
$j("a#jot-perms-icon, a#settings-default-perms-menu").click(function () {
|
$j("a#jot-perms-icon, a#settings-default-perms-menu").click(function () {
|
||||||
var parent = $j("#profile-jot-acl-wrapper").parent();
|
var parent = $j("#profile-jot-acl-wrapper").parent();
|
||||||
|
@ -397,9 +397,9 @@ function initEditor(cb){
|
||||||
});
|
});
|
||||||
editor = true;
|
editor = true;
|
||||||
// setup acl popup
|
// setup acl popup
|
||||||
$j("a#jot-perms-icon").fancybox({
|
$j("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'elastic'
|
'transition' : 'elastic'
|
||||||
}); */
|
}); */
|
||||||
} else {
|
} else {
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -678,7 +678,7 @@ function showEvent(eventid) {
|
||||||
/* $j.get(
|
/* $j.get(
|
||||||
baseurl + '/events/?id='+eventid,
|
baseurl + '/events/?id='+eventid,
|
||||||
function(data){
|
function(data){
|
||||||
$j.fancybox(data);
|
$j.colorbox({html:data});
|
||||||
}
|
}
|
||||||
);*/
|
);*/
|
||||||
}
|
}
|
||||||
|
@ -715,14 +715,14 @@ function itemFiler(id) {
|
||||||
/* if(timer) clearTimeout(timer);
|
/* if(timer) clearTimeout(timer);
|
||||||
timer = setTimeout(NavUpdate,3000);*/
|
timer = setTimeout(NavUpdate,3000);*/
|
||||||
liking = 1;
|
liking = 1;
|
||||||
/* $j.fancybox.close();*/
|
/* $j.colorbox.close();*/
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/* var bordercolor = $j("input").css("border-color");
|
/* var bordercolor = $j("input").css("border-color");
|
||||||
|
|
||||||
$j.get('filer/', function(data){
|
$j.get('filer/', function(data){
|
||||||
$j.fancybox(data);
|
$j.colorbox({html:data});
|
||||||
$j("#id_term").keypress(function(){
|
$j("#id_term").keypress(function(){
|
||||||
$j(this).css("border-color",bordercolor);
|
$j(this).css("border-color",bordercolor);
|
||||||
})
|
})
|
||||||
|
@ -740,7 +740,7 @@ function itemFiler(id) {
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
timer = setTimeout(NavUpdate,3000);
|
timer = setTimeout(NavUpdate,3000);
|
||||||
liking = 1;
|
liking = 1;
|
||||||
$j.fancybox.close();
|
$j.colorbox.close();
|
||||||
} else {
|
} else {
|
||||||
$j("#id_term").css("border-color","#FF0000");
|
$j("#id_term").css("border-color","#FF0000");
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
<script type="text/javascript" src="{{$baseurl}}/view/theme/frost-mobile/js/main.min.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/view/theme/frost-mobile/js/main.min.js" ></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/js/jquery.textinputs.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/js/jquery.textinputs.js" ></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/view/theme/frost-mobile/js/fk.autocomplete.min.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/view/theme/frost-mobile/js/fk.autocomplete.min.js" ></script>
|
||||||
<!--<script type="text/javascript" src="{{$baseurl}}/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>-->
|
<!--<script type="text/javascript" src="{{$baseurl}}/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||||||
|
<script type="text/javascript" src="{{$baseurl}}/library/colorbox/jquery.colorbox-min.js"></script>-->
|
||||||
<!--<script type="text/javascript" src="{{$baseurl}}/library/tiptip/jquery.tipTip.minified.js"></script>-->
|
<!--<script type="text/javascript" src="{{$baseurl}}/library/tiptip/jquery.tipTip.minified.js"></script>-->
|
||||||
<script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
<script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||||
<script type="text/javascript" src="{{$baseurl}}/view/theme/frost-mobile/js/acl.min.js" ></script>
|
<script type="text/javascript" src="{{$baseurl}}/view/theme/frost-mobile/js/acl.min.js" ></script>
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
<base href="{{$baseurl}}/" />
|
<base href="{{$baseurl}}/" />
|
||||||
<meta name="generator" content="{{$generator}}" />
|
<meta name="generator" content="{{$generator}}" />
|
||||||
<!--<link rel="stylesheet" href="{{$baseurl}}/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
<!--<link rel="stylesheet" href="{{$baseurl}}/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
||||||
|
<link rel="stylesheet" href="{{$baseurl}}/library/colorbox/colorbox.css" type="text/css" media="screen" />
|
||||||
<link rel="stylesheet" href="{{$baseurl}}/library/tiptip/tipTip.css" type="text/css" media="screen" />-->
|
<link rel="stylesheet" href="{{$baseurl}}/library/tiptip/tipTip.css" type="text/css" media="screen" />-->
|
||||||
<link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
<link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<script type="text/javascript" src="$baseurl/view/theme/frost/js/jquery.divgrow-1.3.1.f1.min.js" ></script>
|
<script type="text/javascript" src="$baseurl/view/theme/frost/js/jquery.divgrow-1.3.1.f1.min.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
|
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/view/theme/frost/js/fk.autocomplete.min.js" ></script>
|
<script type="text/javascript" src="$baseurl/view/theme/frost/js/fk.autocomplete.min.js" ></script>
|
||||||
<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
<script type="text/javascript" src="$baseurl/library/colorbox/jquery.colorbox-min.js"></script>
|
||||||
<!--<script type="text/javascript" src="$baseurl/library/tiptip/jquery.tipTip.minified.js"></script>-->
|
<!--<script type="text/javascript" src="$baseurl/library/tiptip/jquery.tipTip.minified.js"></script>-->
|
||||||
<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||||
<script type="text/javascript" src="$baseurl/view/theme/frost/js/acl.min.js" ></script>
|
<script type="text/javascript" src="$baseurl/view/theme/frost/js/acl.min.js" ></script>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<base href="$baseurl/" />
|
<base href="$baseurl/" />
|
||||||
<meta name="generator" content="$generator" />
|
<meta name="generator" content="$generator" />
|
||||||
<link rel="stylesheet" href="$baseurl/library/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
|
<link rel="stylesheet" href="$baseurl/library/colorbox/colorbox.css" type="text/css" media="screen" />
|
||||||
<!--<link rel="stylesheet" href="$baseurl/library/tiptip/tipTip.css" type="text/css" media="screen" />-->
|
<!--<link rel="stylesheet" href="$baseurl/library/tiptip/tipTip.css" type="text/css" media="screen" />-->
|
||||||
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
<link rel="stylesheet" href="$baseurl/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
||||||
|
|
||||||
|
|
|
@ -124,9 +124,9 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// fancyboxes
|
// fancyboxes
|
||||||
$j("a.popupbox").fancybox({
|
$j("a.popupbox").colorbox({
|
||||||
'transitionIn' : 'none',
|
'inline' : true,
|
||||||
'transitionOut' : 'none'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
2
view/theme/frost/js/main.min.js
vendored
|
@ -270,14 +270,11 @@ $j(function(){
|
||||||
|
|
||||||
$j(function(){
|
$j(function(){
|
||||||
|
|
||||||
$j("#cnftheme").fancybox({
|
$j("#cnftheme").click(function(){
|
||||||
|
$.colorbox({
|
||||||
width: 800,
|
width: 800,
|
||||||
autoDimensions: false,
|
height: '90%',
|
||||||
onStart: function(){
|
href: "$baseurl/admin/themes/" + $j("#id_theme :selected").val(),
|
||||||
var theme = $j("#id_theme :selected").val();
|
|
||||||
var theme_mobile = $j("#id_theme_mobile :selected").val();
|
|
||||||
$j("#cnftheme").attr('href', baseurl + "/admin/themes/"+theme);
|
|
||||||
},
|
|
||||||
onComplete: function(){
|
onComplete: function(){
|
||||||
$j("div#fancybox-content form").submit(function(e){
|
$j("div#fancybox-content form").submit(function(e){
|
||||||
var url = $j(this).attr('action');
|
var url = $j(this).attr('action');
|
||||||
|
@ -294,7 +291,7 @@ $j(function(){
|
||||||
$j.post(url, data, function(data) {
|
$j.post(url, data, function(data) {
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
NavUpdate();
|
NavUpdate();
|
||||||
$j.fancybox.close();
|
$j.colorbox.close();
|
||||||
})
|
})
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -302,6 +299,8 @@ $j(function(){
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -389,7 +388,7 @@ function showEvent(eventid) {
|
||||||
$j.get(
|
$j.get(
|
||||||
baseurl + '/events/?id='+eventid,
|
baseurl + '/events/?id='+eventid,
|
||||||
function(data){
|
function(data){
|
||||||
$j.fancybox(data);
|
$j.colorbox({html:data});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -622,9 +621,9 @@ function initEditor(cb){
|
||||||
$j("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
$j("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
||||||
$j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
$j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
||||||
editor = true;
|
editor = true;
|
||||||
$j("a#jot-perms-icon").fancybox({
|
$j("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'none', //'elastic',
|
'inline' : true,
|
||||||
'transitionOut' : 'none' //'elastic'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
$j(".jothidden").show();
|
$j(".jothidden").show();
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -714,9 +713,9 @@ function initEditor(cb){
|
||||||
});
|
});
|
||||||
editor = true;
|
editor = true;
|
||||||
// setup acl popup
|
// setup acl popup
|
||||||
$j("a#jot-perms-icon").fancybox({
|
$j("a#jot-perms-icon").colorbox({
|
||||||
'transitionIn' : 'none',
|
'inline' : true,
|
||||||
'transitionOut' : 'none'
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (typeof cb!="undefined") cb();
|
if (typeof cb!="undefined") cb();
|
||||||
|
@ -1015,7 +1014,7 @@ function itemFiler(id) {
|
||||||
var bordercolor = $j("input").css("border-color");
|
var bordercolor = $j("input").css("border-color");
|
||||||
|
|
||||||
$j.get('filer/', function(data){
|
$j.get('filer/', function(data){
|
||||||
$j.fancybox(data);
|
$j.colorbox({html:data});
|
||||||
$j("#id_term").keypress(function(){
|
$j("#id_term").keypress(function(){
|
||||||
$j(this).css("border-color",bordercolor);
|
$j(this).css("border-color",bordercolor);
|
||||||
})
|
})
|
||||||
|
@ -1033,7 +1032,7 @@ function itemFiler(id) {
|
||||||
/* if(timer) clearTimeout(timer);
|
/* if(timer) clearTimeout(timer);
|
||||||
timer = setTimeout(NavUpdate,3000);*/
|
timer = setTimeout(NavUpdate,3000);*/
|
||||||
liking = 1;
|
liking = 1;
|
||||||
$j.fancybox.close();
|
$j.colorbox.close();
|
||||||
} else {
|
} else {
|
||||||
$j("#id_term").css("border-color","#FF0000");
|
$j("#id_term").css("border-color","#FF0000");
|
||||||
}
|
}
|
||||||
|
|
2
view/theme/frost/js/theme.min.js
vendored
|
@ -51,8 +51,8 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!--<script>
|
<!--<script>
|
||||||
$("a#photo-edit-perms-menu").fancybox({
|
$("a#photo-edit-perms-menu").colorbox({
|
||||||
'transitionIn' : 'none',
|
'inline' : true,
|
||||||
'transitionOut' : 'none'
|
'transition' : 'none'
|
||||||
});
|
});
|
||||||
</script>-->
|
</script>-->
|
||||||
|
|