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(''); diff --git a/web/override_example.css b/web/override_example.css index a353b45d..ef193afe 100644 --- a/web/override_example.css +++ b/web/override_example.css @@ -1,17 +1,19 @@ /******************* * 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. + * 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 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. */ -/* IE : Use the alternate compass image */ +/* Use the alternate compass image */ .compass { top: 20px; @@ -22,3 +24,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 sidebar controls */ + +.dynmap .sidebar .hitbar, +.dynmap .sidebar .panel > .pin { + display: none; +} \ No newline at end of file