From cc0bb3b50930c78128c21a02dbd32c61ebff3bab Mon Sep 17 00:00:00 2001 From: Arthur Mayer Date: Wed, 23 Feb 2011 21:26:51 +0100 Subject: [PATCH 1/3] fixed chat sending messages from web. event.keyCode === '13', where the strict equal operator seem to break safari, firefox and chrome (different value types? keydown event seem not to provide either a string nor an integer) --- web/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/map.js b/web/map.js index 53d48bf0..6671b4fc 100644 --- a/web/map.js +++ b/web/map.js @@ -208,7 +208,7 @@ DynMap.prototype = { value: '' }) .keydown(function(event) { - if (event.keyCode === '13') { + if (event.keyCode == '13') { event.preventDefault(); sendChat(chatinput.val()); chatinput.val(''); From cdd30d95c5bb7f978e9a3508fa6828128a39dcab Mon Sep 17 00:00:00 2001 From: Arthur Mayer Date: Wed, 23 Feb 2011 23:03:26 +0100 Subject: [PATCH 2/3] lechd's new override style to let the sidebar always open and hides also the icon --- web/override_example.css | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/web/override_example.css b/web/override_example.css index a353b45d..baeb8f10 100644 --- a/web/override_example.css +++ b/web/override_example.css @@ -2,16 +2,16 @@ * This is the over-ride CSS file. * * if you know any CSS you can easily add any custom rules to change how - * Dynmap looks for your particular install. + * Dynmap looks or behaves in your particular install. * - * Simply uncomment the override.css in the index.html and rename this file - * to override.css to use these custom rules. + * Simply uncomment the override.css in the index.html and rename THIS file + * to override.css to use these (or your) custom rules. * * By adding these rules here you can easily save your changes between updates. */ -/* IE : Use the alternate compass image */ +/* Use the alternate compass image */ .compass { top: 20px; @@ -22,3 +22,16 @@ background-image: url(compass_alt.png); } + +/* These next two keep the DynMap sidebar open */ + +.dynmap .sidebar { + margin-right: 0px; +} + +/* And hide the hitbar along with the window controls */ + +.dynmap .sidebar .hitbar, +.dynmap .sidebar .panel > .pin { + display: none; +} \ No newline at end of file From b6ec0a295517ffeff4490aae84c281788350bf1b Mon Sep 17 00:00:00 2001 From: Arthur Mayer Date: Wed, 23 Feb 2011 23:28:28 +0100 Subject: [PATCH 3/3] lechd updated override example --- web/override_example.css | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/web/override_example.css b/web/override_example.css index baeb8f10..ef193afe 100644 --- a/web/override_example.css +++ b/web/override_example.css @@ -1,13 +1,15 @@ /******************* * This is the over-ride CSS file. * - * if you know any CSS you can easily add any custom rules to change how - * Dynmap looks or behaves in your particular install. + * if you know any CSS you can easily add custom rules to change how DynMap + * looks and behaves under your DynMap installation. * - * Simply uncomment the override.css in the index.html and rename THIS file - * to override.css to use these (or your) custom rules. + * 1. Uncomment the override.css in the index.html. + * 2. Rename this file or create a new override.css. + * 3. Add your own rules (or steal these) to personalize how DynMap looks. * - * By adding these rules here you can easily save your changes between updates. + * By adding your own rules here, you can then save your changes + * between DynMap updates and they won't get over-written. */ @@ -23,13 +25,13 @@ background-image: url(compass_alt.png); } -/* These next two keep the DynMap sidebar open */ +/* These next two keep the DynMap sidebar open... */ .dynmap .sidebar { margin-right: 0px; } -/* And hide the hitbar along with the window controls */ +/* ...and hide the hitbar along with the sidebar controls */ .dynmap .sidebar .hitbar, .dynmap .sidebar .panel > .pin {