- Notifications
You must be signed in to change notification settings - Fork725
Changes the Repel Effect #6#14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
Akshat162001 wants to merge5 commits intosahandghavidel:mainChoose a base branch fromAkshat162001:main
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
5 commits Select commitHold shift + click to select a range
4ad3011
Chnages the Repel Effect #6
Akshat162001e872995
Create ReadMe
Akshat1620010a26c62
made the working laon calculator
Akshat162001b5e86c9
Merge branch 'main' of https://github.com/Akshat162001/HTML-CSS-JavaS…
Akshat162001b16df21
Fixed #9 ampm is not working
Akshat162001File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
6 changes: 6 additions & 0 deletions.vscode/settings.json
This file contains hidden or 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,6 @@ | ||
{ | ||
"liveServer.settings.port": 5502, | ||
"githubPullRequests.ignoredPullRequestBranches": [ | ||
"main" | ||
] | ||
} |
5 changes: 5 additions & 0 deletionsprojects/age-calculator/ReadMe
This file contains hidden or 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,5 @@ | ||
#Age Calculator | ||
This projects calculates the age of a person | ||
#Happy coding |
2 changes: 1 addition & 1 deletionprojects/button-ripple-effect/index.html
This file contains hidden or 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
37 changes: 30 additions & 7 deletionsprojects/button-ripple-effect/index.js
This file contains hidden or 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,9 +1,32 @@ | ||
//const btnEl = document.querySelector(".btn"); | ||
//btnEl.addEventListener("mouseover", (event) => { | ||
// const x = event.pageX - btnEl.offsetLeft; | ||
// const y = event.pageY - btnEl.offsetTop; | ||
// btnEl.style.setProperty("--xPos", x + "px"); | ||
// btnEl.style.setProperty("--yPos", y + "px"); | ||
// }); | ||
const buttons = document.querySelectorAll('.ripple') | ||
buttons.forEach(button => { | ||
button.addEventListener('click', function (e) { | ||
const x = e.pageX | ||
const y = e.pageY | ||
const buttonTop = e.target.offsetTop | ||
const buttonLeft = e.target.offsetLeft | ||
const xInside = x - buttonLeft | ||
const yInside = y - buttonTop | ||
const circle = document.createElement('span') | ||
circle.classList.add('circle') | ||
circle.style.top = yInside + 'px' | ||
circle.style.left = xInside + 'px' | ||
this.appendChild(circle) | ||
setTimeout(() => circle.remove(), 500) | ||
}) | ||
}) |
64 changes: 37 additions & 27 deletionsprojects/button-ripple-effect/style.css
This file contains hidden or 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,43 +1,53 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); | ||
* { | ||
box-sizing: border-box; | ||
} | ||
body { | ||
background-color: #000; | ||
font-family: 'Roboto', sans-serif; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
overflow: hidden; | ||
margin: 0; | ||
} | ||
button { | ||
background-color:rgb(225, 12, 147); | ||
color: #fff; | ||
border: 1px rgb(235, 21, 89) solid; | ||
font-size: 14px; | ||
text-transform: uppercase; | ||
letter-spacing: 2px; | ||
padding: 20px 30px; | ||
overflow: hidden; | ||
margin: 10px 0; | ||
position: relative; | ||
border-radius: 4px; | ||
} | ||
button:focus { | ||
outline: none; | ||
} | ||
button .circle { | ||
position: absolute; | ||
background-color: #fff; | ||
width: 100px; | ||
height: 100px; | ||
border-radius: 50%; | ||
transform: translate(-50%, -50%) scale(0); | ||
animation: scale 0.5s ease-out; | ||
} | ||
@keyframes scale { | ||
to { | ||
transform: translate(-50%, -50%) scale(3); | ||
opacity: 0; | ||
} | ||
} | ||
4 changes: 2 additions & 2 deletionsprojects/digital-clock/index.html
This file contains hidden or 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
45 changes: 36 additions & 9 deletionsprojects/digital-clock/index.js
This file contains hidden or 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
4 changes: 2 additions & 2 deletionsprojects/digital-clock/style.css
This file contains hidden or 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
16 changes: 11 additions & 5 deletionsprojects/loan-calculator/index.html
This file contains hidden or 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
20 changes: 13 additions & 7 deletionsprojects/loan-calculator/index.js
This file contains hidden or 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,15 +1,21 @@ | ||
function calculateLoan() { | ||
event.preventDefault(); | ||
var loanAmountValue= document.getElementById("loan-amount").value; | ||
var interestRateValue= document.getElementById("interest-rate").value; | ||
var MonthsToPayValue = document.getElementById("months-to-pay").value; | ||
var interest = (loanAmountValue * (interestRateValue * 0.01)) / MonthsToPayValue; | ||
monthlyPayment = (loanAmountValue / MonthsToPayValue + interest).toFixed(2); | ||
document.getElementById("payment").innerHTML="Total Loan to be paid is Ruppees " + monthlyPayment | ||
document.getElementById("loan-amount").value = ""; | ||
document.getElementById("interest-rate").value = ""; | ||
document.getElementById("months-to-pay").value = ""; | ||
} |
7 changes: 7 additions & 0 deletionsprojects/loan-calculator/style.css
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.