-
Notifications
You must be signed in to change notification settings - Fork 897
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #973 from Somil-Shukla/BackgroundGenerator-Somil-S…
…hukla Added Background Generator
- Loading branch information
Showing
23 changed files
with
8,860 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
button { | ||
margin-top: 50vh | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Document</title> | ||
<!--bootstrap--> | ||
<link rel="stylesheet" href="./css/bootstrap.min.css"> | ||
<!--main--> | ||
<link rel="stylesheet" href="./css/style.css"> | ||
<!--google fonts --> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Courgette"> | ||
<!-- font awesome--> | ||
<!-- for local copies of font awesome, ensure webfont folder is also in local root directory--> | ||
<link rel="stylesheet" href="./css/all.min.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="row max-height align-items-center text-center"> | ||
<div class="col"> | ||
<button class="btn btn-outline-secondary">Click Me!</button> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<!--jQuery--> | ||
<script src="./js/jquery-3.4.1.min.js"></script> | ||
<!--bootstrap--> | ||
<script src="./js/bootstrap.bundle.min.js"></script> | ||
<script src="./js/script.js"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//Choose a random color | ||
const button = document.querySelector('button') | ||
const body = document.querySelector('body') | ||
const colors = ['red', 'green', 'blue', 'yellow', 'pink', 'purple'] | ||
|
||
body.style.backgroundColor = 'violet' | ||
button.addEventListener('click', changeBackground) | ||
|
||
function changeBackground(){ | ||
const colorIndex= parseInt(Math.random()*colors.length+1) | ||
body.style.backgroundColor = colors[colorIndex] | ||
} |
Binary file not shown.
3,459 changes: 3,459 additions & 0 deletions
3,459
BackgroundGenerator/Somil-Shukla/webfonts/fa-brands-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
803 changes: 803 additions & 0 deletions
803
BackgroundGenerator/Somil-Shukla/webfonts/fa-regular-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4,527 changes: 4,527 additions & 0 deletions
4,527
BackgroundGenerator/Somil-Shukla/webfonts/fa-solid-900.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.