1
0
mirror of https://gitlab.com/lolmam/Phigros-Android-History.git synced 2026-02-04 16:21:11 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
423b74c613 Fix popup 2025-12-08 17:22:04 +03:00
3144a68112 Added DISCLAIMER popup 2025-12-08 16:58:33 +03:00
4 changed files with 348 additions and 1 deletions

View File

@@ -518,3 +518,95 @@ a.back-to-top:hover {
.highlight { .highlight {
animation: pulse 1.5s ease-out; animation: pulse 1.5s ease-out;
} }
.license-popup {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(10px);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
padding: 20px;
}
.hidden {
display: none;
}
.license-popup-content {
background: #1a1a1a;
border: 1px solid #333;
border-radius: 12px;
padding: 25px 30px;
width: 100%;
max-width: 520px;
max-height: 85vh;
overflow: hidden;
color: #ddd;
box-shadow: 0 0 20px rgba(0,0,0,0.5);
animation: popupFade 0.22s ease-out;
}
.highlight {
animation: pulse 1.5s ease-out;
}
.license-popup-content h2 {
margin-bottom: 15px;
font-size: 1.7rem;
color: #fff;
text-align: center;
}
.license-text {
background: #111;
border: 1px solid #333;
border-radius: 8px;
padding: 12px 15px;
max-height: 300px;
overflow-y: auto;
margin-bottom: 22px;
font-size: 0.92rem;
line-height: 1.45;
color: #ccc;
-ms-overflow-style: none;
scrollbar-width: none;
}
.license-text::-webkit-scrollbar {
display: none;
}
.license-text p {
margin-bottom: 12px;
font-size: 14px;
}
.license-buttons {
display: flex;
justify-content: center;
gap: 14px;
}
@keyframes popupFade {
from { opacity: 0; transform: scale(0.94); }
to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.7); }
70% { box-shadow: 0 0 0 15px rgba(0, 150, 255, 0); }
100% { box-shadow: 0 0 0 0 rgba(0, 150, 255, 0); }
}
.body-locked {
overflow: hidden !important;
pointer-events: none;
}
.body-locked #license-popup {
pointer-events: auto;
}

View File

