From 8000ef3a3890b8b6d0b433437bc6619ae7accace Mon Sep 17 00:00:00 2001 From: junior Date: Tue, 15 Feb 2022 17:13:24 +0000 Subject: [PATCH] Add a main.js for global functions/features --- htmlfooter.php | 2 ++ js/main.js | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 js/main.js diff --git a/htmlfooter.php b/htmlfooter.php index 3808d89..5eab079 100755 --- a/htmlfooter.php +++ b/htmlfooter.php @@ -13,5 +13,7 @@ + + diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..74aef38 --- /dev/null +++ b/js/main.js @@ -0,0 +1,5 @@ +function basename(str, sep) { + return str.substr(str.lastIndexOf(sep) + 1); +} + +// vim: set ts=4:sw=4