aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap/make-named.pl36
-rw-r--r--web/nms.gathering.org/index.html4
-rw-r--r--web/nms.gathering.org/js/nms.js38
3 files changed, 74 insertions, 4 deletions
diff --git a/bootstrap/make-named.pl b/bootstrap/make-named.pl
index 4812d81..2681506 100755
--- a/bootstrap/make-named.pl
+++ b/bootstrap/make-named.pl
@@ -56,6 +56,42 @@ options {
listen-on-v6 { any; };
};
+logging {
+ category "default" { "debug"; };
+ category "general" { "debug"; };
+ category "database" { "debug"; };
+ category "security" { "debug"; "stats"; };
+ category "config" { "debug"; "stats"; };
+ category "resolver" { "debug"; "stats"; };
+ category "xfer-in" { "debug"; "stats"; };
+ category "xfer-out" { "debug"; "stats"; };
+ category "notify" { "debug"; "stats"; };
+ category "client" { "debug"; };
+ category "unmatched" { "debug"; };
+ category "network" { "debug"; };
+ category "update" { "debug"; };
+ category "queries" { "stats"; };
+ category "dispatch" { "debug"; };
+ category "dnssec" { "debug"; };
+ category "lame-servers" { "debug"; };
+
+ channel "debug" {
+ file "/etc/bind/nameddbg" versions 2 size 50m;
+ print-time yes;
+ print-category yes;
+ print-severity yes;
+ severity debug 9;
+ };
+
+ channel "stats" {
+ file "/etc/bind/namedstats" versions 2 size 50m;
+ print-time yes;
+ print-category yes;
+ print-severity yes;
+ severity debug 3;
+ };
+};
+
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret $nms::config::ddns_key;
diff --git a/web/nms.gathering.org/index.html b/web/nms.gathering.org/index.html
index db1acfa..02ae93c 100644
--- a/web/nms.gathering.org/index.html
+++ b/web/nms.gathering.org/index.html
@@ -125,6 +125,10 @@
</tr>
<tr>
<td>?</td>
+ <td>Toggle this help window</td>
+ </tr>
+ <tr>
+ <td>-</td>
<td>Toggle navigation bar</td>
</tr>
<tr>
diff --git a/web/nms.gathering.org/js/nms.js b/web/nms.gathering.org/js/nms.js
index bf13c57..fd445d1 100644
--- a/web/nms.gathering.org/js/nms.js
+++ b/web/nms.gathering.org/js/nms.js
@@ -29,7 +29,7 @@ var nms = {
'menuShowing'
],
keyBindings:{
- '?':toggleMenu,
+ '-':toggleMenu,
'n':toggleNightMode,
'1':setMapModeFromN,
'2':setMapModeFromN,
@@ -43,7 +43,9 @@ var nms = {
'k':moveTimeFromKey,
'l':moveTimeFromKey,
'p':moveTimeFromKey,
- 'r':moveTimeFromKey
+ 'r':moveTimeFromKey,
+ 'Escape':hideWindow,
+ '?':toggleHelp
},
/*
* Playback controllers and variables
@@ -509,6 +511,13 @@ function toggleMenu()
setMenu();
saveSettings();
}
+function hideWindow(e,key)
+{
+ nmsInfoBox.hide();
+}
+function toggleHelp(e,key) {
+ toggleLayer('aboutKeybindings');
+}
function setMapModeFromN(e,key)
{
@@ -569,7 +578,26 @@ function keyPressed(e)
if (e.target.nodeName == "INPUT") {
return false;
}
- var key = String.fromCharCode(e.keyCode);
+ if(e.key) {
+ var key = e.key;
+ } else {
+ var key = e.keyCode;
+ switch(key) {
+ case 187:
+ key = '?';
+ break;
+ case 189:
+ key = '-';
+ break;
+ case 27:
+ key = 'Escape';
+ break;
+ default:
+ key = String.fromCharCode(key);
+ key = key.toLowerCase();
+ break;
+ }
+ }
if (nms.keyBindings[key])
return nms.keyBindings[key](e,key);
if (nms.keyBindings['default'])
@@ -580,7 +608,9 @@ function keyPressed(e)
function setupKeyhandler()
{
var b = document.getElementsByTagName("body")[0];
- b.onkeypress = function(e){keyPressed(e);};
+ $( "body" ).keyup(function(e) {
+ keyPressed(e);
+ });
}