Skip to content

Commit 870a1e3

Browse files
Implement important notice for Cloudflare errors
Added an important notice element regarding Cloudflare errors.
1 parent cf82e36 commit 870a1e3

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

webapps/gofile.io/testgen.html

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,68 @@
1313
<summary>Gofile.io Cloudflare Worker Index</summary>
1414
<p>This web app indexes all files and folders from Gofile.io using Cloudflare Workers. It supports multi-threaded downloading, pause/resume features, improved stability, and increased speed. It's perfect for fast and reliable file management online. Use beta theme for Private/shared links </p>
1515
</details>
16+
17+
18+
<!-- Important Notice Element -->
19+
<div id="important-notice" style="
20+
position: fixed;
21+
top: 0;
22+
left: 0;
23+
width: 100%;
24+
height: 100%;
25+
background: rgba(0,0,0,0.6);
26+
display: flex;
27+
align-items: center;
28+
justify-content: center;
29+
z-index: 9999;
30+
font-family: Arial, sans-serif;
31+
">
32+
<div style="
33+
background: #fff;
34+
border: 2px solid red;
35+
padding: 20px;
36+
max-width: 600px;
37+
width: 90%;
38+
text-align: center;
39+
box-shadow: 0 0 15px rgba(255,0,0,0.5);
40+
">
41+
<h2 style="color: red; margin-top: 0;">⚠️ Important Notice</h2>
42+
<p style="color: red; font-size: 15px; line-height: 1.5;">
43+
Update: Cloudflare is now returning an error, <b>"Error 1101"</b>, for some users.
44+
Already-deployed apps may still work, but new deployments or edits during deployment
45+
may show the same error. This happens because Cloudflare is blocking requests or
46+
deployments are stuck.
47+
<br><br>
48+
If this occurs, delete the app completely and create a new one.
49+
The error may repeat. I tried to fix this, but Cloudflare is still detecting it.
50+
Currently, only preview works.
51+
</p>
52+
53+
<button onclick="acknowledgeNotice()" style="
54+
margin-top: 15px;
55+
padding: 10px 20px;
56+
background: red;
57+
color: white;
58+
border: none;
59+
cursor: pointer;
60+
font-size: 14px;
61+
">
62+
OK, I Understand
63+
</button>
64+
</div>
65+
</div>
66+
67+
<script>
68+
// Hide notice if already acknowledged
69+
if (localStorage.getItem("importantNoticeAcknowledged")) {
70+
document.getElementById("important-notice").style.display = "none";
71+
}
72+
73+
function acknowledgeNotice() {
74+
localStorage.setItem("importantNoticeAcknowledged", "true");
75+
document.getElementById("important-notice").style.display = "none";
76+
}
77+
</script>
1678
<style>
1779
:root {
1880
--primary: #00ffd5;

0 commit comments

Comments
 (0)