From fe2e50b3b6c97b9411156dba6d5f509d58d35f44 Mon Sep 17 00:00:00 2001 From: mmk2410 Date: Sat, 5 Dec 2015 18:21:22 +0100 Subject: [PATCH] JavaScript extension support --- extensions/example.js | 11 +++++++++++ index.php | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 extensions/example.js diff --git a/extensions/example.js b/extensions/example.js new file mode 100644 index 0000000..3219b03 --- /dev/null +++ b/extensions/example.js @@ -0,0 +1,11 @@ +/** + * Created by mmk2410 on 12/5/15. + * + * Example JavaScript file to demonstrate the rangitaki extension support + */ + +function main() { + console.log("Welcome Developer! \nYou're seeing the output of a javascript extension for the rangitaki blogging engine.") +} + +$(document).ready(main()); diff --git a/index.php b/index.php index c08ff77..49a3c5d 100644 --- a/index.php +++ b/index.php @@ -268,6 +268,15 @@ if ($nav_drawer == "yes") { + +"; + } +} +?>