-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added theme change in Aspect Ratio Calculator (#1057)
- Loading branch information
Showing
4 changed files
with
126 additions
and
28 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
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,29 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>Aspect Ratio Calculator</title> | ||
</head> | ||
|
||
<body> | ||
<div class="calculator"> | ||
<button id="toggleMode" onclick="toggleMode()">Switch to Light Mode</button> | ||
<h2>Aspect Ratio Calculator</h2> | ||
|
||
<label for="width">Width:</label> | ||
<input type="number" id="width" placeholder="Enter width" oninput="calculateAspectRatio()"> | ||
|
||
<label for="height">Height:</label> | ||
<input type="number" id="height" placeholder="Enter height" oninput="calculateAspectRatio()"> | ||
<div class="input-group"> | ||
<label for="width">Width:</label> | ||
<input type="number" id="width" placeholder="Enter width" oninput="calculateAspectRatio()"> | ||
</div> | ||
<div class="input-group"> | ||
<label for="height">Height:</label> | ||
<input type="number" id="height" placeholder="Enter height" oninput="calculateAspectRatio()"> | ||
</div> | ||
|
||
<h3>Aspect Ratio:</h3> | ||
<p id="aspectRatio"></p> | ||
</div> | ||
|
||
<script src="script.js"></script> | ||
|
||
</body> | ||
|
||
</html> | ||
</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
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