it

Tentativo 1 useful sentences

Inserisci qui il tuo testo...

let chartData = { authorName: "", pseudonym: "", nickname: "", birthDate: "", birthPlace: "", deathDate: "", timePeriod: "", literaryMovement: "", educationType: "", educationSchool: "", placesLived: "", peculiarEvents: "", mainWorkTitle: "", mainWorkGenre: "", mainWorkSynthesis: "", otherWorks: [ { title: "", genre: "", synthesis: "" }, { title: "", genre: "", synthesis: "" }, { title: "", genre: "", synthesis: "" } ] }; function generateUsefulExpressions() { // Retrieve user inputs from the biography chart chartData.authorName = document.getElementById("author-name").value; chartData.pseudonym = document.getElementById("pseudonym").value; chartData.nickname = document.getElementById("nickname").value; chartData.birthDate = document.getElementById("birth-date").value; chartData.birthPlace = document.getElementById("birth-place").value; chartData.deathDate = document.getElementById("death-date").value; chartData.timePeriod = document.getElementById("time-period").value; chartData.literaryMovement = document.getElementById("literary-movement").value; chartData.educationType = document.getElementById("Education-type").value; chartData.educationSchool = document.getElementById("Education-school").value; chartData.placesLived = document.getElementById("places-lived").value; chartData.peculiarEvents = document.getElementById("peculiar-events").value; chartData.mainWorkTitle = document.getElementById("main-work-title").value; chartData.mainWorkGenre = document.getElementById("main-work-genre").value; chartData.mainWorkSynthesis = document.getElementById("main-work-synthesis").value; chartData.otherWorks[0].title = document.getElementById("other-work1-title").value; chartData.otherWorks[0].genre = document.getElementById("other-work1-genre").value; chartData.otherWorks[0].synthesis = document.getElementById("other-work1-synthesis").value; chartData.otherWorks[1].title = document.getElementById("other-work2-title").value; chartData.otherWorks[1].genre = document.getElementById("other-work2-genre").value; chartData.otherWorks[1].synthesis = document.getElementById("other-work2-synthesis").value; chartData.otherWorks[2].title = document.getElementById("other-work3-title").value; chartData.otherWorks[2].genre = document.getElementById("other-work3-genre").value; chartData.otherWorks[2].synthesis = document.getElementById("other-work3-synthesis").value; // Generate useful expressions based on the user inputs let expressions = []; expressions.push("The author was born in " + chartData.birthPlace + "."); expressions.push("The first work published by " + chartData.authorName + " was entitled \"" + chartData.mainWorkTitle + "\"."); expressions.push(chartData.authorName + " was known by the pseudonym \"" + chartData.pseudonym + "\"."); expressions.push(chartData.authorName + " lived in " + chartData.placesLived + "."); expressions.push("During the " + chartData.timePeriod + ", the author was associated with the " + chartData.literaryMovement + " literary movement."); expressions.push("One of the peculiar events in the author's life was