mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 08:51:09 -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.
18 lines
436 B
JavaScript
18 lines
436 B
JavaScript
$(document).ready(function () {
|
|
document.querySelectorAll(".data-row").forEach((rowElement) => {
|
|
let sqlDetailUrl = rowElement.dataset.sqlDetailUrl;
|
|
rowElement.addEventListener("click", (e) => {
|
|
switch (e.button) {
|
|
case 0:
|
|
window.location = sqlDetailUrl;
|
|
break;
|
|
case 1:
|
|
window.open(sqlDetailUrl);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
});
|
|
});
|
|
});
|