5,960
edits
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
} | } | ||
/* ======================================= All texts ======================================= */ | |||
function toggleListTable() { | function toggleListTable() { | ||
var x = document.getElementById("all-texts-table"); | var x = document.getElementById("all-texts-table"); | ||
Line 38: | Line 39: | ||
} | } | ||
/ | /* ======================================= template:Print Button ======================================= */ | ||
if (document.getElementById('print-button')) { | |||
document.getElementById('print-button').addEventListener('click', customPrint); | |||
} | |||
function customPrint() { | |||
console.log("you clicked the id print-button"); | |||
window.print(); | |||
} | |||
/* ======================================= template:Menu bar ======================================= */ | |||
function openExportOptions() { | function openExportOptions() { | ||
document.getElementById("export-options").style.display = "block"; | document.getElementById("export-options").style.display = "block"; | ||
Line 56: | Line 67: | ||
} | } | ||
/ | /* ======================================= Tractatus Logico-Philosophicus (multilingual side-by-side view) ======================================= */ | ||
function hide_show_table(col_name) | function hide_show_table(col_name) | ||
{ | { | ||
Line 83: | Line 94: | ||
} | } | ||
/ | /* ======================================= template:Menu bar ======================================= */ | ||
function toggleDownloadLinks() { | function toggleDownloadLinks() { | ||
var x = document.getElementById("navbar-download-links"); | var x = document.getElementById("navbar-download-links"); | ||
Line 110: | Line 121: | ||
} | } | ||
/* ======================================= Matomo tracking code ======================================= */ | |||
var _paq = window._paq = window._paq || []; | var _paq = window._paq = window._paq || []; | ||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ | /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |