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
28 changes: 28 additions & 0 deletions JavaScript Function/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="root">
this is root
</div>
<button id = "btn">button</button>
<script>
const root = document.getElementById('root')
const btn = document.getElementById('btn')
btn.addEventListener('click',()=>{
root.innerHTML = " button clicked"
root.style.color = 'red'
const div = document.createElement('div');
div.innerText = 'this is new div'
div.style.border = "2px solid black";
root.appendChild(div);
})

</script>
</body>
</html>
1 change: 1 addition & 0 deletions Slider/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#This is Class Task
Binary file added Slider/image1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Slider/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions Slider/image3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions Slider/image4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Slider/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style1.css">
</head>
<body>
<div class="slider">
<img src="image1.jpg" alt="" id="img-1">
<img src="image2.png" alt="" id="img-2">
<div class="navigation-dot">
<span class="dot active" onclick="changeSlider(0)"></span>
<span class="dot" onclick="changeSlider(1)"></span>
</div>
</div>


<script src="slider.js"></script>
</body>
</html>
22 changes: 22 additions & 0 deletions Slider/slider.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var imgs = document.querySelectorAll('.slider img');
var dots = document.querySelectorAll('.dot');

var current = 0;
const interval = 3000;


function changeSlider(n){
for(var i =0;i<imgs.length;i++){
imgs[i].style.opacity = 0;
dots[i].className = dots[i].className.replace('active','');
}

current = n;
imgs[current].style.opacity = 1;
dots[current].className += ' active';
}

let timer = setInterval(()=>{
changeSlider(current);
current = (current+1)% imgs.length;
},interval)
50 changes: 50 additions & 0 deletions Slider/style1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
*{
padding:0px;
margin: 0px;
}
.slider{
width: 50vw;
height:100vh;
position: relative;
}

.slider img{
width:100%;
height:100%;
position: absolute;
top:0;
left:0;
object-fit: fill;
}

.slider img:first-child{
z-index:1;
}
.slider img:nth-child(2){
z-index:0;
}
.slider .navigation-dot{
z-index: 2;
}

.navigation-dot{
position: absolute;
right:2px;
top:5px;
text-align: center;
}

.dot{
cursor:pointer;
height:15px;
width:15px;
margin: 0 2px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
}


.active, .dot:hover{
background-color: #717171;
}
26 changes: 26 additions & 0 deletions TO DOlist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!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>
*{
margin:5px;
padding: 5px;
}
</style>
</head>
<body>
<h1>Creation TO-DO List View</h1>
<input type="text" id="task" placeholder="enter your task here">
<ol id="todo">
//Data wil represent Here
</ol>

<button id="addBtn">Add a task</button>
<button id="delBtn">Remove a task</button>

<script src="script.js"></script>
</body>
</html>
19 changes: 19 additions & 0 deletions TO DOlist/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const items = document.getElementById('todo')
const addBtn = document.getElementById('addBtn')
const delBtn = document.getElementById('delBtn')
const taskAdd = document.getElementById('task')

addBtn.addEventListener('click',function(){
if(taskAdd.value!=''){
const list = document.createElement('li');
list.innerText = task.value;
list.classList.add('list');
items.appendChild(list);
taskAdd.value = '';
}
})

delBtn.addEventListener('click',function(){
const li = document.getElementsByClassName('list')[0];
items.removeChild(li);
})
30 changes: 30 additions & 0 deletions Time Table/BCSC0011.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="teacher.css">
</head>
<body>
<div class="container">
<div class="box">
<div class="info">
<br>
<h4>Name:</h4>
<br>
<h4>Subject:</h4>
<br>
<h4>Occupation:</h4>
<br>
<h4>Email:</h4>
<br>
<h4>Contact:</h4>
<br>
<h4>Subject Code:</h4>
</div>
<div class="photo"><i class="fa-solid fa-image"></i><h5>Photo</h5></div>
</div>
</div>
</body>
</html>
30 changes: 30 additions & 0 deletions Time Table/BCSC0022.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="teacher.css">
</head>
<body>
<div class="container">
<div class="box">
<div class="info">
<br>
<h4>Name:</h4>
<br>
<h4>Subject:</h4>
<br>
<h4>Occupation:</h4>
<br>
<h4>Email:</h4>
<br>
<h4>Contact:</h4>
<br>
<h4>Subject Code:</h4>
</div>
<div class="photo"><i class="fa-solid fa-image"></i><h5>Photo</h5></div>
</div>
</div>
</body>
</html>
30 changes: 30 additions & 0 deletions Time Table/BCSC0812.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="teacher.css">
</head>
<body>
<div class="container">
<div class="box">
<div class="info">
<br>
<h4>Name:</h4>
<br>
<h4>Subject:</h4>
<br>
<h4>Occupation:</h4>
<br>
<h4>Email:</h4>
<br>
<h4>Contact:</h4>
<br>
<h4>Subject Code:</h4>
</div>
<div class="photo"><i class="fa-solid fa-image"></i><h5>Photo</h5></div>
</div>
</div>
</body>
</html>
Loading