diff --git a/frontend/index.html b/frontend/index.html
index ee2ef31..393e05e 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -344,6 +344,7 @@
const end_year = date.getFullYear();
var current_month = start_month;
var current_year = start_year;
+
dates.push([current_month, current_year]);
while (!(current_month == end_month && current_year == end_year)) {
current_month += 1;
@@ -356,6 +357,28 @@
};
return dates;
};
+
+ function getDictionaryList(form_list) {
+ var quest_dict = {};
+ return new Promise(async (resolve) => {
+ for (i in form_list) {
+ response = await fetch(form_list[i]);
+ text = await response.text();
+ const parser = new DOMParser();
+ const doc = parser.parseFromString(text, "text/xml");
+ labels = doc.getElementsByTagName("label");
+ for (i in labels) {
+ try {
+ if ((labels[i].parentNode.getAttribute("appearance") !== "label" && labels[i].parentNode.nodeName != "input")) //label type questions don't ever have answers
+ {
+ quest_dict[labels[i].parentNode.getAttribute("ref").split('/').slice(-1)] = labels[i].firstChild.data;
+ }
+ } catch (e) { }
+ }
+ }
+ resolve(quest_dict);
+ })
+ };