Last active
December 13, 2018 17:00
-
-
Save aarongustafson/6f5b7c0f0c072631a908 to your computer and use it in GitHub Desktop.
Code samples from my EnhanceConf 2016 talk
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
<label for="first_name">What’s your first name?</label> | |
<input name="first_name" id="first_name"> |
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
<p>I <em>really</em> want to be your friend.</p> | |
<p>I <i class="sarcasm">really</i> want to be your friend.</p> |
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
<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> |
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
<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> |
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
<meta name="msapplication-cortanavcd" content="http://myapp.io/vcd.xml"> |
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
<input type="radio" name="agree" id="agree_yes" value="yes"> | |
<label for="agree_yes">Yes</label> |
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
<?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