-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Sulagna-Dutta-Roy:master' into master
- Loading branch information
Showing
108 changed files
with
12,944 additions
and
210 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Back to Top Button</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<div style="height: 1500px; padding: 10px;"> | ||
Scroll down to see the "Back to Top" button. | ||
</div> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Back to Top Button</title> | ||
<link rel="stylesheet" href="styles.css" /> | ||
</head> | ||
<body> | ||
<div style="height: 1500px; padding: 10px;"> | ||
Scroll down to see the "Back to Top" button. | ||
</div> | ||
|
||
<button class="Btn" onclick="topFunction()"> | ||
<svg height="1.2em" class="arrow" viewBox="0 0 512 512"> | ||
<path d="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"></path> | ||
</svg> | ||
<p class="text">Back to Top</p> | ||
</button> | ||
<button class="back-to-top-btn"> | ||
<svg height="1.2em" class="arrow" viewBox="0 0 512 512"> | ||
<path | ||
d="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z" | ||
></path> | ||
</svg> | ||
<p class="text">Back to Top</p> | ||
</button> | ||
|
||
<script src="script.js"></script> | ||
</body> | ||
<script src="./script.js"></script> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,35 +1,10 @@ | ||
{ | ||
"short_name": "BackToTop", | ||
"name": "Back to Top Button Example", | ||
"icons": [ | ||
{ | ||
"src": "icons/icon-192x192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "icons/icon-512x512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": "/index.html", | ||
"display": "standalone", | ||
"background_color": "#ffffff", | ||
"theme_color": "#44ea76", | ||
"manifest_version": 3, | ||
"name": "BackToTop", | ||
"version": "1.0", | ||
"description": "A web application with a 'Back to Top' button example.", | ||
"shortcuts": [ | ||
{ | ||
"name": "Scroll to Top", | ||
"short_name": "Top", | ||
"description": "Scroll to the top of the page", | ||
"url": "/index.html#top", | ||
"icons": [ | ||
{ | ||
"src": "icons/shortcut-icon.png", | ||
"sizes": "192x192" | ||
} | ||
] | ||
} | ||
] | ||
"action": { | ||
"default_popup": "index.html" | ||
}, | ||
"permissions": [] | ||
} |
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
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 |
---|---|---|
@@ -1,55 +1,57 @@ | ||
/* Style the button */ | ||
.Btn { | ||
width: 45px; | ||
height: 45px; | ||
background: linear-gradient(#44ea76, #39fad7); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
position: fixed; /* Fixed position */ | ||
bottom: 20px; /* Place the button at the bottom */ | ||
right: 30px; /* Place the button 30px from the right */ | ||
z-index: 99; /* Make sure it does not overlap */ | ||
border: none; /* Remove borders */ | ||
} | ||
|
||
.arrow path { | ||
fill: white; | ||
} | ||
|
||
.text { | ||
font-size: 0.7em; | ||
width: 100px; | ||
position: absolute; | ||
color: white; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
bottom: -18px; | ||
body { | ||
min-width: 400px; | ||
} | ||
.back-to-top-btn { | ||
width: 45px; | ||
height: 45px; | ||
background: linear-gradient(#44ea76, #39fad7); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
position: fixed; /* Fixed position */ | ||
bottom: 20px; /* Place the button at the bottom */ | ||
right: 30px; /* Place the button 30px from the right */ | ||
z-index: 99; /* Make sure it does not overlap */ | ||
border: none; /* Remove borders */ | ||
} | ||
|
||
.arrow path { | ||
fill: white; | ||
} | ||
|
||
.text { | ||
font-size: 0.7em; | ||
width: 100px; | ||
position: absolute; | ||
color: white; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
bottom: -18px; | ||
opacity: 0; | ||
transition-duration: 0.7s; | ||
} | ||
|
||
.back-to-top-btn:hover .text { | ||
opacity: 1; | ||
transition-duration: 0.7s; | ||
} | ||
|
||
.back-to-top-btn:hover .arrow { | ||
animation: slide-in-bottom 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; | ||
} | ||
|
||
@keyframes slide-in-bottom { | ||
0% { | ||
transform: translateY(10px); | ||
opacity: 0; | ||
transition-duration: .7s; | ||
} | ||
|
||
.Btn:hover .text { | ||
|
||
100% { | ||
transform: translateY(0); | ||
opacity: 1; | ||
transition-duration: .7s; | ||
} | ||
|
||
.Btn:hover .arrow { | ||
animation: slide-in-bottom .7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; | ||
} | ||
|
||
@keyframes slide-in-bottom { | ||
0% { | ||
transform: translateY(10px); | ||
opacity: 0; | ||
} | ||
|
||
100% { | ||
transform: translateY(0); | ||
opacity: 1; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,23 +1,16 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "Connect Four Game Extension", | ||
"version": "1.0", | ||
"description": "Four in a row, the ultimate glow! Who's ready for Connect 4?", | ||
"permissions": [ | ||
"storage" | ||
], | ||
"optional-permissions" : ["tabs"], | ||
"action": { | ||
"default_popup": "index.html" | ||
}, | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": [ | ||
"index.html" | ||
], | ||
"matches": [ | ||
"<all_urls>" | ||
] | ||
} | ||
] | ||
} | ||
"manifest_version": 3, | ||
"name": "Connect Four Game Extension", | ||
"version": "1.0", | ||
"description": "Four in a row, the ultimate glow! Who's ready for Connect 4?", | ||
"permissions": ["storage"], | ||
"action": { | ||
"default_popup": "index.html" | ||
}, | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": ["index.html"], | ||
"matches": ["<all_urls>"] | ||
} | ||
] | ||
} |
Oops, something went wrong.