Code samples from my EnhanceConf 2016 talk
<label for="first_name">What’s your first name?</label> | |
<input name="first_name" id="first_name"> |
<p>I <em>really</em> want to be your friend.</p> | |
<p>I <i class="sarcasm">really</i> want to be your friend.</p> |
<label for="first_name">What’s your first name?</label> | |
<input name="first_name" id="first_name" | |
aria-describedby="first_name-error" | |
> | |
<em id="first_name-error"> | |
Without your first name, I won’t know how to address you. | |
Could you please provide it? | |
</em> |
<fieldset> | |
<legend tabindex="0">Do you agree to the terms of service for this site?</legend> | |
<input type="radio" name="agree" id="agree_yes" value="yes"> | |
<label for="agree_yes">Yes</label> | |
<input type="radio" name="agree" id="agree_no" value="no"> | |
<label for="agree_no">No</label> | |
</fieldset> |
<input type="radio" name="agree" id="agree_yes" value="yes"> | |
<label for="agree_yes">Yes</label> |
<?xml version="1.0" encoding="utf-8"?> | |
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.2"> | |
<CommandSet xml:lang="en-us" Name="groupPost"> | |
<CommandPrefix>Group Post</CommandPrefix> | |
<Example>Group Post add note</Example> | |
<Command Name="addNote"> | |
<Example>add a note {message} using group post</Example> | |
<ListenFor RequireAppName="BeforeOrAfterPhrase">[please] | |
add a note [that] {noteSubject}</ListenFor> | |
<Feedback>adding {noteSubject} to Group Post</Feedback> | |
<Navigate Target="/addNote.htm"/> | |
</Command> | |
<PhraseTopic Label="noteSubject" Scenario="Dictation"></PhraseTopic> | |
</CommandSet> | |
</VoiceCommands> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment