-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add app.js to load the app and bump font awesome to v4.4.0
- Loading branch information
Showing
2 changed files
with
35 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
(function () { | ||
|
||
// globel dojoConfig is required for async loading of gmaps api | ||
window.dojoConfig = { | ||
async: true, | ||
packages: [{ | ||
name: 'viewer', | ||
location: location.pathname.replace(/[^\/]+$/, '') + 'js/viewer' | ||
}, { | ||
name: 'config', | ||
location: location.pathname.replace(/[^\/]+$/, '') + 'js/config' | ||
}, { | ||
name: 'gis', | ||
location: location.pathname.replace(/[^\/]+$/, '') + 'js/gis' | ||
}] | ||
}; | ||
|
||
// get the config file from the url if present | ||
var file = 'config/viewer', | ||
s = window.location.search, | ||
q = s.match(/config=([^&]*)/i); | ||
if (q && q.length > 0) { | ||
file = q[1]; | ||
if (file.indexOf('/') < 0) { | ||
file = 'config/' + file; | ||
} | ||
} | ||
|
||
require(window.dojoConfig, ['viewer/Controller', file, 'dojo/domReady!'], function (Controller, config) { | ||
Controller.startup(config); | ||
}); | ||
})(); |