-
-
Save jmanoto/6266242 to your computer and use it in GitHub Desktop.
Text to Speech (style update)
This file contains 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
return { | |
"name": "Text-to-speech", | |
"deviceMap": [{ "deviceType": "speech" }] | |
} |
This file contains 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
background: white; | |
.speech-widget { | |
padding: 30px 10px 10px; | |
text-align: right; | |
.icon { | |
font-size: 160px; | |
color: hsl(201,73%,54%); | |
display: block; | |
text-align: center; | |
line-height: 0.5em; | |
margin: 10px; | |
} | |
button { | |
text-align: right; | |
background: hsl(201,73%,54%); | |
border: 1px solid hsl(201,73%,54%); | |
color: white; | |
} | |
input { | |
width: 92%; | |
display: block; | |
margin: 0 auto 10px; | |
} | |
} |
This file contains 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
<div class="speech-widget"> | |
<span class="icon">📣</span> | |
<input class="input" type="text" name="message" placeholder="Message"/> | |
<button class="button blue-gradient">Say</button> | |
</div> |
This file contains 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
element.find('button').click(function() { | |
scope.ActuateAll(element.find('[name=message]').val()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment