Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
jquery.easyModal.js
Содержимое
/** * easyModal.js v1.3.2 * A minimal jQuery modal that works with your CSS. * Author: Flavius Matis - http://flaviusmatis.github.com/ * URL: https://github.com/flaviusmatis/easyModal.js * * Copyright 2012, Flavius Matis * Released under the MIT license. * http://flaviusmatis.github.com/license.html */ /*jslint browser: true*/ /*global jQuery*/ (function($,sr){ // debouncing function from John Hann // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ var debounce = function (func, threshold, execAsap) { var timeout; return function debounced () { var obj = this, args = arguments; function delayed () { if (!execAsap) func.apply(obj, args); timeout = null; }; if (timeout) clearTimeout(timeout); else if (execAsap) func.apply(obj, args); timeout = setTimeout(delayed, threshold || 100); }; } // smartModalResize jQuery.fn[sr] = function(fn){ return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); }; })(jQuery,'smartModalResize'); (function ($) { "use strict"; var methods = { init: function (options) { var defaults = { top: 'auto', left: 'auto', autoOpen: false, overlayOpacity: 0.5, overlayColor: '#000', overlayClose: true, overlayParent: 'body', closeOnEscape: true, closeButtonClass: '.close', transitionIn: '', transitionOut: '', onOpen: false, onClose: false, zIndex: function () { return (function (value) { return value === -Infinity ? 0 : value + 1; }(Math.max.apply(Math, $.makeArray($('*').map(function () { return $(this).css('z-index'); }).filter(function () { return $.isNumeric(this); }).map(function () { return parseInt(this, 10); }))))); }, updateZIndexOnOpen: true, hasVariableWidth: false }; options = $.extend(defaults, options); return this.each(function () { var o = options, $overlay = $('<div class="lean-overlay"></div>'), $modal = $(this); $overlay.css({ 'display': 'none', 'position': 'fixed', // When updateZIndexOnOpen is set to true, we avoid computing the z-index on initialization, // because the value would be replaced when opening the modal. 'z-index': (o.updateZIndexOnOpen ? 0 : o.zIndex()), 'top': 0, 'left': 0, 'height': '100%', 'width': '100%', 'background': o.overlayColor, 'opacity': o.overlayOpacity, 'overflow': 'auto' }).appendTo(o.overlayParent); $modal.css({ 'display': 'none', 'position' : 'fixed', // When updateZIndexOnOpen is set to true, we avoid computing the z-index on initialization, // because the value would be replaced when opening the modal. 'z-index': (o.updateZIndexOnOpen ? 0 : o.zIndex() + 1), 'left' : parseInt(o.left, 10) > -1 ? o.left + 'px' : 50 + '%', 'top' : parseInt(o.top, 10) > -1 ? o.top + 'px' : 50 + '%' }); $modal.bind('openModal', function () { var overlayZ = o.updateZIndexOnOpen ? o.zIndex() : parseInt($overlay.css('z-index'), 10), modalZ = overlayZ + 1; if(o.transitionIn !== '' && o.transitionOut !== ''){ $modal.removeClass(o.transitionOut).addClass(o.transitionIn); } $modal.css({ 'display' : 'block', 'margin-left' : (parseInt(o.left, 10) > -1 ? 0 : -($modal.outerWidth() / 2)) + 'px', 'margin-top' : (parseInt(o.top, 10) > -1 ? 0 : -($modal.outerHeight() / 2)) + 'px', 'z-index': modalZ }); $overlay.css({'z-index': overlayZ, 'display': 'block'}); if (o.onOpen && typeof o.onOpen === 'function') { // onOpen callback receives as argument the modal window o.onOpen($modal[0]); } }); $modal.bind('closeModal', function () { if(o.transitionIn !== '' && o.transitionOut !== ''){ $modal.removeClass(o.transitionIn).addClass(o.transitionOut); $modal.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){ $modal.css('display', 'none'); $overlay.css('display', 'none'); }); } else { $modal.css('display', 'none'); $overlay.css('display', 'none'); } if (o.onClose && typeof o.onClose === 'function') { // onClose callback receives as argument the modal window o.onClose($modal[0]); } }); // Close on overlay click $overlay.click(function () { if (o.overlayClose) { $modal.trigger('closeModal'); } }); $(document).keydown(function (e) { // ESCAPE key pressed if (o.closeOnEscape && e.keyCode === 27) { $modal.trigger('closeModal'); } }); $(window).smartModalResize(function(){ if (o.hasVariableWidth) { $modal.css({ 'margin-left' : (parseInt(o.left, 10) > -1 ? 0 : -($modal.outerWidth() / 2)) + 'px', 'margin-top' : (parseInt(o.top, 10) > -1 ? 0 : -($modal.outerHeight() / 2)) + 'px' }); } }); // Close when button pressed $modal.on('click', o.closeButtonClass, function (e) { $modal.trigger('closeModal'); e.preventDefault(); }); // Automatically open modal if option set if (o.autoOpen) { $modal.trigger('openModal'); } }); } }; $.fn.easyModal = function (method) { // Method calling logic if (methods[method]) { return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } if (typeof method === 'object' || !method) { return methods.init.apply(this, arguments); } $.error('Method ' + method + ' does not exist on jQuery.easyModal'); }; }(jQuery));
/js/
Имя
Дата
Размер
..
2026-10-02
2.0
2026-05-25
bootstrap
2019-01-24
markitup
2016-03-28
plugins
2016-11-24
prod
2017-02-14
.DS_Store
2016-11-30
6 кб.
app.js
2016-11-29
7 кб.
bootstrap.js
2019-01-24
112 кб.
bootstrap.min.js
2015-09-25
36 кб.
browserUpdate.js
2015-09-25
5 кб.
device.min.js
2015-09-25
3 кб.
html5.js
2015-09-25
2 кб.
jquery-1.7.min.js
2017-02-02
92 кб.
jquery-2.1.3.min.js
2015-09-25
82 кб.
jquery-2.1.4.js
2016-11-30
82 кб.
jquery-ui.min.js
2016-02-15
235 кб.
jquery.easyModal.js
2016-11-22
7 кб.
jquery.fancybox.js
2017-02-10
29 кб.
jquery.lightbox.m2.js
2016-04-15
16 кб.
jquery.lightbox.min.js
2016-02-15
10 кб.
jquery.live.min.js
2009-12-17
3 кб.
jquery.maskedinput.min.js
2015-09-25
3 кб.
jquery.mobile.custom.min.js
2016-11-30
8 кб.
jquery.tabsLite.js
2015-09-25
1 кб.
jquery.wysibb.min.js
2016-11-24
61 кб.
knockout-2.1.0.js
2017-02-14
40 кб.
main.js
2016-11-30
12 кб.
marqueeTitle.jquery.js
2017-02-14
1012 байт
modernizr.js
2016-11-30
15 кб.
scripts_kabinet.js
2016-02-18
721 байт
starrr.js
2015-09-25
4 кб.
starrr.min.js
2015-09-25
3 кб.
swiper.jquery.js
2016-11-24
202 кб.
swiper.jquery.min.js
2016-11-24
85 кб.
swiper.jquery.umd.js
2016-11-24
201 кб.
swiper.jquery.umd.min.js
2016-11-24
84 кб.
swiper.js
2016-11-24
229 кб.
swiper.min.js
2016-11-24
94 кб.
/js
Загрузить файлы
Файл 1
Файл 2
Файл 3