From 68fc9e55e538e03f94509731ab41a0c8cf96710f Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Mon, 17 Apr 2023 12:12:22 +0300 Subject: setup a real server environment (apache DocumentRoot=/var/www/public) --- html/assets/js/plugins/tabs.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 html/assets/js/plugins/tabs.js (limited to 'html/assets/js/plugins/tabs.js') diff --git a/html/assets/js/plugins/tabs.js b/html/assets/js/plugins/tabs.js deleted file mode 100644 index 74d4efc..0000000 --- a/html/assets/js/plugins/tabs.js +++ /dev/null @@ -1,28 +0,0 @@ -$.defineAttributePlugin('tabs', function ($element, options) { - var animating = false, - dataTab, - slideSpeed = options.slideSpeed ? options.slideSpeed : 400; - - if (!$element.find("[data-tab-trigger]").hasClass('active')) { - setTimeout(function () { $element.find("[data-tab-trigger]").first().trigger('click'); }, 50); - } - - $element.find("[data-tab-trigger]").click(function (e) { - e.preventDefault(); - if (animating === true || $(this).hasClass('active')) { - return; - } - animating = true; - $(this).addClass('active').siblings().removeClass('active'); - dataTab = $(this).data('tab-trigger'); - - $('[data-tab-content="' + dataTab + '"]').siblings('.active').slideUp(slideSpeed, function () { - $(this).removeClass('active').removeAttr('style'); - }); - - $('[data-tab-content="' + dataTab + '"]').slideDown(slideSpeed, function () { - $(this).addClass('active').removeAttr('style'); - animating = false; - }); - }); -}); -- cgit v1.2.3