-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoverview.php
57 lines (45 loc) · 1.71 KB
/
overview.php
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
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="style.css">
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h1>TOS AI</h1>
<?php if(isset($_GET['train'])){ ?>
<p><input id="train_url" type="text" placeholder="Name of website"/> <input type="button" value="Load" onclick="train_load();"/></p>
<p><div id="train_txt" class="loadedHtml"></div></p>
<p>
<input id="highlight" type="button" value="Done highlighting" disabled/>
<input id="reset" type="button" value="Reset"/>
</p>
<p><div id="out" class="noselect" style="max-height:650px; overflow:auto;"></div></p>
<hr/>
<div id="results"></div>
<p><i>Auto updates</i></p>
<p><div id="entries"></div></p>
<p id="viewer"></p>
<hr/>
<?php
}
if(isset($_GET['results'])){
?>
<p><input type="button" onclick="calcWords();" value="Retrain AI"/></p>
<p id="scoreResult" style="display:none;">AI Training results: <a href="scores.json">JSON</a> or <a href="scores.csv">CSV</a></p>
<hr/>
<?php
}
if(isset($_GET['test'])){
?>
<p><input id="test_url" type="text" placeholder="Name of website"/> <input type="button" value="Load" onclick="test_load();"/></p>
<p><div id="test_txt" class="loadedHtml"></div></p>
<div id="sum"></div>
<?php } ?>
</div>
<script src="main.js"></script>
</body>
</html>