-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
153 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# URL-Encoder-Decoder | ||
# URL Encoder & Decoder (HTML/Javascript) | ||
A straightforward tool for encoding and decoding URLs, with support for ASCII encoding. Easily manipulate web addresses with simplicity. |
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function encodeText() { | ||
var textToEncode = document.getElementById('urlInputEncode').value; | ||
var encodedText = encodeURIComponent(textToEncode); | ||
|
||
document.getElementById('displayText').getElementsByTagName('strong')[0].innerText = 'Encoded Text:'; | ||
document.getElementById('result').value = encodedText; | ||
} | ||
|
||
function decodeURL() { | ||
var urlToDecode = document.getElementById('urlInputDecode').value; | ||
var decodedText = decodeURIComponent(urlToDecode); | ||
|
||
document.getElementById('displayText').getElementsByTagName('strong')[0].innerText = 'Decoded Text:'; | ||
document.getElementById('result').value = decodedText; | ||
} | ||
|
||
new ClipboardJS(".copy-button"); | ||
document.getElementById("svg-copied").style.display = "none"; | ||
|
||
function copyToClipboard() { | ||
$("#svg-copy").hide(); | ||
$("#svg-copied").show(); | ||
|
||
setTimeout(function () { | ||
$("#svg-copy").show(); | ||
$("#svg-copied").hide(); | ||
}, 1000); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.