Skip to content

Commit fa485dd

Browse files
committed
update
1 parent 9d57a42 commit fa485dd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

leetcode2pyname.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
<html>
33
<head>
44
<title>LeetCode Title Converter</title>
5+
<style>
6+
body {
7+
background-color: white;
8+
color: black;
9+
font-family: sans-serif;
10+
}
11+
</style>
512
<script>
613
function convertTitle() {
714
const inputTitle = document.getElementById("titleInput").value;
@@ -48,6 +55,8 @@
4855
navigator.clipboard.writeText(textToCopy)
4956
.then(() => {
5057
alert("Copied to clipboard!"); // Optional: Provide feedback
58+
// Clear the input field after copying
59+
document.getElementById("titleInput").value = "";
5160
})
5261
.catch(err => {
5362
console.error('Failed to copy: ', err);
@@ -72,4 +81,4 @@ <h1>LeetCode Title Converter</h1>
7281
<p id="output"></p>
7382

7483
</body>
75-
</html>
84+
</html>

0 commit comments

Comments
 (0)