Skip to content

Commit 73bf0c5

Browse files
committed
Added Background Generator
1 parent ed3bd82 commit 73bf0c5

23 files changed

+8860
-0
lines changed

BackgroundGenerator/Somil-Shukla/README.md

Whitespace-only changes.

BackgroundGenerator/Somil-Shukla/css/all.min.css

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BackgroundGenerator/Somil-Shukla/css/bootstrap.min.css

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
button {
2+
margin-top: 50vh
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Document</title>
8+
<!--bootstrap-->
9+
<link rel="stylesheet" href="./css/bootstrap.min.css">
10+
<!--main-->
11+
<link rel="stylesheet" href="./css/style.css">
12+
<!--google fonts -->
13+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Courgette">
14+
<!-- font awesome-->
15+
<!-- for local copies of font awesome, ensure webfont folder is also in local root directory-->
16+
<link rel="stylesheet" href="./css/all.min.css">
17+
</head>
18+
<body>
19+
<div class="container">
20+
<div class="row max-height align-items-center text-center">
21+
<div class="col">
22+
<button class="btn btn-outline-secondary">Click Me!</button>
23+
</div>
24+
25+
</div>
26+
27+
</div>
28+
29+
<!--jQuery-->
30+
<script src="./js/jquery-3.4.1.min.js"></script>
31+
<!--bootstrap-->
32+
<script src="./js/bootstrap.bundle.min.js"></script>
33+
<script src="./js/script.js"></script>
34+
</body>
35+
</html>

BackgroundGenerator/Somil-Shukla/js/bootstrap.bundle.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BackgroundGenerator/Somil-Shukla/js/jquery-3.4.1.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//Choose a random color
2+
const button = document.querySelector('button')
3+
const body = document.querySelector('body')
4+
const colors = ['red', 'green', 'blue', 'yellow', 'pink', 'purple']
5+
6+
body.style.backgroundColor = 'violet'
7+
button.addEventListener('click', changeBackground)
8+
9+
function changeBackground(){
10+
const colorIndex= parseInt(Math.random()*colors.length+1)
11+
body.style.backgroundColor = colors[colorIndex]
12+
}
Binary file not shown.

BackgroundGenerator/Somil-Shukla/webfonts/fa-brands-400.svg

+3,459
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

BackgroundGenerator/Somil-Shukla/webfonts/fa-regular-400.svg

+803
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

BackgroundGenerator/Somil-Shukla/webfonts/fa-solid-900.svg

+4,527
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)