Update main.py
Browse files
main.py
CHANGED
@@ -141,7 +141,7 @@ def proxy(path):
|
|
141 |
button['target'] = '_blank'
|
142 |
button['class'] = 'open-image-btn'
|
143 |
button.string = 'Открыть оригинал изображения'
|
144 |
-
button['style'] = 'display:
|
145 |
img.insert_after(button)
|
146 |
|
147 |
# Add modal container for fullscreen image view
|
@@ -174,14 +174,6 @@ def proxy(path):
|
|
174 |
html_tag.append(body_tag)
|
175 |
soup.append(html_tag)
|
176 |
|
177 |
-
# Remove footer links and separator
|
178 |
-
for element in soup.find_all(['a', 'text'], string=re.compile(r'^\s*\|\s*$')):
|
179 |
-
element.decompose()
|
180 |
-
|
181 |
-
for element in soup.find_all('a', href=re.compile(r'^/etka/')):
|
182 |
-
if not element.string or element.string.strip() == '':
|
183 |
-
element.decompose()
|
184 |
-
|
185 |
# Add JavaScript for modal functionality
|
186 |
script_tag = soup.new_tag('script')
|
187 |
script_tag.string = '''
|
|
|
141 |
button['target'] = '_blank'
|
142 |
button['class'] = 'open-image-btn'
|
143 |
button.string = 'Открыть оригинал изображения'
|
144 |
+
button['style'] = 'display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 10px; padding: 8px 15px; background-color: #4a90e2; border: none; border-radius: 4px; text-decoration: none; color: white; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center; line-height: 1.2;'
|
145 |
img.insert_after(button)
|
146 |
|
147 |
# Add modal container for fullscreen image view
|
|
|
174 |
html_tag.append(body_tag)
|
175 |
soup.append(html_tag)
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
# Add JavaScript for modal functionality
|
178 |
script_tag = soup.new_tag('script')
|
179 |
script_tag.string = '''
|