JSFiddle - React, Tailwind, and code Playground
by timmah
HTML
<h3 id="scheduling-proposals-referred-to-july-august-2015-march-2016">1. Scheduling proposals referred to the July/August 2015 and March 2016 meeting of the Advisory Committee on Medicines Scheduling (ACMS# 15 and ACMS#17)</h3>
<h4 id="codeine">Codeine</h4>
<h5 id="delegate-s-scheduling-proposal">Delegate's scheduling proposal</h5>
<p>The medicines scheduling delegate (the delegate) referred the following scheduling proposal for consideration by the Advisory Committee on Medicines Scheduling (ACMS) at the July/August 2015 meeting:</p>
<ul>
<li>Proposal to delete the Schedule 3 entry for codeine, and re-schedule all current Schedule 3 codeine to Schedule 4 due to issues including morbidity, toxicity and dependence.</li>
<li>Consideration could include whether all current Schedule 3 preparations should be re-scheduled to Schedule 4, or whether any re-scheduling to Schedule 4 should only apply to combination analgesic products containing codeine.</li>
<li>Consideration could include whether the Schedule 2 entry for codeine should also be amended.</li>
</ul>
<h5 id="substance-summary">Substance summary</h5>
<p>Codeine or its salts, especially the phosphate, are given orally in the form of linctuses for the relief of cough, and as tablets for the relief of mild to moderate pain, often with a non-opioid analgesic such as aspirin, ibuprofen, or paracetamol. The phosphate is also given by intramuscular injection, in doses similar to those used orally, for the relief of pain; the intravenous, subcutaneous, and rectal routes have also been used.</p>
<p>For the relief of pain codeine phosphate may be given in doses of 30 to 60 mg every 4 hours to a usual maximum of 240 mg daily.</p>
<p>To allay non-productive cough codeine phosphate may be given in doses of 15 to 30 mg three or four times daily.</p>
<p>Codeine phosphate is also used as tablets or in mixtures for the symptomatic relief of acute diarrhoea in doses of 15 to 60 mg given three to four times...
JavaScript
var $pageMenu = '<div class="pagemenu"><ul></ul></div>',
$items = [];
$('h6').nextUntil('h6', 'p.keywords').each(function() {
console.log($(this).text());
/*
var $this = $(this),
$text = $this.text(),
$id = $this.attr('id'),
$template = '<li><a href=#' + $id + '>' + $text + '</a></li>'
$items.push($template);
*/
});
/*
$('body > *:first').before($pageMenu);
$('#pageMenu ul').append($items)
*/