MediaWiki:Common.js: Difference between revisions

no edit summary
(Replacing OWA tracking code with Matomo tracking code)
No edit summary
Line 21: Line 21:
}
}


/* ======================================= All texts  ======================================= */
function toggleListTable() {
function toggleListTable() {
   var x = document.getElementById("all-texts-table");
   var x = document.getElementById("all-texts-table");
Line 34: Line 35:
       y.style.display = "none";
       y.style.display = "none";
     }
     }
  /*var i;
  for (i = 0; i < y.length; i++) {
    if (y[i].style.display === "none") {
      y[i].style.display = "inline";
    } else {
      y[i].style.display = "none";
    }
  }*/
}
}


//script per customizzare il testo in Special:Search
/* ======================================= customising text in Special:Search ======================================= */
$(function searchText() {
$(function searchText() {
if (window.location.href.indexOf("search") != -1 || window.location.href.indexOf("Special:Search") != -1) {
if (window.location.href.indexOf("search") != -1 || window.location.href.indexOf("Special:Search") != -1) {
Line 56: Line 49:
}());
}());


//template:Top
/* ======================================= template:Top ======================================= */
function closeTooltip() {
function closeTooltip() {
   document.getElementById("custom-tooltip").style.visibility = "hidden";
   document.getElementById("custom-tooltip").style.visibility = "hidden";
}
}


//template:Print Button
/* ======================================= template:Print Button ======================================= */
function openExportOptions() {
function openExportOptions() {
   document.getElementById("export-options").style.display = "block";
   document.getElementById("export-options").style.display = "block";
}
}


/* ======================================= template:Menu bar ======================================= */
function toggleExportOptions() {
function toggleExportOptions() {
var x = document.getElementById("export-options");
var x = document.getElementById("export-options");
Line 79: Line 73:
}
}


//side-by-side view of the Tractatus
/* ======================================= Tractatus Logico-Philosophicus (multilingual side-by-side view) ======================================= */
function hide_show_table(col_name)
function hide_show_table(col_name)
{
{
Line 106: Line 100:
}
}


/* ======================================= 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" */