Skip to content

Commit

Permalink
Update server.html
Browse files Browse the repository at this point in the history
  • Loading branch information
App004 authored Oct 25, 2024
1 parent 9cea9fe commit cd39a58
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions server.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@ <h2>server</h2>
<br>
<button onclick="copy()">Copy text</button>

<script>
function copy() {
var copyText = document.getElementById("A");
copyText.select();
copyText.setSelectionRange(0, 99999)
document.execCommand("copy");
Swal.fire({
title: " copy success ",
icon: "success"
});
}
</script>
<script src="/script/index.js"></script>
</body>
<head>
<style>
Expand Down

0 comments on commit cd39a58

Please sign in to comment.