MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 422: Line 422:
}
}
function foo(which_foo) {
function foo() {
console.log(which_foo);
const showArticle = document.querySelector('#show-article');
    console.log($('#show-article').clientHeight);
    const h = showArticle.clientHeight;
    console.log($('#show-article-before').clientHeight);
const a = Math.cos(Math.atan(10/h));
    console.log(document.querySelector('#show-article').clientHeight);
const b = Math.sin(Math.atan(10/h));
    // New End of openModal
const c = -Math.sin(Math.atan(10/h));
const d = Math.cos(Math.atan(10/h));
// `transform: matrix(1, -0.02, 0.02, 1, 0, 0);`
showArticle.style.transform = `matrix(${a}, ${b}, ${c}, ${d}, 0, 0);`;
    console.log('', h);
}
}


Navigation menu