mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 08:11:08 -05:00
- Implemented font color configuration based on numeric values in various sections. - Added resizing functionality for input fields to accommodate text length. - Initialized filters on document ready for improved user interaction. - Created visualization for profile data using fetched dot format. - Enhanced SQL detail page with click event handling for row navigation. - Ensured consistent highlighting for code blocks across multiple pages.
13 lines
495 B
JavaScript
13 lines
495 B
JavaScript
(function () {
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
Array.from(document.querySelectorAll('script[data-allauth-onload]')).forEach(scriptElt => {
|
|
const funcRef = scriptElt.dataset.allauthOnload
|
|
if (typeof funcRef === 'string' && funcRef.startsWith('allauth.')) {
|
|
const funcArg = JSON.parse(scriptElt.textContent)
|
|
const func = funcRef.split('.').reduce((acc, part) => acc && acc[part], window)
|
|
func(funcArg)
|
|
}
|
|
})
|
|
})
|
|
})()
|