diff --git a/js/script.js b/js/script.js index 673b83b..000e17a 100644 --- a/js/script.js +++ b/js/script.js @@ -76,7 +76,11 @@ continueToNextChoice = function(s) { if (s.currentChoices.length > 0) { const characters = listCharacters(jQuery("#content").text()); if (characters.trim().length > 0) { - jQuery("#content").prepend('
'+characters.trim()+'
') + if (jQuery("#content .portraits").length === 0) { + jQuery("#content").prepend('
'+characters.trim()+'
') + } else { + jQuery(".portraits").html(characters.trim()) + } } jQuery("#options").html("").hide(); ref = s.currentChoices;