We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f209ca commit 5f51206Copy full SHA for 5f51206
2-ui/1-document/11-coordinates/head.html
@@ -1,7 +1,11 @@
1
<script>
2
document.addEventListener('DOMContentLoaded', function() {
3
4
- document.getElementById('coords-show-mark').onclick = function() {
+let elem = document.getElementById('coords-show-mark');
5
+
6
+// no elem in ebook mode
7
+if (elem) {
8
+ elem.onclick = function() {
9
let elem = document.getElementById("coords-show-mark");
10
11
function createMessageUnder(elem, text) {
@@ -21,6 +25,7 @@
21
25
document.body.append(message);
22
26
setTimeout(() => message.remove(), 5000);
23
27
}
28
+}
24
29
30
});
31
0 commit comments