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
<!--It's so random but 😭-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width",initial scale="1.0">
<title>Page Title</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<p>Enter a no. between 1 to 100</p>
<input type="number" id="input">
<button id="btn" onclick="clicked()">Read my Mind</button>
</div>
</body>
<script>
function clicked(){
alert("Reading your mind please wait...");
setTimeout(function(){
alert("Still trying to read...");
},2000);
setTimeout(function(){
alert("You've got so many things in your mind T-T");
Enter to Rename, Shift+Enter to Preview
css
css
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
body
{
}
.container{
width:350px;
height:400px;
border:1px solid black;
padding:2px;
border-radius:25px;
background: rgba(255, 255, 255,0.15);
color: darkslategrey;
box-shadow:0 0 5px black;
}
*{
margin:20px;
padding:0;
box-sizing:border-box;
}
#input{
border-radius: 20px;
height: 30px;
width: 250px;
font-size: 1em;
}
#btn{
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run