blob: 6b11c6f29b9e598ce7c966240ed308cc3034c7b6 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0-or-later
window.addEventListener('DOMContentLoaded', function () {
let lineClickHandler = (evt) => {
if ((evt.target.classList.contains("line")) &&
(evt.x < evt.target.offsetLeft)) {
window.location.hash = evt.target.id;
return;
}
};
var root = document.querySelector("div.conversation");
root.addEventListener("click", lineClickHandler);
});
// @license-end
|