You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Exex</title>
<link rel="stylesheet" href="/style.css">
<style>
#container {
display: flex;
}
.child {
display: flex;
flex-direction: column;
padding: 4px;
margin: 4px;
border: 1px solid currentColor;
white-space: pre-wrap;
flex: 1;
flex-basis: 40ch;
max-height: calc(1.6 * 2em + 16px);
overflow: hidden;
transition: max-height 0.3s ease-out;
}
.child:hover{
transition: max-height 0.6s ease-in;
max-height: 1000px;
}
</style>
</head>
<body>
<h1>EXEX</h1>
<div class="subtitle">collaborative writing for branching documentation</div>
<div class="meta">
<div class="tags">
<span class="tag">collaborative</span>
<span class="tag">writing</span>
<span class="tag">tool</span>
</div>
<ul class="links">
<li><a href="https://git.xpub.nl/kamo/exex">git</a></li>
<li><a href="https://constantvzw.org/wefts/cc4r.en.html">CC4r license</a></li>
<li><a href="https://hub.xpub.nl/soupboat/exex/">try it</a></li>
</ul>
</div>
<!-- <section> -->
<!-- Every entry comes with: -->
<!-- some context -->
<!-- some reflections -->
<!-- some examples -->
<!-- </section> -->
<section class="context">
<h2>Context</h2>
<p>
A branching version of the <a href="https://en.wikipedia.org/wiki/Exquisite_corpse">exquisite corpse game</a>, forked from the <a href="https://git.xpub.nl/kamo/exquisite-branch">exquisite branch</a> drawing app developed for <a href="https://issue.xpub.nl/17/">SI17</a>.
</p>
<p>
Write something, upload it and send the link to someone else: they will continue from your excerpt. With a catch: if you send to just one person the chain will continue linearly, but send it to more people and things will start branching in different directions.
</p>
<p>
Could be a writing machine to work on the collective pubblication for the graduation, inspired by what <a href="https://pad.xpub.nl/p/gradcollectivexpub">Kim wrote here</a>
</p>
</section>
<section>
<h2>reflections</h2>
</section>
<section>
<h2>examples</h2>
</section>
<section id='container'></section>
<script>
const display = (container, tree) => {
if(tree.branches){
let content = document.createElement('div')
content.classList.add('child')
if (tree.content) {
content.innerHTML = tree.content
}
container.appendChild(content)
for (const b of tree.branches) {
display(content, b)
}
}
}
const constainer = document.querySelector('#container')
fetch('https://hub.xpub.nl/soupboat/exex/api/v1/tree/about/')
.then(res=>res.json())
.then(res=>{
display(container, res)
})
</script>
</body>
</html>