From 52d724afaa39087c41e7a62ad414868afb3bb05b Mon Sep 17 00:00:00 2001 From: Frank Knoll Date: Sat, 13 Jul 2024 21:43:53 +0200 Subject: [PATCH] removing some unused code --- docs/UIUtils.js | 47 --------------- docs/batchCodes.html | 132 ++++++++++++++++++++++--------------------- 2 files changed, 69 insertions(+), 110 deletions(-) diff --git a/docs/UIUtils.js b/docs/UIUtils.js index 4b939b18526..6aae5dc2c68 100644 --- a/docs/UIUtils.js +++ b/docs/UIUtils.js @@ -20,61 +20,14 @@ class UIUtils { return document.getElementById(templateId).content.firstElementChild.cloneNode(true); } - static createCanvas() { - return UIUtils.instantiateTemplate('template-canvas'); - } - static clear(container) { container.replaceChildren(); } - static createChartViewElementWithHeading(heading) { - const chartViewElement = UIUtils.instantiateTemplate('template-ChartView'); - chartViewElement.querySelector(".heading").textContent = heading; - return { - chartViewElement: chartViewElement, - canvas: chartViewElement.querySelector(".canvas") - }; - } - static getSelectedOption(selectElement) { return selectElement.options[selectElement.selectedIndex]; } - static getYLabelWithPercent(context) { - return UIUtils.#getLabelWithPercent(context, context.parsed.y); - } - - static getXLabelWithPercent(context) { - return UIUtils.#getLabelWithPercent(context, context.parsed.x); - } - - static #getLabelWithPercent(context, value) { - let label = context.dataset.label || ''; - - if (label) { - label += ': '; - } - if (value !== null) { - label += value.toFixed(1) + "%"; - } - return label; - } - - static getPercentageScale(label) { - return { - min: 0, - max: 100, - title: { - display: true, - text: label - }, - ticks: { - callback: value => value + "%" - } - } - } - static getSearchParam(urlParams, searchParam, defaultValue) { return urlParams.has(searchParam) ? urlParams.get(searchParam) : diff --git a/docs/batchCodes.html b/docs/batchCodes.html index 97d3f55bf77..e11eeef01ce 100644 --- a/docs/batchCodes.html +++ b/docs/batchCodes.html @@ -1,34 +1,41 @@ + - - -Batch Codes of Coronavirus 2019 Vaccines - - - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + -

Batch Codes of Coronavirus 2019 Vaccines

- - - - - - - - - - - - - - - -
BatchAdverse Reaction ReportsDeathsDisabilitiesLife-Threatening IllnessesHospitalizationsCompanySevere reportsLethalityCountries
- - - +
+ + + \ No newline at end of file