26 lines
619 B
JavaScript
26 lines
619 B
JavaScript
// ThreadR UI Enhancement JavaScript
|
|
|
|
function initRelativeTimestamps() {
|
|
// This function can be used to show relative timestamps
|
|
// For now, it's just a placeholder
|
|
}
|
|
|
|
function initApp() {
|
|
initRelativeTimestamps();
|
|
if (typeof initKeyboardShortcuts === 'function') {
|
|
initKeyboardShortcuts();
|
|
}
|
|
if (typeof initFormHandling === 'function') {
|
|
initFormHandling();
|
|
}
|
|
if (typeof initLikeButtons === 'function') {
|
|
initLikeButtons();
|
|
}
|
|
}
|
|
|
|
if (document.readyState === 'loading') {
|
|
document.addEventListener('DOMContentLoaded', initApp);
|
|
} else {
|
|
initApp();
|
|
}
|