Basic Widget usage
<script>
var HW_config = {
selector: ".CHANGE_THIS", // CSS selector where to inject the badge
account: "ACCOUNT_ID" // your account ID, you can find it in Settings->Widget
};
</script>
<script async src="//cdn.headwayapp.co/widget.js"></script><h1>
<a href="">Acme Corp.</a>
</h1>var HW_config = {
selector: "h1",
account: "ACCOUNT_ID"
};<h1>
<a href="">Acme Corp.</a>
<span id="HW_badge_cont">
<span id="HW_badge">1</span>
</span>
</h1>Options
Initializing widget programmatically (SPA)
Translating the text inside of the widget
Styling the badge
Last updated
