Colour streamlined authorities in orange

This commit is contained in:
RunasSudo 2023-02-11 20:24:22 +11:00
parent b5fd01bd4f
commit 2d434d60f5
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -24,6 +24,8 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css" integrity="sha256-4RctOgogjPAdwGbwq+rxfwAmSpZhWaafcZR9btzUk18=" crossorigin="anonymous">
<style type="text/css">
#search-results ul { margin-top: 0.5em; margin-bottom: 0 }
tr.bg-orange { border-color: #e4cfb3; color: #000 }
tr.bg-orange td { background-color: #ffe9cd }
.popover { max-width: 400px }
</style>
</head>
@ -212,7 +214,7 @@
tr.classList.add('table-warning');
} else if (item['benefit_type'] === 'streamlined') {
td = document.createElement('td'); td.innerHTML = '<a href="https://www.pbs.gov.au/medicine/item/' + item['code'] + '" target="_blank">Streamlined</a>'; tr.appendChild(td);
tr.classList.add('table-warning');
tr.classList.add('bg-orange');
} else if (item['benefit_type'] === 'authority') {
td = document.createElement('td'); td.innerHTML = '<a href="https://www.pbs.gov.au/medicine/item/' + item['code'] + '" target="_blank">Authority</a>'; tr.appendChild(td);
tr.classList.add('table-danger');