summaryrefslogtreecommitdiff
path: root/assets/js/lines.js
blob: f22057d7ada465c3ec17b1a3766cad65833eb1f5 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// @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")) {
      window.location.hash = evt.target.id;
      return;
    }
  };
  var root = document.querySelector("div.conversation");
  root.addEventListener("click", lineClickHandler);
});
// @license-end