<script>
window.addEventListener("DOMContentLoaded", function () {
const imgs = document.querySelectorAll('img');
imgs.forEach( img => {
if ( img.getAttribute('width') != null ) {
img.style.width = `${img.width / window.devicePixelRatio}px`;
img.style.height = 'auto';
}
});
});
</script> |
<style>
.img.botbydot {
height: auto;
}
</style>
<script>
window.addEventListener("DOMContentLoaded", function () {
const elements = document.getElementsByClassName('dotbydot');
for(let i=0; i < elements.length; i++ ) {
const width = elements[i].getAttribute('width');
if ( width != null ) {
elements[i].style.width = `${parseFloat(width) / window.devicePixelRatio}px`;
}
}
});
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|