Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions LIT2025055/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aj Hogi Js Bhenkrr Wali</title>
<script src="script.js"></script>


</head>

<body id="body">
<h1 class="hello" id="heading">Heading</h1>
<p class="para">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi possimus ipsam modi error quaerat dolorum
mollitia corrupti rerum reprehenderit vero eos iure saepe accusantium consequatur, tenetur ratione odio adipisci
corporis deserunt magni! Repellat, sequi nihil officia nobis nam ex! Temporibus quam perspiciatis ullam nam ea
reiciendis, numquam commodi ipsum delectus.
</p>
<h2>Heading<span id="heading2span">2</span></h2>
<div>
<p class="para">something</p>
</div>
<button onclick ="color()" class="abcd"
onclick="color1()">
Hello

</button >
<style>
.abcd {
color: white;
background-color: rgb(5, 163, 69);
height: 40px;
width: 100px;
font-size: x-large;

border: none;
border-radius: 50px;
transition: 0.10s;
}

.abcd:hover {
height: 45px;
width: 110px;
}
</style>
</body>

</html>
35 changes: 35 additions & 0 deletions LIT2025055/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@



class Tree {

constructor(type, age) {
this.age = age;
this.type = type;

}


getFruit() {
if (this.type == "mango" || this.type == "apple") {
console.log(this.type + " fruit");
} else {
console.log("No Fruit");
}
}
}

let mangoTree1 = new Tree("mango", 10);
mangoTree1.getFruit();
let anotherTree1 = new Tree("idontknowman", 1);
anotherTree1.getFruit();



function color(){
let element = document.getElementById('body')
if(element.style.backgroundColor == "pink"){
element.style.backgroundColor ="white";
}else{element.style.backgroundColor = "pink"};
}

9 changes: 0 additions & 9 deletions README.md

This file was deleted.