4 ms·
Came to say the same thing about 2020 date! The source of the document is very different to anything else FB produce. They are handling the layout with this js
by christoph 5y ago
Came to say the same thing about 2020 date! The source of the document is very different to anything else FB produce. They are handling the layout with this js code for instance.
if (window.innerHeight < 80 || window.innerWidth < 80) {
// Blank if window is too small
document.body.style.display = 'none';
};
if (window.innerWidth < 200 || window.innerHeight < 150) {
document.getElementById('back-link').style.display = 'none';
document.getElementById('help-link').style.display = 'none';
};
if (window.innerWidth < 200) {
document.getElementById('sorry').style.fontSize = '16px';
};
if (window.innerWidth < 150) {
document.getElementById('promise').style.display = 'none';
};
if (window.innerHeight < 150) {
document.getElementById('sorry').style.margin = '4px 0 0 0';
document.getElementById('sorry').style.fontSize = '14px';
document.getElementById('promise').style.display = 'none';
};
- dotty- 5y agoWhen a backend engineer gets asked to do some frontend work...