From 57414cff59970f31cab82e137d7e749ea46adc0f Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Fri, 30 May 2014 12:26:34 +0200 Subject: [PATCH] profile config for online service (brouter.de) --- config.js | 57 ++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 44 insertions(+), 13 deletions(-) diff --git a/config.js b/config.js index 7152f80..2318b63 100644 --- a/config.js +++ b/config.js @@ -1,13 +1,44 @@ -BR.conf = { - profiles: [ - 'trekking', - 'fastbike', - 'shortest', - 'all', - /* "does not contain expressions for context node" (?) - 'softaccess', - */ - 'moped', - 'car-test' - ] -}; +(function() { + + var hostname = window.location.hostname; + + BR.conf = {}; + + if (hostname === 'brouter.de' || hostname === 'h2096617.stratoserver.net') { + + // online service (brouter.de) configuration + + BR.conf.profiles = [ + 'trekking', + 'fastbike', + 'shortest', + 'shortest-eudem', + 'all', + /* "does not contain expressions for context node" (?) + 'softaccess', + */ + 'moped', + 'car-test', + 'vm-forum-liegerad-schnell', + 'vm-forum-velomobil-schnell' + ]; + + } else { + + // desktop configuration + + BR.conf.profiles = [ + 'trekking', + 'fastbike', + 'shortest', + 'all', + /* "does not contain expressions for context node" (?) + 'softaccess', + */ + 'moped', + 'car-test' + ]; + + } + +})();