Skip to content

Instantly share code, notes, and snippets.

@joshuarudd
Created April 15, 2014 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuarudd/10761292 to your computer and use it in GitHub Desktop.
Save joshuarudd/10761292 to your computer and use it in GitHub Desktop.
Example UserVoice gadget markup
<!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