Files
thrillwiki_django_no_react/staticfiles/silk/js/pages/profile_detail.js
pacnpal bead0654df Add JavaScript functionality for dynamic UI updates and filtering
- 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.
2025-08-20 11:33:23 -04:00

16 lines
468 B
JavaScript

function createViz() {
var profileDotURL = JSON.parse(document.getElementById("profileDotURL").textContent);
$.get(
profileDotURL,
{ cutoff: $('#percent').val() },
function (response) {
var svg = '#graph-div';
$(svg).html(Viz(response.dot));
$(svg + ' svg').attr('width', 960).attr('height', 600);
svgPanZoom(svg + ' svg', { controlIconsEnabled: true });
}
);
}
createViz();