diff options
| author | spider <spider@bitweaver.org> | 2015-02-18 12:21:07 -0500 |
|---|---|---|
| committer | spider <spider@bitweaver.org> | 2015-02-18 12:21:07 -0500 |
| commit | 6c205972f2b8d8fdeacdd0569567a594b8017750 (patch) | |
| tree | 6e82c6a24fa631c1d98b64f579a02b7ec7ded6be /javascript/libs/jquery/plugins/fancybox | |
| parent | 3e766d4c2a8a0db7446272f262c453954f583af0 (diff) | |
| download | util-6c205972f2b8d8fdeacdd0569567a594b8017750.tar.gz util-6c205972f2b8d8fdeacdd0569567a594b8017750.tar.bz2 util-6c205972f2b8d8fdeacdd0569567a594b8017750.zip | |
move all javascript/libs/* to javascript/*
Diffstat (limited to 'javascript/libs/jquery/plugins/fancybox')
36 files changed, 0 insertions, 2210 deletions
diff --git a/javascript/libs/jquery/plugins/fancybox/blank.gif b/javascript/libs/jquery/plugins/fancybox/blank.gif Binary files differdeleted file mode 100644 index 35d42e8..0000000 --- a/javascript/libs/jquery/plugins/fancybox/blank.gif +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_close.png b/javascript/libs/jquery/plugins/fancybox/fancy_close.png Binary files differdeleted file mode 100644 index 0703530..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_close.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_closebox.png b/javascript/libs/jquery/plugins/fancybox/fancy_closebox.png Binary files differdeleted file mode 100644 index 4de4396..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_closebox.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_left.png b/javascript/libs/jquery/plugins/fancybox/fancy_left.png Binary files differdeleted file mode 100644 index 61494e6..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_left.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_loading.png b/javascript/libs/jquery/plugins/fancybox/fancy_loading.png Binary files differdeleted file mode 100644 index 2503017..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_loading.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_nav_left.png b/javascript/libs/jquery/plugins/fancybox/fancy_nav_left.png Binary files differdeleted file mode 100644 index ebaa6a4..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_nav_left.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_nav_right.png b/javascript/libs/jquery/plugins/fancybox/fancy_nav_right.png Binary files differdeleted file mode 100644 index 873294e..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_nav_right.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_progress.png b/javascript/libs/jquery/plugins/fancybox/fancy_progress.png Binary files differdeleted file mode 100644 index 06b7c89..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_progress.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_right.png b/javascript/libs/jquery/plugins/fancybox/fancy_right.png Binary files differdeleted file mode 100644 index 0a56042..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_right.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_e.png b/javascript/libs/jquery/plugins/fancybox/fancy_shadow_e.png Binary files differdeleted file mode 100644 index 2eda089..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_e.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_n.png b/javascript/libs/jquery/plugins/fancybox/fancy_shadow_n.png Binary files differdeleted file mode 100644 index 69aa10e..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_n.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_ne.png b/javascript/libs/jquery/plugins/fancybox/fancy_shadow_ne.png Binary files differdeleted file mode 100644 index 79f6980..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_ne.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_nw.png b/javascript/libs/jquery/plugins/fancybox/fancy_shadow_nw.png Binary files differdeleted file mode 100644 index 7182cd9..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_nw.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_s.png b/javascript/libs/jquery/plugins/fancybox/fancy_shadow_s.png Binary files differdeleted file mode 100644 index d8858bf..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_s.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_se.png b/javascript/libs/jquery/plugins/fancybox/fancy_shadow_se.png Binary files differdeleted file mode 100644 index 541e3ff..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_se.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_sw.png b/javascript/libs/jquery/plugins/fancybox/fancy_shadow_sw.png Binary files differdeleted file mode 100644 index b451689..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_sw.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_w.png b/javascript/libs/jquery/plugins/fancybox/fancy_shadow_w.png Binary files differdeleted file mode 100644 index 8a4e4a8..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_shadow_w.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_title_left.png b/javascript/libs/jquery/plugins/fancybox/fancy_title_left.png Binary files differdeleted file mode 100644 index 6049223..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_title_left.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_title_main.png b/javascript/libs/jquery/plugins/fancybox/fancy_title_main.png Binary files differdeleted file mode 100644 index 8044271..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_title_main.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_title_over.png b/javascript/libs/jquery/plugins/fancybox/fancy_title_over.png Binary files differdeleted file mode 100644 index d9f458f..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_title_over.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancy_title_right.png b/javascript/libs/jquery/plugins/fancybox/fancy_title_right.png Binary files differdeleted file mode 100644 index e36d9db..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancy_title_right.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancybox-x.png b/javascript/libs/jquery/plugins/fancybox/fancybox-x.png Binary files differdeleted file mode 100644 index c2130f8..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancybox-x.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancybox-y.png b/javascript/libs/jquery/plugins/fancybox/fancybox-y.png Binary files differdeleted file mode 100644 index 7ef399b..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancybox-y.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancybox.png b/javascript/libs/jquery/plugins/fancybox/fancybox.png Binary files differdeleted file mode 100644 index 65e14f6..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancybox.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancybox_loading.gif b/javascript/libs/jquery/plugins/fancybox/fancybox_loading.gif Binary files differdeleted file mode 100644 index 742131f..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancybox_loading.gif +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/fancybox_sprite.png b/javascript/libs/jquery/plugins/fancybox/fancybox_sprite.png Binary files differdeleted file mode 100644 index 753021b..0000000 --- a/javascript/libs/jquery/plugins/fancybox/fancybox_sprite.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/helpers/fancybox_buttons.png b/javascript/libs/jquery/plugins/fancybox/helpers/fancybox_buttons.png Binary files differdeleted file mode 100644 index e0e1ea8..0000000 --- a/javascript/libs/jquery/plugins/fancybox/helpers/fancybox_buttons.png +++ /dev/null diff --git a/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-buttons.css b/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-buttons.css deleted file mode 100644 index 1e83200..0000000 --- a/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-buttons.css +++ /dev/null @@ -1,85 +0,0 @@ -#fancybox-buttons { - position: fixed; - left: 0; - width: 100%; - z-index: 1005; -} - -#fancybox-buttons.top { - top: 10px; -} - -#fancybox-buttons.bottom { - bottom: 10px; -} - -#fancybox-buttons ul { - display: block; - width: 170px; - height: 30px; - margin: 0 auto; - padding: 0; - list-style: none; - background: #111; - -webkit-box-shadow: 0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05); - -moz-box-shadow: 0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05); - background: #111 -webkit-gradient(linear,0% 0%,0% 100%,from(rgba(255,255,255,.2)),color-stop(.5,rgba(255,255,255,.15)),color-stop(.5,rgba(255,255,255,.1)),to(rgba(255,255,255,.15))); - background: #111 -moz-linear-gradient(top,rgba(255,255,255,.2) 0%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.15) 100%); - border-radius: 3px; -} - -#fancybox-buttons ul li { - float: left; - margin: 0; - padding: 0; -} - -#fancybox-buttons a { - display: block; - width: 30px; - height: 30px; - text-indent: -9999px; - background-image: url('fancybox_buttons.png'); - background-repeat: no-repeat; - outline: none; -} - -#fancybox-buttons a.btnPrev { - width: 32px; - background-position: 6px 0; -} - -#fancybox-buttons a.btnNext { - background-position: -33px 0; - border-right: 1px solid #3e3e3e; -} - -#fancybox-buttons a.btnPlay { - background-position: 0 -30px; -} - -#fancybox-buttons a.btnPlayOn { - background-position: -30px -30px; -} - -#fancybox-buttons a.btnToggle { - background-position: 3px -60px; - border-left: 1px solid #111; - border-right: 1px solid #3e3e3e; - width: 35px -} - -#fancybox-buttons a.btnToggleOn { - background-position: -27px -60px; -} - -#fancybox-buttons a.btnClose { - border-left: 1px solid #111; - width: 38px; - background-position: -57px 0px; -} - -#fancybox-buttons a.btnDisabled { - opacity : 0.5; - cursor: default; -}
\ No newline at end of file diff --git a/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-buttons.js b/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-buttons.js deleted file mode 100644 index e116e38..0000000 --- a/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-buttons.js +++ /dev/null @@ -1,115 +0,0 @@ - /*! - * Buttons helper for fancyBox - * version: 1.0.2 - * @requires fancyBox v2.0 or later - * - * Usage: - * $(".fancybox").fancybox({ - * buttons: { - * position : 'top' - * } - * }); - * - * Options: - * tpl - HTML template - * position - 'top' or 'bottom' - * - */ -(function ($) { - //Shortcut for fancyBox object - var F = $.fancybox; - - //Add helper object - F.helpers.buttons = { - tpl: '<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:jQuery.fancybox.close();"></a></li></ul></div>', - list: null, - buttons: {}, - - update: function () { - var toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn'); - - //Size toggle button - if (F.current.canShrink) { - toggle.addClass('btnToggleOn'); - - } else if (!F.current.canExpand) { - toggle.addClass('btnDisabled'); - } - }, - - beforeLoad: function (opts) { - //Remove self if gallery do not have at least two items - if (F.group.length < 2) { - F.coming.helpers.buttons = false; - F.coming.closeBtn = true; - - return; - } - - //Increase top margin to give space for buttons - F.coming.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30; - }, - - onPlayStart: function () { - if (this.list) { - this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn'); - } - }, - - onPlayEnd: function () { - if (this.list) { - this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn'); - } - }, - - afterShow: function (opts) { - var buttons; - - if (!this.list) { - this.list = $(opts.tpl || this.tpl).addClass(opts.position || 'top').appendTo('body'); - - this.buttons = { - prev : this.list.find('.btnPrev').click( F.prev ), - next : this.list.find('.btnNext').click( F.next ), - play : this.list.find('.btnPlay').click( F.play ), - toggle : this.list.find('.btnToggle').click( F.toggle ) - } - } - - buttons = this.buttons; - - //Prev - if (F.current.index > 0 || F.current.loop) { - buttons.prev.removeClass('btnDisabled'); - } else { - buttons.prev.addClass('btnDisabled'); - } - - //Next / Play - if (F.current.loop || F.current.index < F.group.length - 1) { - buttons.next.removeClass('btnDisabled'); - buttons.play.removeClass('btnDisabled'); - - } else { - buttons.next.addClass('btnDisabled'); - buttons.play.addClass('btnDisabled'); - } - - this.update(); - }, - - onUpdate: function () { - this.update(); - }, - - beforeClose: function () { - if (this.list) { - this.list.remove(); - } - - this.list = null; - this.buttons = {}; - } - }; - -}(jQuery));
\ No newline at end of file diff --git a/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-thumbs.css b/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-thumbs.css deleted file mode 100644 index aadfb73..0000000 --- a/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-thumbs.css +++ /dev/null @@ -1,54 +0,0 @@ -#fancybox-thumbs { - position: fixed; - left: 0px; - width: 100%; - overflow: hidden; - z-index: 1005; -} - -#fancybox-thumbs.bottom { - bottom: 2px; -} - -#fancybox-thumbs.top { - top: 2px; -} - -#fancybox-thumbs ul { - position: relative; - list-style: none; - margin: 0; - padding: 0; -} - -#fancybox-thumbs ul li { - float: left; - padding: 1px; - opacity: 0.5; -} - -#fancybox-thumbs ul li.active { - opacity: 0.75; - padding: 0; - border: 1px solid #fff; -} - -#fancybox-thumbs ul li:hover { - opacity: 1; -} - -#fancybox-thumbs ul li a { - display: block; - position: relative; - overflow: hidden; - border: 1px solid #222; - background: #111; - outline: none; -} - -#fancybox-thumbs ul li img { - display: block; - position: relative; - border: 0; - padding: 0; -}
\ No newline at end of file diff --git a/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-thumbs.js b/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-thumbs.js deleted file mode 100644 index 04a97db..0000000 --- a/javascript/libs/jquery/plugins/fancybox/helpers/jquery.fancybox-thumbs.js +++ /dev/null @@ -1,157 +0,0 @@ - /*! - * Thumbnail helper for fancyBox - * version: 1.0.3 - * @requires fancyBox v2.0 or later - * - * Usage: - * $(".fancybox").fancybox({ - * thumbs: { - * width : 50, - * height : 50 - * } - * }); - * - * Options: - * width - thumbnail width - * height - thumbnail height - * source - function to obtain the URL of the thumbnail image - * position - 'top' or 'bottom' - * - */ -(function ($) { - //Shortcut for fancyBox object - var F = $.fancybox; - - //Add helper object - F.helpers.thumbs = { - wrap: null, - list: null, - width: 0, - - //Default function to obtain the URL of the thumbnail image - source: function (el) { - var img; - - if ($.type(el) === 'string') { - return el; - } - - img = $(el).find('img'); - - return img.length ? img.attr('src') : el.href; - }, - - init: function (opts) { - var that = this, - list, - thumbWidth = opts.width || 50, - thumbHeight = opts.height || 50, - thumbSource = opts.source || this.source; - - //Build list structure - list = ''; - - for (var n = 0; n < F.group.length; n++) { - list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>'; - } - - this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position || 'bottom').appendTo('body'); - this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap); - - //Load each thumbnail - $.each(F.group, function (i) { - $("<img />").load(function () { - var width = this.width, - height = this.height, - widthRatio, heightRatio, parent; - - if (!that.list || !width || !height) { - return; - } - - //Calculate thumbnail width/height and center it - widthRatio = width / thumbWidth; - heightRatio = height / thumbHeight; - parent = that.list.children().eq(i).find('a'); - - if (widthRatio >= 1 && heightRatio >= 1) { - if (widthRatio > heightRatio) { - width = Math.floor(width / heightRatio); - height = thumbHeight; - - } else { - width = thumbWidth; - height = Math.floor(height / widthRatio); - } - } - - $(this).css({ - width: width, - height: height, - top: Math.floor(thumbHeight / 2 - height / 2), - left: Math.floor(thumbWidth / 2 - width / 2) - }); - - parent.width(thumbWidth).height(thumbHeight); - - $(this).hide().appendTo(parent).fadeIn(300); - - }).attr('src', thumbSource( F.group[ i ] )); - }); - - //Set initial width - this.width = this.list.children().eq(0).outerWidth(); - - this.list.width(this.width * (F.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (F.current.index * this.width + this.width * 0.5))); - }, - - //Center list - update: function (opts) { - if (this.list) { - this.list.stop(true).animate({ - 'left': Math.floor($(window).width() * 0.5 - (F.current.index * this.width + this.width * 0.5)) - }, 150); - } - }, - - beforeLoad: function (opts) { - //Remove self if gallery do not have at least two items - if (F.group.length < 2) { - F.coming.helpers.thumbs = false; - - return; - } - - //Increase bottom margin to give space for thumbs - F.coming.margin[ opts.position === 'top' ? 0 : 2 ] = opts.height + 30; - }, - - afterShow: function (opts) { - //Check if exists and create or update list - if (this.list) { - this.update(opts); - - } else { - this.init(opts); - } - - //Set active element - this.list.children().removeClass('active').eq(F.current.index).addClass('active'); - }, - - onUpdate: function () { - this.update(); - }, - - beforeClose: function () { - if (this.wrap) { - this.wrap.remove(); - } - - this.wrap = null; - this.list = null; - this.width = 0; - } - } - -}(jQuery));
\ No newline at end of file diff --git a/javascript/libs/jquery/plugins/fancybox/jquery.easing-1.3.pack.js b/javascript/libs/jquery/plugins/fancybox/jquery.easing-1.3.pack.js deleted file mode 100644 index 9028179..0000000 --- a/javascript/libs/jquery/plugins/fancybox/jquery.easing-1.3.pack.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ - * - * Uses the built in easing capabilities added In jQuery 1.1 - * to offer multiple easing options - * - * TERMS OF USE - jQuery Easing - * - * Open source under the BSD License. - * - * Copyright © 2008 George McGinley Smith - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * Neither the name of the author nor the names of contributors may be used to endorse - * or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - * -*/ - -// t: current time, b: begInnIng value, c: change In value, d: duration -eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{})) - -/* - * - * TERMS OF USE - EASING EQUATIONS - * - * Open source under the BSD License. - * - * Copyright © 2001 Robert Penner - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * Neither the name of the author nor the names of contributors may be used to endorse - * or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ diff --git a/javascript/libs/jquery/plugins/fancybox/jquery.fancybox.css b/javascript/libs/jquery/plugins/fancybox/jquery.fancybox.css deleted file mode 100644 index fa9ab43..0000000 --- a/javascript/libs/jquery/plugins/fancybox/jquery.fancybox.css +++ /dev/null @@ -1,222 +0,0 @@ -/*! fancyBox v2.0.5 fancyapps.com | fancyapps.com/fancybox/#license */ -.fancybox-tmp iframe, .fancybox-tmp object { - vertical-align: top; - padding: 0; - margin: 0; -} - -.fancybox-wrap { - position: absolute; - top: 0; - left: 0; - z-index: 1002; -} - -.fancybox-outer { - position: relative; - padding: 0; - margin: 0; - background: #f9f9f9; - color: #444; - text-shadow: none; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -.fancybox-opened { - z-index: 1003; -} - -.fancybox-opened .fancybox-outer { - -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); - -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); - box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); -} - -.fancybox-inner { - width: 100%; - height: 100%; - padding: 0; - margin: 0; - position: relative; - outline: none; - overflow: hidden; -} - -.fancybox-error { - color: #444; - font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; - margin: 0; - padding: 10px; -} - -.fancybox-image, .fancybox-iframe { - display: block; - width: 100%; - height: 100%; - border: 0; - padding: 0; - margin: 0; - vertical-align: top; -} - -.fancybox-image { - max-width: 100%; - max-height: 100%; -} - -#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { - background-image: url('fancybox_sprite.png'); -} - -#fancybox-loading { - position: fixed; - top: 50%; - left: 50%; - margin-top: -22px; - margin-left: -22px; - background-position: 0 -108px; - opacity: 0.8; - cursor: pointer; - z-index: 1010; -} - -#fancybox-loading div { - width: 44px; - height: 44px; - background: url('fancybox_loading.gif') center center no-repeat; -} - -.fancybox-close { - position: absolute; - top: -18px; - right: -18px; - width: 36px; - height: 36px; - cursor: pointer; - z-index: 1004; -} - -.fancybox-nav { - position: absolute; - top: 0; - width: 40%; - height: 100%; - cursor: pointer; - background: transparent url('blank.gif'); /* helps IE */ - z-index: 1003; -} - -.fancybox-prev { - left: 0; -} - -.fancybox-next { - right: 0; -} - -.fancybox-nav span { - position: absolute; - top: 50%; - width: 36px; - height: 36px; - margin-top: -18px; - cursor: pointer; - z-index: 1003; - visibility: hidden; -} - -.fancybox-prev span { - left: 20px; - background-position: 0 -36px; -} - -.fancybox-next span { - right: 20px; - background-position: 0 -72px; -} - -.fancybox-nav:hover span { - visibility: visible; -} - -.fancybox-tmp { - position: absolute; - top: -9999px; - left: -9999px; - padding: 0; - overflow: visible; - visibility: hidden; -} - -/* Overlay helper */ - -#fancybox-overlay { - position: absolute; - top: 0; - left: 0; - overflow: hidden; - display: none; - z-index: 1001; - background: #000; -} - -/* Title helper */ - -.fancybox-title { - visibility: hidden; - font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; - position: relative; - text-shadow: none; - z-index: 1005; -} - -.fancybox-opened .fancybox-title { - visibility: visible; -} - -.fancybox-title-float-wrap { - position: absolute; - bottom: 0; - right: 50%; - margin-bottom: -35px; - z-index: 1003; - text-align: center; -} - -.fancybox-title-float-wrap .child { - display: inline-block; - margin-right: -100%; - padding: 2px 20px; - background: transparent; /* Fallback for web browsers that doesn't support RGBa */ - background: rgba(0, 0, 0, 0.8); - -webkit-border-radius: 15px; - -moz-border-radius: 15px; - border-radius: 15px; - text-shadow: 0 1px 2px #222; - color: #FFF; - font-weight: bold; - line-height: 24px; - white-space: nowrap; -} - -.fancybox-title-outside-wrap { - position: relative; - margin-top: 10px; - color: #fff; -} - -.fancybox-title-inside-wrap { - margin-top: 10px; -} - -.fancybox-title-over-wrap { - position: absolute; - bottom: 0; - left: 0; - color: #fff; - padding: 10px; - background: #000; - background: rgba(0, 0, 0, .8); -}
\ No newline at end of file diff --git a/javascript/libs/jquery/plugins/fancybox/jquery.fancybox.js b/javascript/libs/jquery/plugins/fancybox/jquery.fancybox.js deleted file mode 100644 index 435f8a0..0000000 --- a/javascript/libs/jquery/plugins/fancybox/jquery.fancybox.js +++ /dev/null @@ -1,1456 +0,0 @@ - /*! - * fancyBox - jQuery Plugin - * version: 2.0.5 (02/03/2012) - * @requires jQuery v1.6 or later - * - * Examples at http://fancyapps.com/fancybox/ - * License: www.fancyapps.com/fancybox/#license - * - * Copyright 2012 Janis Skarnelis - janis@fancyapps.com - * - */ -(function (window, document, undefined) { - "use strict"; - - var $ = window.jQuery, - W = $(window), - D = $(document), - F = $.fancybox = function () { - F.open.apply( this, arguments ); - }, - didResize = false, - resizeTimer = null, - isMobile = document.createTouch !== undefined, - isString = function(str) { - return $.type(str) === "string"; - }; - - $.extend(F, { - // The current version of fancyBox - version: '2.0.5', - - defaults: { - padding: 15, - margin: 20, - - width: 800, - height: 600, - minWidth: 100, - minHeight: 100, - maxWidth: 9999, - maxHeight: 9999, - - autoSize: true, - autoResize: !isMobile, - autoCenter : !isMobile, - fitToView: true, - aspectRatio: false, - topRatio: 0.5, - - fixed: !($.browser.msie && $.browser.version <= 6) && !isMobile, - scrolling: 'auto', // 'auto', 'yes' or 'no' - wrapCSS: 'fancybox-default', - - arrows: true, - closeBtn: true, - closeClick: false, - nextClick : false, - mouseWheel: true, - autoPlay: false, - playSpeed: 3000, - preload : 3, - - modal: false, - loop: true, - ajax: { dataType: 'html', headers: { 'X-fancyBox': true } }, - keys: { - next: [13, 32, 34, 39, 40], // enter, space, page down, right arrow, down arrow - prev: [8, 33, 37, 38], // backspace, page up, left arrow, up arrow - close: [27] // escape key - }, - - // Override some properties - index: 0, - type: null, - href: null, - content: null, - title: null, - - // HTML templates - tpl: { - wrap: '<div class="fancybox-wrap"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div>', - image: '<img class="fancybox-image" src="{href}" alt="" />', - iframe: '<iframe class="fancybox-iframe" name="fancybox-frame{rnd}" frameborder="0" hspace="0"' + ($.browser.msie ? ' allowtransparency="true"' : '') + '></iframe>', - swf: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{href}" /><embed src="{href}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="100%" height="100%" wmode="transparent"></embed></object>', - error: '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>', - closeBtn: '<div title="Close" class="fancybox-item fancybox-close"></div>', - next: '<a title="Next" class="fancybox-nav fancybox-next"><span></span></a>', - prev: '<a title="Previous" class="fancybox-nav fancybox-prev"><span></span></a>' - }, - - // Properties for each animation type - // Opening fancyBox - openEffect: 'fade', // 'elastic', 'fade' or 'none' - openSpeed: 250, - openEasing: 'swing', - openOpacity: true, - openMethod: 'zoomIn', - - // Closing fancyBox - closeEffect: 'fade', // 'elastic', 'fade' or 'none' - closeSpeed: 250, - closeEasing: 'swing', - closeOpacity: true, - closeMethod: 'zoomOut', - - // Changing next gallery item - nextEffect: 'elastic', // 'elastic', 'fade' or 'none' - nextSpeed: 300, - nextEasing: 'swing', - nextMethod: 'changeIn', - - // Changing previous gallery item - prevEffect: 'elastic', // 'elastic', 'fade' or 'none' - prevSpeed: 300, - prevEasing: 'swing', - prevMethod: 'changeOut', - - // Enabled helpers - helpers: { - overlay: { - speedIn: 0, - speedOut: 300, - opacity: 0.8, - css: { - cursor: 'pointer' - }, - closeClick: true - }, - title: { - type: 'float' // 'float', 'inside', 'outside' or 'over' - } - }, - - // Callbacks - onCancel: $.noop, // If canceling - beforeLoad: $.noop, // Before loading - afterLoad: $.noop, // After loading - beforeShow: $.noop, // Before changing in current item - afterShow: $.noop, // After opening - beforeClose: $.noop, // Before closing - afterClose: $.noop // After closing - }, - - //Current state - group: {}, // Selected group - opts: {}, // Group options - coming: null, // Element being loaded - current: null, // Currently loaded element - isOpen: false, // Is currently open - isOpened: false, // Have been fully opened at least once - wrap: null, - outer: null, - inner: null, - - player: { - timer: null, - isActive: false - }, - - // Loaders - ajaxLoad: null, - imgPreload: null, - - // Some collections - transitions: {}, - helpers: {}, - - /* - * Static methods - */ - - open: function (group, opts) { - //Kill existing instances - F.close(true); - - //Normalize group - if (group && !$.isArray(group)) { - group = group instanceof $ ? $(group).get() : [group]; - } - - F.isActive = true; - - //Extend the defaults - F.opts = $.extend(true, {}, F.defaults, opts); - - //All options are merged recursive except keys - if ($.isPlainObject(opts) && opts.keys !== undefined) { - F.opts.keys = opts.keys ? $.extend({}, F.defaults.keys, opts.keys) : false; - } - - F.group = group; - - F._start(F.opts.index || 0); - }, - - cancel: function () { - if (F.coming && false === F.trigger('onCancel')) { - return; - } - - F.coming = null; - - F.hideLoading(); - - if (F.ajaxLoad) { - F.ajaxLoad.abort(); - } - - F.ajaxLoad = null; - - if (F.imgPreload) { - F.imgPreload.onload = F.imgPreload.onabort = F.imgPreload.onerror = null; - } - }, - - close: function (a) { - F.cancel(); - - if (!F.current || false === F.trigger('beforeClose')) { - return; - } - - F.unbindEvents(); - - //If forced or is still opening then remove immediately - if (!F.isOpen || (a && a[0] === true)) { - $(".fancybox-wrap").stop().trigger('onReset').remove(); - - F._afterZoomOut(); - - } else { - F.isOpen = F.isOpened = false; - - $(".fancybox-item, .fancybox-nav").remove(); - - F.wrap.stop(true).removeClass('fancybox-opened'); - F.inner.css('overflow', 'hidden'); - - F.transitions[F.current.closeMethod](); - } - }, - - // Start/stop slideshow - play: function (a) { - var clear = function () { - clearTimeout(F.player.timer); - }, - set = function () { - clear(); - - if (F.current && F.player.isActive) { - F.player.timer = setTimeout(F.next, F.current.playSpeed); - } - }, - stop = function () { - clear(); - - $('body').unbind('.player'); - - F.player.isActive = false; - - F.trigger('onPlayEnd'); - }, - start = function () { - if (F.current && (F.current.loop || F.current.index < F.group.length - 1)) { - F.player.isActive = true; - - $('body').bind({ - 'afterShow.player onUpdate.player': set, - 'onCancel.player beforeClose.player': stop, - 'beforeLoad.player': clear - }); - - set(); - - F.trigger('onPlayStart'); - } - }; - - if (F.player.isActive || (a && a[0] === false)) { - stop(); - } else { - start(); - } - }, - - next: function () { - if (F.current) { - F.jumpto(F.current.index + 1); - } - }, - - prev: function () { - if (F.current) { - F.jumpto(F.current.index - 1); - } - }, - - jumpto: function (index) { - if (!F.current) { - return; - } - - index = parseInt(index, 10); - - if (F.group.length > 1 && F.current.loop) { - if (index >= F.group.length) { - index = 0; - - } else if (index < 0) { - index = F.group.length - 1; - } - } - - if (F.group[index] !== undefined) { - F.cancel(); - - F._start(index); - } - }, - - reposition: function (a, b) { - if (F.isOpen) { - if (b && b.type === 'scroll') { - F.wrap.stop().animate(F._getPosition(a), 200); - } else { - F.wrap.css(F._getPosition(a)); - } - } - }, - - update: function (e) { - if (F.isOpen) { - // It's a very bad idea to attach handlers to the window scroll event, run this code after a delay - if (!didResize) { - resizeTimer = setTimeout(function () { - var current = F.current; - - if (didResize) { - didResize = false; - - if (current) { - if (!e || (e && (e.type === 'orientationchange' || (current.autoResize && e.type === 'resize')))) { - if (current.autoSize) { - F.inner.height('auto'); - current.height = F.inner.height(); - } - - F._setDimension(); - - if (current.canGrow) { - F.inner.height('auto'); - } - } - - if (current.autoCenter) { - F.reposition(null, e); - } - - F.trigger('onUpdate'); - } - } - }, 100); - } - - didResize = true; - } - }, - - toggle: function () { - if (F.isOpen) { - F.current.fitToView = !F.current.fitToView; - - F.update(); - } - }, - - hideLoading: function () { - D.unbind('keypress.fb'); - - $("#fancybox-loading").remove(); - }, - - showLoading: function () { - F.hideLoading(); - - //If user will press the escape-button, the request will be canceled - D.bind('keypress.fb', function(e) { - if (e.keyCode == 27) { - e.preventDefault(); - F.cancel(); - } - }); - - $('<div id="fancybox-loading"><div></div></div>').click(F.cancel).appendTo('body'); - }, - - getViewport: function () { - return { - x: W.scrollLeft(), - y: W.scrollTop(), - w: W.width(), - h: W.height() - }; - }, - - // Unbind the keyboard / clicking actions - unbindEvents: function () { - if (F.wrap) { - F.wrap.unbind('.fb'); - } - - D.unbind('.fb'); - W.unbind('.fb'); - }, - - bindEvents: function () { - var current = F.current, - keys = current.keys; - - if (!current) { - return; - } - - W.bind('resize.fb, orientationchange.fb', F.update); - - if (!current.fixed && current.autoCenter) { - W.bind("scroll.fb", F.update); - } - - if (keys) { - D.bind('keydown.fb', function (e) { - var code; - - // Ignore key combinations and key events within form elements - if (!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && $.inArray(e.target.tagName.toLowerCase(), ['input', 'textarea', 'select', 'button']) < 0) { - code = e.keyCode; - - if ($.inArray(code, keys.close) > -1) { - F.close(); - e.preventDefault(); - - } else if ($.inArray(code, keys.next) > -1) { - F.next(); - e.preventDefault(); - - } else if ($.inArray(code, keys.prev) > -1) { - F.prev(); - e.preventDefault(); - } - } - }); - } - - if ($.fn.mousewheel && current.mouseWheel && F.group.length > 1) { - F.wrap.bind('mousewheel.fb', function (e, delta) { - var target = e.target || null; - - if (delta !== 0 && (!target || target.clientHeight === 0 || (target.scrollHeight === target.clientHeight && target.scrollWidth === target.clientWidth))) { - e.preventDefault(); - - F[delta > 0 ? 'prev' : 'next'](); - } - }); - } - }, - - trigger: function (event) { - var ret, obj = F[ $.inArray(event, ['onCancel', 'beforeLoad', 'afterLoad']) > -1 ? 'coming' : 'current' ]; - - if (!obj) { - return; - } - - if ($.isFunction( obj[event] )) { - ret = obj[event].apply(obj, Array.prototype.slice.call(arguments, 1)); - } - - if (ret === false) { - return false; - } - - if (obj.helpers) { - $.each(obj.helpers, function (helper, opts) { - if (opts && $.isPlainObject(F.helpers[helper]) && $.isFunction(F.helpers[helper][event])) { - F.helpers[helper][event](opts, obj); - } - }); - } - - $.event.trigger(event + '.fb'); - }, - - isImage: function (str) { - return str && str.toString().match(/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i); - }, - - isSWF: function (str) { - return str && str.toString().match(/\.(swf)(.*)?$/i); - }, - - _start: function (index) { - var coming = {}, - element = F.group[index] || null, - isDom, - href, - type, - rez, - hrefParts; - - if (element && (element.nodeType || element instanceof $)) { - isDom = true; - - if ($.metadata) { - coming = $(element).metadata(); - } - } - - coming = $.extend(true, {}, F.opts, {index : index, element : element}, ($.isPlainObject(element) ? element : coming)); - - // Re-check overridable options - $.each(['href', 'title', 'content', 'type'], function(i,v) { - coming[v] = F.opts[ v ] || (isDom && $(element).attr( v )) || coming[ v ] || null; - }); - - // Convert margin property to array - top, right, bottom, left - if (typeof coming.margin === 'number') { - coming.margin = [coming.margin, coming.margin, coming.margin, coming.margin]; - } - - // 'modal' propery is just a shortcut - if (coming.modal) { - $.extend(true, coming, { - closeBtn : false, - closeClick: false, - nextClick : false, - arrows : false, - mouseWheel : false, - keys : null, - helpers: { - overlay : { - css: { - cursor : 'auto' - }, - closeClick : false - } - } - }); - } - - //Give a chance for callback or helpers to update coming item (type, title, etc) - F.coming = coming; - - if (false === F.trigger('beforeLoad')) { - F.coming = null; - return; - } - - type = coming.type; - href = coming.href || element; - - ///Check if content type is set, if not, try to get - if (!type) { - if (isDom) { - rez = $(element).data('fancybox-type'); - - if (!rez && element.className) { - rez = element.className.match(/fancybox\.(\w+)/); - type = rez ? rez[1] : null; - } - } - - if (!type && isString(href)) { - if (F.isImage(href)) { - type = 'image'; - - } else if (F.isSWF(href)) { - type = 'swf'; - - } else if (href.match(/^#/)) { - type = 'inline'; - } - } - - // ...if not - display element itself - if (!type) { - type = isDom ? 'inline' : 'html'; - } - - coming.type = type; - } - - // Check before try to load; 'inline' and 'html' types need content, others - href - if (type === 'inline' || type === 'html') { - if (!coming.content) { - if (type === 'inline') { - coming.content = $( isString(href) ? href.replace(/.*(?=#[^\s]+$)/, '') : href ); //strip for ie7 - - } else { - coming.content = element; - } - } - - if (!coming.content || !coming.content.length) { - type = null; - } - - } else if (!href) { - type = null; - } - - /* - Add reference to the group, so it`s possible to access from callbacks, example: - - afterLoad : function() { - this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : ''); - } - - */ - - hrefParts = href.split(/\s+/, 2); - - coming.group = F.group; - coming.isDom = isDom; - coming.href = hrefParts.shift(); - coming.selector = hrefParts.shift(); - - if (type === 'image') { - F._loadImage(); - - } else if (type === 'ajax') { - F._loadAjax(); - - } else if (type) { - F._afterLoad(); - - } else { - F._error( 'type' ); - } - }, - - _error: function ( type ) { - F.hideLoading(); - - $.extend(F.coming, { - type : 'html', - autoSize : true, - minHeight : 0, - hasError : type, - content : F.coming.tpl.error - }); - - F._afterLoad(); - }, - - _loadImage: function () { - // Reset preload image so it is later possible to check "complete" property - F.imgPreload = new Image(); - - F.imgPreload.onload = function () { - this.onload = this.onerror = null; - - F.coming.width = this.width; - F.coming.height = this.height; - - F._afterLoad(); - }; - - F.imgPreload.onerror = function () { - this.onload = this.onerror = null; - - F._error( 'image' ); - }; - - F.imgPreload.src = F.coming.href; - - if (!F.imgPreload.width) { - F.showLoading(); - } - }, - - _loadAjax: function () { - F.showLoading(); - - F.ajaxLoad = $.ajax($.extend({}, F.coming.ajax, { - url: F.coming.href, - error: function (jqXHR, textStatus) { - if (F.coming && textStatus !== 'abort') { - F._error( 'ajax', jqXHR ); - - } else { - F.hideLoading(); - } - }, - success: function (data, textStatus) { - if (textStatus === 'success') { - F.coming.content = data; - - F._afterLoad(); - } - } - })); - }, - - _preloadImages: function() { - var group = F.group, - current = F.current, - len = group.length, - item, - href, - i, - cnt = Math.min(current.preload, len - 1); - - if (!current.preload || group.length < 2) { - return; - } - - for (i = 1; i <= cnt; i += 1) { - item = group[ (current.index + i ) % len ]; - href = $( item ).attr('href') || item; - - if (item.type === 'image' || F.isImage(href)) { - new Image().src = href; - } - } - }, - - _afterLoad: function () { - F.hideLoading(); - - if (!F.coming || false === F.trigger('afterLoad', F.current)) { - F.coming = false; - - return; - } - - if (F.isOpened) { - $(".fancybox-item").remove(); - - F.wrap.stop(true).removeClass('fancybox-opened'); - F.inner.css('overflow', 'hidden'); - - F.transitions[F.current.prevMethod](); - - } else { - $(".fancybox-wrap").stop().trigger('onReset').remove(); - - F.trigger('afterClose'); - } - - F.unbindEvents(); - - F.isOpen = false; - F.current = F.coming; - - //Build the neccessary markup - F.wrap = $(F.current.tpl.wrap).addClass('fancybox-' + (isMobile ? 'mobile' : 'desktop') + ' fancybox-tmp ' + F.current.wrapCSS).appendTo('body'); - F.outer = $('.fancybox-outer', F.wrap).css('padding', F.current.padding + 'px'); - F.inner = $('.fancybox-inner', F.wrap); - - F._setContent(); - }, - - _setContent: function () { - var current = F.current, content = current.content, type = current.type, loadingBay; - - switch (type) { - case 'inline': - case 'ajax': - case 'html': - if (current.selector) { - content = $("<div>").html(content).find(current.selector); - - } else if (content instanceof $) { - content = content.show().detach(); - - if (content.parent().hasClass('fancybox-inner')) { - content.parents('.fancybox-wrap').trigger('onReset').remove(); - } - - $(F.wrap).bind('onReset', function () { - content.appendTo('body').hide(); - }); - } - - if (current.autoSize) { - loadingBay = $('<div class="fancybox-tmp ' + F.current.wrapCSS + '"></div>').appendTo('body').append(content); - current.width = loadingBay.width(); - current.height = loadingBay.height(); - - // Re-check to fix 1px bug in some browsers - loadingBay.width( F.current.width ); - - if (loadingBay.height() > current.height) { - loadingBay.width(current.width + 1); - - current.width = loadingBay.width(); - current.height = loadingBay.height(); - } - - content = loadingBay.contents().detach(); - - loadingBay.remove(); - } - - break; - - case 'image': - content = current.tpl.image.replace('{href}', current.href); - - current.aspectRatio = true; - break; - - case 'swf': - content = current.tpl.swf.replace(/\{width\}/g, current.width).replace(/\{height\}/g, current.height).replace(/\{href\}/g, current.href); - break; - } - - if (type === 'iframe') { - content = $(current.tpl.iframe.replace('{rnd}', new Date().getTime()) ).attr('scrolling', current.scrolling); - - current.scrolling = 'auto'; - - // Set auto height for iframes - if (current.autoSize) { - content.width( current.width ); - - F.showLoading(); - - content.data('ready', false).appendTo(F.inner).bind({ - onCancel : function() { - $(this).unbind(); - - F._afterZoomOut(); - }, - load : function() { - var iframe = $(this), height; - - try { - if (this.contentWindow.document.location) { - height = iframe.contents().find('body').height() + 12; - - iframe.height( height ); - } - - } catch (e) { - current.autoSize = false; - } - - if (iframe.data('ready') === false) { - F.hideLoading(); - - if (height) { - F.current.height = height; - } - - F._beforeShow(); - - iframe.data('ready', true); - - } else if (height) { - F.update(); - } - } - - }).attr('src', current.href); - - return; - } - - content.attr('src', current.href); - - } else if (type === 'image' || type === 'swf') { - current.autoSize = false; - current.scrolling = 'visible'; - } - - F.inner.append(content); - - F._beforeShow(); - }, - - _beforeShow : function() { - F.coming = null; - - //Give a chance for helpers or callbacks to update elements - F.trigger('beforeShow'); - - //Set initial dimensions and hide - F._setDimension(); - - F.wrap.hide().removeClass('fancybox-tmp'); - - F.bindEvents(); - F._preloadImages(); - - F.transitions[ F.isOpened ? F.current.nextMethod : F.current.openMethod ](); - }, - - _setDimension: function () { - var wrap = F.wrap, - outer = F.outer, - inner = F.inner, - current = F.current, - viewport = F.getViewport(), - margin = current.margin, - padding2 = current.padding * 2, - width = current.width, - height = current.height, - maxWidth = current.maxWidth, - maxHeight = current.maxHeight, - minWidth = current.minWidth, - minHeight = current.minHeight, - ratio, - height_, - space; - - viewport.w -= (margin[1] + margin[3]); - viewport.h -= (margin[0] + margin[2]); - - if (width.toString().indexOf('%') > -1) { - width = (((viewport.w - padding2) * parseFloat(width)) / 100); - } - - if (height.toString().indexOf('%') > -1) { - height = (((viewport.h - padding2) * parseFloat(height)) / 100); - } - - ratio = width / height; - - width += padding2; - height += padding2; - - if (current.fitToView) { - maxWidth = Math.min(viewport.w, maxWidth); - maxHeight = Math.min(viewport.h, maxHeight); - } - - if (current.aspectRatio) { - if (width > maxWidth) { - width = maxWidth; - height = ((width - padding2) / ratio) + padding2; - } - - if (height > maxHeight) { - height = maxHeight; - width = ((height - padding2) * ratio) + padding2; - } - - if (width < minWidth) { - width = minWidth; - height = ((width - padding2) / ratio) + padding2; - } - - if (height < minHeight) { - height = minHeight; - width = ((height - padding2) * ratio) + padding2; - } - - } else { - width = Math.max(minWidth, Math.min(width, maxWidth)); - height = Math.max(minHeight, Math.min(height, maxHeight)); - } - - width = Math.round(width); - height = Math.round(height); - - //Reset dimensions - $(wrap.add(outer).add(inner)).width('auto').height('auto'); - - inner.width(width - padding2).height(height - padding2); - wrap.width(width); - - height_ = wrap.height(); // Real wrap height - - //Fit wrapper inside - if (width > maxWidth || height_ > maxHeight) { - while ((width > maxWidth || height_ > maxHeight) && width > minWidth && height_ > minHeight) { - height = height - 10; - - if (current.aspectRatio) { - width = Math.round(((height - padding2) * ratio) + padding2); - - if (width < minWidth) { - width = minWidth; - height = ((width - padding2) / ratio) + padding2; - } - - } else { - width = width - 10; - } - - inner.width(width - padding2).height(height - padding2); - wrap.width(width); - - height_ = wrap.height(); - } - } - - current.dim = { - width: width, - height: height_ - }; - - current.canGrow = current.autoSize && height > minHeight && height < maxHeight; - current.canShrink = false; - current.canExpand = false; - - if ((width - padding2) < current.width || (height - padding2) < current.height) { - current.canExpand = true; - - } else if ((width > viewport.w || height_ > viewport.h) && width > minWidth && height > minHeight) { - current.canShrink = true; - } - - space = height_ - padding2; - - F.innerSpace = space - inner.height(); - F.outerSpace = space - outer.height(); - }, - - _getPosition: function (a) { - var current = F.current, - viewport = F.getViewport(), - margin = current.margin, - width = F.wrap.width() + margin[1] + margin[3], - height = F.wrap.height() + margin[0] + margin[2], - rez = { - position: 'absolute', - top: margin[0] + viewport.y, - left: margin[3] + viewport.x - }; - - if (current.autoCenter && current.fixed && (!a || a[0] === false) && height <= viewport.h && width <= viewport.w) { - rez = { - position: 'fixed', - top: margin[0], - left: margin[3] - }; - } - - rez.top = Math.ceil(Math.max(rez.top, rez.top + ((viewport.h - height) * current.topRatio))) + 'px'; - rez.left = Math.ceil(Math.max(rez.left, rez.left + ((viewport.w - width) * 0.5))) + 'px'; - - return rez; - }, - - _afterZoomIn: function () { - var current = F.current, scrolling = current ? current.scrolling : 'no'; - - if (!current) { - return; - } - - F.isOpen = F.isOpened = true; - - F.wrap.addClass('fancybox-opened').css('overflow', 'visible'); - - F.update(); - - F.inner.css('overflow', scrolling === 'yes' ? 'scroll' : (scrolling === 'no' ? 'hidden' : scrolling)); - - //Assign a click event - if (current.closeClick || current.nextClick) { - //This is not the perfect solution but arrows have to be next to content so their height will match - // and I do not want another wrapper around content - F.inner.css('cursor', 'pointer').bind('click.fb', function(e) { - if (!$(e.target).is('a') && !$(e.target).parent().is('a')) { - F[ current.closeClick ? 'close' : 'next' ](); - } - }); - } - - //Create a close button - if (current.closeBtn) { - $(current.tpl.closeBtn).appendTo(F.outer).bind('click.fb', F.close); - } - - //Create navigation arrows - if (current.arrows && F.group.length > 1) { - if (current.loop || current.index > 0) { - $(current.tpl.prev).appendTo(F.inner).bind('click.fb', F.prev); - } - - if (current.loop || current.index < F.group.length - 1) { - $(current.tpl.next).appendTo(F.inner).bind('click.fb', F.next); - } - } - - F.trigger('afterShow'); - - if (F.opts.autoPlay && !F.player.isActive) { - F.opts.autoPlay = false; - - F.play(); - } - }, - - _afterZoomOut: function () { - F.trigger('afterClose'); - - F.wrap.trigger('onReset').remove(); - - $.extend(F, { - group: {}, - opts: {}, - current: null, - isActive: false, - isOpened: false, - isOpen: false, - wrap: null, - outer: null, - inner: null - }); - } - }); - - /* - * Default transitions - */ - - F.transitions = { - getOrigPosition: function () { - var current = F.current, - element = current.element, - padding = current.padding, - orig = $(current.orig), - pos = {}, - width = 50, - height = 50, - viewport; - - if (!orig.length && current.isDom && $(element).is(':visible')) { - orig = $(element).find('img:first'); - - if (!orig.length) { - orig = $(element); - } - } - - if (orig.length) { - pos = orig.offset(); - - if (orig.is('img')) { - width = orig.outerWidth(); - height = orig.outerHeight(); - } - - } else { - viewport = F.getViewport(); - - pos.top = viewport.y + (viewport.h - height) * 0.5; - pos.left = viewport.x + (viewport.w - width) * 0.5; - } - - pos = { - top: Math.ceil(pos.top - padding) + 'px', - left: Math.ceil(pos.left - padding) + 'px', - width: Math.ceil(width + padding * 2) + 'px', - height: Math.ceil(height + padding * 2) + 'px' - }; - - return pos; - }, - - step: function (now, fx) { - var ratio, innerValue, outerValue; - - if (fx.prop === 'width' || fx.prop === 'height') { - innerValue = outerValue = Math.ceil(now - (F.current.padding * 2)); - - if (fx.prop === 'height') { - ratio = (now - fx.start) / (fx.end - fx.start); - - if (fx.start > fx.end) { - ratio = 1 - ratio; - } - - innerValue -= F.innerSpace * ratio; - outerValue -= F.outerSpace * ratio; - } - - F.inner[fx.prop](innerValue); - F.outer[fx.prop](outerValue); - } - }, - - zoomIn: function () { - var wrap = F.wrap, - current = F.current, - startPos, - endPos, - dim = current.dim; - - if (current.openEffect === 'elastic') { - endPos = $.extend({}, dim, F._getPosition(true)); - - //Remove "position" property - delete endPos.position; - - startPos = this.getOrigPosition(); - - if (current.openOpacity) { - startPos.opacity = 0; - endPos.opacity = 1; - } - - F.outer.add(F.inner).width('auto').height('auto'); - - wrap.css(startPos).show(); - - wrap.animate(endPos, { - duration: current.openSpeed, - easing: current.openEasing, - step: this.step, - complete: F._afterZoomIn - }); - - } else { - wrap.css($.extend({}, dim, F._getPosition())); - - if (current.openEffect === 'fade') { - wrap.fadeIn(current.openSpeed, F._afterZoomIn); - - } else { - wrap.show(); - F._afterZoomIn(); - } - } - }, - - zoomOut: function () { - var wrap = F.wrap, - current = F.current, - endPos; - - if (current.closeEffect === 'elastic') { - if (wrap.css('position') === 'fixed') { - wrap.css(F._getPosition(true)); - } - - endPos = this.getOrigPosition(); - - if (current.closeOpacity) { - endPos.opacity = 0; - } - - wrap.animate(endPos, { - duration: current.closeSpeed, - easing: current.closeEasing, - step: this.step, - complete: F._afterZoomOut - }); - - } else { - wrap.fadeOut(current.closeEffect === 'fade' ? current.closeSpeed : 0, F._afterZoomOut); - } - }, - - changeIn: function () { - var wrap = F.wrap, - current = F.current, - startPos; - - if (current.nextEffect === 'elastic') { - startPos = F._getPosition(true); - startPos.opacity = 0; - startPos.top = (parseInt(startPos.top, 10) - 200) + 'px'; - - wrap.css(startPos).show().animate({ - opacity: 1, - top: '+=200px' - }, { - duration: current.nextSpeed, - easing: current.nextEasing, - complete: F._afterZoomIn - }); - - } else { - wrap.css(F._getPosition()); - - if (current.nextEffect === 'fade') { - wrap.hide().fadeIn(current.nextSpeed, F._afterZoomIn); - - } else { - wrap.show(); - F._afterZoomIn(); - } - } - }, - - changeOut: function () { - var wrap = F.wrap, - current = F.current, - cleanUp = function () { - $(this).trigger('onReset').remove(); - }; - - wrap.removeClass('fancybox-opened'); - - if (current.prevEffect === 'elastic') { - wrap.animate({ - 'opacity': 0, - top: '+=200px' - }, { - duration: current.prevSpeed, - easing: current.prevEasing, - complete: cleanUp - }); - - } else { - wrap.fadeOut(current.prevEffect === 'fade' ? current.prevSpeed : 0, cleanUp); - } - } - }; - - /* - * Overlay helper - */ - - F.helpers.overlay = { - overlay: null, - - update: function () { - var width, scrollWidth, offsetWidth; - - //Reset width/height so it will not mess - this.overlay.width(0).height(0); - - if ($.browser.msie) { - scrollWidth = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth); - offsetWidth = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth); - - width = scrollWidth < offsetWidth ? W.width() : scrollWidth; - - } else { - width = D.width(); - } - - this.overlay.width(width).height(D.height()); - }, - - beforeShow: function (opts) { - if (this.overlay) { - return; - } - - opts = $.extend(true, { - speedIn : 'fast', - closeClick : true, - opacity : 1, - css : { - background: 'black' - } - }, opts); - - this.overlay = $('<div id="fancybox-overlay"></div>').css(opts.css).appendTo('body'); - - this.update(); - - if (opts.closeClick) { - this.overlay.bind('click.fb', F.close); - } - - W.bind("resize.fb", $.proxy(this.update, this)); - - this.overlay.fadeTo(opts.speedIn, opts.opacity); - }, - - onUpdate: function () { - //Update as content may change document dimensions - this.update(); - }, - - afterClose: function (opts) { - if (this.overlay) { - this.overlay.fadeOut(opts.speedOut || 0, function () { - $(this).remove(); - }); - } - - this.overlay = null; - } - }; - - /* - * Title helper - */ - - F.helpers.title = { - beforeShow: function (opts) { - var title, text = F.current.title; - - if (text) { - title = $('<div class="fancybox-title fancybox-title-' + opts.type + '-wrap">' + text + '</div>').appendTo('body'); - - if (opts.type === 'float') { - //This helps for some browsers - title.width(title.width()); - - title.wrapInner('<span class="child"></span>'); - - //Increase bottom margin so this title will also fit into viewport - F.current.margin[2] += Math.abs(parseInt(title.css('margin-bottom'), 10)); - } - - title.appendTo(opts.type === 'over' ? F.inner : (opts.type === 'outside' ? F.wrap : F.outer)); - } - } - }; - - // jQuery plugin initialization - $.fn.fancybox = function (options) { - var that = $(this), - selector = this.selector || '', - index, - run = function(e) { - var what = this, idx = index, relType, relVal; - - if (!(e.ctrlKey || e.altKey || e.shiftKey || e.metaKey)) { - e.preventDefault(); - - relType = options.groupAttr || 'data-fancybox-group'; - relVal = $(what).attr(relType); - - if (!relVal) { - relType = 'rel'; - relVal = what[ relType ]; - } - - if (relVal && relVal !== '' && relVal !== 'nofollow') { - what = selector.length ? $(selector) : that; - what = what.filter('[' + relType + '="' + relVal + '"]'); - idx = what.index(this); - } - - options.index = idx; - - F.open(what, options); - } - }; - - options = options || {}; - index = options.index || 0; - - if (selector) { - D.undelegate(selector, 'click.fb-start').delegate(selector, 'click.fb-start', run); - - } else { - that.unbind('click.fb-start').bind('click.fb-start', run); - } - - return this; - }; - -}(window, document));
\ No newline at end of file diff --git a/javascript/libs/jquery/plugins/fancybox/jquery.fancybox.pack.js b/javascript/libs/jquery/plugins/fancybox/jquery.fancybox.pack.js deleted file mode 100644 index 4b73736..0000000 --- a/javascript/libs/jquery/plugins/fancybox/jquery.fancybox.pack.js +++ /dev/null @@ -1,35 +0,0 @@ -/*! fancyBox v2.0.5 fancyapps.com | fancyapps.com/fancybox/#license */ -(function(t,n,s){var d=t.jQuery,l=d(t),m=d(n),a=d.fancybox=function(){a.open.apply(this,arguments)},q=!1,r=n.createTouch!==s;d.extend(a,{version:"2.0.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoResize:!r,autoCenter:!r,fitToView:!0,aspectRatio:!1,topRatio:0.5,fixed:!(d.browser.msie&&6>=d.browser.version)&&!r,scrolling:"auto",wrapCSS:"fancybox-default",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1, -playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},keys:{next:[13,32,34,39,40],prev:[8,33,37,38],close:[27]},tpl:{wrap:'<div class="fancybox-wrap"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe class="fancybox-iframe" name="fancybox-frame{rnd}" frameborder="0" hspace="0"'+(d.browser.msie?' allowtransparency="true"':"")+"></iframe>",swf:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{href}" /><embed src="{href}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="100%" height="100%" wmode="transparent"></embed></object>', -error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<div title="Close" class="fancybox-item fancybox-close"></div>',next:'<a title="Next" class="fancybox-nav fancybox-next"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut", -nextEffect:"elastic",nextSpeed:300,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:300,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{speedIn:0,speedOut:300,opacity:0.8,css:{cursor:"pointer"},closeClick:!0},title:{type:"float"}}},group:{},opts:{},coming:null,current:null,isOpen:!1,isOpened:!1,wrap:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(b,c){a.close(!0);b&&!d.isArray(b)&&(b= -b instanceof d?d(b).get():[b]);a.isActive=!0;a.opts=d.extend(!0,{},a.defaults,c);d.isPlainObject(c)&&c.keys!==s&&(a.opts.keys=c.keys?d.extend({},a.defaults.keys,c.keys):!1);a.group=b;a._start(a.opts.index||0)},cancel:function(){a.coming&&!1===a.trigger("onCancel")||(a.coming=null,a.hideLoading(),a.ajaxLoad&&a.ajaxLoad.abort(),a.ajaxLoad=null,a.imgPreload&&(a.imgPreload.onload=a.imgPreload.onabort=a.imgPreload.onerror=null))},close:function(b){a.cancel();a.current&&!1!==a.trigger("beforeClose")&&(a.unbindEvents(), -!a.isOpen||b&&!0===b[0]?(d(".fancybox-wrap").stop().trigger("onReset").remove(),a._afterZoomOut()):(a.isOpen=a.isOpened=!1,d(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.closeMethod]()))},play:function(b){var c=function(){clearTimeout(a.player.timer)},f=function(){c();a.current&&a.player.isActive&&(a.player.timer=setTimeout(a.next,a.current.playSpeed))},e=function(){c();d("body").unbind(".player"); -a.player.isActive=!1;a.trigger("onPlayEnd")};if(a.player.isActive||b&&!1===b[0])e();else if(a.current&&(a.current.loop||a.current.index<a.group.length-1))a.player.isActive=!0,d("body").bind({"afterShow.player onUpdate.player":f,"onCancel.player beforeClose.player":e,"beforeLoad.player":c}),f(),a.trigger("onPlayStart")},next:function(){a.current&&a.jumpto(a.current.index+1)},prev:function(){a.current&&a.jumpto(a.current.index-1)},jumpto:function(b){a.current&&(b=parseInt(b,10),1<a.group.length&&a.current.loop&& -(b>=a.group.length?b=0:0>b&&(b=a.group.length-1)),a.group[b]!==s&&(a.cancel(),a._start(b)))},reposition:function(b,c){a.isOpen&&(c&&"scroll"===c.type?a.wrap.stop().animate(a._getPosition(b),200):a.wrap.css(a._getPosition(b)))},update:function(b){a.isOpen&&(q||setTimeout(function(){var c=a.current;if(q&&(q=!1,c)){if(!b||b&&("orientationchange"===b.type||c.autoResize&&"resize"===b.type))c.autoSize&&(a.inner.height("auto"),c.height=a.inner.height()),a._setDimension(),c.canGrow&&a.inner.height("auto"); -c.autoCenter&&a.reposition(null,b);a.trigger("onUpdate")}},100),q=!0)},toggle:function(){a.isOpen&&(a.current.fitToView=!a.current.fitToView,a.update())},hideLoading:function(){m.unbind("keypress.fb");d("#fancybox-loading").remove()},showLoading:function(){a.hideLoading();m.bind("keypress.fb",function(b){27==b.keyCode&&(b.preventDefault(),a.cancel())});d('<div id="fancybox-loading"><div></div></div>').click(a.cancel).appendTo("body")},getViewport:function(){return{x:l.scrollLeft(),y:l.scrollTop(), -w:l.width(),h:l.height()}},unbindEvents:function(){a.wrap&&a.wrap.unbind(".fb");m.unbind(".fb");l.unbind(".fb")},bindEvents:function(){var b=a.current,c=b.keys;b&&(l.bind("resize.fb, orientationchange.fb",a.update),!b.fixed&&b.autoCenter&&l.bind("scroll.fb",a.update),c&&m.bind("keydown.fb",function(b){var e;!b.ctrlKey&&!b.altKey&&!b.shiftKey&&!b.metaKey&&0>d.inArray(b.target.tagName.toLowerCase(),["input","textarea","select","button"])&&(e=b.keyCode,-1<d.inArray(e,c.close)?(a.close(),b.preventDefault()): --1<d.inArray(e,c.next)?(a.next(),b.preventDefault()):-1<d.inArray(e,c.prev)&&(a.prev(),b.preventDefault()))}),d.fn.mousewheel&&b.mouseWheel&&1<a.group.length&&a.wrap.bind("mousewheel.fb",function(b,c){var d=b.target||null;if(0!==c&&(!d||0===d.clientHeight||d.scrollHeight===d.clientHeight&&d.scrollWidth===d.clientWidth))b.preventDefault(),a[0<c?"prev":"next"]()}))},trigger:function(b){var c,f=a[-1<d.inArray(b,["onCancel","beforeLoad","afterLoad"])?"coming":"current"];if(f){d.isFunction(f[b])&&(c=f[b].apply(f, -Array.prototype.slice.call(arguments,1)));if(!1===c)return!1;f.helpers&&d.each(f.helpers,function(c,g){if(g&&d.isPlainObject(a.helpers[c])&&d.isFunction(a.helpers[c][b]))a.helpers[c][b](g,f)});d.event.trigger(b+".fb")}},isImage:function(a){return a&&a.toString().match(/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i)},isSWF:function(a){return a&&a.toString().match(/\.(swf)(.*)?$/i)},_start:function(b){var c={},f=a.group[b]||null,e,g,k;if(f&&(f.nodeType||f instanceof d))e=!0,d.metadata&&(c=d(f).metadata());c=d.extend(!0, -{},a.opts,{index:b,element:f},d.isPlainObject(f)?f:c);d.each(["href","title","content","type"],function(b,g){c[g]=a.opts[g]||e&&d(f).attr(g)||c[g]||null});"number"===typeof c.margin&&(c.margin=[c.margin,c.margin,c.margin,c.margin]);c.modal&&d.extend(!0,c,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{css:{cursor:"auto"},closeClick:!1}}});a.coming=c;if(!1===a.trigger("beforeLoad"))a.coming=null;else{b=c.type;g=c.href||f;b||(e&&(k=d(f).data("fancybox-type"), -!k&&f.className&&(b=(k=f.className.match(/fancybox\.(\w+)/))?k[1]:null)),!b&&"string"===d.type(g)&&(a.isImage(g)?b="image":a.isSWF(g)?b="swf":g.match(/^#/)&&(b="inline")),b||(b=e?"inline":"html"),c.type=b);if("inline"===b||"html"===b){if(c.content||(c.content="inline"===b?d("string"===d.type(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):f),!c.content||!c.content.length)b=null}else g||(b=null);g=g.split(/\s+/,2);c.group=a.group;c.isDom=e;c.href=g.shift();c.selector=g.shift();"image"===b?a._loadImage():"ajax"=== -b?a._loadAjax():b?a._afterLoad():a._error("type")}},_error:function(b){a.hideLoading();d.extend(a.coming,{type:"html",autoSize:!0,minHeight:0,hasError:b,content:a.coming.tpl.error});a._afterLoad()},_loadImage:function(){a.imgPreload=new Image;a.imgPreload.onload=function(){this.onload=this.onerror=null;a.coming.width=this.width;a.coming.height=this.height;a._afterLoad()};a.imgPreload.onerror=function(){this.onload=this.onerror=null;a._error("image")};a.imgPreload.src=a.coming.href;a.imgPreload.width|| -a.showLoading()},_loadAjax:function(){a.showLoading();a.ajaxLoad=d.ajax(d.extend({},a.coming.ajax,{url:a.coming.href,error:function(b,c){a.coming&&"abort"!==c?a._error("ajax",b):a.hideLoading()},success:function(b,c){"success"===c&&(a.coming.content=b,a._afterLoad())}}))},_preloadImages:function(){var b=a.group,c=a.current,f=b.length,e,g,k,h=Math.min(c.preload,f-1);if(c.preload&&!(2>b.length))for(k=1;k<=h;k+=1)if(e=b[(c.index+k)%f],g=d(e).attr("href")||e,"image"===e.type||a.isImage(g))(new Image).src= -g},_afterLoad:function(){a.hideLoading();!a.coming||!1===a.trigger("afterLoad",a.current)?a.coming=!1:(a.isOpened?(d(".fancybox-item").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.prevMethod]()):(d(".fancybox-wrap").stop().trigger("onReset").remove(),a.trigger("afterClose")),a.unbindEvents(),a.isOpen=!1,a.current=a.coming,a.wrap=d(a.current.tpl.wrap).addClass("fancybox-"+(r?"mobile":"desktop")+" fancybox-tmp "+a.current.wrapCSS).appendTo("body"), -a.outer=d(".fancybox-outer",a.wrap).css("padding",a.current.padding+"px"),a.inner=d(".fancybox-inner",a.wrap),a._setContent())},_setContent:function(){var b=a.current,c=b.content,f=b.type,e;switch(f){case "inline":case "ajax":case "html":b.selector?c=d("<div>").html(c).find(b.selector):c instanceof d&&(c=c.show().detach(),c.parent().hasClass("fancybox-inner")&&c.parents(".fancybox-wrap").trigger("onReset").remove(),d(a.wrap).bind("onReset",function(){c.appendTo("body").hide()}));b.autoSize&&(e=d('<div class="fancybox-tmp '+ -a.current.wrapCSS+'"></div>').appendTo("body").append(c),b.width=e.width(),b.height=e.height(),e.width(a.current.width),e.height()>b.height&&(e.width(b.width+1),b.width=e.width(),b.height=e.height()),c=e.contents().detach(),e.remove());break;case "image":c=b.tpl.image.replace("{href}",b.href);b.aspectRatio=!0;break;case "swf":c=b.tpl.swf.replace(/\{width\}/g,b.width).replace(/\{height\}/g,b.height).replace(/\{href\}/g,b.href)}if("iframe"===f){c=d(b.tpl.iframe.replace("{rnd}",(new Date).getTime())).attr("scrolling", -b.scrolling);b.scrolling="auto";if(b.autoSize){c.width(b.width);a.showLoading();c.data("ready",!1).appendTo(a.inner).bind({onCancel:function(){d(this).unbind();a._afterZoomOut()},load:function(){var c=d(this),f;try{this.contentWindow.document.location&&(f=c.contents().find("body").height()+12,c.height(f))}catch(e){b.autoSize=!1}!1===c.data("ready")?(a.hideLoading(),f&&(a.current.height=f),a._beforeShow(),c.data("ready",!0)):f&&a.update()}}).attr("src",b.href);return}c.attr("src",b.href)}else if("image"=== -f||"swf"===f)b.autoSize=!1,b.scrolling="visible";a.inner.append(c);a._beforeShow()},_beforeShow:function(){a.coming=null;a.trigger("beforeShow");a._setDimension();a.wrap.hide().removeClass("fancybox-tmp");a.bindEvents();a._preloadImages();a.transitions[a.isOpened?a.current.nextMethod:a.current.openMethod]()},_setDimension:function(){var b=a.wrap,c=a.outer,f=a.inner,e=a.current,g=a.getViewport(),k=e.margin,h=2*e.padding,i=e.width,j=e.height,l=e.maxWidth,o=e.maxHeight,m=e.minWidth,n=e.minHeight,p;g.w-= -k[1]+k[3];g.h-=k[0]+k[2];-1<i.toString().indexOf("%")&&(i=(g.w-h)*parseFloat(i)/100);-1<j.toString().indexOf("%")&&(j=(g.h-h)*parseFloat(j)/100);k=i/j;i+=h;j+=h;e.fitToView&&(l=Math.min(g.w,l),o=Math.min(g.h,o));e.aspectRatio?(i>l&&(i=l,j=(i-h)/k+h),j>o&&(j=o,i=(j-h)*k+h),i<m&&(i=m,j=(i-h)/k+h),j<n&&(j=n,i=(j-h)*k+h)):(i=Math.max(m,Math.min(i,l)),j=Math.max(n,Math.min(j,o)));i=Math.round(i);j=Math.round(j);d(b.add(c).add(f)).width("auto").height("auto");f.width(i-h).height(j-h);b.width(i);p=b.height(); -if(i>l||p>o)for(;(i>l||p>o)&&i>m&&p>n;)j-=10,e.aspectRatio?(i=Math.round((j-h)*k+h),i<m&&(i=m,j=(i-h)/k+h)):i-=10,f.width(i-h).height(j-h),b.width(i),p=b.height();e.dim={width:i,height:p};e.canGrow=e.autoSize&&j>n&&j<o;e.canShrink=!1;e.canExpand=!1;if(i-h<e.width||j-h<e.height)e.canExpand=!0;else if((i>g.w||p>g.h)&&i>m&&j>n)e.canShrink=!0;b=p-h;a.innerSpace=b-f.height();a.outerSpace=b-c.height()},_getPosition:function(b){var c=a.current,f=a.getViewport(),d=c.margin,g=a.wrap.width()+d[1]+d[3],k=a.wrap.height()+ -d[0]+d[2],h={position:"absolute",top:d[0]+f.y,left:d[3]+f.x};if(c.autoCenter&&c.fixed&&(!b||!1===b[0])&&k<=f.h&&g<=f.w)h={position:"fixed",top:d[0],left:d[3]};h.top=Math.ceil(Math.max(h.top,h.top+(f.h-k)*c.topRatio))+"px";h.left=Math.ceil(Math.max(h.left,h.left+0.5*(f.w-g)))+"px";return h},_afterZoomIn:function(){var b=a.current,c=b?b.scrolling:"no";b&&(a.isOpen=a.isOpened=!0,a.wrap.addClass("fancybox-opened").css("overflow","visible"),a.update(),a.inner.css("overflow","yes"===c?"scroll":"no"===c? -"hidden":c),(b.closeClick||b.nextClick)&&a.inner.css("cursor","pointer").bind("click.fb",function(c){if(!d(c.target).is("a")&&!d(c.target).parent().is("a"))a[b.closeClick?"close":"next"]()}),b.closeBtn&&d(b.tpl.closeBtn).appendTo(a.outer).bind("click.fb",a.close),b.arrows&&1<a.group.length&&((b.loop||0<b.index)&&d(b.tpl.prev).appendTo(a.inner).bind("click.fb",a.prev),(b.loop||b.index<a.group.length-1)&&d(b.tpl.next).appendTo(a.inner).bind("click.fb",a.next)),a.trigger("afterShow"),a.opts.autoPlay&& -!a.player.isActive&&(a.opts.autoPlay=!1,a.play()))},_afterZoomOut:function(){a.trigger("afterClose");a.wrap.trigger("onReset").remove();d.extend(a,{group:{},opts:{},current:null,isActive:!1,isOpened:!1,isOpen:!1,wrap:null,outer:null,inner:null})}});a.transitions={getOrigPosition:function(){var b=a.current,c=b.element,f=b.padding,e=d(b.orig),g={},k=50,h=50;!e.length&&b.isDom&&d(c).is(":visible")&&(e=d(c).find("img:first"),e.length||(e=d(c)));e.length?(g=e.offset(),e.is("img")&&(k=e.outerWidth(),h= -e.outerHeight())):(b=a.getViewport(),g.top=b.y+0.5*(b.h-h),g.left=b.x+0.5*(b.w-k));return g={top:Math.ceil(g.top-f)+"px",left:Math.ceil(g.left-f)+"px",width:Math.ceil(k+2*f)+"px",height:Math.ceil(h+2*f)+"px"}},step:function(b,c){var d,e,g;if("width"===c.prop||"height"===c.prop)e=g=Math.ceil(b-2*a.current.padding),"height"===c.prop&&(d=(b-c.start)/(c.end-c.start),c.start>c.end&&(d=1-d),e-=a.innerSpace*d,g-=a.outerSpace*d),a.inner[c.prop](e),a.outer[c.prop](g)},zoomIn:function(){var b=a.wrap,c=a.current, -f,e;f=c.dim;"elastic"===c.openEffect?(e=d.extend({},f,a._getPosition(!0)),delete e.position,f=this.getOrigPosition(),c.openOpacity&&(f.opacity=0,e.opacity=1),a.outer.add(a.inner).width("auto").height("auto"),b.css(f).show(),b.animate(e,{duration:c.openSpeed,easing:c.openEasing,step:this.step,complete:a._afterZoomIn})):(b.css(d.extend({},f,a._getPosition())),"fade"===c.openEffect?b.fadeIn(c.openSpeed,a._afterZoomIn):(b.show(),a._afterZoomIn()))},zoomOut:function(){var b=a.wrap,c=a.current,d;"elastic"=== -c.closeEffect?("fixed"===b.css("position")&&b.css(a._getPosition(!0)),d=this.getOrigPosition(),c.closeOpacity&&(d.opacity=0),b.animate(d,{duration:c.closeSpeed,easing:c.closeEasing,step:this.step,complete:a._afterZoomOut})):b.fadeOut("fade"===c.closeEffect?c.closeSpeed:0,a._afterZoomOut)},changeIn:function(){var b=a.wrap,c=a.current,d;"elastic"===c.nextEffect?(d=a._getPosition(!0),d.opacity=0,d.top=parseInt(d.top,10)-200+"px",b.css(d).show().animate({opacity:1,top:"+=200px"},{duration:c.nextSpeed, -easing:c.nextEasing,complete:a._afterZoomIn})):(b.css(a._getPosition()),"fade"===c.nextEffect?b.hide().fadeIn(c.nextSpeed,a._afterZoomIn):(b.show(),a._afterZoomIn()))},changeOut:function(){var b=a.wrap,c=a.current,f=function(){d(this).trigger("onReset").remove()};b.removeClass("fancybox-opened");"elastic"===c.prevEffect?b.animate({opacity:0,top:"+=200px"},{duration:c.prevSpeed,easing:c.prevEasing,complete:f}):b.fadeOut("fade"===c.prevEffect?c.prevSpeed:0,f)}};a.helpers.overlay={overlay:null,update:function(){var a, -c;this.overlay.width(0).height(0);d.browser.msie?(a=Math.max(n.documentElement.scrollWidth,n.body.scrollWidth),c=Math.max(n.documentElement.offsetWidth,n.body.offsetWidth),a=a<c?l.width():a):a=m.width();this.overlay.width(a).height(m.height())},beforeShow:function(b){this.overlay||(b=d.extend(!0,{speedIn:"fast",closeClick:!0,opacity:1,css:{background:"black"}},b),this.overlay=d('<div id="fancybox-overlay"></div>').css(b.css).appendTo("body"),this.update(),b.closeClick&&this.overlay.bind("click.fb", -a.close),l.bind("resize.fb",d.proxy(this.update,this)),this.overlay.fadeTo(b.speedIn,b.opacity))},onUpdate:function(){this.update()},afterClose:function(a){this.overlay&&this.overlay.fadeOut(a.speedOut||0,function(){d(this).remove()});this.overlay=null}};a.helpers.title={beforeShow:function(b){var c;if(c=a.current.title)c=d('<div class="fancybox-title fancybox-title-'+b.type+'-wrap">'+c+"</div>").appendTo("body"),"float"===b.type&&(c.width(c.width()),c.wrapInner('<span class="child"></span>'),a.current.margin[2]+= -Math.abs(parseInt(c.css("margin-bottom"),10))),c.appendTo("over"===b.type?a.inner:"outside"===b.type?a.wrap:a.outer)}};d.fn.fancybox=function(b){var c=d(this),f=this.selector||"",e,g=function(g){var h=this,i=e,j;!g.ctrlKey&&!g.altKey&&!g.shiftKey&&!g.metaKey&&(g.preventDefault(),g=b.groupAttr||"data-fancybox-group",j=d(h).attr(g),j||(g="rel",j=h[g]),j&&""!==j&&"nofollow"!==j&&(h=f.length?d(f):c,h=h.filter("["+g+'="'+j+'"]'),i=h.index(this)),b.index=i,a.open(h,b))},b=b||{};e=b.index||0;f?m.undelegate(f, -"click.fb-start").delegate(f,"click.fb-start",g):c.unbind("click.fb-start").bind("click.fb-start",g);return this}})(window,document);
\ No newline at end of file diff --git a/javascript/libs/jquery/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js b/javascript/libs/jquery/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js deleted file mode 100644 index cb66588..0000000 --- a/javascript/libs/jquery/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js +++ /dev/null @@ -1,14 +0,0 @@ -/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) -* Licensed under the MIT License (LICENSE.txt). -* -* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. -* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. -* Thanks to: Seamus Leahy for adding deltaX and deltaY -* -* Version: 3.0.4 -* -* Requires: 1.2.2+ -*/ - -(function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a= -f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
\ No newline at end of file |
