Skip to content

Commit

Permalink
feat: Updated assets/index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Feb 24, 2024
1 parent e7b6edd commit e2b3dca
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<a class='menu-item fas fa-home' href=''> Home</a>
</ul>
<center>
<div style='background: #06122f; width: 90%; margin: 20px 20px 20px 20px; border-radius: 15px' id='menu-l7'>
<div class='content-box' id='menu-l7'>
<h2 style="color: white">Live Layer 7 DSTAT</h2>
<h3><span id='attack-address'></span></h3>
<p><button type='button' class='green-btn' onclick='copyAddress()'>Copy the URL address</button></p>
Expand All @@ -33,18 +33,10 @@ <h2 style="color: white">Statistics</h2>
</body>
<script language='JavaScript'>
document.getElementById('attack-address').innerHTML = window.location.href + 'attack/'
function copyAddress() {
var tempInput = document.createElement('input')
tempInput.style = 'position: absolute; left: -1000px; top: -1000px'
tempInput.value = document.getElementById('attack-address').innerHTML
document.body.appendChild(tempInput)
tempInput.select()
document.execCommand('copy')
document.body.removeChild(tempInput)
}
function copyAddress(){var a=document.createElement('input');a.style='position: absolute; left: -1000px; top: -1000px';a.value=document.getElementById('attack-address').innerHTML;document.body.appendChild(a);a.select();document.execCommand('copy');document.body.removeChild(a);}

</script>
<script src='/socket.io/socket.io.js'></script>
<script src='js/highcharts.js'></script>
<script src='js/requests.js'></script>
<script src='/socket.io/socket.io.js' defer></script>
<script src='js/highcharts.js' defer></script>
<script src='js/requests.js' defer></script>
</html>

0 comments on commit e2b3dca

Please sign in to comment.