blob: 772c6f8081b1b68c8f3ac45f2e6811cde2e39cfc (
plain)
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
|
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//VoiceXML Forum//DTD XHTML+Voice 1.2//EN" "http://www.voicexml.org/specs/multimodal/x+v/12/dtd/xhtml+voice12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:vxml="http://www.w3.org/2001/vxml"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xv="http://www.voicexml.org/2002/xhtml+voice"
xml:lang="en-US">
<head>
<title>Order a Pizza</title>
<script type="text/javascript" src="gflib.js"></script>
<script type="text/javascript" src="pizza-simple.js"></script>
<script type="text/javascript" src="order-simple.js"></script>
<vxml:form id="talker">
<vxml:block>
<vxml:value expr="talkText"/>
</vxml:block>
</vxml:form>
<vxml:form id="getorder">
<vxml:var name="dummy" />
<vxml:subdialog name="sub" src="Pizza.vxml#Order_cat">
<vxml:param name="old" expr="currentOrder" />
<vxml:filled>
<vxml:assign name="dummy" expr="done(sub.term)"/>
</vxml:filled>
</vxml:subdialog>
</vxml:form>
</head>
<body>
<p><button onclick="newOrder()">I want to say a phrase</button></p>
<div class="box">
<form>
<input type="text" id="ordertext" size="100" style="width:100%" />
</form>
</div>
<div class="box">
<form>
<input type="text" id="ordertextf" size="100" style="width:100%" />
</form>
<form>
<input type="text" id="ordertextt" size="100" style="width:100%" />
</form>
</div>
<div class="box">
<form>
<p>
Current order state<br />
<input type="text" id="top_img" size="70" /><br />
<textarea id="top_abs" rows="4" cols="52"></textarea>
</p>
</form>
</div>
</body>
</html>
|