From 3e8b34be2fdeccf16c8b46f1ee518f970853768d Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 24 Oct 2017 16:59:48 -0400 Subject: Adding in materialize source and templates --- app/dispatch/static/materialize/js/initial.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/dispatch/static/materialize/js/initial.js (limited to 'app/dispatch/static/materialize/js/initial.js') diff --git a/app/dispatch/static/materialize/js/initial.js b/app/dispatch/static/materialize/js/initial.js new file mode 100644 index 0000000..db436f4 --- /dev/null +++ b/app/dispatch/static/materialize/js/initial.js @@ -0,0 +1,10 @@ +// Check for jQuery. +if (typeof(jQuery) === 'undefined') { + // Check if require is a defined function. + if (typeof(require) === 'function') { + jQuery = $ = require('jquery'); + // Else use the dollar sign alias. + } else { + jQuery = $; + } +} -- cgit v1.2.3