Brut Force Type

by Yunus Gaziev

HTML

<p id="target">Jet Brains Mono</p>

CSS

@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

* {
	box-sizing: border-box;
}

html {
	font-family: 'Inter', sans-serif;
}

html,
body {
	margin: 0;
	padding: 0;
	
	width: 100%;
	height: 100%;
	
	font-size: 36px;
	line-height: 1.5;
}

body {
	display: flex;
	align-items: center;
	justify-content: center;
}

JavaScript

const symbols = '1 2 3 4 5 6 7 8 9 0 q w e r t y u i o p a s d f g h j k l z x c v b n m'.split(' ');

console.log(symbols);

const target = document.getElementById('target');

target.addEventListener('mouseenter', (evt) => {
	console.log(target.innerText.toLowerCase());
});