Professional Documents
Culture Documents
Web 04
Web 04
h1 {
font-size: 5rem;
color: #DBEDF3;
font-family: "Arvo", cursive;
text-shadow: 3px 0 #DA0463;
footer {
color: #DBEDF3;
font-family: sans-serif;
}
.w {
background-image: url("/Users/ajomathew/Downloads/Drum Kit Starting
Files/images/tom1.png");
}
.a {
background-image: url("/Users/ajomathew/Downloads/Drum Kit Starting
Files/images/tom2.png");
}
.s {
background-image: url("/Users/ajomathew/Downloads/Drum Kit Starting
Files/images/tom3.png");
}
.d {
background-image: url("/Users/ajomathew/Downloads/Drum Kit Starting
Files/images/tom4.png");
}
.j {
background-image: url("/Users/ajomathew/Downloads/Drum Kit Starting
Files/images/crash.png");
}
.k {
.l {
background-image: url("/Users/ajomathew/Downloads/Drum Kit Starting
Files/images/snare.png");
}
.set {
margin: 10% auto;
}
.game-over {
background-color: red;
opacity: 0.8;
}
.pressed {
box-shadow: 0 3px 4px 0 #DBEDF3;
opacity: 0.5;
}
.red {
color: red;
}
.drum {
outline: none;
border: 10px solid #404B69;
font-size: 5rem;
font-family: 'Arvo', cursive;
line-height: 2;
font-weight: 900;
color: #DA0463;
text-shadow: 3px 0 #DBEDF3;
border-radius: 15px;
display: inline-block;
width: 150px;
height: 150px;
text-align: center;
margin: 10px;
background-color: white;
}
Advanced Js
var houseKeeper = {
}
console.log(houseKeeper.name);
console.log(houseKeeper.age);
console.log(houseKeeper.hasWorkPermit);
console.log(houseKeeper.languagesSpeak);
Constructor Function
Rules:
Eg:
this.name = name;
this.age = age;
this.languages = languages;
}
Initialise the object
var bellBoy1 = new BellBoy("Ajo", 33, "yes", ["English", "Tamil"]);
var bellBoy1 = new BellBoy("Ajo", 44, "no", ["German", "French"]);
Eg:
and initialise it
var houseKeeper1 = new HouseKeeper("Ajo", 34, "yes");
Output:
HouseKeeper {name: 'Ajo', age: 34, hasWorkPermit: 'yes'}
Also,
console.log(houseKeeper1.name);
IMPORTANT TOPIC
How to get a particular text manipulated?
Here w, a, s, d j, k or l : how to get these
texts?
Ans: var key = this.innerHTML;
or
<body>