-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (83 loc) · 3.38 KB
/
index.html
File metadata and controls
84 lines (83 loc) · 3.38 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
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="LSTM Neural Network Text Generation.">
<meta name="author" content="Evan Otero & James LeDoux">
<title>Edgar Alan Turing</title>
<link href="css/style.css" rel="stylesheet" type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Arvo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Gloria+Hallelujah" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
<script src="js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<script type="text/javascript">
function submit() {
$('#output').val('');
$('.sk-folding-cube').show();
$.post( "?",
{
author : $("#author").val(),
text : $("#text").val(),
length : $("#length").val()
},
function( data ) {
$('#output').val(data);
}
).done(function() {
$('.sk-folding-cube').hide();
}).fail(function() {
$('#output').val("error.");
$('.sk-folding-cube').hide();
})
};
</script>
<h1><span class="poe">Edgar Al</span></span><span class="turing">an Turing</span></h1>
<div class='loader loader--snake'></div>
<h3>Test the literary ability of Edgar in being able to write in numerous styles on any subject of text.</h3>
<h3>Choose an author style and enter a text of your choice.</h3>
<br>
<div id="form">
<span>Author Style:</span>
<br>
<select name="author" id="author">
<option value="rowling">J. K. Rowling</option>
<option value="shakespeare">William Shakespeare</option>
<option value="poe">Edgar Allan Poe</option>
<option value="tolkien">J. R. R. Tolkien</option>
<option value="dante">Dante Alighieri</option>
</select>
<br><br>
<span>*Length of Generated Output (in characters):</span>
<br>
<input type="number" name="length" id="length" min="20" max="1000" value="100">
<br>
<span class="warning">*WARNING: large output lengths will result in longer processing time.</span>
<br><br>
<div class="text-zone">
<div class="text-left">
<span>Text:</span>
<br>
<textarea name="text" id="text" rows="20" cols="50"></textarea>
</div>
<div class="text-center">
<button class="button" onclick="submit();">Convert</button>
<div class="sk-folding-cube">
<div class="sk-cube1 sk-cube"></div>
<div class="sk-cube2 sk-cube"></div>
<div class="sk-cube4 sk-cube"></div>
<div class="sk-cube3 sk-cube"></div>
</div>
</div>
<br>
<div class="text-right">
<span>Output:</span>
<br>
<textarea readonly name="text" id="output" rows="20" cols="50"></textarea>
</div>
</div>
</div>
</body>
</html>