Skip to content

Instantly share code, notes, and snippets.

@tanvirstreame
Created November 22, 2022 14:43
Show Gist options
  • Save tanvirstreame/8b3f38bb08b6f02192a56f382820b96b to your computer and use it in GitHub Desktop.
Save tanvirstreame/8b3f38bb08b6f02192a56f382820b96b to your computer and use it in GitHub Desktop.
Sticky depended scroll
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<style>
thead {
position: sticky;
position: -webkit-sticky;
top: 0;
z-index: 999;
margin-top: 100px;
background-color: #000;
color: #fff;
}
.table-div {
height: 600px;
overflow-y: scroll;
margin-bottom: 200px;
}
.table-div-sticky {
position: sticky;
position: -webkit-sticky;
top: 20;
}
</style>
</head>
<body>
<div class="container">
<div class="row pt-5">
<div class="col-md-12">
<h4>Personal Data</h4>
<hr/>
</div>
</div>
<div class="row pb-5 pt-5">
<div class="col-md-6">
<input class="form-control" type="text" placeholder="Search.." />
</div>
<div class="col-md-6">
<input class="btn btn-primary float-end" type="button" value="Refresh" />
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="table-div-sticky">
<div class="table-div">
<table class="table">
<thead>
<tr>
<th scope="col">Id</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script>
const tableData = [
{
id: 1, firstName: "Tanvir", lastName: "Islam"
},
{
id: 2, firstName: "Tanvir", lastName: "Islam"
},
{
id: 3, firstName: "Tanvir", lastName: "Islam"
},
{
id: 4, firstName: "Tanvir", lastName: "Islam"
},
{
id: 5, firstName: "Tanvir", lastName: "Islam"
},
{
id: 6, firstName: "Tanvir", lastName: "Islam"
},
{
id: 7, firstName: "Tanvir", lastName: "Islam"
},
{
id: 8, firstName: "Tanvir", lastName: "Islam"
},
{
id: 9, firstName: "Tanvir", lastName: "Islam"
},
{
id: 10, firstName: "Tanvir", lastName: "Islam"
},
{
id: 11, firstName: "Tanvir", lastName: "Islam"
},
{
id: 12, firstName: "Tanvir", lastName: "Islam"
},
{
id: 13, firstName: "Tanvir", lastName: "Islam"
},
{
id: 14, firstName: "Tanvir", lastName: "Islam"
},
{
id: 15, firstName: "Tanvir", lastName: "Islam"
},
{
id: 16, firstName: "Tanvir", lastName: "Islam"
},
{
id: 17, firstName: "Tanvir", lastName: "Islam"
},
{
id: 18, firstName: "Tanvir", lastName: "Islam"
},
{
id: 19, firstName: "Tanvir", lastName: "Islam"
}
];
let rowData = "";
tableData.forEach(each => {
rowData += `<tr>
<th scope="row">${each.id}</th>
<td>${each.firstName}</td>
<td>${each.lastName}</td>
</tr>`
})
document.getElementById("tbody").insertAdjacentHTML('afterend', rowData);
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
</body>
</html>
@rizzu-coder
Copy link

Namaz is an Islamic ritual prayer which is performed five times a day by Muslims all over the world. It is the most important part of their daily spiritual practice and is an integral part of Islamic worship. Namaz is a physical, mental, and spiritual act of worship, in which Muslims stand in prayer to Allah. During prayer, they recite verses from the Quran, bow in reverence, and make supplications. Namaz is performed facing the direction of the Kaaba in Mecca, Saudi Arabia. It is believed that the rewards of performing namaz are immense and that it can bring peace and harmony to one's life.

If you want to know How many rakats in jummah
Namaz is a religious practice of Muslims, and is one of the five pillars of Islam. It is an obligatory prayer that is performed five times a day by Muslims all around the world. Namaz consists of a set of prayers which are recited in a specific order and with specific movements. It is a way to communicate with God and to express gratitude and reverence towards Him. The five daily prayers of Namaz include Fajr, Zuhr, Asr, Maghrib, and Isha. All five prayers are mandatory for Muslims regardless of their age, gender, or occupation. Through Namaz, Muslims are able to strengthen the connection with Allah and maintain a positive attitude towards life.

#islam#namaz#dua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment