Skip to content

Instantly share code, notes, and snippets.

View WojtekCodesToday's full-sized avatar
😺
Scratch!

WojtekGame WojtekCodesToday

😺
Scratch!
View GitHub Profile
@WojtekCodesToday
WojtekCodesToday / pandoa-www.html
Last active July 28, 2023 11:54
Pandoa on the Browser!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pandoa on the Web</title>
</head>
<body>
body{
font-family: 'Schibsted Grotesk', sans-serif; text-align:center;}details{ width: fit-content;
margin: auto;}summary{cursor:pointer}button,input[type=submit]{ border-radius: 4px;
border: 0;
padding: 8px 16px;
cursor: pointer;
}
.shinies-div-count{
background: #f6f6f6;
@WojtekCodesToday
WojtekCodesToday / roost.js
Created April 7, 2023 17:26
Roost is a library to use JSX and render it, it's very good and MAYBE better than React.
const roost = {
elements: {},
render: function (json, parent = document.body) {
if (typeof json === 'string') {
const element = document.createElement('div');
element.innerHTML = json.trim();
if (parent) {
parent.appendChild(element.firstChild);
}