-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmailchimp-export.html
62 lines (55 loc) · 1.48 KB
/
mailchimp-export.html
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
<!doctype html>
<html>
<head>
<title>List MainChimp</title>
<style>
html,
body {
margin: 0px;
padding: 0px;
width: 100%;
}
textarea {
display: inline-block;
width: 25%;
margin-top: 25px;
height: 150px;
padding: 5px;
border-radius: 3px;
border: solid thin #ddd;
}
button {
display: block;
margin-top: 25px;
border-radius: 3px;
padding: 15px;
width: 25%;
font-size: 1em;
}
</style>
</head>
<body>
<center>
<textarea id="input" type="text" placeholder="input"></textarea>
<button id="convert">Convert</button>
<textarea id="output" type="text" placeholder="output"></textarea>
<button id="clear">Restart</button>
</center>
</body>
<footer>
<script>
var input = document.getElementById('input'),
output = document.getElementById('output'),
convert = document.getElementById('convert');
convert.addEventListener('mousedown', (event) => {
var data = input.value,
outputString;
data = data.split(', ');
for (var i = 0, max = data.length; i < max; i++) {
outputString += data[i] + '\n';
}
output.value = outputString;
});
</script>
</footer>
</html>