Migrate fully away from Jquery Stage 1

This commit is contained in:
johnnyq
2026-08-14 17:11:01 -04:00
parent dc6b191eed
commit 2354dd1511
9 changed files with 257 additions and 167 deletions

View File

@@ -1,7 +1,11 @@
$(document).ready(function(){
document.addEventListener('DOMContentLoaded', function () {
// Add class to tables
$('div.prettyContent table').addClass('table');
document.querySelectorAll('div.prettyContent table').forEach(function (el) {
el.classList.add('table');
});
// Add img-fluid class to img tags
$('div.prettyContent img').addClass('img-fluid');
});
document.querySelectorAll('div.prettyContent img').forEach(function (el) {
el.classList.add('img-fluid');
});
});