Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -156,18 +156,17 @@ HTML_CONTENT = """
|
|
156 |
text-decoration: underline;
|
157 |
}
|
158 |
.copy-btn, .embed-btn {
|
159 |
-
background-color: #
|
160 |
-
color: #
|
161 |
border: none;
|
162 |
-
padding:
|
163 |
border-radius: 5px;
|
164 |
cursor: pointer;
|
165 |
transition: all 0.3s ease;
|
166 |
margin-right: 5px;
|
167 |
-
font-weight: 600;
|
168 |
}
|
169 |
.copy-btn:hover, .embed-btn:hover {
|
170 |
-
background-color: #
|
171 |
}
|
172 |
.file-types {
|
173 |
margin-top: 2rem;
|
@@ -227,6 +226,7 @@ HTML_CONTENT = """
|
|
227 |
border: 1px solid #555;
|
228 |
color: #e0e0e0;
|
229 |
border-radius: 5px;
|
|
|
230 |
}
|
231 |
</style>
|
232 |
</head>
|
@@ -420,7 +420,7 @@ HTML_CONTENT = """
|
|
420 |
|
421 |
const copyBtn = document.createElement('button');
|
422 |
copyBtn.textContent = 'Copy Link';
|
423 |
-
copyBtn.className = '
|
424 |
copyBtn.onclick = () => {
|
425 |
navigator.clipboard.writeText(window.location.origin + url).then(() => {
|
426 |
alert('Link copied to clipboard!');
|
@@ -433,7 +433,7 @@ HTML_CONTENT = """
|
|
433 |
if (fileName.toLowerCase().endsWith('.mp4')) {
|
434 |
const embedBtn = document.createElement('button');
|
435 |
embedBtn.textContent = 'Embed Video for Discord';
|
436 |
-
embedBtn.className = '
|
437 |
embedBtn.onclick = () => {
|
438 |
showEmbedModal(url);
|
439 |
};
|
|
|
156 |
text-decoration: underline;
|
157 |
}
|
158 |
.copy-btn, .embed-btn {
|
159 |
+
background-color: #333;
|
160 |
+
color: #e0e0e0;
|
161 |
border: none;
|
162 |
+
padding: 5px 10px;
|
163 |
border-radius: 5px;
|
164 |
cursor: pointer;
|
165 |
transition: all 0.3s ease;
|
166 |
margin-right: 5px;
|
|
|
167 |
}
|
168 |
.copy-btn:hover, .embed-btn:hover {
|
169 |
+
background-color: #444;
|
170 |
}
|
171 |
.file-types {
|
172 |
margin-top: 2rem;
|
|
|
226 |
border: 1px solid #555;
|
227 |
color: #e0e0e0;
|
228 |
border-radius: 5px;
|
229 |
+
text-align: center;
|
230 |
}
|
231 |
</style>
|
232 |
</head>
|
|
|
420 |
|
421 |
const copyBtn = document.createElement('button');
|
422 |
copyBtn.textContent = 'Copy Link';
|
423 |
+
copyBtn.className = 'copy-btn';
|
424 |
copyBtn.onclick = () => {
|
425 |
navigator.clipboard.writeText(window.location.origin + url).then(() => {
|
426 |
alert('Link copied to clipboard!');
|
|
|
433 |
if (fileName.toLowerCase().endsWith('.mp4')) {
|
434 |
const embedBtn = document.createElement('button');
|
435 |
embedBtn.textContent = 'Embed Video for Discord';
|
436 |
+
embedBtn.className = 'embed-btn';
|
437 |
embedBtn.onclick = () => {
|
438 |
showEmbedModal(url);
|
439 |
};
|