Skip to content

Instantly share code, notes, and snippets.

<Response>
<Say voice="alice">Thank you for calling Lloyds Bank</Say>
<Play>http://here-and-now.info/audio/rickastley_artists.mp3</Play>
</Response>
Entry form:
https://goo.gl/forms/mZzegNMCwPCM3Hy12
Spreadsheet (edit access for control room/tcms):
https://docs.google.com/spreadsheets/d/1VDNoD6kg8HxHyg4CZ7pAWu58V8FivtxNU77IZeMIjrA/edit?usp=sharing

Keybase proof

I hereby claim:

  • I am tomwilshere on github.
  • I am tomw_decoded (https://keybase.io/tomw_decoded) on keybase.
  • I have a public key ASCM2QRp3vP5hd-QKV3Jirc9agyY_PLO7JlIeMW-217o-Qo

To claim this, I am signing this object:

// 1. When someone submits a form:
jQuery("form").submit(function() {
// 2. Perform an AJAX request ($ is a shortcut for jQuery):
$.post({
// 3. Where to send data: use the URL from the form's action attribute
url: $("form").attr("action"),
// 4. Send the username from the input
data: {
username: $("input[name=username]").val(),
},
<Response>
<Say voice="alice">Hi Nursing home Suze. Nooze. I'm sorry to report that Mark Tengende has cancelled their shift starting at 8am.</Say>
<Play>http://demo.twilio.com/docs/classic.mp3</Play>
</Response>