', {'class': 'progress-bar progress-bar-striped active', 'role': 'progressbar', 'style': 'width:0%'})
27 | ),
28 | $('
').text(data.files[0].name),
29 | $('')
30 | );
31 |
32 | data.context = attachmentBlock.appendTo($(this).parents('.entry-form').find('.upload-statuses'));
33 | attachmentBlock.find('span').click(function() {
34 | if (attachmentBlock.hasClass('working')) {
35 | jqXHR.abort();
36 | }
37 | attachmentBlock.fadeOut(function() {
38 | attachmentBlock.remove();
39 | });
40 | });
41 |
42 | var jqXHR = data.submit().success(function(result, textStatus, jqXHR) {
43 | result = JSON.parse(result);
44 | if (result.status != 'success') {
45 | data.context.addClass('error');
46 | } else {
47 | if (result.preview_url) {
48 | var preview = $('
', {'src': result.preview_url+'?t='+(new Date()).getTime()});
49 | $('
').load(function() {
50 | attachmentBlock.empty().append($('', {'type': 'hidden', 'name': 'attachments[]', 'value': result.filename})).css({'visibility': 'hidden'});
51 | var mediaPreviewsBlock = attachmentBlock.parents('.entry-form').find('.media-prev');
52 | attachmentBlock.append(preview, $('', {'class': 'remove'}));
53 | attachmentBlock.appendTo(mediaPreviewsBlock);
54 |
55 | var form = mediaPreviewsBlock.parents('.entry-form').addClass('media-added');
56 | collage(
57 | mediaPreviewsBlock,
58 | form.find('input[name=first_row_height_percent]').val(),
59 | form.find('input[name=secondary_rows_height_percent]').val(),
60 | form.find('input[name=visible_row_count]').val()
61 | );
62 | }).attr('src', preview.attr('src'));
63 | } else {
64 | attachmentBlock.empty().append(
65 | $('', {'type': 'hidden', 'name': 'attachments[]', 'value': result.filename}),
66 | $('').text(result.filename),
67 | $('', {'class': 'remove'})
68 | );
69 | attachmentBlock.appendTo(attachmentBlock.parents('.entry-form').find('.without-prev'));
70 | }
71 | }
72 | });
73 | },
74 | done: function(e, data) {
75 | data.context.removeClass('working');
76 | },
77 | progress: function(e, data){
78 | var progress = parseInt(data.loaded / data.total * 100, 10);
79 | data.context.find('.progress-bar').css('width', progress + '%');
80 | },
81 | fail: function (e, data) {
82 | data.context.addClass('error');
83 | }
84 | });
85 | });
86 |
87 | elem.find('.fancybox').fancybox({
88 | afterLoad: function() {
89 | this.title += 'Картинка ' + (this.index + 1) + ' из ' + this.group.length + '
' + 'Открыть оригинал';
90 | }
91 | });
92 |
93 | elem.find('.player').each(function() {
94 | $(this).flowplayer({
95 | tooltip: false,
96 | splash: true,
97 | embed: false,
98 | live: false,
99 | hlsjs: true,
100 | overlay: {
101 | vendor: "fancybox",
102 | trigger: '#' + $(this).attr('data-trigger')
103 | },
104 | clip: {
105 | sources: [{
106 | type: "application/x-mpegurl",
107 | src: $(this).attr('data-url')
108 | }]
109 | }
110 | });
111 | });
112 |
113 | elem.find('.attachments .media-prev').each(function() {
114 | collage(
115 | $(this),
116 | $(this).attr('data-first-row-height-percent'),
117 | $(this).attr('data-secondary-rows-height-percent'),
118 | $(this).attr('data-visible-row-count')
119 | );
120 | });
121 |
122 | elem.find('.media-prev').each(function() {
123 | if ($(this).find('*').length)
124 | $(this).parents('form').addClass('media-added');
125 | });
126 |
127 | elem.find('.media-prev, .without-prev, .upload-statuses').removeWhitespace();
128 |
129 | autosize(elem.find('.entry-form textarea'));
130 | };
131 |
132 | function collage(elem, firstRowHeightPercent, secondaryRowsHeightPercent, visibleRowCount) {
133 | var container = $(elem);
134 | var imgs = $(elem).find('img');
135 | var imgCount = imgs.length;
136 | var counter = 0;
137 |
138 | imgs.each(function(i) {
139 | var img = $(this);
140 | $('
').load(function() {
141 | if(++counter === imgCount) {
142 | container.collagePlusPlus({
143 | 'firstRowTargetHeight': firstRowHeightPercent * container.width() / 100,
144 | 'secondaryRowsTargetHeight': secondaryRowsHeightPercent * container.width() / 100,
145 | 'visibleRowCount': visibleRowCount,
146 | 'allowPartialLastRow' : true
147 | });
148 | }
149 | }).attr('src', img.attr('src'));
150 | });
151 | }
152 |
153 | bindPlugins($('.entry-list'));
154 |
155 | var resizeTimer = null;
156 | $(window).bind('resize', function() {
157 | if (resizeTimer) clearTimeout(resizeTimer);
158 | resizeTimer = setTimeout(function() {
159 | $('.media-prev:visible').each(function() {
160 | var firstRowHeightPercent = $(this).attr('data-first-row-height-percent');
161 | var secondaryRowsHeightPercent = $(this).attr('data-secondary-rows-height-percent');
162 | var visibleRowCount = $(this).siblings('.show-all-attachments').is(':not(.shown)') ? $(this).attr('data-visible-row-count') : false;
163 |
164 | if ($(this).parents('.entry-form').length) {
165 | var form = $(this).parents('.entry-form');
166 | firstRowHeightPercent = form.find('input[name=first_row_height_percent]').val();
167 | secondaryRowsHeightPercent = form.find('input[name=secondary_rows_height_percent]').val();
168 | visibleRowCount = form.find('input[name=visible_row_count]').val();
169 | }
170 | collage($(this), firstRowHeightPercent, secondaryRowsHeightPercent, visibleRowCount);
171 | });
172 | }, 50);
173 | });
174 |
175 | $(document).on('click', '.entry-form .add-attachment', function(e) {
176 | e.preventDefault();
177 | $(this).parents('.entry-form').find('input[type=file]').click();
178 | });
179 |
180 | $(document).on('click', '.entry-form .upload-statuses .remove, .entry-form .without-prev .remove', function(e) {
181 | e.preventDefault();
182 | $(this).parent().remove();
183 | });
184 |
185 | $(document).on('click', '.entry-form .media-prev .remove', function(e) {
186 | e.preventDefault();
187 | var form = $(this).parents('.entry-form');
188 | $(this).parent().remove();
189 | collage(
190 | form.find('.media-prev'),
191 | form.find('input[name=first_row_height_percent]').val(),
192 | form.find('input[name=secondary_rows_height_percent]').val(),
193 | form.find('input[name=visible_row_count]').val()
194 | );
195 | if (!form.find('.media-prev *').length)
196 | form.removeClass('media-added');
197 | });
198 |
199 | $(document).on('click', '.entry .actions .edit', function(e) {
200 | e.preventDefault();
201 | $('.entry').removeClass('editing');
202 | $(this).parents('.entry').addClass('editing');
203 | var form =$(this).parents('.entry').find('.entry-form');
204 | collage(
205 | form.find('.media-prev'),
206 | form.find('input[name=first_row_height_percent]').val(),
207 | form.find('input[name=secondary_rows_height_percent]').val(),
208 | form.find('input[name=visible_row_count]').val()
209 | );
210 | autosize.update(form.find('textarea'));
211 | });
212 |
213 | $(document).on('click', '.entry .cancel', function(e) {
214 | e.preventDefault();
215 | var entryEl = $(this).parents('.entry').removeClass('editing');
216 | var mediaPrevEl = entryEl.find('.attachments .media-prev');
217 | collage(
218 | mediaPrevEl,
219 | mediaPrevEl.attr('data-first-row-height-percent'),
220 | mediaPrevEl.attr('data-secondary-rows-height-percent'),
221 | mediaPrevEl.siblings('.show-all-attachments').is(':not(.shown)') ? mediaPrevEl.attr('data-visible-row-count') : false
222 | );
223 | });
224 |
225 | $(document).on('click', '.entry .actions .remove', function(e) {
226 | e.preventDefault();
227 |
228 | var entryEl = $(this).parents('.entry');
229 | var entryId = entryEl.find('input[name=entry_id]').val();
230 | entryEl.remove();
231 | $.post(location.href, {action: 'delete_entry', entry_id: entryId}, function() {
232 | $.get(base_url + 'sync-entries');
233 | });
234 | });
235 |
236 | $(document).on('submit', '.entry-form', function(e) {
237 | e.preventDefault();
238 | if (!$(this).find('textarea').val() && !$(this).find('.media-prev div').length && !$(this).find('.without-prev div').length || $(this).find('.upload-statuses div').length) {
239 | return false;
240 | }
241 |
242 | var form = $(this);
243 | var entryId = form.find('input[name=entry_id]').val();
244 | var postData = $(this).serializeArray();
245 | form.parent().addClass('loading');
246 | postData.push({name: 'action', value: 'edit_entry'});
247 | $.post(location.href, postData, function(html) {
248 | form.parent().removeClass('loading');
249 | if (!html) return;
250 | if (entryId) {
251 | $('.entry[data-entry-id='+entryId+']').replaceWith($(html).find('.entry[data-entry-id='+entryId+']'));
252 | bindPlugins($('.entry[data-entry-id='+entryId+']'));
253 | } else {
254 | $('.entry-list').replaceWith($(html).find('.entry-list'));
255 | bindPlugins($('.entry-list'));
256 | }
257 |
258 | $.get(base_url + 'sync-entries');
259 | });
260 | });
261 |
262 | var searchTimeout;
263 | $(document).on('input propertychange', '#search input', function() {
264 | var searchCriteria = $(this).val();
265 | clearTimeout(searchTimeout);
266 | searchTimeout = setTimeout(function() {
267 | $.get(location.pathname, {search: searchCriteria}, (function(requestSearchTimeout) {
268 | return function(html) {
269 | if (requestSearchTimeout != searchTimeout) return;
270 |
271 | $('.entry-list').replaceWith($(html).find('.entry-list'));
272 | bindPlugins($('.entry-list'));
273 | }
274 | })(searchTimeout));
275 | }, 350);
276 | });
277 |
278 | $('body').infinitescroll({
279 | loading: {
280 | finishedMsg: "",
281 | msg: $('', {'class': 'page-loading'}),
282 | msgText: "",
283 | selector: ".entry-list",
284 | finished: null
285 | },
286 | nextSelector: ".load-more a",
287 | navSelector: ".load-more",
288 | itemSelector : ".entry",
289 | appendCallback: false,
290 | errorCallback: function () {
291 | $("span.page-loading").remove();
292 | }
293 | }, function(newEntries, opts) {
294 | if (newEntries.length) {
295 | $(newEntries).insertBefore($('.load-more'));
296 | bindPlugins($(newEntries));
297 | }
298 | });
299 |
300 | $(document).on('click', '.hash-tag', function(e) {
301 | e.preventDefault();
302 | $('#search input').val($(this).text()).trigger('input');
303 | });
304 |
305 | $(document).on('click', '.show-all-attachments a', function(e) {
306 | e.preventDefault();
307 | $(this).parent().toggleClass('shown');
308 | var entryEl = $(this).parents('.entry');
309 | var mediaPrevEl = entryEl.find('.attachments .media-prev');
310 | collage(
311 | mediaPrevEl,
312 | mediaPrevEl.attr('data-first-row-height-percent'),
313 | mediaPrevEl.attr('data-secondary-rows-height-percent'),
314 | $(this).is('.show-all') ? false : mediaPrevEl.attr('data-visible-row-count')
315 | );
316 | });
317 |
318 | $(document).on('focus', '.add-entry textarea', function() {
319 | $(this).parents('.add-entry').addClass('full');
320 | });
321 |
322 | $(document).on('click', '.add-entry', function(e) {
323 | e.stopPropagation();
324 | });
325 |
326 | $(document).on('click', function() {
327 | if (!$('.add-entry textarea').val() && !$('.add-entry .media-prev div, .add-entry .upload-statuses div, .add-entry .without-prev div').length) {
328 | $('.add-entry').removeClass('full');
329 | }
330 | });
331 |
332 | var resizeTimeout;
333 | $(document).on('input', '.range-control', function(e) {
334 | e.preventDefault();
335 | var form = $(this).parents('.entry-form');
336 | clearTimeout(resizeTimeout);
337 |
338 | resizeTimeout = setTimeout(function() {
339 | collage(
340 | form.find('.media-prev'),
341 | form.find('input[name=first_row_height_percent]').val(),
342 | form.find('input[name=secondary_rows_height_percent]').val(),
343 | form.find('input[name=visible_row_count]').val()
344 | );
345 | }, 10);
346 | });
347 | });
--------------------------------------------------------------------------------
/public/assets/lib/jquery-fileupload/jquery.ui.widget.js:
--------------------------------------------------------------------------------
1 | /*
2 | * jQuery UI Widget 1.10.1+amd
3 | * https://github.com/blueimp/jQuery-File-Upload
4 | *
5 | * Copyright 2013 jQuery Foundation and other contributors
6 | * Released under the MIT license.
7 | * http://jquery.org/license
8 | *
9 | * http://api.jqueryui.com/jQuery.widget/
10 | */
11 |
12 | (function (factory) {
13 | if (typeof define === "function" && define.amd) {
14 | // Register as an anonymous AMD module:
15 | define(["jquery"], factory);
16 | } else {
17 | // Browser globals:
18 | factory(jQuery);
19 | }
20 | }(function( $, undefined ) {
21 |
22 | var uuid = 0,
23 | slice = Array.prototype.slice,
24 | _cleanData = $.cleanData;
25 | $.cleanData = function( elems ) {
26 | for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
27 | try {
28 | $( elem ).triggerHandler( "remove" );
29 | // http://bugs.jquery.com/ticket/8235
30 | } catch( e ) {}
31 | }
32 | _cleanData( elems );
33 | };
34 |
35 | $.widget = function( name, base, prototype ) {
36 | var fullName, existingConstructor, constructor, basePrototype,
37 | // proxiedPrototype allows the provided prototype to remain unmodified
38 | // so that it can be used as a mixin for multiple widgets (#8876)
39 | proxiedPrototype = {},
40 | namespace = name.split( "." )[ 0 ];
41 |
42 | name = name.split( "." )[ 1 ];
43 | fullName = namespace + "-" + name;
44 |
45 | if ( !prototype ) {
46 | prototype = base;
47 | base = $.Widget;
48 | }
49 |
50 | // create selector for plugin
51 | $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
52 | return !!$.data( elem, fullName );
53 | };
54 |
55 | $[ namespace ] = $[ namespace ] || {};
56 | existingConstructor = $[ namespace ][ name ];
57 | constructor = $[ namespace ][ name ] = function( options, element ) {
58 | // allow instantiation without "new" keyword
59 | if ( !this._createWidget ) {
60 | return new constructor( options, element );
61 | }
62 |
63 | // allow instantiation without initializing for simple inheritance
64 | // must use "new" keyword (the code above always passes args)
65 | if ( arguments.length ) {
66 | this._createWidget( options, element );
67 | }
68 | };
69 | // extend with the existing constructor to carry over any static properties
70 | $.extend( constructor, existingConstructor, {
71 | version: prototype.version,
72 | // copy the object used to create the prototype in case we need to
73 | // redefine the widget later
74 | _proto: $.extend( {}, prototype ),
75 | // track widgets that inherit from this widget in case this widget is
76 | // redefined after a widget inherits from it
77 | _childConstructors: []
78 | });
79 |
80 | basePrototype = new base();
81 | // we need to make the options hash a property directly on the new instance
82 | // otherwise we'll modify the options hash on the prototype that we're
83 | // inheriting from
84 | basePrototype.options = $.widget.extend( {}, basePrototype.options );
85 | $.each( prototype, function( prop, value ) {
86 | if ( !$.isFunction( value ) ) {
87 | proxiedPrototype[ prop ] = value;
88 | return;
89 | }
90 | proxiedPrototype[ prop ] = (function() {
91 | var _super = function() {
92 | return base.prototype[ prop ].apply( this, arguments );
93 | },
94 | _superApply = function( args ) {
95 | return base.prototype[ prop ].apply( this, args );
96 | };
97 | return function() {
98 | var __super = this._super,
99 | __superApply = this._superApply,
100 | returnValue;
101 |
102 | this._super = _super;
103 | this._superApply = _superApply;
104 |
105 | returnValue = value.apply( this, arguments );
106 |
107 | this._super = __super;
108 | this._superApply = __superApply;
109 |
110 | return returnValue;
111 | };
112 | })();
113 | });
114 | constructor.prototype = $.widget.extend( basePrototype, {
115 | // TODO: remove support for widgetEventPrefix
116 | // always use the name + a colon as the prefix, e.g., draggable:start
117 | // don't prefix for widgets that aren't DOM-based
118 | widgetEventPrefix: existingConstructor ? basePrototype.widgetEventPrefix : name
119 | }, proxiedPrototype, {
120 | constructor: constructor,
121 | namespace: namespace,
122 | widgetName: name,
123 | widgetFullName: fullName
124 | });
125 |
126 | // If this widget is being redefined then we need to find all widgets that
127 | // are inheriting from it and redefine all of them so that they inherit from
128 | // the new version of this widget. We're essentially trying to replace one
129 | // level in the prototype chain.
130 | if ( existingConstructor ) {
131 | $.each( existingConstructor._childConstructors, function( i, child ) {
132 | var childPrototype = child.prototype;
133 |
134 | // redefine the child widget using the same prototype that was
135 | // originally used, but inherit from the new version of the base
136 | $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
137 | });
138 | // remove the list of existing child constructors from the old constructor
139 | // so the old child constructors can be garbage collected
140 | delete existingConstructor._childConstructors;
141 | } else {
142 | base._childConstructors.push( constructor );
143 | }
144 |
145 | $.widget.bridge( name, constructor );
146 | };
147 |
148 | $.widget.extend = function( target ) {
149 | var input = slice.call( arguments, 1 ),
150 | inputIndex = 0,
151 | inputLength = input.length,
152 | key,
153 | value;
154 | for ( ; inputIndex < inputLength; inputIndex++ ) {
155 | for ( key in input[ inputIndex ] ) {
156 | value = input[ inputIndex ][ key ];
157 | if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
158 | // Clone objects
159 | if ( $.isPlainObject( value ) ) {
160 | target[ key ] = $.isPlainObject( target[ key ] ) ?
161 | $.widget.extend( {}, target[ key ], value ) :
162 | // Don't extend strings, arrays, etc. with objects
163 | $.widget.extend( {}, value );
164 | // Copy everything else by reference
165 | } else {
166 | target[ key ] = value;
167 | }
168 | }
169 | }
170 | }
171 | return target;
172 | };
173 |
174 | $.widget.bridge = function( name, object ) {
175 | var fullName = object.prototype.widgetFullName || name;
176 | $.fn[ name ] = function( options ) {
177 | var isMethodCall = typeof options === "string",
178 | args = slice.call( arguments, 1 ),
179 | returnValue = this;
180 |
181 | // allow multiple hashes to be passed on init
182 | options = !isMethodCall && args.length ?
183 | $.widget.extend.apply( null, [ options ].concat(args) ) :
184 | options;
185 |
186 | if ( isMethodCall ) {
187 | this.each(function() {
188 | var methodValue,
189 | instance = $.data( this, fullName );
190 | if ( !instance ) {
191 | return $.error( "cannot call methods on " + name + " prior to initialization; " +
192 | "attempted to call method '" + options + "'" );
193 | }
194 | if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
195 | return $.error( "no such method '" + options + "' for " + name + " widget instance" );
196 | }
197 | methodValue = instance[ options ].apply( instance, args );
198 | if ( methodValue !== instance && methodValue !== undefined ) {
199 | returnValue = methodValue && methodValue.jquery ?
200 | returnValue.pushStack( methodValue.get() ) :
201 | methodValue;
202 | return false;
203 | }
204 | });
205 | } else {
206 | this.each(function() {
207 | var instance = $.data( this, fullName );
208 | if ( instance ) {
209 | instance.option( options || {} )._init();
210 | } else {
211 | $.data( this, fullName, new object( options, this ) );
212 | }
213 | });
214 | }
215 |
216 | return returnValue;
217 | };
218 | };
219 |
220 | $.Widget = function( /* options, element */ ) {};
221 | $.Widget._childConstructors = [];
222 |
223 | $.Widget.prototype = {
224 | widgetName: "widget",
225 | widgetEventPrefix: "",
226 | defaultElement: "",
227 | options: {
228 | disabled: false,
229 |
230 | // callbacks
231 | create: null
232 | },
233 | _createWidget: function( options, element ) {
234 | element = $( element || this.defaultElement || this )[ 0 ];
235 | this.element = $( element );
236 | this.uuid = uuid++;
237 | this.eventNamespace = "." + this.widgetName + this.uuid;
238 | this.options = $.widget.extend( {},
239 | this.options,
240 | this._getCreateOptions(),
241 | options );
242 |
243 | this.bindings = $();
244 | this.hoverable = $();
245 | this.focusable = $();
246 |
247 | if ( element !== this ) {
248 | $.data( element, this.widgetFullName, this );
249 | this._on( true, this.element, {
250 | remove: function( event ) {
251 | if ( event.target === element ) {
252 | this.destroy();
253 | }
254 | }
255 | });
256 | this.document = $( element.style ?
257 | // element within the document
258 | element.ownerDocument :
259 | // element is window or document
260 | element.document || element );
261 | this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
262 | }
263 |
264 | this._create();
265 | this._trigger( "create", null, this._getCreateEventData() );
266 | this._init();
267 | },
268 | _getCreateOptions: $.noop,
269 | _getCreateEventData: $.noop,
270 | _create: $.noop,
271 | _init: $.noop,
272 |
273 | destroy: function() {
274 | this._destroy();
275 | // we can probably remove the unbind calls in 2.0
276 | // all event bindings should go through this._on()
277 | this.element
278 | .unbind( this.eventNamespace )
279 | // 1.9 BC for #7810
280 | // TODO remove dual storage
281 | .removeData( this.widgetName )
282 | .removeData( this.widgetFullName )
283 | // support: jquery <1.6.3
284 | // http://bugs.jquery.com/ticket/9413
285 | .removeData( $.camelCase( this.widgetFullName ) );
286 | this.widget()
287 | .unbind( this.eventNamespace )
288 | .removeAttr( "aria-disabled" )
289 | .removeClass(
290 | this.widgetFullName + "-disabled " +
291 | "ui-state-disabled" );
292 |
293 | // clean up events and states
294 | this.bindings.unbind( this.eventNamespace );
295 | this.hoverable.removeClass( "ui-state-hover" );
296 | this.focusable.removeClass( "ui-state-focus" );
297 | },
298 | _destroy: $.noop,
299 |
300 | widget: function() {
301 | return this.element;
302 | },
303 |
304 | option: function( key, value ) {
305 | var options = key,
306 | parts,
307 | curOption,
308 | i;
309 |
310 | if ( arguments.length === 0 ) {
311 | // don't return a reference to the internal hash
312 | return $.widget.extend( {}, this.options );
313 | }
314 |
315 | if ( typeof key === "string" ) {
316 | // handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
317 | options = {};
318 | parts = key.split( "." );
319 | key = parts.shift();
320 | if ( parts.length ) {
321 | curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
322 | for ( i = 0; i < parts.length - 1; i++ ) {
323 | curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
324 | curOption = curOption[ parts[ i ] ];
325 | }
326 | key = parts.pop();
327 | if ( value === undefined ) {
328 | return curOption[ key ] === undefined ? null : curOption[ key ];
329 | }
330 | curOption[ key ] = value;
331 | } else {
332 | if ( value === undefined ) {
333 | return this.options[ key ] === undefined ? null : this.options[ key ];
334 | }
335 | options[ key ] = value;
336 | }
337 | }
338 |
339 | this._setOptions( options );
340 |
341 | return this;
342 | },
343 | _setOptions: function( options ) {
344 | var key;
345 |
346 | for ( key in options ) {
347 | this._setOption( key, options[ key ] );
348 | }
349 |
350 | return this;
351 | },
352 | _setOption: function( key, value ) {
353 | this.options[ key ] = value;
354 |
355 | if ( key === "disabled" ) {
356 | this.widget()
357 | .toggleClass( this.widgetFullName + "-disabled ui-state-disabled", !!value )
358 | .attr( "aria-disabled", value );
359 | this.hoverable.removeClass( "ui-state-hover" );
360 | this.focusable.removeClass( "ui-state-focus" );
361 | }
362 |
363 | return this;
364 | },
365 |
366 | enable: function() {
367 | return this._setOption( "disabled", false );
368 | },
369 | disable: function() {
370 | return this._setOption( "disabled", true );
371 | },
372 |
373 | _on: function( suppressDisabledCheck, element, handlers ) {
374 | var delegateElement,
375 | instance = this;
376 |
377 | // no suppressDisabledCheck flag, shuffle arguments
378 | if ( typeof suppressDisabledCheck !== "boolean" ) {
379 | handlers = element;
380 | element = suppressDisabledCheck;
381 | suppressDisabledCheck = false;
382 | }
383 |
384 | // no element argument, shuffle and use this.element
385 | if ( !handlers ) {
386 | handlers = element;
387 | element = this.element;
388 | delegateElement = this.widget();
389 | } else {
390 | // accept selectors, DOM elements
391 | element = delegateElement = $( element );
392 | this.bindings = this.bindings.add( element );
393 | }
394 |
395 | $.each( handlers, function( event, handler ) {
396 | function handlerProxy() {
397 | // allow widgets to customize the disabled handling
398 | // - disabled as an array instead of boolean
399 | // - disabled class as method for disabling individual parts
400 | if ( !suppressDisabledCheck &&
401 | ( instance.options.disabled === true ||
402 | $( this ).hasClass( "ui-state-disabled" ) ) ) {
403 | return;
404 | }
405 | return ( typeof handler === "string" ? instance[ handler ] : handler )
406 | .apply( instance, arguments );
407 | }
408 |
409 | // copy the guid so direct unbinding works
410 | if ( typeof handler !== "string" ) {
411 | handlerProxy.guid = handler.guid =
412 | handler.guid || handlerProxy.guid || $.guid++;
413 | }
414 |
415 | var match = event.match( /^(\w+)\s*(.*)$/ ),
416 | eventName = match[1] + instance.eventNamespace,
417 | selector = match[2];
418 | if ( selector ) {
419 | delegateElement.delegate( selector, eventName, handlerProxy );
420 | } else {
421 | element.bind( eventName, handlerProxy );
422 | }
423 | });
424 | },
425 |
426 | _off: function( element, eventName ) {
427 | eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) + this.eventNamespace;
428 | element.unbind( eventName ).undelegate( eventName );
429 | },
430 |
431 | _delay: function( handler, delay ) {
432 | function handlerProxy() {
433 | return ( typeof handler === "string" ? instance[ handler ] : handler )
434 | .apply( instance, arguments );
435 | }
436 | var instance = this;
437 | return setTimeout( handlerProxy, delay || 0 );
438 | },
439 |
440 | _hoverable: function( element ) {
441 | this.hoverable = this.hoverable.add( element );
442 | this._on( element, {
443 | mouseenter: function( event ) {
444 | $( event.currentTarget ).addClass( "ui-state-hover" );
445 | },
446 | mouseleave: function( event ) {
447 | $( event.currentTarget ).removeClass( "ui-state-hover" );
448 | }
449 | });
450 | },
451 |
452 | _focusable: function( element ) {
453 | this.focusable = this.focusable.add( element );
454 | this._on( element, {
455 | focusin: function( event ) {
456 | $( event.currentTarget ).addClass( "ui-state-focus" );
457 | },
458 | focusout: function( event ) {
459 | $( event.currentTarget ).removeClass( "ui-state-focus" );
460 | }
461 | });
462 | },
463 |
464 | _trigger: function( type, event, data ) {
465 | var prop, orig,
466 | callback = this.options[ type ];
467 |
468 | data = data || {};
469 | event = $.Event( event );
470 | event.type = ( type === this.widgetEventPrefix ?
471 | type :
472 | this.widgetEventPrefix + type ).toLowerCase();
473 | // the original event may come from any element
474 | // so we need to reset the target on the new event
475 | event.target = this.element[ 0 ];
476 |
477 | // copy original event properties over to the new event
478 | orig = event.originalEvent;
479 | if ( orig ) {
480 | for ( prop in orig ) {
481 | if ( !( prop in event ) ) {
482 | event[ prop ] = orig[ prop ];
483 | }
484 | }
485 | }
486 |
487 | this.element.trigger( event, data );
488 | return !( $.isFunction( callback ) &&
489 | callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
490 | event.isDefaultPrevented() );
491 | }
492 | };
493 |
494 | $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
495 | $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
496 | if ( typeof options === "string" ) {
497 | options = { effect: options };
498 | }
499 | var hasOptions,
500 | effectName = !options ?
501 | method :
502 | options === true || typeof options === "number" ?
503 | defaultEffect :
504 | options.effect || defaultEffect;
505 | options = options || {};
506 | if ( typeof options === "number" ) {
507 | options = { duration: options };
508 | }
509 | hasOptions = !$.isEmptyObject( options );
510 | options.complete = callback;
511 | if ( options.delay ) {
512 | element.delay( options.delay );
513 | }
514 | if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
515 | element[ method ]( options );
516 | } else if ( effectName !== method && element[ effectName ] ) {
517 | element[ effectName ]( options.duration, options.easing, callback );
518 | } else {
519 | element.queue(function( next ) {
520 | $( this )[ method ]();
521 | if ( callback ) {
522 | callback.call( element[ 0 ] );
523 | }
524 | next();
525 | });
526 | }
527 | };
528 | });
529 |
530 | }));
531 |
--------------------------------------------------------------------------------
/public/assets/lib/jquery-ui/jquery-ui.theme.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * jQuery UI CSS Framework 1.12.1
3 | * http://jqueryui.com
4 | *
5 | * Copyright jQuery Foundation and other contributors
6 | * Released under the MIT license.
7 | * http://jquery.org/license
8 | *
9 | * http://api.jqueryui.com/category/theming/
10 | *
11 | * To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=base&cornerRadiusShadow=8px&offsetLeftShadow=0px&offsetTopShadow=0px&thicknessShadow=5px&opacityShadow=30&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=666666&opacityOverlay=30&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=aaaaaa&iconColorError=cc0000&fcError=5f3f3f&borderColorError=f1a899&bgTextureError=flat&bgColorError=fddfdf&iconColorHighlight=777620&fcHighlight=777620&borderColorHighlight=dad55e&bgTextureHighlight=flat&bgColorHighlight=fffa90&iconColorActive=ffffff&fcActive=ffffff&borderColorActive=003eff&bgTextureActive=flat&bgColorActive=007fff&iconColorHover=555555&fcHover=2b2b2b&borderColorHover=cccccc&bgTextureHover=flat&bgColorHover=ededed&iconColorDefault=777777&fcDefault=454545&borderColorDefault=c5c5c5&bgTextureDefault=flat&bgColorDefault=f6f6f6&iconColorContent=444444&fcContent=333333&borderColorContent=dddddd&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=444444&fcHeader=333333&borderColorHeader=dddddd&bgTextureHeader=flat&bgColorHeader=e9e9e9&cornerRadius=3px&fwDefault=normal&fsDefault=1em&ffDefault=Arial%2CHelvetica%2Csans-serif
12 | */
13 |
14 |
15 | /* Component containers
16 | ----------------------------------*/
17 | .ui-widget {
18 | font-family: Arial,Helvetica,sans-serif;
19 | font-size: 1em;
20 | }
21 | .ui-widget .ui-widget {
22 | font-size: 1em;
23 | }
24 | .ui-widget input,
25 | .ui-widget select,
26 | .ui-widget textarea,
27 | .ui-widget button {
28 | font-family: Arial,Helvetica,sans-serif;
29 | font-size: 1em;
30 | }
31 | .ui-widget.ui-widget-content {
32 | border: 1px solid #c5c5c5;
33 | }
34 | .ui-widget-content {
35 | border: 1px solid #dddddd;
36 | background: #ffffff;
37 | color: #333333;
38 | }
39 | .ui-widget-content a {
40 | color: #333333;
41 | }
42 | .ui-widget-header {
43 | border: 1px solid #dddddd;
44 | background: #e9e9e9;
45 | color: #333333;
46 | font-weight: bold;
47 | }
48 | .ui-widget-header a {
49 | color: #333333;
50 | }
51 |
52 | /* Interaction states
53 | ----------------------------------*/
54 | .ui-state-default,
55 | .ui-widget-content .ui-state-default,
56 | .ui-widget-header .ui-state-default,
57 | .ui-button,
58 |
59 | /* We use html here because we need a greater specificity to make sure disabled
60 | works properly when clicked or hovered */
61 | html .ui-button.ui-state-disabled:hover,
62 | html .ui-button.ui-state-disabled:active {
63 | border: 1px solid #c5c5c5;
64 | background: #f6f6f6;
65 | font-weight: normal;
66 | color: #454545;
67 | }
68 | .ui-state-default a,
69 | .ui-state-default a:link,
70 | .ui-state-default a:visited,
71 | a.ui-button,
72 | a:link.ui-button,
73 | a:visited.ui-button,
74 | .ui-button {
75 | color: #454545;
76 | text-decoration: none;
77 | }
78 | .ui-state-hover,
79 | .ui-widget-content .ui-state-hover,
80 | .ui-widget-header .ui-state-hover,
81 | .ui-state-focus,
82 | .ui-widget-content .ui-state-focus,
83 | .ui-widget-header .ui-state-focus,
84 | .ui-button:hover,
85 | .ui-button:focus {
86 | border: 1px solid #cccccc;
87 | background: #ededed;
88 | font-weight: normal;
89 | color: #2b2b2b;
90 | }
91 | .ui-state-hover a,
92 | .ui-state-hover a:hover,
93 | .ui-state-hover a:link,
94 | .ui-state-hover a:visited,
95 | .ui-state-focus a,
96 | .ui-state-focus a:hover,
97 | .ui-state-focus a:link,
98 | .ui-state-focus a:visited,
99 | a.ui-button:hover,
100 | a.ui-button:focus {
101 | color: #2b2b2b;
102 | text-decoration: none;
103 | }
104 |
105 | .ui-visual-focus {
106 | box-shadow: 0 0 3px 1px rgb(94, 158, 214);
107 | }
108 | .ui-state-active,
109 | .ui-widget-content .ui-state-active,
110 | .ui-widget-header .ui-state-active,
111 | a.ui-button:active,
112 | .ui-button:active,
113 | .ui-button.ui-state-active:hover {
114 | border: 1px solid #003eff;
115 | background: #007fff;
116 | font-weight: normal;
117 | color: #ffffff;
118 | }
119 | .ui-icon-background,
120 | .ui-state-active .ui-icon-background {
121 | border: #003eff;
122 | background-color: #ffffff;
123 | }
124 | .ui-state-active a,
125 | .ui-state-active a:link,
126 | .ui-state-active a:visited {
127 | color: #ffffff;
128 | text-decoration: none;
129 | }
130 |
131 | /* Interaction Cues
132 | ----------------------------------*/
133 | .ui-state-highlight,
134 | .ui-widget-content .ui-state-highlight,
135 | .ui-widget-header .ui-state-highlight {
136 | border: 1px solid #dad55e;
137 | background: #fffa90;
138 | color: #777620;
139 | }
140 | .ui-state-checked {
141 | border: 1px solid #dad55e;
142 | background: #fffa90;
143 | }
144 | .ui-state-highlight a,
145 | .ui-widget-content .ui-state-highlight a,
146 | .ui-widget-header .ui-state-highlight a {
147 | color: #777620;
148 | }
149 | .ui-state-error,
150 | .ui-widget-content .ui-state-error,
151 | .ui-widget-header .ui-state-error {
152 | border: 1px solid #f1a899;
153 | background: #fddfdf;
154 | color: #5f3f3f;
155 | }
156 | .ui-state-error a,
157 | .ui-widget-content .ui-state-error a,
158 | .ui-widget-header .ui-state-error a {
159 | color: #5f3f3f;
160 | }
161 | .ui-state-error-text,
162 | .ui-widget-content .ui-state-error-text,
163 | .ui-widget-header .ui-state-error-text {
164 | color: #5f3f3f;
165 | }
166 | .ui-priority-primary,
167 | .ui-widget-content .ui-priority-primary,
168 | .ui-widget-header .ui-priority-primary {
169 | font-weight: bold;
170 | }
171 | .ui-priority-secondary,
172 | .ui-widget-content .ui-priority-secondary,
173 | .ui-widget-header .ui-priority-secondary {
174 | opacity: .7;
175 | filter:Alpha(Opacity=70); /* support: IE8 */
176 | font-weight: normal;
177 | }
178 | .ui-state-disabled,
179 | .ui-widget-content .ui-state-disabled,
180 | .ui-widget-header .ui-state-disabled {
181 | opacity: .35;
182 | filter:Alpha(Opacity=35); /* support: IE8 */
183 | background-image: none;
184 | }
185 | .ui-state-disabled .ui-icon {
186 | filter:Alpha(Opacity=35); /* support: IE8 - See #6059 */
187 | }
188 |
189 | /* Icons
190 | ----------------------------------*/
191 |
192 | /* states and images */
193 | .ui-icon {
194 | width: 16px;
195 | height: 16px;
196 | }
197 | .ui-icon,
198 | .ui-widget-content .ui-icon {
199 | background-image: url("images/ui-icons_444444_256x240.png");
200 | }
201 | .ui-widget-header .ui-icon {
202 | background-image: url("images/ui-icons_444444_256x240.png");
203 | }
204 | .ui-state-hover .ui-icon,
205 | .ui-state-focus .ui-icon,
206 | .ui-button:hover .ui-icon,
207 | .ui-button:focus .ui-icon {
208 | background-image: url("images/ui-icons_555555_256x240.png");
209 | }
210 | .ui-state-active .ui-icon,
211 | .ui-button:active .ui-icon {
212 | background-image: url("images/ui-icons_ffffff_256x240.png");
213 | }
214 | .ui-state-highlight .ui-icon,
215 | .ui-button .ui-state-highlight.ui-icon {
216 | background-image: url("images/ui-icons_777620_256x240.png");
217 | }
218 | .ui-state-error .ui-icon,
219 | .ui-state-error-text .ui-icon {
220 | background-image: url("images/ui-icons_cc0000_256x240.png");
221 | }
222 | .ui-button .ui-icon {
223 | background-image: url("images/ui-icons_777777_256x240.png");
224 | }
225 |
226 | /* positioning */
227 | .ui-icon-blank { background-position: 16px 16px; }
228 | .ui-icon-caret-1-n { background-position: 0 0; }
229 | .ui-icon-caret-1-ne { background-position: -16px 0; }
230 | .ui-icon-caret-1-e { background-position: -32px 0; }
231 | .ui-icon-caret-1-se { background-position: -48px 0; }
232 | .ui-icon-caret-1-s { background-position: -65px 0; }
233 | .ui-icon-caret-1-sw { background-position: -80px 0; }
234 | .ui-icon-caret-1-w { background-position: -96px 0; }
235 | .ui-icon-caret-1-nw { background-position: -112px 0; }
236 | .ui-icon-caret-2-n-s { background-position: -128px 0; }
237 | .ui-icon-caret-2-e-w { background-position: -144px 0; }
238 | .ui-icon-triangle-1-n { background-position: 0 -16px; }
239 | .ui-icon-triangle-1-ne { background-position: -16px -16px; }
240 | .ui-icon-triangle-1-e { background-position: -32px -16px; }
241 | .ui-icon-triangle-1-se { background-position: -48px -16px; }
242 | .ui-icon-triangle-1-s { background-position: -65px -16px; }
243 | .ui-icon-triangle-1-sw { background-position: -80px -16px; }
244 | .ui-icon-triangle-1-w { background-position: -96px -16px; }
245 | .ui-icon-triangle-1-nw { background-position: -112px -16px; }
246 | .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
247 | .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
248 | .ui-icon-arrow-1-n { background-position: 0 -32px; }
249 | .ui-icon-arrow-1-ne { background-position: -16px -32px; }
250 | .ui-icon-arrow-1-e { background-position: -32px -32px; }
251 | .ui-icon-arrow-1-se { background-position: -48px -32px; }
252 | .ui-icon-arrow-1-s { background-position: -65px -32px; }
253 | .ui-icon-arrow-1-sw { background-position: -80px -32px; }
254 | .ui-icon-arrow-1-w { background-position: -96px -32px; }
255 | .ui-icon-arrow-1-nw { background-position: -112px -32px; }
256 | .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
257 | .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
258 | .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
259 | .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
260 | .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
261 | .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
262 | .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
263 | .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
264 | .ui-icon-arrowthick-1-n { background-position: 1px -48px; }
265 | .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
266 | .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
267 | .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
268 | .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
269 | .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
270 | .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
271 | .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
272 | .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
273 | .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
274 | .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
275 | .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
276 | .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
277 | .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
278 | .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
279 | .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
280 | .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
281 | .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
282 | .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
283 | .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
284 | .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
285 | .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
286 | .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
287 | .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
288 | .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
289 | .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
290 | .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
291 | .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
292 | .ui-icon-arrow-4 { background-position: 0 -80px; }
293 | .ui-icon-arrow-4-diag { background-position: -16px -80px; }
294 | .ui-icon-extlink { background-position: -32px -80px; }
295 | .ui-icon-newwin { background-position: -48px -80px; }
296 | .ui-icon-refresh { background-position: -64px -80px; }
297 | .ui-icon-shuffle { background-position: -80px -80px; }
298 | .ui-icon-transfer-e-w { background-position: -96px -80px; }
299 | .ui-icon-transferthick-e-w { background-position: -112px -80px; }
300 | .ui-icon-folder-collapsed { background-position: 0 -96px; }
301 | .ui-icon-folder-open { background-position: -16px -96px; }
302 | .ui-icon-document { background-position: -32px -96px; }
303 | .ui-icon-document-b { background-position: -48px -96px; }
304 | .ui-icon-note { background-position: -64px -96px; }
305 | .ui-icon-mail-closed { background-position: -80px -96px; }
306 | .ui-icon-mail-open { background-position: -96px -96px; }
307 | .ui-icon-suitcase { background-position: -112px -96px; }
308 | .ui-icon-comment { background-position: -128px -96px; }
309 | .ui-icon-person { background-position: -144px -96px; }
310 | .ui-icon-print { background-position: -160px -96px; }
311 | .ui-icon-trash { background-position: -176px -96px; }
312 | .ui-icon-locked { background-position: -192px -96px; }
313 | .ui-icon-unlocked { background-position: -208px -96px; }
314 | .ui-icon-bookmark { background-position: -224px -96px; }
315 | .ui-icon-tag { background-position: -240px -96px; }
316 | .ui-icon-home { background-position: 0 -112px; }
317 | .ui-icon-flag { background-position: -16px -112px; }
318 | .ui-icon-calendar { background-position: -32px -112px; }
319 | .ui-icon-cart { background-position: -48px -112px; }
320 | .ui-icon-pencil { background-position: -64px -112px; }
321 | .ui-icon-clock { background-position: -80px -112px; }
322 | .ui-icon-disk { background-position: -96px -112px; }
323 | .ui-icon-calculator { background-position: -112px -112px; }
324 | .ui-icon-zoomin { background-position: -128px -112px; }
325 | .ui-icon-zoomout { background-position: -144px -112px; }
326 | .ui-icon-search { background-position: -160px -112px; }
327 | .ui-icon-wrench { background-position: -176px -112px; }
328 | .ui-icon-gear { background-position: -192px -112px; }
329 | .ui-icon-heart { background-position: -208px -112px; }
330 | .ui-icon-star { background-position: -224px -112px; }
331 | .ui-icon-link { background-position: -240px -112px; }
332 | .ui-icon-cancel { background-position: 0 -128px; }
333 | .ui-icon-plus { background-position: -16px -128px; }
334 | .ui-icon-plusthick { background-position: -32px -128px; }
335 | .ui-icon-minus { background-position: -48px -128px; }
336 | .ui-icon-minusthick { background-position: -64px -128px; }
337 | .ui-icon-close { background-position: -80px -128px; }
338 | .ui-icon-closethick { background-position: -96px -128px; }
339 | .ui-icon-key { background-position: -112px -128px; }
340 | .ui-icon-lightbulb { background-position: -128px -128px; }
341 | .ui-icon-scissors { background-position: -144px -128px; }
342 | .ui-icon-clipboard { background-position: -160px -128px; }
343 | .ui-icon-copy { background-position: -176px -128px; }
344 | .ui-icon-contact { background-position: -192px -128px; }
345 | .ui-icon-image { background-position: -208px -128px; }
346 | .ui-icon-video { background-position: -224px -128px; }
347 | .ui-icon-script { background-position: -240px -128px; }
348 | .ui-icon-alert { background-position: 0 -144px; }
349 | .ui-icon-info { background-position: -16px -144px; }
350 | .ui-icon-notice { background-position: -32px -144px; }
351 | .ui-icon-help { background-position: -48px -144px; }
352 | .ui-icon-check { background-position: -64px -144px; }
353 | .ui-icon-bullet { background-position: -80px -144px; }
354 | .ui-icon-radio-on { background-position: -96px -144px; }
355 | .ui-icon-radio-off { background-position: -112px -144px; }
356 | .ui-icon-pin-w { background-position: -128px -144px; }
357 | .ui-icon-pin-s { background-position: -144px -144px; }
358 | .ui-icon-play { background-position: 0 -160px; }
359 | .ui-icon-pause { background-position: -16px -160px; }
360 | .ui-icon-seek-next { background-position: -32px -160px; }
361 | .ui-icon-seek-prev { background-position: -48px -160px; }
362 | .ui-icon-seek-end { background-position: -64px -160px; }
363 | .ui-icon-seek-start { background-position: -80px -160px; }
364 | /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
365 | .ui-icon-seek-first { background-position: -80px -160px; }
366 | .ui-icon-stop { background-position: -96px -160px; }
367 | .ui-icon-eject { background-position: -112px -160px; }
368 | .ui-icon-volume-off { background-position: -128px -160px; }
369 | .ui-icon-volume-on { background-position: -144px -160px; }
370 | .ui-icon-power { background-position: 0 -176px; }
371 | .ui-icon-signal-diag { background-position: -16px -176px; }
372 | .ui-icon-signal { background-position: -32px -176px; }
373 | .ui-icon-battery-0 { background-position: -48px -176px; }
374 | .ui-icon-battery-1 { background-position: -64px -176px; }
375 | .ui-icon-battery-2 { background-position: -80px -176px; }
376 | .ui-icon-battery-3 { background-position: -96px -176px; }
377 | .ui-icon-circle-plus { background-position: 0 -192px; }
378 | .ui-icon-circle-minus { background-position: -16px -192px; }
379 | .ui-icon-circle-close { background-position: -32px -192px; }
380 | .ui-icon-circle-triangle-e { background-position: -48px -192px; }
381 | .ui-icon-circle-triangle-s { background-position: -64px -192px; }
382 | .ui-icon-circle-triangle-w { background-position: -80px -192px; }
383 | .ui-icon-circle-triangle-n { background-position: -96px -192px; }
384 | .ui-icon-circle-arrow-e { background-position: -112px -192px; }
385 | .ui-icon-circle-arrow-s { background-position: -128px -192px; }
386 | .ui-icon-circle-arrow-w { background-position: -144px -192px; }
387 | .ui-icon-circle-arrow-n { background-position: -160px -192px; }
388 | .ui-icon-circle-zoomin { background-position: -176px -192px; }
389 | .ui-icon-circle-zoomout { background-position: -192px -192px; }
390 | .ui-icon-circle-check { background-position: -208px -192px; }
391 | .ui-icon-circlesmall-plus { background-position: 0 -208px; }
392 | .ui-icon-circlesmall-minus { background-position: -16px -208px; }
393 | .ui-icon-circlesmall-close { background-position: -32px -208px; }
394 | .ui-icon-squaresmall-plus { background-position: -48px -208px; }
395 | .ui-icon-squaresmall-minus { background-position: -64px -208px; }
396 | .ui-icon-squaresmall-close { background-position: -80px -208px; }
397 | .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
398 | .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
399 | .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
400 | .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
401 | .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
402 | .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
403 |
404 |
405 | /* Misc visuals
406 | ----------------------------------*/
407 |
408 | /* Corner radius */
409 | .ui-corner-all,
410 | .ui-corner-top,
411 | .ui-corner-left,
412 | .ui-corner-tl {
413 | border-top-left-radius: 3px;
414 | }
415 | .ui-corner-all,
416 | .ui-corner-top,
417 | .ui-corner-right,
418 | .ui-corner-tr {
419 | border-top-right-radius: 3px;
420 | }
421 | .ui-corner-all,
422 | .ui-corner-bottom,
423 | .ui-corner-left,
424 | .ui-corner-bl {
425 | border-bottom-left-radius: 3px;
426 | }
427 | .ui-corner-all,
428 | .ui-corner-bottom,
429 | .ui-corner-right,
430 | .ui-corner-br {
431 | border-bottom-right-radius: 3px;
432 | }
433 |
434 | /* Overlays */
435 | .ui-widget-overlay {
436 | background: #aaaaaa;
437 | opacity: .3;
438 | filter: Alpha(Opacity=30); /* support: IE8 */
439 | }
440 | .ui-widget-shadow {
441 | -webkit-box-shadow: 0px 0px 5px #666666;
442 | box-shadow: 0px 0px 5px #666666;
443 | }
444 |
--------------------------------------------------------------------------------
/public/assets/lib/fancybox/jquery.fancybox.pack.js:
--------------------------------------------------------------------------------
1 | /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
2 | (function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0
',image:'
',iframe:'",error:'The requested content cannot be loaded.
Please try again later.
',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,
6 | openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,
7 | isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,
8 | c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&
9 | k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||
10 | b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=
11 | setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=
13 | a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),
14 | b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),
15 | y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;
16 | if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,
18 | {},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,
19 | mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=
20 | !0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");
21 | "image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=
22 | this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);
23 | f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,
24 | e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,
25 | outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",
26 | g);break;case "swf":e='
"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":
27 | "no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?
28 | h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||
29 | h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c
z||y>r)&&(c>m&&j>u)&&!(19n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&jz||y>r)&&c>m&&j>u;c=h.aspectRatio?cu&&j ').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?
40 | b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),
41 | p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===
42 | f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=
43 | b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f(''+e+"
");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,
44 | e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+
45 | ":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('').appendTo("body");var e=20===
46 | d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery);
--------------------------------------------------------------------------------