fix: issues

This commit is contained in:
Jannat Patel
2021-09-16 18:04:03 +05:30
parent af15d978c6
commit 29855a0cbc
4 changed files with 27 additions and 11 deletions

View File

@@ -169,7 +169,8 @@ var parse_options = () => {
}
var add_icon = (element, icon) => {
$(element).parent().empty().html(`<img class="mr-3" src="/assets/community/icons/${icon}.svg">`);
var label = $(element).parent().find(".label-area p").text();
$(element).parent().empty().html(`<img class="mr-3" src="/assets/community/icons/${icon}.svg"> ${label}`);
}
var add_to_local_storage = (quiz_name, current_index, answer, is_correct) => {