-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
145 lines (136 loc) · 5.48 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script type="text/javascript" src="./script.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<style>
.bod {
padding-top: 120px;
background: linear-gradient(90deg, #4c4446 0%, #3a1c71 100%);
}
.boda {
background: linear-gradient(90deg, #402a63 0%, #4c4446 100%);
}
.first{
height: 400px;
background-color: red;
}
.second{
height: 400px;
background-color: blue;
}
img{
width: 120%;
height: 120%;
}
.but{ justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<div class="container-fluid a_con p-0">
<header class="p-0 bg-dark ">
<div class="h_part">
<nav class="navbar navbar-expand-lg bg-dark">
<div class="container-fluid">
<a class="navbar-brand ms-5 mb-1 text-white mt-2" href="#">Javascript Project</a>
<button
class="navbar-toggler bg-dark mt-4"
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 mt-3" id="navbarSupportedContent">
<ul class="navbar-nav me-auto ms-5 mb-3 ">
<li class="nav-item">
<a
class="nav-link active text-white"
aria-current="page"
href="#"
>Home</a
>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#">about</a>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle text-white"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
Languages
</a>
<ul class="dropdown-menu ">
<li>
<a class="dropdown-item text-black" href="#"
>Contact
</a>
</li>
<li>
<a class="dropdown-item text-black" href="#">Github</a>
</li>
<li><hr class="dropdown-divider" /></li>
<li>
<a class="dropdown-item text-black" href="#">Review</a>
</li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link text-white" aria-disabled="true"
>Social</a
>
</li>
</ul>
<form class="d-flex mb-2 me-" role="search">
<input
class="form-control me-2"
type="search"
placeholder="Search"
aria-label="Search"
/>
<button
class="btn btn-outline-success text-white "
type="submit"
>
Search
</button>
</form>
</div>
</div>
</nav>
</div>
</header>
<div class="container mt-5 bg-dark">
<div class="row">
<div class="col-md-8 text-center bod text-white first">
<h1 class="mb-4">
Javascript , Bulb Switch On/Off Effect
</h1>
<p>
Start Bootstrap creates free, open source, MIT license, Bootstrap
themes, templates, and code snippets for you to use on any project,
guides to help you learn more about designing and developing with
the Bootstrap framework, and premium Bootstrap UI products
</p>
<button onclick="clickme('on')" class="btn btn-danger but">Switch On</button>
<button onclick="clickme('off')" class="btn btn-danger but">Switch Off</button>
</div>
<div class="col-md-4 second boda text-white">
<img id="myimg" class=" pe-5 pb-5 " src="./dulll-removebg-preview.png">
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>