Skip to content

Commit d8ef708

Browse files
style: format code with ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format
This commit fixes the style issues introduced in 846cabd according to the output from ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format. Details: None
1 parent 846cabd commit d8ef708

4 files changed

Lines changed: 80 additions & 72 deletions

File tree

index.html

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>All-in-One Tools</title>
7-
<link rel="stylesheet" href="css/style.css">
8-
</head>
9-
<body>
10-
<header>
11-
<h1>All-in-One Tools</h1>
12-
<p>A collection of useful tools, all in one place.</p>
13-
</header>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>All-in-One Tools</title>
7+
<link rel="stylesheet" href="css/style.css" />
8+
</head>
9+
<body>
10+
<header>
11+
<h1>All-in-One Tools</h1>
12+
<p>A collection of useful tools, all in one place.</p>
13+
</header>
1414

15-
<main class="tool-grid">
16-
<div class="tool-card">
17-
<h2>Unit Converter</h2>
18-
<p>Convert between common units (length, weight, temperature).</p>
19-
<a href="tools/converter.html" class="btn">Open</a>
20-
</div>
21-
<div class="tool-card">
22-
<h2>Calculator</h2>
23-
<p>Perform quick calculations.</p>
24-
<a href="tools/calculator.html" class="btn">Open</a>
25-
</div>
26-
<div class="tool-card">
27-
<h2>Password Generator</h2>
28-
<p>Create strong and secure passwords.</p>
29-
<a href="tools/password.html" class="btn">Open</a>
30-
</div>
31-
</main>
15+
<main class="tool-grid">
16+
<div class="tool-card">
17+
<h2>Unit Converter</h2>
18+
<p>Convert between common units (length, weight, temperature).</p>
19+
<a href="tools/converter.html" class="btn">Open</a>
20+
</div>
21+
<div class="tool-card">
22+
<h2>Calculator</h2>
23+
<p>Perform quick calculations.</p>
24+
<a href="tools/calculator.html" class="btn">Open</a>
25+
</div>
26+
<div class="tool-card">
27+
<h2>Password Generator</h2>
28+
<p>Create strong and secure passwords.</p>
29+
<a href="tools/password.html" class="btn">Open</a>
30+
</div>
31+
</main>
3232

33-
<footer>
34-
<p>Made with ❤️ by LCS</p>
35-
</footer>
36-
</body>
37-
</html>
33+
<footer>
34+
<p>Made with ❤️ by LCS</p>
35+
</footer>
36+
</body>
37+
</html>

tools/password.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
background: white;
55
padding: 1.5rem;
66
border-radius: 12px;
7-
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
7+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
88
}
99

1010
.password-box {
@@ -28,4 +28,4 @@
2828
#copyBtn {
2929
padding: 0.6rem 1rem;
3030
margin-left: 0.5rem;
31-
}
31+
}

tools/password.html

Lines changed: 43 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,49 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Password Generator</title>
7-
<link rel="stylesheet" href="../css/style.css">
8-
<link rel="stylesheet" href="password.css">
9-
</head>
10-
<body>
11-
<header>
12-
<h1>Password Generator</h1>
13-
<a href="../index.html" class="btn">← Back</a>
14-
</header>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Password Generator</title>
7+
<link rel="stylesheet" href="../css/style.css" />
8+
<link rel="stylesheet" href="password.css" />
9+
</head>
10+
<body>
11+
<header>
12+
<h1>Password Generator</h1>
13+
<a href="../index.html" class="btn">← Back</a>
14+
</header>
1515

16-
<main class="password-container">
17-
<div class="password-box">
18-
<label for="length">Length:</label>
19-
<input type="number" id="length" value="12" min="4" max="50">
20-
</div>
16+
<main class="password-container">
17+
<div class="password-box">
18+
<label for="length">Length:</label>
19+
<input type="number" id="length" value="12" min="4" max="50" />
20+
</div>
2121

22-
<div class="password-box">
23-
<label><input type="checkbox" id="lowercase" checked> Lowercase (a-z)</label><br>
24-
<label><input type="checkbox" id="uppercase" checked> Uppercase (A-Z)</label><br>
25-
<label><input type="checkbox" id="numbers" checked> Numbers (0-9)</label><br>
26-
<label><input type="checkbox" id="symbols"> Symbols (!@#$%)</label>
27-
</div>
22+
<div class="password-box">
23+
<label
24+
><input type="checkbox" id="lowercase" checked /> Lowercase
25+
(a-z)</label
26+
><br />
27+
<label
28+
><input type="checkbox" id="uppercase" checked /> Uppercase
29+
(A-Z)</label
30+
><br />
31+
<label
32+
><input type="checkbox" id="numbers" checked /> Numbers (0-9)</label
33+
><br />
34+
<label><input type="checkbox" id="symbols" /> Symbols (!@#$%)</label>
35+
</div>
2836

29-
<div class="password-box">
30-
<button id="generateBtn" class="btn">Generate</button>
31-
</div>
37+
<div class="password-box">
38+
<button id="generateBtn" class="btn">Generate</button>
39+
</div>
3240

33-
<div class="password-box">
34-
<input type="text" id="result" readonly>
35-
<button id="copyBtn" class="btn">Copy</button>
36-
</div>
37-
</main>
41+
<div class="password-box">
42+
<input type="text" id="result" readonly />
43+
<button id="copyBtn" class="btn">Copy</button>
44+
</div>
45+
</main>
3846

39-
<script src="password.js"></script>
40-
</body>
41-
</html>
47+
<script src="password.js"></script>
48+
</body>
49+
</html>

tools/password.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ copyBtn.addEventListener("click", () => {
4040
navigator.clipboard.writeText(resultField.value);
4141
alert("Password copied!");
4242
}
43-
});
43+
});

0 commit comments

Comments
 (0)