-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
137 lines (121 loc) · 4.12 KB
/
index.html
File metadata and controls
137 lines (121 loc) · 4.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<html>
<head>
<title>Cut Up v0.3</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-65102306-1"></script>
<meta property="og:title" content="Cut Up - Text Randomizer" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Fight writer's block with this tool that randomizes any text like your old song lyrics, poems you like, speeches, etc." />
<meta property="twitter:title" content="Cut Up - Text Randomizer" />
<meta property="twitter:description" content="Fight writer's block with this tool that randomizes any text like your old song lyrics, poems you like, speeches, etc." />
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-65102306-1');
</script>
</head>
<style>
body {
font-family: monospace;
margin: 0px;
padding: 0px;
}
hr {
border: none;
height: 1px;
color: grey;
background-color: grey;
width: 80%;
display: block;
margin: 0 auto;
}
button {
font-family: monospace;
}
.sections {
display: flex;
}
.section {
flex-direction: column;
flex-basis: 100%;
flex: 1;
padding: 10px 30px;
}
textarea {
width: 100%;
min-height: 500px;
padding: 10px;
}
#output {
width: 100%;
padding: 10px;
min-height: 500px;
border: 1px dashed grey;
}
#output-text {
margin-block-start: 0;
white-space: pre-line;
}
#settings > label {
display: block;
margin-bottom: 10px;
}
#settings > label > input {
display: inline;
}
#header {
text-align: center;
}
.bold {
font-weight: 800;
}
.text--grey {
color: grey;
}
</style>
<body>
<div id="header">
<h2>Cut Up v0.3</h2>
<p>
[
<a href="https://www.openculture.com/2019/05/how-david-bowie-used-william-s-burroughs-cut-up-method-to-write-his-unforgettable-lyrics.html">About</a>
] [
<a href="https://github.com/ridoy/cutup">Source</a>
] [
<a href="faq.html">FAQ</a>
]
</p>
<p>
<button id="button--load-example-input">Confused? Click here to load example text. Then click "Randomize".</button>
</p>
<p>
<button id="submit">Randomize!</button>
</p>
<div id="settings">
<label>
<input id="remove-empty-lines" type="checkbox" checked> Remove empty lines?
</label>
<label>
<input id="set-num-shuffles" type="number" value="10000" min="10000" max="1000000"> Shuffle amount
</label>
<label>Shuffle by:
<input class="shuffle-by" type="radio" name="shuffle-by" value="line"> Line?
<input class="shuffle-by" type="radio" name="shuffle-by" value="word" checked> Word?
</label>
</div>
</div>
<div class="sections">
<div class="section">
<textarea placeholder="Enter anything here and click Randomize." cols=100 rows=20 id="text"></textarea>
</div>
<div class="section">
<div id="output">
<span id="output-text"><span class="text--grey">Your shuffled text will appear here.</span></span>
</div>
</div>
</div>
<div id="footer">
</div>
</body>
<script src="./cutup.js"></script>
</html>