Skip to content

Commit

Permalink
2 file edited
Browse files Browse the repository at this point in the history
  • Loading branch information
Croc-Prog-github committed Feb 10, 2024
1 parent 01c7f68 commit 352f876
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions game/GameMood/CampoDiProva/CampoProva1.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

<script src="/game/GameMood/creativeEditor/cosePlayer.js"></script>
<!-- <script src="/SchedDes.js"></script> -->
<script>document.addEventListener("contextmenu", function (e) {e.preventDefault();});</script>
</head>
<body style="font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; background-color: #195e79ad; overflow: hidden; margin: 3px; cursor: default;">

Expand Down
26 changes: 24 additions & 2 deletions game/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@
<div style="display: flex;flex-direction: row;justify-content: space-evenly;align-items: center;background-color: #242424;width: 100%;height: 20px;background-size: cover;flex-wrap: nowrap;" name="up_bar">
<div name="" title="Banconote" style="display: flex; align-items: center; height: 20px; background-color: #1159dba3; border-radius: 4px; margin-top: 15px;">
<hx style="color: white; padding-left: 10px;" id="soldi">Error</hx>
<img src="https://docs.google.com/drawings/d/e/2PACX-1vRY0pup0VxjthO6ohSgX3RC29HShZ8JFuoCg7luCeb6Vf4oOkWPGl32GdugLMPkUn56ZmQ-bH9hnLi5/pub?w=100&h=100" style="height: 35px; margin-top: 3px;" alt="Errore di fonte">
<img id="SoldiIco" src="https://docs.google.com/drawings/d/e/2PACX-1vRY0pup0VxjthO6ohSgX3RC29HShZ8JFuoCg7luCeb6Vf4oOkWPGl32GdugLMPkUn56ZmQ-bH9hnLi5/pub?w=100&h=100" style="height: 35px; margin-top: 3px;" alt="Errore di fonte">
<svg fill="#83cbff" id="SoldiSvg" style="display: none; margin-inline: 6px;" height="20px" viewBox="0 -960 960 960" width="24"><path d="M560-440q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35ZM280-320q-33 0-56.5-23.5T200-400v-320q0-33 23.5-56.5T280-800h560q33 0 56.5 23.5T920-720v320q0 33-23.5 56.5T840-320H280Zm80-80h400q0-33 23.5-56.5T840-480v-160q-33 0-56.5-23.5T760-720H360q0 33-23.5 56.5T280-640v160q33 0 56.5 23.5T360-400Zm440 240H120q-33 0-56.5-23.5T40-240v-440h80v440h680v80ZM280-400v-320 320Z"/></svg>
</div>

<div name="Gemme" title="Gemme" style="display: flex; align-items: center; height: 20px; background-color: #1159dba3; border-radius: 4px; margin-top: 15px;">
<hx style="color: white; padding-left: 10px;" id="gemme">Error</hx>
<img src="https://docs.google.com/drawings/d/e/2PACX-1vQQ42zr_c9L0G-wp60VNXlS7h4fBZjnofJZFcJ9jAVF_Ga8M7LAdoIE40PpWFASQrdFD5e-2CzMwL72/pub?w=100&h=100" style="height: 30px;" alt="Errore di fonte">
<img id="GemmeIco" src="https://docs.google.com/drawings/d/e/2PACX-1vQQ42zr_c9L0G-wp60VNXlS7h4fBZjnofJZFcJ9jAVF_Ga8M7LAdoIE40PpWFASQrdFD5e-2CzMwL72/pub?w=100&h=100" style="height: 30px;" alt="Errore di fonte">
<svg fill="#00a6ed" id="GemmeSvg" style="display: none; margin-inline: 6px;" height="20px" viewBox="0 -960 960 960" width="24"><path d="M480-120 80-600l120-240h560l120 240-400 480Zm-95-520h190l-60-120h-70l-60 120Zm55 347v-267H218l222 267Zm80 0 222-267H520v267Zm144-347h106l-60-120H604l60 120Zm-474 0h106l60-120H250l-60 120Z"/></svg>
</div>
</div>

Expand Down Expand Up @@ -221,6 +223,26 @@
</body>
</html>

<script> // Rileva se ha caricato icona Gemme o Banconote
const GemmeIco = document.getElementById('GemmeIco');
const SoldiIco = document.getElementById('SoldiIco');
const GemmeSvg = document.getElementById('GemmeSvg');
const SoldiSvg = document.getElementById('SoldiSvg');

function CheckNotLoading() {
GemmeIco.onerror = function() {
GemmeIco.style.display = 'none';
GemmeSvg.style.display = 'block'
};
SoldiIco.onerror = function() {
SoldiIco.style.display = 'none';
SoldiSvg.style.display = 'block';
};
}
setInterval(function() {
CheckNotLoading();
}, 100);
</script>

<script> // Chiudi/apri console
const cons = document.getElementById('Console');
Expand Down

0 comments on commit 352f876

Please sign in to comment.