Skip to content

Commit

Permalink
Merge branch 'pagefaultgames:main' into aj1
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhyperbit authored Aug 7, 2024
2 parents 6a58ef9 + e1de937 commit 564dbc7
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 6 deletions.
23 changes: 23 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,21 @@ html {

body {
margin: 0;
display:flex;
flex-direction: column;
align-items: center;
background: #484050;
}

#links {
width: 90%;
text-align: center;
position: fixed;
bottom: 0;
display: flex;
justify-content: space-around;
}

#app {
display: flex;
justify-content: center;
Expand Down Expand Up @@ -195,6 +207,17 @@ input:-internal-autofill-selected {
}
}

#tnc-links {
font-size: xx-small;
position: relative;
}

a {
color: #328cea;
margin-right: 4px;
margin-left: 4px;
}

/* Firefox old*/
@-moz-keyframes blink {
0% {
Expand Down
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
</style>
<link rel="stylesheet" type="text/css" href="./index.css" />
<link rel="manifest" href="./manifest.webmanifest">
<script type="text/javascript" src="https://app.termly.io/resource-blocker/c5dbfa2f-9723-4c0f-a84b-2895124e851f?autoBlock=on"></script>
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", function () {
Expand Down Expand Up @@ -113,9 +114,15 @@
</div>
</div>
</div>
<div id="tnc-links">
<a href="#" class="termly-display-preferences" style="display: none;" target="_blank" rel="noreferrer noopener">Consent Preferences</a>
<a href="https://app.termly.io/policy-viewer/policy.html?policyUUID=bc96778b-3f04-4d25-bafc-0deba53e8bec" target="_blank" rel="noreferrer noopener">Privacy Policy</a>
<a href="https://app.termly.io/policy-viewer/policy.html?policyUUID=8b523c05-7ec2-4646-9534-5bd61b386e2a" target="_blank" rel="noreferrer noopener">Cookie Disclaimer</a>
<a href="https://app.termly.io/policy-viewer/policy.html?policyUUID=b01e092a-9721-477f-8356-45576702ff9e" target="_blank" rel="noreferrer noopener">Terms & Conditions</a>
<a href="https://app.termly.io/policy-viewer/policy.html?policyUUID=3b5d1928-3f5b-4ee1-b8df-2d6c276b0bcc" target="_blank" rel="noreferrer noopener">Acceptable Use Policy</a>
</div>
<script type="module" src="./src/main.ts"></script>
<script src="./src/touch-controls.ts" type="module"></script>
<script src="./src/debug.js" type="module"></script>
</body>

</html>
24 changes: 19 additions & 5 deletions src/ui/menu-ui-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,31 @@ export default class MenuUiHandler extends MessageUiHandler {
handler: () => {
this.scene.gameData.tryExportData(GameDataType.SYSTEM);
return true;
}
},
{
label: "Consent Preferences",
handler: () => {
const consentLink = document.querySelector(".termly-display-preferences") as HTMLInputElement;
const clickEvent = new MouseEvent("click", {
view: window,
bubbles: true,
cancelable: true
});
consentLink.dispatchEvent(clickEvent);
consentLink.focus();
return true;
},
keepOpen: true
});
manageDataOptions.push({
},
{
label: i18next.t("menuUiHandler:cancel"),
handler: () => {
this.scene.ui.revertMode();
return true;
}
}
);
},
keepOpen: true
});

this.manageDataConfig = {
xOffset: 98,
Expand Down

0 comments on commit 564dbc7

Please sign in to comment.