Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -666,10 +666,11 @@ def ui():
|
|
| 666 |
)
|
| 667 |
|
| 668 |
# βββββββββββββββββββββββββββββββββββββββββ
|
| 669 |
-
# CLOSED SITE
|
| 670 |
# IMPORTANT:
|
| 671 |
# Remove Silence no longer calls process_audio.
|
| 672 |
-
# Clicking it only shows the notice
|
|
|
|
| 673 |
# βββββββββββββββββββββββββββββββββββββββββ
|
| 674 |
|
| 675 |
submit_btn.click(
|
|
@@ -715,8 +716,9 @@ def ui():
|
|
| 715 |
<a
|
| 716 |
class="closed-popup-manual"
|
| 717 |
href="https://audio.offexmail.online"
|
| 718 |
-
target="
|
| 719 |
rel="noopener noreferrer"
|
|
|
|
| 720 |
>
|
| 721 |
Continue to Website β
|
| 722 |
</a>
|
|
@@ -745,17 +747,11 @@ def ui():
|
|
| 745 |
setTimeout(() => {
|
| 746 |
clearInterval(interval);
|
| 747 |
|
| 748 |
-
|
|
|
|
| 749 |
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
// an embedded context. Navigate the top-level page,
|
| 753 |
-
// not the HF app frame.
|
| 754 |
-
window.top.location.replace(targetUrl);
|
| 755 |
-
} catch (e) {
|
| 756 |
-
// Fallback for browsers that block top navigation.
|
| 757 |
-
window.open(targetUrl, "_top");
|
| 758 |
-
}
|
| 759 |
}, 2000);
|
| 760 |
|
| 761 |
return [];
|
|
|
|
| 666 |
)
|
| 667 |
|
| 668 |
# βββββββββββββββββββββββββββββββββββββββββ
|
| 669 |
+
# CLOSED SITE NOTICE
|
| 670 |
# IMPORTANT:
|
| 671 |
# Remove Silence no longer calls process_audio.
|
| 672 |
+
# Clicking it only shows the notice. The Continue button opens
|
| 673 |
+
# the new website in a real browser tab using a direct user click.
|
| 674 |
# βββββββββββββββββββββββββββββββββββββββββ
|
| 675 |
|
| 676 |
submit_btn.click(
|
|
|
|
| 716 |
<a
|
| 717 |
class="closed-popup-manual"
|
| 718 |
href="https://audio.offexmail.online"
|
| 719 |
+
target="_blank"
|
| 720 |
rel="noopener noreferrer"
|
| 721 |
+
onclick="window.open('https://audio.offexmail.online', '_blank', 'noopener,noreferrer'); return false;"
|
| 722 |
>
|
| 723 |
Continue to Website β
|
| 724 |
</a>
|
|
|
|
| 747 |
setTimeout(() => {
|
| 748 |
clearInterval(interval);
|
| 749 |
|
| 750 |
+
countdown.textContent =
|
| 751 |
+
"Tap Continue to Website to open the new site.";
|
| 752 |
|
| 753 |
+
countdown.style.color = "#2563eb";
|
| 754 |
+
countdown.style.fontWeight = "800";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 755 |
}, 2000);
|
| 756 |
|
| 757 |
return [];
|