mirror of
https://github.com/itflow-org/itflow
synced 2026-09-21 14:11:17 +00:00
Migrate fully away from Jquery Stage 1
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user