MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 429: Line 429:
const c = -Math.sin(Math.atan(10/h));
const c = -Math.sin(Math.atan(10/h));
const d = Math.cos(Math.atan(10/h));
const d = Math.cos(Math.atan(10/h));
$('#show-article').css('transform', `matrix(${a}, ${b}, ${c}, ${d}, 0, 0);`);
// `transform: matrix(1, -0.02, 0.02, 1, 0, 0);`
// `transform: matrix(1, -0.02, 0.02, 1, 0, 0);`
Object.assign(showArticle.style, {
// Object.assign(showArticle.style, {
transform: `matrix(${a}, ${b}, ${c}, ${d}, 0, 0);`,
// transform: `matrix(${a}, ${b}, ${c}, ${d}, 0, 0);`,
})
// })
// showArticle.style.transform = `matrix(${a}, ${b}, ${c}, ${d}, 0, 0);`;
// showArticle.style.transform = `matrix(${a}, ${b}, ${c}, ${d}, 0, 0);`;
    console.log('', h);
    console.log('', h);

Navigation menu