Add kumos.
This commit is contained in:
parent
8a2c269d26
commit
964bd2e808
18 changed files with 427 additions and 23 deletions
|
|
@ -113,7 +113,8 @@ module.exports = {
|
|||
sfxCheckboxAlt: "Sound effects",
|
||||
videoArtworkAlt: "Video artwork",
|
||||
songSelectAlt: "Song selector",
|
||||
guestbookWarning: "Load guestbook widget? You're subject to <a href='https://iframe.chat/tos.html'>Chattable's terms of service</a>."
|
||||
guestbookWarning: "Load guestbook widget? You're subject to <a href='https://iframe.chat/tos.html'>Chattable's terms of service</a>.",
|
||||
dontAskAgain: "Don't ask again"
|
||||
},
|
||||
pt: {
|
||||
language: "português",
|
||||
|
|
@ -202,6 +203,7 @@ module.exports = {
|
|||
sfxCheckboxAlt: "Efeitos sonoros",
|
||||
videoArtworkAlt: "Capa do vídeo",
|
||||
songSelectAlt: "Seletor de música",
|
||||
guestbookWarning: "Carregar o guestbook? Você estará sujeito aos <a href='https://iframe.chat/tos.html'>termos de uso do Chattable</a>."
|
||||
guestbookWarning: "Carregar o guestbook? Você estará sujeito aos <a href='https://iframe.chat/tos.html'>termos de uso do Chattable</a>.",
|
||||
dontAskAgain: "Não pergunte novamente"
|
||||
}
|
||||
};
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<script src="https://iframe.chat/scripts/main.min.js"></script>
|
||||
<iframe src="{{ ('/' ~ langKey ~ '/guestbook') | url }}" id="chattable"></iframe>
|
||||
<iframe src="{{ ('/' ~ langKey ~ '/iframe/guestbook') | url }}" id="chattable"></iframe>
|
||||
<script>
|
||||
chattable.initialize({
|
||||
theme: "moderno"
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
---
|
||||
pagination:
|
||||
data: i18n
|
||||
size: 1
|
||||
alias: langKey
|
||||
permalink: "/{{ langKey }}/guestbook/index.html"
|
||||
layout: iframe.njk
|
||||
title: Adrian Victor:Guestbook
|
||||
headerLink: social
|
||||
---
|
||||
<main>
|
||||
<p>{{ i18n[langKey].guestbookWarning | safe }}</p>
|
||||
<button id="guestbookConfirmButton" onClick="window.location.href = 'https://iframe.chat/embed?chat=17048300'" style="margin-top: auto;">Load</button>
|
||||
</main>
|
||||
28
site/iframe/guestbook.njk
Normal file
28
site/iframe/guestbook.njk
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
pagination:
|
||||
data: i18n
|
||||
size: 1
|
||||
alias: langKey
|
||||
permalink: "/{{ langKey }}/iframe/guestbook/index.html"
|
||||
layout: iframe.njk
|
||||
title: Adrian Victor:Guestbook
|
||||
headerLink: social
|
||||
---
|
||||
<script defer>
|
||||
if (localStorage.getItem("autoLoadGuestBook") == "true") {
|
||||
window.location.href = 'https://iframe.chat/embed?chat=17048300';
|
||||
}
|
||||
|
||||
function loadGuestbook() {
|
||||
const askAgain = document.querySelector("#dontAskAgain").value;
|
||||
if (askAgain) {
|
||||
localStorage.setItem("autoLoadGuestbook", true);
|
||||
}
|
||||
window.location.href = 'https://iframe.chat/embed?chat=17048300';
|
||||
}
|
||||
</script>
|
||||
<main>
|
||||
<p>{{ i18n[langKey].guestbookWarning | safe }}</p>
|
||||
<label><input id="dontAskAgain" type="checkbox" style="margin-right: .4em;">{{ i18n[langKey].dontAskAgain }}</label>
|
||||
<div style="margin-top: 1em;"><button id="guestbookConfirmButton" style="margin-top: auto;" onclick="loadGuestbook()">Load</button></div>
|
||||
</main>
|
||||
3
site/misc/kumaos/en.json
Normal file
3
site/misc/kumaos/en.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"pageDescription": "Operating system written in JS."
|
||||
}
|
||||
29
site/misc/kumaos/index.njk
Normal file
29
site/misc/kumaos/index.njk
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
layout: text.njk
|
||||
pagination:
|
||||
data: languages
|
||||
size: 1
|
||||
alias: langKey
|
||||
pageTitle: KumaOS
|
||||
---
|
||||
{% from "macros.njk" import i88x31 with context %}
|
||||
|
||||
<script type="module" src="{{ '/static/kumos/kernel.mjs' | url }}" defer></script>
|
||||
<script type="module" src="{{ '/static/kumos/shell.mjs' | url }}" defer></script>
|
||||
<script type="module" src="{{ '/static/kumos/guestbook.mjs' | url }}" defer></script>
|
||||
<script type="module" src="{{ '/static/kumos/browser.mjs' | url }}" defer></script>
|
||||
<script type="module" src="{{ '/static/kumos/apps.mjs' | url }}" defer></script>
|
||||
<script type="module" src="{{ '/static/kumos/taskmanager.mjs' | url }}" defer></script>
|
||||
<main>
|
||||
<!-- <script src="https://iframe.chat/scripts/main.min.js"></script> -->
|
||||
<!-- <div class="window" id="guestbookWindow">
|
||||
<div class="windowHeader" id="guestbookWindowHeader">
|
||||
<p>Guestbook</p>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
chattable.initialize({
|
||||
theme: "moderno"
|
||||
});
|
||||
</script> -->
|
||||
</main>
|
||||
3
site/misc/kumaos/pt.json
Normal file
3
site/misc/kumaos/pt.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"pageDescription": "Sistema operacional em JS."
|
||||
}
|
||||
Loading…
Reference in a new issue