html
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
<!DOCTYPE html>
<html>
<head>
<title>IPHONE KEYPAD</title>
</head>
<body>
<a class='call' href='' hidden></a>
<div class='container'>
<center>
<div class="textarea-container">
<button onclick="document.querySelector('.number-input').value=document.querySelector('.number-input').value.slice(0, -1)">⌫</button>
</div>
<input disabled class='number-input'>
</center>
<div class='btns'>
Enter to Rename, Shift+Enter to Preview
css
css
1
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
function insert(num) {
document.querySelector('.number-input').disabled = false;
document.querySelector('.number-input').value += num;
document.querySelector('.number-input').disabled = true
}
function call() {
var a = document.querySelector('.call');
a.href = `tel:${document.querySelector('.number-input').value}`;
a.click()
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run