-
Notifications
You must be signed in to change notification settings - Fork 0
/
learning_1.html
87 lines (84 loc) · 2.41 KB
/
learning_1.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#demo {
width: 100%;
border: 2px solid red;
color: darkgreen;
background-color: skyblue;
}
#hack {
background-color: black;
color: green;
width: 200px;
display: flex;
justify-content: center;
align-items: center;
height: 30vh;
}
#here{
font-weight: 600;
background-color: red;
width: 100px;
border: 0px solid;
border-radius: 60px;
padding: 10px;
animation: animate_button 0.9s ease-in 0.9s infinite;
}
.anima{
height: 100px;
width: 100px;
background-color: black;
color: white;
display: grid;
grid-template-columns: 0;
margin: 0;
}
.inside{
animation: bouncer 0.7s ease-in-out 0.2s infinite ;
}
@keyframes bouncer {
0%{
margin-top:0px;
}
25%{
margin-top: 20px;
}
}
</style>
</head>
<body>
<script>
alert("hi dude")
</script>
<h1>header</h1>
<button type="button" onclick="document.write(10+10)">click to check the result</button>
<h3>Want to print the current page? click this button!</h3>
<button type="button" onclick="window.print()">Print</button>
<p id="demo"></p>
<div id="hack">
<div id="inner">
<button id="here" type="button" onclick="cool()">Show some cool stuffs</button>
<marquee id="cool" behavior="slide" direction="left" ></marquee>
</div>
</div>
<script>
document.write(5 + 6)
console.log(10)
document.getElementById("demo").innerHTML =
"Hello world This is made from java script magic!!";
function cool() {
document.getElementById("here").value;
document.getElementById("here").innerHTML =
"COOL STUFFS";
}
</script>
<div class="anima">
<div class="inside">Hii</div><br>
</div>
</body>
</html>