MediaWiki:Mobile app.js

function scrollAnchor(o){var t=$("#"+o).offset.top-15;window.scrollTo(0,t),console.log(t)}$(document).ready(function{1!==$("body").find("> .modal-table").length&&$("table").each(function(o,t){if(!$(this).hasClass("msgbox")&&!$(this).hasClass("modal-table")&&$(this).outerWidth>window.innerWidth-32){$(this).hide;var n;n="infobox-rows"===$(t).attr("class")?"Info Box":"Table",$(t).before(' View '+n+" ")}else $(this).show}),$("button.modal-button").click(function{var o=$(" "),t=this.nextSibling.cloneNode(!0);$(t).appendTo(o),t.classList.add("modal-table"),$(t).attr("style",""),console.log(o.html)})});