From 7076343338ae3439f3c86f01144818abe8c31978 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Sun, 12 Mar 2023 07:16:23 +0200 Subject: add container helpers; constuct public directory-tree --- html/content/js/Modals/modal.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 html/content/js/Modals/modal.js (limited to 'html/content/js/Modals/modal.js') diff --git a/html/content/js/Modals/modal.js b/html/content/js/Modals/modal.js new file mode 100644 index 0000000..7ce9145 --- /dev/null +++ b/html/content/js/Modals/modal.js @@ -0,0 +1,6 @@ +$$plugins.define('modal', ['domHelper'], function (element, options, $) { + var close = $(element).find('.modal__close'); + close.on('click', function () { + $(element).removeClass('open'); + }); +}); -- cgit v1.2.3