151 lines
3.7 KiB
Cheetah
151 lines
3.7 KiB
Cheetah
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Trunkless</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta charset="utf-8">
|
|
<style>
|
|
@font-face {
|
|
font-family: "cutive";
|
|
src: url("/cutive.ttf");
|
|
}
|
|
|
|
body {
|
|
font-family: "cutive", monospace;
|
|
font-size:125%;
|
|
background-color: black;
|
|
color: white;
|
|
background-image: url("/bg_dark.gif");
|
|
}
|
|
|
|
.main {
|
|
background-color: black;
|
|
border: 1px solid grey;
|
|
padding: 5px
|
|
}
|
|
|
|
#about {
|
|
background-color: grey;
|
|
display: none;
|
|
color: black;
|
|
}
|
|
|
|
h1 {
|
|
background-color: black;
|
|
}
|
|
|
|
|
|
a {
|
|
color: white;
|
|
}
|
|
|
|
.controls {
|
|
margin: 0;
|
|
margin-bottom:4px;
|
|
font-size:80%;
|
|
}
|
|
|
|
.controls form {
|
|
background-color: black;
|
|
}
|
|
|
|
.rainbow {
|
|
animation-name: rainbow;
|
|
animation-duration: 1s;
|
|
}
|
|
|
|
@keyframes rainbow {
|
|
20%{color: red;}
|
|
40%{color: orange;}
|
|
60%{color: yellow;}
|
|
80%{color: green;}
|
|
100%{color: blue;}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<template id="line-editor-tmpl">
|
|
<form style="display:inline">
|
|
<input type="text" name="editedLine" style="min-width: 30em; max-width:40em">
|
|
<input type="submit" style="display: none">
|
|
</form>
|
|
</template>
|
|
<template id="linetmpl">
|
|
<style>
|
|
.linetext {
|
|
font-size: 100%;
|
|
}
|
|
div.source {
|
|
font-size: 50%;
|
|
font-style: oblique;
|
|
padding-left: 10px;
|
|
text-align: right;
|
|
}
|
|
.linetext:hover {
|
|
cursor: auto;
|
|
}
|
|
.line:hover {
|
|
background-color: rgba(125,125,125,.40);
|
|
}
|
|
.cont:hover {
|
|
cursor: grab;
|
|
}
|
|
div.linectrl {
|
|
text-align: right;
|
|
}
|
|
div.linectrl button {
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
div.line:not(.unpinned) .linetext {
|
|
font-weight: bold;
|
|
}
|
|
|
|
button.pinned {
|
|
font-weight:bold;
|
|
}
|
|
</style>
|
|
<div class="cont" style="display: grid; grid-template-columns: 80% 20%">
|
|
<div>
|
|
<span class="linetext"></span>
|
|
</div>
|
|
<div class="linectrl">
|
|
<button is="line-pinner">L</button><button is="line-editor">E</button><button is="line-remover">R</button>
|
|
</div>
|
|
</div>
|
|
<div is="source-text" class="source"></div>
|
|
</template>
|
|
|
|
<h1 style="display:block;margin:0">Trunkless</h1>
|
|
<p style="margin-top:0;font-size:80%">
|
|
<a is="about-toggler"></a>
|
|
<a is="theme-toggler"></a>
|
|
</p>
|
|
<p id="about">
|
|
HELLO. THIS IS A <a href="https://github.com/vilmibm/trunkless">SOFT WARE</a> FOR MAKING <a href="https://en.wikipedia.org/wiki/Cut-up_technique">CUT-UP POETRY</a>. THERE ARE 467,014,991 POSSIBLE LINES YOU MAY SEE. ALL OF THE LINES ARE FROM THE ENGLISH CORPUS OF <a href="https://gutenberg.org">PROJECT GUTERNBERG</a>. SOME MAY BE OBJECTIONABLE AND I'M SORRY. THE AUTHOR OF THIS SOFT WARE IS <a href="https://tilde.town/~vilmibm">~VILMIBM</a>.
|
|
</p>
|
|
<div class="controls">
|
|
<button is="poem-resetter"></button>
|
|
|
|
<form is="poem-saver" style="border: 1px solid grey; display:inline; padding:4px;">
|
|
<button class="copy" type="submit">copy</button>
|
|
<button class="save" type="submit">save</button>
|
|
<input name="type" value="text" type="radio" checked />as text
|
|
<input name="type" value="image" type="radio"/>as image
|
|
<input name="sources" type="checkbox"/>include sources
|
|
</form>
|
|
</div>
|
|
<div class="main">
|
|
<div style="margin-bottom: 5px">
|
|
<button is="poem-regenner">↺</button>
|
|
</div>
|
|
<div is="poem-lines"></div>
|
|
<div>
|
|
<button is="line-adder" title="add new line">+</button>
|
|
</div>
|
|
</div>
|
|
<script src="/html2canvas.min.js"></script>
|
|
<script src="/main.js"></script>
|
|
</body>
|
|
</html>
|