Compare commits

..

No commits in common. "ab3cc0c21795fa09c96fbc22612112728fa78361" and "a7f07853eed48be5d49875627291d24320925955" have entirely different histories.

2 changed files with 7 additions and 29 deletions

View file

@ -6,7 +6,13 @@
virtualHosts.localhost.locations."/" = {
index = "index.html";
root = "/var/www";
root = pkgs.writeTextDir "index.html" ''
<html>
<body>
Hello World!
</body>
</html>
'';
};
};
};
@ -19,10 +25,5 @@
host.port = 8080;
}];
virtualisation.sharedDirectories.www = {
source = "$WWW";
target = "/var/www";
};
system.stateVersion = "23.11";
}

View file

@ -1,23 +0,0 @@
<html>
<body>
<button id='add'>+</button>
</body>
<script>
let add = document.getElementById('add');
function newTask() {
let subtract = document.createElement('button');
subtract.textContent = "-";
let input = document.createElement('input');
input.setAttribute('type', 'text');
let div = document.createElement('div');
div.replaceChildren(subtract, input);
function remove() {
div.replaceChildren();
div.remove();
}
subtract.addEventListener('click', remove);
add.before(div);
}
add.addEventListener('click', newTask);
</script>
</html>