anchor.diff:        } else if (type == "party") {
             url = baseUrl + "parties/" + el.getAttribute('data-party-id') + '/widget';
             url = addIssueParams(el, url);
  +      } else if (type == "topic") {
  +          url = baseUrl + "widgets/topic?" + queryParamFor('issues', el.getAttribute('data-issues')) + '&' + queryParamFor('promises', el.getAttribute('data-promises'))
         } else {
             throw new Error('invalid HDO widget type: ' + type);
         }
  
positive.code: /*
    Usage example:
  
      <div class="hdo-issue-widget" height="500" width="20%" data-issue-id="fjerne-formueskatten">Laster sak...</div>
      <script src="http://holderdeord.no/widgets"></script>
  */
  
  HDO.widgets = (function () {
    this.baseUrl = '<%= request.scheme %>://<%= request.host %>:<%= request.port %>/';
  
    function extractWidgetOptions(type, el) {
        var url;
  
        function addIssueParams(el, url) {
          var issues = el.getAttribute('data-issue-ids');
  
negative.code:   };
  })();
  
  HDO.widgets.init('topic');
  HDO.widgets.init('issue');
  HDO.widgets.init('representative');
  HDO.widgets.init('party');
  