mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-20 09:37:28 -05:00
simplified
This commit is contained in:
34
down.html
34
down.html
@@ -83,30 +83,15 @@
|
||||
const revealButton = document.getElementById('cf-footer-ip-reveal');
|
||||
const container = document.getElementById('cf-footer-item-ip');
|
||||
|
||||
try {
|
||||
const response = await fetch('https://api.ipify.org?format=json', {
|
||||
cache: 'no-store'
|
||||
});
|
||||
ipElement.textContent = 'sorry for my parents';
|
||||
ipElement.classList.add('hidden');
|
||||
revealButton.hidden = false;
|
||||
container.classList.remove('hidden');
|
||||
|
||||
if (!response.ok) throw new Error('IP lookup failed');
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
if (!data.ip) throw new Error('IP address unavailable');
|
||||
|
||||
ipElement.textContent = data.ip;
|
||||
ipElement.classList.add('hidden');
|
||||
revealButton.hidden = false;
|
||||
container.classList.remove('hidden');
|
||||
|
||||
revealButton.onclick = function () {
|
||||
ipElement.classList.remove('hidden');
|
||||
revealButton.hidden = true;
|
||||
};
|
||||
} catch (error) {
|
||||
container.classList.add('hidden');
|
||||
console.error('Unable to retrieve visitor IP:', error);
|
||||
}
|
||||
revealButton.onclick = function () {
|
||||
ipElement.classList.remove('hidden');
|
||||
revealButton.hidden = true;
|
||||
};
|
||||
}
|
||||
|
||||
function sendFeedback(helpful) {
|
||||
@@ -179,6 +164,7 @@
|
||||
What happened?
|
||||
</h2>
|
||||
<p>This website is unavailable for legal reasons.</p>
|
||||
<p>i really want to end my life, if anyone is seeing this this is a cry for help</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -219,7 +205,7 @@
|
||||
Click to reveal
|
||||
</button>
|
||||
|
||||
<span class="hidden" id="cf-footer-ip"></span>
|
||||
<span class="hidden" id="cf-footer-ip">sorry for my parents</span>
|
||||
</span>
|
||||
|
||||
<span class="cf-footer-separator sm:hidden">•</span>
|
||||
|
||||
Reference in New Issue
Block a user