var options = [
'sound of a crying kid',
'sound of a laughing kid',
'kid pops up in the screenshare',
'barking dog',
'bird voices',
'pet in the screenshare',
'apologizing for the kid',
'apologizing for the pet',
'construction noise in the background',
'garbage truck noise in the background',
'hooter sound in the background',
'washing machine / dishwasher final beeps',
'neighbor starts drilling',
'door bell',
'ringing mobile',
'chocolate / candy / chips noises',
'swearing / croaking without mute',
'kid\'s whining in the background about so much homework',
'"lunch is ready!" sounds',
'someone\'s asking in the background',
'corona/covid19 phrase',
'covid19 related joke',
'sound from another adult on WFH',
'another adult on WFH seen in the background',
'toilet flush sound',
];
var bingo = document.getElementById('bingo');
var reset = document.getElementById('reset');
var circle = document.querySelector('.circle');
var maxSkew = 5;
var onSquareClick = function(inner) {
return function(e) {
e.preventDefault();
var innerCircle = inner.querySelector('.circle');
if (innerCircle === null){
var clone = circle.cloneNode(true);
console.log(clone.children[0].transform);
var cicleNode = clone.children[0];
cicleNode.setAttribute('transform', 'rotate('+(-90 + Math.round(Math.random()*360))+' 100 100) skewX('+Math.round((Math.random()*maxSkew*2)-maxSkew)+') skewY('+Math.round((Math.random()*maxSkew*2)-maxSkew)+')');
cicleNode.setAttribute('stroke-width', 2 + Math.round((Math.random()*20))/10);
inner.appendChild(clone);
}
else
inner.removeChild(innerCircle);
};
}
reset.addEventListener('click', function(e) {
e.preventDefault();
var circles = document.querySelectorAll('#bingo .circle');
for (var i = 0; i < circles.length; i++) {
var el = circles[i];
el.parentNode.removeChild(el);
}
});
for (var i = 0; i < options.length; i++) {
var square =...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.