JSFiddle - React, Tailwind, and code Playground
by ibcaliax
HTML
<!DOCTYPE html>
<html>
<head>
<title>foo</title>
</head>
<body>
<h2>Run this in Firefox and open the console, please</h2>
<button id="run">Run</button>
</body>
</html>
CSS
body {
font-family: "Verdana";
font-size: 9pt;
}
JavaScript
window.onload = function()
{
console.info('window "onload" event');
}
function run()
{
console.info('run()');
navigator.mediaDevices.getUserMedia({ audio: true })
.then(() => console.info('success!'))
.catch((error) => console.error(error));
}