backup
Browse files
app.py
CHANGED
@@ -140,21 +140,6 @@ def main():
|
|
140 |
white-space: pre-wrap;
|
141 |
font-family: monospace;
|
142 |
}
|
143 |
-
|
144 |
-
/* Стиль для кнопки копирования */
|
145 |
-
.copy-btn {
|
146 |
-
background-color: #4CAF50;
|
147 |
-
color: white;
|
148 |
-
padding: 8px 16px;
|
149 |
-
border: none;
|
150 |
-
border-radius: 4px;
|
151 |
-
cursor: pointer;
|
152 |
-
font-size: 14px;
|
153 |
-
margin-bottom: 10px;
|
154 |
-
}
|
155 |
-
.copy-btn:hover {
|
156 |
-
background-color: #45a049;
|
157 |
-
}
|
158 |
</style>
|
159 |
""", unsafe_allow_html=True)
|
160 |
|
@@ -224,21 +209,6 @@ def main():
|
|
224 |
|
225 |
st.markdown("### Результат проверки:")
|
226 |
st.markdown(html_content, unsafe_allow_html=True)
|
227 |
-
|
228 |
-
st.markdown("""
|
229 |
-
<button onclick="copyToClipboard()" class="copy-btn">📋 Скопировать текст</button>
|
230 |
-
<script>
|
231 |
-
function copyToClipboard() {
|
232 |
-
const range = document.createRange();
|
233 |
-
const div = document.getElementById('textToCopy');
|
234 |
-
range.selectNode(div);
|
235 |
-
window.getSelection().removeAllRanges();
|
236 |
-
window.getSelection().addRange(range);
|
237 |
-
document.execCommand('copy');
|
238 |
-
window.getSelection().removeAllRanges();
|
239 |
-
}
|
240 |
-
</script>
|
241 |
-
""", unsafe_allow_html=True)
|
242 |
|
243 |
st.markdown("### Найденные ошибки:")
|
244 |
for i, error in enumerate(errors, 1):
|
|
|
140 |
white-space: pre-wrap;
|
141 |
font-family: monospace;
|
142 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
</style>
|
144 |
""", unsafe_allow_html=True)
|
145 |
|
|
|
209 |
|
210 |
st.markdown("### Результат проверки:")
|
211 |
st.markdown(html_content, unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
|
213 |
st.markdown("### Найденные ошибки:")
|
214 |
for i, error in enumerate(errors, 1):
|