Edit in JSFiddle

/*
 * @param string title Title of the resource being documented.
 * @param number duration Eligible duration of time able to be claimed as CPD as an integer in minute.
 * @param string provider The provider of the content.
 * @param string type Select from one of the following: competency, event, meeting, mentoring, online, other, postgraduate, procedure, reading, teaching, inservice.
 * @param string topics A comma-separated list of topics or tags.
 * @param string certificateURL The direct download url of the user's certificate.
 * @param string educators A comma-separated list of educators.
 * @param string resourceURL Canonical URL to the resource being documented.
 */
function ausmed(title, duration, provider, type, topics, certificateURL, educators, resourceURL) {
  // Encode URL so that the parameters don't get lost
  certificateURL = encodeURIComponent(decodeURIComponent(certificateURL));
  resourceURL = encodeURIComponent(decodeURIComponent(resourceURL));
  const url = `https://www.ausmed.com/button/landing?title=${title}&duration=${duration}&provider=${provider}&type=${type}&topics=${topics}&certificateURL=${certificateURL}&educators=${educators}&resourceURL=${resourceURL}`;
  window.open(url, '_blank');
}

document.getElementById("ausmedDocButton").onclick = function() {
  ausmed('Sample Resource', 5, 'Sample Provider', 'online', 'sample topic', 'https://cdn.ausmed.com/cpd-button/Sample_Certificate.pdf', 'Jane Smith', 'https://www.ausmed.com');
};
<!-- import the css file -->
<link rel="stylesheet" href="https://cdn.ausmed.com/cpd-button/cpdButtonV2.css">

<div class="ausmed-document-cpd-btn">
  <button type="submit" id="ausmedDocButton" class="ausmed-btn ausmed-btn-dark ausmed-btn-lg">
    Document CPD
  </button>
</div>

<div class="ausmed-document-cpd-btn">
  <button type="submit" class="ausmed-btn ausmed-btn-dark">
    Document CPD
  </button>
</div>

<div class="ausmed-document-cpd-btn">
  <button type="submit" class="ausmed-btn ausmed-btn-dark ausmed-btn-sm">
    Document CPD
  </button>
</div>

<div class="ausmed-document-cpd-btn">
  <button type="submit" class="ausmed-btn ausmed-btn-light ausmed-btn-lg">
    Document CPD
  </button>
</div>

<div class="ausmed-document-cpd-btn">
  <button type="submit" class="ausmed-btn ausmed-btn-light">
    Document CPD
  </button>
</div>

<div class="ausmed-document-cpd-btn">
  <button type="submit" class="ausmed-btn ausmed-btn-light ausmed-btn-sm">
    Document CPD
  </button>
</div>

<div class="ausmed-document-cpd-btn">
  <button type="submit" class="ausmed-btn ausmed-btn-primary ausmed-btn-lg">
    Document CPD
  </button>
</div>

<div class="ausmed-document-cpd-btn">
  <button type="submit" class="ausmed-btn ausmed-btn-primary">
    Document CPD
  </button>
</div>

<div class="ausmed-document-cpd-btn">
  <button type="submit" class="ausmed-btn ausmed-btn-primary ausmed-btn-sm">
    Document CPD
  </button>
</div>