Created
April 15, 2014 19:14
-
-
Save joshuarudd/10761292 to your computer and use it in GitHub Desktop.
Example UserVoice gadget markup
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Title your gadget</title> | |
<link href="https://cdn.uservoice.com/packages/gadget.css" media="all" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<% if data %> | |
<table class="fields"> | |
<tr> | |
<th>Field</th> | |
<td><%= data %></td> | |
</tr> | |
</table> | |
<% else %> | |
<script type="text/javascript"> | |
window.gadgetNoData = true; | |
</script> | |
<% end %> | |
<script src="https://cdn.uservoice.com/packages/gadget.js" type="text/javascript"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment