Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
overlay.js
Содержимое
/** * tools.overlay 1.1.2 - Overlay HTML with eye candy. * * Copyright (c) 2009 Tero Piirainen * http://flowplayer.org/tools/overlay.html * * Dual licensed under MIT and GPL 2+ licenses * http://www.opensource.org/licenses * * Launch : March 2008 * Date: ${date} * Revision: ${revision} */ (function($) { // static constructs $.tools = $.tools || {}; $.tools.overlay = { version: '1.1.2', addEffect: function(name, loadFn, closeFn) { effects[name] = [loadFn, closeFn]; }, conf: { top: '10%', left: 'center', absolute: false, speed: 'normal', closeSpeed: 'fast', effect: 'default', close: null, oneInstance: true, closeOnClick: true, closeOnEsc: true, api: false, expose: null, // target element to be overlayed. by default taken from [rel] target: null } }; var effects = {}; // the default effect. nice and easy! $.tools.overlay.addEffect('default', /* onLoad/onClose functions must be called otherwise none of the user supplied callback methods won't be called */ function(onLoad) { this.getOverlay().fadeIn(this.getConf().speed, onLoad); }, function(onClose) { this.getOverlay().fadeOut(this.getConf().closeSpeed, onClose); } ); var instances = []; function Overlay(trigger, conf) { // private variables var self = this, $self = $(this), w = $(window), closers, overlay, opened, expose = conf.expose && $.tools.expose.version; // get overlay and triggerr var jq = conf.target || trigger.attr("rel"); overlay = jq ? $(jq) : null || trigger; // overlay not found. cannot continue if (!overlay.length) { throw "Could not find Overlay: " + jq; } // if trigger is given - assign it's click event if (trigger && trigger.index(overlay) == -1) { trigger.click(function(e) { self.load(e); return e.preventDefault(); }); } // bind all callbacks from configuration $.each(conf, function(name, fn) { if ($.isFunction(fn)) { $self.bind(name, fn); } }); // API methods $.extend(self, { load: function(e) { // can be opened only once if (self.isOpened()) { return self; } // find the effect var eff = effects[conf.effect]; if (!eff) { throw "Overlay: cannot find effect : \"" + conf.effect + "\""; } // close other instances? if (conf.oneInstance) { $.each(instances, function() { this.close(e); }); } // onBeforeLoad e = e || $.Event(); e.type = "onBeforeLoad"; $self.trigger(e); if (e.isDefaultPrevented()) { return self; } // opened opened = true; // possible expose effect if (expose) { overlay.expose().load(e); } // calculate end position var top = conf.top; var left = conf.left; // get overlay dimensions var oWidth = overlay.outerWidth({margin:true}); var oHeight = overlay.outerHeight({margin:true}); if (typeof top == 'string') { top = top == 'center' ? Math.max((w.height() - oHeight) / 2, 0) : parseInt(top, 10) / 100 * w.height(); } if (left == 'center') { left = Math.max((w.width() - oWidth) / 2, 0); } if (!conf.absolute) { top += w.scrollTop(); left += w.scrollLeft(); } // position overlay overlay.css({top: top, left: left, position: 'absolute'}); // onStart e.type = "onStart"; $self.trigger(e); // load effect eff[0].call(self, function() { if (opened) { e.type = "onLoad"; $self.trigger(e); } }); // when window is clicked outside overlay, we close if (conf.closeOnClick) { $(document).bind("click.overlay", function(e) { if (!self.isOpened()) { return; } var et = $(e.target); if (et.parents(overlay).length > 1) { return; } $.each(instances, function() { this.close(e); }); }); } // keyboard::escape if (conf.closeOnEsc) { // one callback is enough if multiple instances are loaded simultaneously $(document).unbind("keydown.overlay").bind("keydown.overlay", function(e) { if (e.keyCode == 27) { $.each(instances, function() { this.close(e); }); } }); } return self; }, close: function(e) { if (!self.isOpened()) { return self; } e = e || $.Event(); e.type = "onBeforeClose"; $self.trigger(e); if (e.isDefaultPrevented()) { return; } opened = false; // close effect effects[conf.effect][1].call(self, function() { e.type = "onClose"; $self.trigger(e); }); // if all instances are closed then we unbind the keyboard / clicking actions var allClosed = true; $.each(instances, function() { if (this.isOpened()) { allClosed = false; } }); if (allClosed) { $(document).unbind("click.overlay").unbind("keydown.overlay"); } return self; }, // @deprecated getContent: function() { return overlay; }, getOverlay: function() { return overlay; }, getTrigger: function() { return trigger; }, getClosers: function() { return closers; }, isOpened: function() { return opened; }, // manipulate start, finish and speeds getConf: function() { return conf; }, // bind bind: function(name, fn) { $self.bind(name, fn); return self; }, // unbind unbind: function(name) { $self.unbind(name); return self; } }); // callbacks $.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","), function(i, ev) { self[ev] = function(fn) { return self.bind(ev, fn); }; }); // exposing effect if (expose) { // expose configuration if (typeof conf.expose == 'string') { conf.expose = {color: conf.expose}; } $.extend(conf.expose, { api: true, closeOnClick: conf.closeOnClick, // only overlay control's the esc button closeOnEsc: false }); // initialize expose api var ex = overlay.expose(conf.expose); ex.onBeforeClose(function(e) { self.close(e); }); self.onClose(function(e) { ex.close(e); }); } // close button closers = overlay.find(conf.close || ".close"); if (!closers.length && !conf.close) { closers = $('<div class="close"></div>'); overlay.prepend(closers); } closers.click(function(e) { self.close(e); }); } // jQuery plugin initialization $.fn.overlay = function(conf) { // already constructed --> return API var el = this.eq(typeof conf == 'number' ? conf : 0).data("overlay"); if (el) { return el; } if ($.isFunction(conf)) { conf = {onBeforeLoad: conf}; } var globals = $.extend({}, $.tools.overlay.conf); conf = $.extend(true, globals, conf); this.each(function() { el = new Overlay($(this), conf); instances.push(el); $(this).data("overlay", el); }); return conf.api ? el: this; }; })(jQuery);
/restoran/js/
Имя
Дата
Размер
..
2017-07-13
fancybox
2013-12-04
jcarousel
2013-12-04
jcrop
2013-12-09
markitup
2016-03-28
mobilyslider
2013-12-04
apple.js
2016-03-24
3 кб.
dklab_realplexor.js
2013-12-04
5 кб.
flowplayer-3.2.13.min.js
2013-12-20
16 кб.
flowplayer-3.2.18.swf
2013-12-20
127 кб.
flowplayer.controls-3.2.16.swf
2013-12-20
37 кб.
flowplayer.min.js
2016-03-24
16 кб.
jcarousellite.js
2013-12-04
14 кб.
jquery.tools.min.js
2013-12-04
8 кб.
overlay.js
2016-03-24
9 кб.
scrollable.js
2013-12-04
7 кб.
swfobject.js
2013-12-04
10 кб.
tabs.js
2015-02-04
1 кб.
tools.expose.js
2016-03-24
7 кб.
/restoran/js
Загрузить файлы
Файл 1
Файл 2
Файл 3