gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
Make a HTML with odd content like "Progressbar is coolist podfhb." in a div and a button…
- User
Make a HTML with odd content like "Progressbar is coolist podfhb." in a div and a button that shows "Hit me" to change the odd content in a div to "OK" and a few others like random image links.
- Assistant
var imageLinks = [ "https://picsum.photos/200/300", "https://picsum.photos/300/200", "https://picsum.photos/250/250", "https://picsum.photos/350/150", "https://picsum.photos/150/350", ]; var randomIndex = Math.floor(Math.random() * imageLinks.length); var randomImageLink = imageLinks[randomIndex]; var img = document.createElement("img"); img.src = randomImageLink; oddContent.appendChild(img); } </script>