-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
<title>PC Virtual</title>
<style>
body {
margin: 0;
font-family: Arial;
background: #0a2a43;
overflow: hidden;
}
#desktop {
width: 100vw;
height: 100vh;
background: linear-gradient(#0a2a43, #000);
position: relative;
}
.icon {
width: 70px;
color: white;
text-align: center;
margin: 10px;
cursor: pointer;
}
.icon div {
font-size: 40px;
}
.window {
width: 260px;
height: 200px;
background: #fff;
position: absolute;
top: 80px;
left: 60px;
border-radius: 10px;
display: none;
}
.title {
background: #1976d2;
color: #fff;
padding: 5px;
border-radius: 10px 10px 0 0;
}
.close {
float: right;
cursor: pointer;
}
.content {
padding: 10px;
}
#taskbar {
position: absolute;
bottom: 0;
width: 100%;
height: 40px;
background: #111;
color: white;
display: flex;
align-items: center;
padding-left: 10px;
}
</style>
<script>
function openWin(id) {
document.getElementById(id).style.display = "block";
}
function closeWin(id) {
document.getElementById(id).style.display = "none";
}
// relรณgio
setInterval(() => {
let d = new Date();
document.getElementById("clock").innerText =
d.getHours().toString().padStart(2, '0') + ":" +
d.getMinutes().toString().padStart(2, '0');
}, 1000);
// salvar bloco
const text = document.getElementById("text");
text.value = localStorage.getItem("pc_text") || "";
text.addEventListener("input", () => {
localStorage.setItem("pc_text", text.value);
});
</script>
๐
Bloco
๐
Arquivos
๐ Bloco de Notas
โ
<textarea id="text" style="width:100%;height:120px;"></textarea>
๐ Arquivos
โ
๐ arquivo1.txt
๐ arquivo2.txt
๐ฅ๏ธ PC Virtual |
Metadata
Metadata
Assignees
Labels
No labels