/* Amber package loading usage example: TODO */ var require; require = function (require) { var scripts = document.getElementsByTagName("script"); var src = scripts[ scripts.length - 1 ].src; var home = resolveViaDOM(src).replace(/\/[^\/]+$/, ""); function resolveViaDOM(url) { var a = document.createElement("a"); a.href = url; return a.href; } var config = { baseUrl: home, paths: { 'amber': '.', 'amber_vm': '.', 'amber_css': '../css', 'amber_core': '../js', 'amber_core/_source': '../st', 'jquery': 'jQuery/jquery-1.8.2.min', 'jquery-ui': 'jQuery/jquery-ui-1.8.16.custom.min' }, map: { '*': { 'css': 'requirejs/require-css-0.0.6/css' }, 'amber_set/full-devel-helios': { 'jquery-ui': 'jQuery/jquery-ui-1.8.24.custom.min' } }, shim: { 'jquery-ui': { deps: [ 'jquery' ] }, 'bootstrap/js/bootstrap': { deps: [ 'css!bootstrap/css/bootstrap' ] }, 'CodeMirror/codemirror': { deps: [ 'css!CodeMirror/codemirror' ] }, 'jQuery/jquery.textarea': { deps: [ 'jquery', 'jquery-ui' ] }, 'CodeMirror/smalltalk': { deps: [ './codemirror' ] }, 'CodeMirror/addon/hint/show-hint': { deps: [ '../../codemirror' ] }, 'ensure-console': { exports: 'console' } } }; if (require) { require.config(config); return require; } else { return config; } }(require);