forked from alexey-goloburdin/phoneinput
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (33 loc) · 1.06 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<head>
<title>Phone input</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="phoneinput.js"></script>
<!-- Optional cosmetic CSS -->
<style type="text/css">
* {padding: 0px; margin: 0px;}
body{
height: 100%; width: 100%;
display: flex; flex-direction: column;
align-items: center; justify-items: center;
}
input {
font-size: 30px; padding: 15px; border: 1px solid #ccc;
min-width: 300px; max-width: 400px; width: 90%;}
input:focus {outline: none;}
.placeholder{flex: 1;}
</style>
<!-- Optional cosmetic JS -->
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(){
document.querySelector('input').focus();
})
</script>
</head>
<body>
<div class="placeholder"></div>
<input type="tel" data-tel-input placeholder="Телефон" maxlength="18" />
<div class="placeholder"></div>
</body>
</html>