Skip to content

Commit 6f1b497

Browse files
committed
upgrade online map application
1 parent 7854258 commit 6f1b497

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

hugo-gh/static/map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<base target="_top">
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<title>Mapping DNS Location Entries</title>
7+
<title>sig0namectl: secure dynamic DNS resource location mapping</title>
88
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin=""/>
99
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
1010
<script src="https://cdn.jsdelivr.net/npm/dohjs@latest/dist/doh.min.js"></script>

hugo-gh/static/map.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class LocRecords {
131131
this.query_LOC();
132132

133133
// set timer to re-query LOC records
134-
setInterval(function() { this.query_LOC() }.bind(this), 10000);
134+
setInterval(function() { this.query_LOC() }.bind(this), 1000);
135135
}
136136

137137
/// construct a timeable function
@@ -192,6 +192,9 @@ class LocRecords {
192192
let popup_text = this.create_popup_text(latitude, longitude);
193193
marker.bindPopup(popup_text);
194194

195+
// set tooltip
196+
marker.bindTooltip(this.domain).openTooltip();
197+
195198
// add to entries
196199
this.entries.push(marker);
197200
}

0 commit comments

Comments
 (0)