@@ -2313,9 +2313,94 @@
<img src="https://mirrors.creativecommons.org/presskit/icons/nc.svg" alt="NC" style="max-width: 1em; max-height:1em; margin-left: .2em;"> <img src="https://mirrors.creativecommons.org/presskit/icons/nc.svg" alt="NC" style="max-width: 1em; max-height:1em; margin-left: .2em;">
<img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="SA" style="max-width: 1em; max-height:1em; margin-left: .2em;"> <img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="SA" style="max-width: 1em; max-height:1em; margin-left: .2em;">
</footer> </footer>
<div id="license-popup" class="license-popup hidden">
<div class="license-popup-content highlight">
<h2>DISCLAIMER</h2>
<div class="license-text">
<p><strong>"Phigros"</strong> is a game developed and owned by Pigeon Games. This archive is a fan made project and is not affiliated with, endorsed by, or officially connected to Pigeon Games or the Phigros development team.</p>
<p>By choosing to download, install, or use any of the provided files, you accept full responsibility for any outcomes. Although care has been taken to ensure the files are clean and safe, we are not responsible for any problems, errors, or damage that might occur as a result of using them.</p>
<p>ALL APK files and other materials available here are provided for personal use only, such as backup, educational reference, or preservation. These files are offered as is, with no guarantees about how well they work or whether they will function properly on every device or system.</p>
<p>For license and attribution info check <a href="../../notice/">NOTICE</a>.</p>
</div>
<div class="license-buttons">
<button id="agree" class="btn">Agree</button>
<button id="close-popup" class="btn alt">Disagree</button>
</div>
</div>
</div>
</body> </body>
</html> </html>
<script>
document.addEventListener("DOMContentLoaded", () => {
const popup = document.getElementById("license-popup");
const agree = document.getElementById("agree");
const closeBtn = document.getElementById("close-popup");
function setCookie(name, value, days) {
const expires = new Date(Date.now() + days * 864e5).toUTCString();
document.cookie = `${name}=${value}; expires=${expires}; path=/; SameSite=Lax`;
}
function getCookie(name) {
return document.cookie
.split("; ")
.find(c => c.startsWith(name + "="))
?.split("=")[1];
}
let pendingURL = null;
const buttons = document.querySelectorAll(".btn, .btn.alt");
buttons.forEach(el => {
el.addEventListener("click", e => {
if (el.classList.contains("btn-unavailable")) return;
if (getCookie("licenseAccepted")) {
return;
}
e.preventDefault();
pendingURL = el.href;
popup.classList.remove("hidden");
document.body.classList.add("body-locked");
});
});
agree.addEventListener("click", () => {
setCookie("licenseAccepted", "true", 365);
popup.classList.add("hidden");
document.body.classList.remove("body-locked");
if (pendingURL) {
const a = document.createElement("a");
a.href = pendingURL;
a.download = "";
document.body.appendChild(a);
a.click();
a.remove();
pendingURL = null;
}
});
closeBtn.addEventListener("click", () => {
popup.classList.add("hidden");
document.body.classList.remove("body-locked");
pendingURL = null;
});
});
</script>
<script> <script>
function toggleSubmenu(e) { function toggleSubmenu(e) {
e.preventDefault(); e.preventDefault();

View File

@@ -1191,9 +1191,94 @@
<img src="https://mirrors.creativecommons.org/presskit/icons/nc.svg" alt="NC" style="max-width: 1em; max-height:1em; margin-left: .2em;"> <img src="https://mirrors.creativecommons.org/presskit/icons/nc.svg" alt="NC" style="max-width: 1em; max-height:1em; margin-left: .2em;">
<img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="SA" style="max-width: 1em; max-height:1em; margin-left: .2em;"> <img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="SA" style="max-width: 1em; max-height:1em; margin-left: .2em;">
</footer> </footer>
<div id="license-popup" class="license-popup hidden">
<div class="license-popup-content highlight">
<h2>DISCLAIMER</h2>
<div class="license-text">
<p><strong>"Phigros"</strong> is a game developed and owned by Pigeon Games. This archive is a fan made project and is not affiliated with, endorsed by, or officially connected to Pigeon Games or the Phigros development team.</p>
<p>By choosing to download, install, or use any of the provided files, you accept full responsibility for any outcomes. Although care has been taken to ensure the files are clean and safe, we are not responsible for any problems, errors, or damage that might occur as a result of using them.</p>
<p>ALL APK files and other materials available here are provided for personal use only, such as backup, educational reference, or preservation. These files are offered as is, with no guarantees about how well they work or whether they will function properly on every device or system.</p>
<p>For license and attribution info check <a href="../../notice/">NOTICE</a>.</p>
</div>
<div class="license-buttons">
<button id="agree" class="btn">Agree</button>
<button id="close-popup" class="btn alt">Disagree</button>
</div>
</div>
</div>
</body> </body>
</html> </html>
<script>
document.addEventListener("DOMContentLoaded", () => {
const popup = document.getElementById("license-popup");
const agree = document.getElementById("agree");
const closeBtn = document.getElementById("close-popup");
function setCookie(name, value, days) {
const expires = new Date(Date.now() + days * 864e5).toUTCString();
document.cookie = `${name}=${value}; expires=${expires}; path=/; SameSite=Lax`;
}
function getCookie(name) {
return document.cookie
.split("; ")
.find(c => c.startsWith(name + "="))
?.split("=")[1];
}
let pendingURL = null;
const buttons = document.querySelectorAll(".btn, .btn.alt");
buttons.forEach(el => {
el.addEventListener("click", e => {
if (el.classList.contains("btn-unavailable")) return;
if (getCookie("licenseAccepted")) {
return;
}
e.preventDefault();
pendingURL = el.href;
popup.classList.remove("hidden");
document.body.classList.add("body-locked");
});
});
agree.addEventListener("click", () => {
setCookie("licenseAccepted", "true", 365);
popup.classList.add("hidden");
document.body.classList.remove("body-locked");
if (pendingURL) {
const a = document.createElement("a");
a.href = pendingURL;
a.download = "";
document.body.appendChild(a);
a.click();
a.remove();
pendingURL = null;
}
});
closeBtn.addEventListener("click", () => {
popup.classList.add("hidden");
document.body.classList.remove("body-locked");
pendingURL = null;
});
});
</script>
<script> <script>
function toggleSubmenu(e) { function toggleSubmenu(e) {
e.preventDefault(); e.preventDefault();

View File

@@ -2862,9 +2862,94 @@
<img src="https://mirrors.creativecommons.org/presskit/icons/nc.svg" alt="NC" style="max-width: 1em; max-height:1em; margin-left: .2em;"> <img src="https://mirrors.creativecommons.org/presskit/icons/nc.svg" alt="NC" style="max-width: 1em; max-height:1em; margin-left: .2em;">
<img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="SA" style="max-width: 1em; max-height:1em; margin-left: .2em;"> <img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="SA" style="max-width: 1em; max-height:1em; margin-left: .2em;">
</footer> </footer>
<div id="license-popup" class="license-popup hidden">
<div class="license-popup-content highlight">
<h2>DISCLAIMER</h2>
<div class="license-text">
<p><strong>"Phigros"</strong> is a game developed and owned by Pigeon Games. This archive is a fan made project and is not affiliated with, endorsed by, or officially connected to Pigeon Games or the Phigros development team.</p>
<p>By choosing to download, install, or use any of the provided files, you accept full responsibility for any outcomes. Although care has been taken to ensure the files are clean and safe, we are not responsible for any problems, errors, or damage that might occur as a result of using them.</p>
<p>ALL APK files and other materials available here are provided for personal use only, such as backup, educational reference, or preservation. These files are offered as is, with no guarantees about how well they work or whether they will function properly on every device or system.</p>
<p>For license and attribution info check <a href="../../notice/">NOTICE</a>.</p>
</div>
<div class="license-buttons">
<button id="agree" class="btn">Agree</button>
<button id="close-popup" class="btn alt">Disagree</button>
</div>
</div>
</div>
</body> </body>
</html> </html>
<script>
document.addEventListener("DOMContentLoaded", () => {
const popup = document.getElementById("license-popup");
const agree = document.getElementById("agree");
const closeBtn = document.getElementById("close-popup");
function setCookie(name, value, days) {
const expires = new Date(Date.now() + days * 864e5).toUTCString();
document.cookie = `${name}=${value}; expires=${expires}; path=/; SameSite=Lax`;
}
function getCookie(name) {
return document.cookie
.split("; ")
.find(c => c.startsWith(name + "="))
?.split("=")[1];
}
let pendingURL = null;
const buttons = document.querySelectorAll(".btn, .btn.alt");
buttons.forEach(el => {
el.addEventListener("click", e => {
if (el.classList.contains("btn-unavailable")) return;
if (getCookie("licenseAccepted")) {
return;
}
e.preventDefault();
pendingURL = el.href;
popup.classList.remove("hidden");
document.body.classList.add("body-locked");
});
});
agree.addEventListener("click", () => {
setCookie("licenseAccepted", "true", 365);
popup.classList.add("hidden");
document.body.classList.remove("body-locked");
if (pendingURL) {
const a = document.createElement("a");
a.href = pendingURL;
a.download = "";
document.body.appendChild(a);
a.click();
a.remove();
pendingURL = null;
}
});
closeBtn.addEventListener("click", () => {
popup.classList.add("hidden");
document.body.classList.remove("body-locked");
pendingURL = null;
});
});
</script>
<script> <script>
function toggleSubmenu(e) { function toggleSubmenu(e) {
e.preventDefault(); e.preventDefault();