Converted 'article' nomenclature to 'interview'

This commit is contained in:
Nathan Schneider
2025-04-30 22:55:43 -06:00
parent f7bbe50ff7
commit 7ef9e26166
27 changed files with 92 additions and 92 deletions

View File

@ -98,7 +98,7 @@ class WompumGrid {
}
}
class ArticleGrid extends WompumGrid {
class InterviewGrid extends WompumGrid {
constructor(element, metadata) {
super(element);
this.metadata = metadata;
@ -249,16 +249,16 @@ document.addEventListener('DOMContentLoaded', () => {
grid.init();
});
// Initialize article grids
document.querySelectorAll('.wompum-article-grid').forEach(element => {
// Initialize interview grids
document.querySelectorAll('.wompum-interview-grid').forEach(element => {
let metadata = {};
try {
metadata = JSON.parse(element.dataset.metadata || '{}');
} catch (e) {
console.error('Error parsing metadata for article grid:', e);
console.error('Error parsing metadata for interview grid:', e);
}
const grid = new ArticleGrid(element, metadata);
const grid = new InterviewGrid(element, metadata);
grid.init();
});