Skip to content

Commit

Permalink
Added changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakesh9100 authored Jan 10, 2025
1 parent 2703dd7 commit 70ef000
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Calculators/Love-Calculator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ The Love Calculator uses a basic algorithm to generate a love percentage. Here's

## ScreenShots :-

![image](c:\Users\abhis\OneDrive\Desktop\web\81.png)
![image](https://github.com/user-attachments/assets/7573e79f-1416-446c-9d2d-e7018ea881e1)
9 changes: 3 additions & 6 deletions Calculators/Love-Calculator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">

<title>Love Calculator</title>
</head>

<body>
<div class="contentbox">
<h1><span>Love</span> Calculator</h1>
<p>Enter your name and your crush's name to see the chance that this relationship will work out: </p>
<p>Enter your name and your crush's name to see the chance that this relationship will work out:</p>

<div class="input-group">
<input type="text" required id="fname">
Expand All @@ -33,11 +32,9 @@ <h1><span>Love</span> Calculator</h1>
<div class="footer">
<h2 id="result-message"></h2>
<p id="result-percentage"></p>

</div>


</div>

<script src="script.js"></script>
</body>

Expand Down
2 changes: 1 addition & 1 deletion Calculators/Love-Calculator/script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
window.onload = function() {
window.onload = function () {
let button = document.getElementById("calculate");
button.addEventListener("click", calculateLove)
}
Expand Down
4 changes: 4 additions & 0 deletions Calculators/Love-Calculator/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -141,6 +142,7 @@ input:focus~.highlight {
from {
background: #ec4899;
}

to {
width: 0;
background: #ec4899;
Expand All @@ -151,6 +153,7 @@ input:focus~.highlight {
from {
background: #ec4899;
}

to {
width: 0;
background: transparent;
Expand All @@ -161,6 +164,7 @@ input:focus~.highlight {
from {
background: #ec4899;
}

to {
width: 0;
background: transparent;
Expand Down

0 comments on commit 70ef000

Please sign in to comment.