Skip to content

Commit 7d41e1e

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 b5c9c50 according to the output from ClangFormat, dotnet-format, Prettier, RuboCop, Rustfmt, Scalafmt, StandardJS, StandardRB and swift-format. Details: None
1 parent b5c9c50 commit 7d41e1e

4 files changed

Lines changed: 74 additions & 75 deletions

File tree

index.html

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,42 @@
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-
<div class="tool-card">
32-
<h2>QR Code Generator</h2>
33-
<p>Turn text or links into QR codes.</p>
34-
<a href="tools/qr.html" class="btn">Open</a>
35-
</div>
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+
<div class="tool-card">
32+
<h2>QR Code Generator</h2>
33+
<p>Turn text or links into QR codes.</p>
34+
<a href="tools/qr.html" class="btn">Open</a>
35+
</div>
36+
</main>
3637

37-
</main>
38-
39-
<footer>
40-
<p>Made with ❤️ by LCS</p>
41-
</footer>
42-
</body>
43-
</html>
38+
<footer>
39+
<p>Made with ❤️ by LCS</p>
40+
</footer>
41+
</body>
42+
</html>

tools/qr.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
text-align: center;
99
}
1010

@@ -22,4 +22,4 @@
2222

2323
#qrcode {
2424
margin-top: 1.5rem;
25-
}
25+
}

tools/qr.html

Lines changed: 31 additions & 31 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>QR Code Generator</title>
7-
<link rel="stylesheet" href="../css/style.css">
8-
<link rel="stylesheet" href="qr.css">
9-
<!-- QRCode.js library -->
10-
<script src="https://cdn.jsdelivr.net/npm/qrcodejs/qrcode.min.js"></script>
11-
</head>
12-
<body>
13-
<header>
14-
<h1>QR Code Generator</h1>
15-
<a href="../index.html" class="btn">← Back</a>
16-
</header>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>QR Code Generator</title>
7+
<link rel="stylesheet" href="../css/style.css" />
8+
<link rel="stylesheet" href="qr.css" />
9+
<!-- QRCode.js library -->
10+
<script src="https://cdn.jsdelivr.net/npm/qrcodejs/qrcode.min.js"></script>
11+
</head>
12+
<body>
13+
<header>
14+
<h1>QR Code Generator</h1>
15+
<a href="../index.html" class="btn">← Back</a>
16+
</header>
1717

18-
<main class="qr-container">
19-
<div class="qr-box">
20-
<label for="qrText">Enter text or URL:</label>
21-
<input type="text" id="qrText" placeholder="https://example.com">
22-
</div>
18+
<main class="qr-container">
19+
<div class="qr-box">
20+
<label for="qrText">Enter text or URL:</label>
21+
<input type="text" id="qrText" placeholder="https://example.com" />
22+
</div>
2323

24-
<div class="qr-box">
25-
<button id="generateBtn" class="btn">Generate</button>
26-
</div>
24+
<div class="qr-box">
25+
<button id="generateBtn" class="btn">Generate</button>
26+
</div>
2727

28-
<div class="qr-box" id="qrcode"></div>
28+
<div class="qr-box" id="qrcode"></div>
2929

30-
<div class="qr-box">
31-
<button id="downloadBtn" class="btn" disabled>Download</button>
32-
</div>
33-
</main>
30+
<div class="qr-box">
31+
<button id="downloadBtn" class="btn" disabled>Download</button>
32+
</div>
33+
</main>
3434

35-
<script src="qr.js"></script>
36-
</body>
37-
</html>
35+
<script src="qr.js"></script>
36+
</body>
37+
</html>

tools/qr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ generateBtn.addEventListener("click", () => {
1717

1818
// Generate new QR
1919
qr = new QRCode(qrCodeContainer, {
20-
text: text,
20+
text,
2121
width: 200,
2222
height: 200,
2323
colorDark: "#000000",
@@ -50,4 +50,4 @@ function downloadImage(dataUrl) {
5050
document.body.appendChild(link);
5151
link.click();
5252
document.body.removeChild(link);
53-
}
53+
}

0 commit comments

Comments
 (0)