Starchik1 commited on
Commit
a6adc49
·
verified ·
1 Parent(s): dbee6ba

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -125,6 +125,10 @@ def proxy(path):
125
  # Update the link's href attribute and add target="_blank" to open in new tab
126
  link['href'] = google_search_url
127
  link['target'] = '_blank'
 
 
 
 
128
 
129
  # Update image sources to use our proxy
130
  for img in soup.find_all('img'):
 
125
  # Update the link's href attribute and add target="_blank" to open in new tab
126
  link['href'] = google_search_url
127
  link['target'] = '_blank'
128
+ # Add styles to make part numbers more visible
129
+ link['style'] = 'color: #4a90e2; font-weight: bold; text-decoration: none; padding: 2px 6px; background-color: rgba(74, 144, 226, 0.1); border-radius: 3px; transition: all 0.2s ease; display: inline-block;'
130
+ link['onmouseover'] = 'this.style.backgroundColor="rgba(74, 144, 226, 0.2)"'
131
+ link['onmouseout'] = 'this.style.backgroundColor="rgba(74, 144, 226, 0.1)"'
132
 
133
  # Update image sources to use our proxy
134
  for img in soup.find_all('img'):