-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtime.vxml
More file actions
29 lines (29 loc) · 820 Bytes
/
time.vxml
File metadata and controls
29 lines (29 loc) · 820 Bytes
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
<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<form id="main">
<var name="hours"/>
<var name="minutes"/>
<var name="seconds"/>
<block>
<script>
var d = new Date();
hours = d.getHours();
minutes = d.getMinutes();
seconds = d.getSeconds();
</script>
</block>
<field name="hear_another" type="boolean">
<prompt>
The time is <value expr="hours"/> hours,
<value expr="minutes"/> minutes, and
<value expr="seconds"/> seconds.
</prompt>
<prompt>Do you want to hear another time? (press 1 for YES, 2 for NO).</prompt>
<filled>
<if cond="hear_another == 'true'">
<clear/>
</if>
</filled>
</field>
</form>
</vxml>