From d07d66e24ba1baf8b1f1c00ddd05fa2e64e8f54e Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Thu, 25 Jan 2018 19:15:16 +0100 Subject: Add public template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/js/core.json | 1 + core/js/public/publicpage.js | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 core/js/public/publicpage.js (limited to 'core/js') diff --git a/core/js/core.json b/core/js/core.json index 6cf6a2489ed..9da91a7f639 100644 --- a/core/js/core.json +++ b/core/js/core.json @@ -46,6 +46,7 @@ "config.js", "public/appconfig.js", "public/comments.js", + "public/publicpage.js", "multiselect.js", "oc-requesttoken.js", "setupchecks.js", diff --git a/core/js/public/publicpage.js b/core/js/public/publicpage.js new file mode 100644 index 00000000000..31b862ba12a --- /dev/null +++ b/core/js/public/publicpage.js @@ -0,0 +1,29 @@ +/* + * @copyright Copyright (c) 2018 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +$(document).ready(function () { + + console.log('public'); + $('#body-public .header-right .menutoggle').click(function() { + $(this).next('.popovermenu').toggleClass('open'); + }); +}); -- cgit v1.2.3