Welcome to my Website!
This is a paragraph! Here's how you make a link:
Neocities
.
Intro:
--Make a choice--
2
1
0
var select = document.querySelector('select'); var para = document.querySelector('p'); select.addEventListener('change', setIntro); function setIntro() { var choice = select.value; if (choice === '2') { para.textContent = 'It is nice and sunny outside today. Wear shorts! Go to the beach, or the park, and get an ice cream.'; } else if (choice === '1') { para.textContent = 'Rain is falling outside; take a rain coat and a brolly, and don\'t stay out for too long.'; } else if (choice === '0') { para.textContent = 'The snow is coming down — it is freezing! Best to stay in with a cup of hot chocolate, or go build a snowman.'; } else { para.textContent = ''; } }