Mercurial > code > home > repos > homeauto
view service/speechMusic/index.jade @ 1462:2b29f14eb6bd
try new graph+view widget
Ignore-this: d5f9c5dc52f04324368716ba2f604fdb
darcs-hash:44e85a5c075ef73c34a58deaa3a3c1e8390dae52
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 24 Nov 2019 00:01:00 -0800 |
parents | 38a4769595e2 |
children |
line wrap: on
line source
doctype html html head title | speechMusic style input[type=text] { font-size: 40px; font-family: monospace; font-variant: small-caps; width: 100%; } button { margin: 10px; padding: 10px; } body h1 Speech h2 Speak form(method='POST', action='speak') input(type='text', name='msg', autocomplete="off") button(type='submit') Say h2 Effects ul each effect in effectNames li form(method='POST', action="#{effect['postUri']}") button(type='submit') | #{effect['name']} h2 Stop all form(method='POST', action='stopAll') button(type='submit') Stop all sounds p#status script(src="//bigasterisk.com/lib/jquery-2.0.3.min.js") script(type="text/javascript") $("input[type=text]").focus(); $("form").submit(function() { $("#status").text("submitting..."); $.ajax({ data: $(this).serialize(), url: this.action, type: this.method, success: function (result) { $("#status").text(result); $(this).find("input").val(""); }.bind(this), error: function (xhr, status, err) { $("#status").text("Error: "+err); } }); $("input[type=text]").focus(); return false; });