From 2528bc4b5db7bff0803585fc342fd68bd0c78426 Mon Sep 17 00:00:00 2001 From: Samuel Enocsson Date: Tue, 12 Aug 2025 11:38:55 +0200 Subject: [PATCH] Improve UI: remove refresh button and add PDGA profile links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove unnecessary refresh button that only returned cached data - Change button text from "Calculate Approx Rating" to "Predict Rating" - Make player names clickable links to their PDGA profile pages - Add link styling with hover effects 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- index.html | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 74cf38e..ffe2c88 100644 --- a/index.html +++ b/index.html @@ -29,19 +29,6 @@ font-size: 18px; color: #666; } - .refresh-btn { - background-color: #007bff; - color: white; - padding: 10px 20px; - border: none; - border-radius: 4px; - cursor: pointer; - font-size: 16px; - margin-bottom: 20px; - } - .refresh-btn:hover { - background-color: #0056b3; - } table { width: 100%; border-collapse: collapse; @@ -100,12 +87,18 @@ font-weight: bold; font-size: 14px; } + a { + color: #007bff; + text-decoration: none; + } + a:hover { + text-decoration: underline; + }

PDGA Player Ratings

-
Loading ratings...
@@ -159,7 +152,7 @@ tableHTML += ` ${index + 1} - ${player.name} + ${player.name} #${player.pdgaNumber} ${player.rating || 'N/A'} ${ratingChangeText} @@ -168,7 +161,7 @@ ${difference ? diffText : - ``} + ``} `; @@ -222,7 +215,7 @@ console.error('Error calculating predicted rating:', error); predictedCell.textContent = 'Error'; button.disabled = false; - button.textContent = 'Calculate Approx Rating'; + button.textContent = 'Predict Rating'; } }