diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-06-04 23:10:31 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-06-05 21:23:49 +0200 |
commit | d088234d67f3aa422796d922e08a07949dc53d83 (patch) | |
tree | a964821b6b725dd26becbb3e91acf8d7dd5e0014 /public_html/data/js/main.js | |
parent | 048410164d2a17bbb588e43351e44eeb81610960 (diff) |
Move public files to ./public_html
./data/local is not moved because it contains likely untracked files
and moving it would throw an error when updating.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'public_html/data/js/main.js')
-rw-r--r-- | public_html/data/js/main.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/public_html/data/js/main.js b/public_html/data/js/main.js new file mode 100644 index 000000000..5710dcb68 --- /dev/null +++ b/public_html/data/js/main.js @@ -0,0 +1,28 @@ +(function () { +'use strict'; +requirejs.config({ + shim: { + 'jquery-ui': ['jquery'], + 'bootstrap': ['jquery'], + 'jquery.tablesorter': ['jquery'], + 'jquery.lazyload': ['jquery'], + 'jquery.colorbox': ['jquery'] + }, + paths: { + 'jquery': 'vendor/jquery-2.0.3.min', + 'jquery-ui': 'vendor/jquery-ui-1.10.3.custom.min', + 'bootstrap': 'vendor/bootstrap.min', + 'jquery.tablesorter': 'vendor/jquery.tablesorter.min', + 'jquery.lazyload': 'vendor/jquery.lazyload', + 'jquery.colorbox': 'vendor/jquery.colorbox', + 'underscore': 'vendor/underscore' + } +}); + +require(['application', 'jquery'], function (App, $) { + App.initialize(); + $(document).ready(function () { + App.onPageLoaded(); + }); +}); +})(); |