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.
2 parents 3b97fa8 + 3724c4e commit 9094c49Copy full SHA for 9094c49
2-ui/1-document/11-coordinates/head.html
@@ -1,8 +1,9 @@
1
<script>
2
document.addEventListener('DOMContentLoaded', function() {
3
4
- document.getElementById('coords-show-mark').onclick = function() {
5
- let elem = document.getElementById("coords-show-mark");
+ let elem = document.getElementById('coords-show-mark');
+
6
+ elem && elem.onclick = function() {
7
8
function createMessageUnder(elem, text) {
9
let coords = elem.getBoundingClientRect();
0 commit comments