7e5fa6cbf1
- Add HTMX CDN to layout - Replace client-side table rendering (displayRatings, displayCourses) with server-rendered EJS partials via hx-get - Add server-side course search with debounced hx-trigger - Lazy-load player history and course layouts via htmx.ajax() - Render rating chart via htmx:afterSwap with data attributes - Add partial routes: ratings-table, course-table, player-history, course-layouts
13 lines
473 B
Plaintext
13 lines
473 B
Plaintext
<% if (history && history.length > 0) { %>
|
|
<div class="chart-container" id="chart-<%= pdgaNumber %>"
|
|
data-history="<%= JSON.stringify(history) %>"
|
|
style="position: relative;">
|
|
<div class="loading-chart">Loading chart...</div>
|
|
</div>
|
|
<div class="chart-tooltip" id="tooltip-<%= pdgaNumber %>"></div>
|
|
<% } else { %>
|
|
<div class="chart-container">
|
|
<div class="loading-chart">No rating history available</div>
|
|
</div>
|
|
<% } %>
|