git @ Cat's Eye Technologies Lexeduct / 2a16467
Fix make.sh and make lexeduct.html fractionally less chintzy. Chris Pressey 6 years ago
2 changed file(s) with 19 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
88 <h1>Lexeduct</h1>
99 </header>
1010
11 <div>
12 <textarea id="input" rows="20" cols="40">
13 Hello, there!
14 What do you think of this?
15 </textarea>
16
17 <button onclick="process();">Process</button>
18
19 <textarea id="output" rows="20" cols="40">
20 </textarea>
21 </div>
22
1123 </body>
1224 <script src="lexeduct-browser.js"></script>
1325 <script>
14 var f = makeFilter['upper']({});
15 alert(f('hi thEre'));
26 function process() {
27 var inputText = document.getElementById('input').value;
28 var f = makeFilter['upper']({});
29 var outputText = f(inputText);
30 document.getElementById('output').value = outputText;
31 }
1632 </script>
00 #!/bin/sh
11
22 cd src
3 ./gen-lexeduct-browser.py >../demo/lexeduct-browser.js
3 node gen-lexeduct-browser.js >../demo/lexeduct-browser.js