| Current Path : /home/kamilrogam/lab/ |
| Current File : /home/kamilrogam/lab/sztuczna_inteligencja.html |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>"Sztuczna inteligencja"</title>
<style>
button{
background: #cc0000;
color:#fff;
font-size: 1.5em;
padding: 10px 25px;
text-transform: uppercase;
border:none;
cursor:pointer;
}
</style>
</head>
<body>
<h1>Włącz glośnik i mnie kliknij:</h1>
<button id="plump" type="button">BUM!</button>
<script>
var button = document.getElementById('plump');
function sztucznaInteligencjoPrzemow() {
var tajnaWiadomoscSztucznejInteligencji = 'No Hej. Jestem sztuczną inteligencją. hehehe. Max przy mnie siada hehehe'
var sztucznaInteligencjaGada = new SpeechSynthesisUtterance(tajnaWiadomoscSztucznejInteligencji);
window.speechSynthesis.speak(sztucznaInteligencjaGada);
}
button.addEventListener('click', sztucznaInteligencjoPrzemow);
</script>
</body>
</html>