-
Notifications
You must be signed in to change notification settings - Fork 3
/
maftufa-1.9999.html
125 lines (119 loc) · 5.19 KB
/
maftufa-1.9999.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="jbo" lang="jbo" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="description" content="lojban parser for experimental grammar">
<meta name="keywords" content="lojban parser,zasni gerna,zantufa,zantufa lojban">
<meta name="author" content="guskant">
<title>maftufa-1.9999</title>
<link rel="apple-touch-icon" sizes="57x57" href="./icon/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="./icon/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="./icon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="./icon/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="./icon/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="./icon/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="./icon/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="./icon/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="./icon/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="./icon/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="./icon/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="./icon/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="./icon/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="./icon/manifest.json">
<link rel="shortcut icon" href="./icon/favicon.ico">
<meta name="msapplication-TileColor" content="#ffc40d">
<meta name="msapplication-TileImage" content="./icon/mstile-144x144.png">
<meta name="msapplication-config" content="./icon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<style>
.liste {
font: 0.8em arial, sans-serif;
}
.ciksi {
font: 0.9em arial, sans-serif;
}
.urli {
padding-left: 32px;
text-align: right;
font: 0.9em monospace;
}
</style>
</head><body>
<div>
<span class="ciksi" style="font-weight: bold;">jo'au maftufa_1.9999 noi va'i .oz. zei zantufa</span> <span class="ciksi">.i ciska .ijo genturfa'i .i:</span>
</div>
<div>
<form id="form1" name="form1" method="post" action="" style="width:100%">
<textarea id="input_textarea" style="width:100%" rows="8" autofocus></textarea><br/>
<span class="ciksi">.i ko cuxna .i: </span>
<select id="optlist" onchange="run_camxes()">
<option>na'e se stika</option>
<option>denmi</option>
<option id="default" selected="">gau melbi</option>
<option>gau melbi + selma'o</option>
<option>gau melbi + selma'o + bripau</option>
<option>gau melbi -- famyma'o</option>
<option>gau melbi -- famyma'o + selma'o</option>
<option>gau melbi -- famyma'o + selma'o + bripau</option>
</select>
<span class="ciksi">.i</span>
<!--cekitaus select onChange="top.location.href=value">
<option value="maftufa-1.9999.html" selected="1">na'e cekitaus</option>
<option value="maftufa-1.9999-cekitaujoibu.html">cekitaujoibus</option>
<option value="maftufa-1.9999-cekitaujoizai.html">cekitaujoizais</option>
</select cekitaus-->
<span class="urli">
<a href="https://raw.githubusercontent.com/guskant/gerna_cipra/master/maftufa-1.9999.peg" target="_blank">[ lo gerna datnyvei ]</a>
</span>
<span class="urli">
<a href="https://raw.githubusercontent.com/guskant/gerna_cipra/master/farvi-1.9999.txt">[ farvi tcila ]</a>
</span>
</form>
</div>
<div style="display:block; overflow: scroll; max-height:24em; border: solid 1px; padding: 2px 10px 2px 10px; background-color: #fdefda;" height="24em">
<pre style="white-space: pre-wrap;"><code id="parse_result" width="100%" height="100%"> </code></pre>
</div>
<script type="text/javascript" src="./js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="./js/maftufa-1.9999.js"></script>
<script type="text/javascript" src="./js/maftufa_preproc.js"></script>
<script type="text/javascript" src="./js/camxes_postproc.js"></script>
<script>
document.getElementById("default").defaultSelected = true;
/*
* Binding the function run_camxes() to keyup event on demo_textarea by using jQuery
*/
$('#input_textarea').bind( "keyup",
function(e) {
run_camxes();
} );
function run_camxes() {
try {
var input = $('#input_textarea').val();
input = camxes_preprocessing(input);
var result = camxes.parse(input);
} catch (e) {
$('#parse_result').text( e.toString() );
return;
}
var result_str = JSON.stringify(result, undefined, 2);
/* We get the output mode selected in the combobox */
var mode = document.getElementById("optlist").selectedIndex;
/* Postprocessing — if mode == 0, the below function won't modify camxes' output */
result_str = camxes_postprocessing(result_str, mode); // @camxes_postproc.js
/* Retrieve the result */
$('#parse_result').text( result_str );
}
</script>
<div class="ciksi" style="padding:50px 0px;">
<div>
.i di'e liste lo ve farvi be fo la zantufa .i tu'e
</div>
<div>
<iframe src="./liste.html" title="zantufa ve farvi" width="100%" height="200px"></iframe>
</div>
<div>
tu'u
</div>
</div>
</body></html>