-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (108 loc) · 6.71 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!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>Insta-Sohor</title>
<link rel="shortcut icon" href="https://cdn-icons-png.flaticon.com/512/1719/1719653.png" type="image/x-icon">
<!-- Latest compiled and minified CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- google Montserrat font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap" rel="stylesheet" />
<!-- Custom CSS -->
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light px-5">
<a class="navbar-brand" href="#">Insta-Sohor</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto">
<li class="nav-link active" role="button" onclick="switchTab( 'posts' )">
<i class="fa-solid fa-house"></i>
</li>
<li class="nav-link active" role="button" onclick="switchTab( 'liked' )">
<i class="fa-solid fa-heart text-danger"></i>
</li>
<li class="nav-link active" role="button" onclick="switchTab( 'reported' )">
<i class="fa-solid fa-eye-slash"></i>
</li>
</ul>
</div>
</nav>
</header>
<main class="main container mx-auto p-3">
<div id="posts">
</div>
<div id="liked">
<h1>Liked posts</h1>
</div>
<div id="reported">
<h1>Reported posts</h1>
</div>
</main>
<!-- Frequently Asked Questions -->
<section id="faq" class="container mx-auto py-4">
<h1 class="text-center py-4">Frequently Asked <span class="text-primary">Questions</span></h1>
<div class="row row-cols-1 row-cols-lg-2 g-4 d-lg-flex align-items-lg-center">
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button fw-bold fs-5" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
How does javascript works?
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>Javascript is scripting or a programming language.</strong> It allows the creation or changes of any data on web pages dynamically. <br>
It is not a compiler language. When Javascript code runs on a browser, the browser translates into bytecode using a compiler. Then the machine can understand the bytecode and execute the result to the user.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingTwo">
<button class="accordion-button collapsed fw-bold fs-5" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
What does javascript event loop do?
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo" data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>JavaScript is a synchronous and single-threaded language.</strong> That means that only one operation can be in progress at a time. <br>
When an asynchronous function call, javascript skip the asynchronous function. And complete all synchronous element, then Javascript excute the asynchronous function. This procedure called javascript event loop.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingThree">
<button class="accordion-button collapsed fw-bold fs-5" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
What is the difference between Local Storage and session Storage?
</button>
</h2>
<div id="collapseThree" class="accordion-collapse collapse" aria-labelledby="headingThree" data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>Local Storage and Session storage both are used to store data.</strong> These are Similar. But also have a little difference. <br>
<strong>Local storage</strong> doesn't remove data when the web page has been closed. Even if the browser also closed local storage doesn't remove data. <br>
<strong>Session Storage</strong> store data temporally. If user close the page session storage will remove all the data which was stored.
</div>
</div>
</div>
</div>
<div class="faq-image">
<img class="img-fluid rounded-3" src="img/faq-image.jpg" alt="Frequently Asked Questions">
</div>
</div>
</section>
<footer></footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<!-- add javascript file -->
<script src="js/app.js"></script>
</body>
</html>