Installation
Simple Mask
simple-mask/index.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>Document</title>
<link rel="stylesheet" href="css/master.css">
</head>
<body>
<input type="text" name="date" placeholder="00/00/0000" data-mask="00/00/0000">
<input type="text" name="cpf" placeholder="000.000.000-00">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>
simple-mask/js/main.js:
$(document).ready(function () {
$('input[name=cpf]').mask('000.000.000-00')
})
simple-mask/css/master.css:
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
input {
text-align: right;
font-size: 2rem;
}
Others