-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (73 loc) · 3.37 KB
/
index.html
File metadata and controls
79 lines (73 loc) · 3.37 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
<!DOCTYPE html>
<html>
<head>
<title>Parser Test</title>
<meta charset='utf-8' />
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script>
<script src="//cdn.jsdelivr.net/ace/1.1.01/min/ace.js"></script>
<script src="js/parser.js"></script>
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css" />
<link rel="stylesheet" href="css/parser.css" />
</head>
<body>
<div data-role="page" id="main" data-theme="c" data-title="sentence parser" class='njp-app '>
<div data-role="header" class="njp-header">
<h2>
<img alt="logo" src="gfx/logo.png" class='applogo' />
</h2>
<p>Sentence parser in Javascript</p>
</div>
<!-- /header -->
<div data-role="main" class="njp-content njp-fullwidth">
<div id="lhs">
<h2>Your question</h2>
<input id="the-question" type="text"
placeholder="Enter a question here" autofocus="autofocus" autocomplete="off"></input>
<div class="button-panel">
<button id="ask-the-question" data-inline="true">Ask</button>
<!-- <button id="perform-tests" data-inline="true">Perform Unit Test</button> -->
</div>
<div id="the-answer-holder" class="appok" style="display: none;">
<p id="the-answer"></p>
</div>
</div>
<div id="rhs">
<h2>Parsing structure</h2>
<div id="the-structure"></div>
<!-- <textarea id="the-structure" class="autosize"></textarea> -->
<h2>Output Log</h2>
<pre id="log"></pre>
</div>
</div>
<!-- /main -->
<div data-role="footer" data-position="fixed" class="njp-footer">
<p><a href="#about">About this application</a></p>
<p>
© 2012 - 2014 Nigel Johnson. All rights reserved.
</p>
</div>
<!-- /footer -->
<div data-role="panel" id="about" class='njp-content' data-display="overlay">
<h2>About this application</h2>
<p>No electrons were created or destroyed in the making of this webiste, however some were significantly mamed.</p>
<p>This site is the product of a project created to generate a simple sentence parser. The GitHub project can be
found <a href="https://github.com/nigeljohnson73/sentence-parser" target="_blank">here</a>. The idea was that I
wanted a really simple and lightweight sentence parser that didn't need sending off to the NLP labs at Berkley.
I needed to extract a few bits from the sentence so a response could be formulated. The output would then be used
in my <a href="http://nigeknows.com" target="_blank">Nige Knows</a> website.</p>
<p>The <a href="http://www.google.com/fonts" target="_blank">Google fonts API</a> supplied the "Open Sans" fonts
that are used throughout the site.</p>
<p><a href="http://ace.c9.io/" target="_blank">Ace</a> provided the code renderificator used to modify the text
area for the javascript code in the parsing structure section.</p>
<p>The overall style was extracted from the <a href="http://demos.jquerymobile.com/1.4.0/" target="_blank">JQuery
Mobile</a> demos website and modified a bit from there.</p>
<div class="button-panel">
<button data-inline="true" data-rel="close">Ok</button>
</div>
<!-- panel content goes here -->
</div><!-- /panel -->
</div>
</body>
</html>