diff --git a/web/config.js b/web/config.js new file mode 100644 index 00000000..2f9415c9 --- /dev/null +++ b/web/config.js @@ -0,0 +1,10 @@ +var setup = { + tileUrl: 'tiles/', + updateUrl: 'up/', // For Apache and lighttpd +// updateUrl: 'up/default.aspx?lasttimestamp=', // For IIS + updateRate: 2000, // Seconds the map should poll for updates. (Seconds) * 1000. The default is 2000 (every 2 seconds). + showPortraitsOnMap: true, + showPortraitsInPlayerList: true, + showPlayerNameOnMap: false +}; + diff --git a/web/index.html b/web/index.html index f48964f4..a460ed0a 100644 --- a/web/index.html +++ b/web/index.html @@ -11,8 +11,9 @@ + - +
@@ -43,4 +44,4 @@ - \ No newline at end of file + diff --git a/web/map.js b/web/map.js index 2d8532ba..e843f232 100644 --- a/web/map.js +++ b/web/map.js @@ -1,14 +1,3 @@ -var setup = { - tileUrl: 'http://www.yourdomain.com/minecraft/tiles/', - updateUrl: 'http://www.yourdomain.com/minecraft/up/', // Or if using ASP.NET: http://www.yourdomain.com/minecraft/up/default.aspx?lasttimestamp= - updateRate: 2000, //Seconds the map should poll for updates. (Seconds) * 1000. The default is 2000 (every 2 seconds). - showPortraitsOnMap: true, - showPortraitsInPlayerList: true, - showPlayerNameOnMap: false -}; - -/* THERE SHOULD BE NO NEED FOR MANUAL CONFIGURATION BEYOND THIS POINT */ - /** * This constructor creates a label and associates it with a marker. * It is for the private use of the MarkerWithLabel class. @@ -827,4 +816,4 @@ function makeRequest(url, func, type, fail, post, contenttype) } // assert('hi'); return originalArray; - } \ No newline at end of file + }