Your IP : 216.73.216.76


Current Path : /home/kamilrogam/lab/
Upload File :
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>&quot;Sztuczna inteligencja&quot;</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>