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
43 changes: 43 additions & 0 deletions Day1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<scriptn src="./index.js"></script>
<script type="text/javascript">
var x;
function update() {
x = document.getElementById("text");
console.log("Inside the update function!");
x.innerHTML = document.getElementById("inp").value;
}
</script>
<title>Document</title>
</head>
<body>
<!-- inline -->
<div id="div1">
<button onclick="alert('inline script!')">click!</button>
</div>
<br />
<!-- internal -->
<div id="div2">
<h4 id="text"></h4>
<input type="text" id="inp" value="">
<input type="submit" value="submit" onclick="update()">
</div>
<br />
<!-- external -->
<div id="div3">
<input type="text" id="write" value="">
<button onclick="writeText(document.getElementById('write').value)">write</button>
</div>
<br />
<form>
<input type="button" value="Print"
onclick="window.print()" />
</form>

</body>
</html>
3 changes: 3 additions & 0 deletions Day1/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function writeText(text) {
document.write(text);
}
31 changes: 31 additions & 0 deletions Day2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Document</title>

</head>
<body>
<div id="first">
First
</div>
<div id="second">
Second
</div>
<div id="third">
Third
</div>
<div id="fourth">
Fourth
</div>
<div id="fifth">
Fifth

</div>

<script src="./index.js"></script>
</body>
</html>
9 changes: 9 additions & 0 deletions Day2/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
alert("Hello");
document.getElementById("first").innerHTML="<h4>Changed HTML</h4>";
document.getElementById("second").style.fontSize="20px";
document.getElementById("third").style.display="none";
document.getElementById("fourth").style.visibility="hidden";
document.getElementById("fifth").value="Changed Value";

const fruits=["Banana", "Orange", "Apple", "Mango"];