We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d57a42 commit fa485ddCopy full SHA for fa485dd
leetcode2pyname.html
@@ -2,6 +2,13 @@
2
<html>
3
<head>
4
<title>LeetCode Title Converter</title>
5
+<style>
6
+body {
7
+ background-color: white;
8
+ color: black;
9
+ font-family: sans-serif;
10
+}
11
+</style>
12
<script>
13
function convertTitle() {
14
const inputTitle = document.getElementById("titleInput").value;
@@ -48,6 +55,8 @@
48
55
navigator.clipboard.writeText(textToCopy)
49
56
.then(() => {
50
57
alert("Copied to clipboard!"); // Optional: Provide feedback
58
+ // Clear the input field after copying
59
+ document.getElementById("titleInput").value = "";
51
60
})
52
61
.catch(err => {
53
62
console.error('Failed to copy: ', err);
@@ -72,4 +81,4 @@ <h1>LeetCode Title Converter</h1>
72
81
<p id="output"></p>
73
82
74
83
</body>
75
-</html>
84
+</html>
0 commit comments