This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @font-face { | |
| font-family: 'opendyslexic'; | |
| src: url('http://dyslexicfonts.com/fonts/OpenDyslexic-Regular.otf'); | |
| font-style: normal; | |
| font-weight: normal; | |
| } | |
| @font-face { | |
| font-family: 'opendyslexic'; | |
| src: url('http://dyslexicfonts.com/fonts/OpenDyslexic-Italic.ttf'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ($("#speech").is(':checked')) { | |
| window.speechSynthesis.cancel(); // Cancel if already talking | |
| var msg = new SpeechSynthesisUtterance(event.target.innerText); // Grab the text from the element that was clicked ... | |
| window.speechSynthesis.speak(msg); // ... and speak it. | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var twilio = { | |
| username: <your-twilio-username>, | |
| pwd: <your-twilio-pwd>, | |
| phone: <your-twilio-phone-number>, | |
| server_url: 'https://api.twilio.com/2010-04-01/Accounts/' | |
| }; | |
| var user = { | |
| phone: <user-phone-number> | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ($("#call").is(':checked')) { | |
| $.ajax({ | |
| type: "POST", | |
| username: twilio.username, | |
| password: twilio.pwd, | |
| url: twilio.server_url + twilio.username + '/Calls.json', | |
| data: { Url: <xml-containing-twilio-message>, From: twilio.phone, To: user.phone } | |
| }) | |
| .done(function( msg ) { | |
| console.log("Phone call made."); |
OlderNewer