MediaWiki:Mobile.js: Difference between revisions

add code for side-by-side view of the TLP
No edit summary
(add code for side-by-side view of the TLP)
Line 55: Line 55:
function closeExportOptions() {
function closeExportOptions() {
   document.getElementById("export-options").style.display = "none";
   document.getElementById("export-options").style.display = "none";
}
//side-by-side view of the Tractatus
function hide_show_table(col_name)
{
var checkbox_val=document.getElementById(col_name).value;
if(checkbox_val=="hide")
{
  var all_col=document.getElementsByClassName(col_name);
  for(var i=0;i<all_col.length;i++)
  {
  all_col[i].style.display="none";
  }
  document.getElementById(col_name+"_head").style.display="none";
  document.getElementById(col_name).value="show";
}
else
{
  var all_col=document.getElementsByClassName(col_name);
  for(var i=0;i<all_col.length;i++)
  {
  all_col[i].style.display="table-cell";
  }
  document.getElementById(col_name+"_head").style.display="table-cell";
  document.getElementById(col_name).value="hide";
}
}
}