diff --git a/assets/css/style.css b/assets/css/style.css index 934880c..88beb94 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -136,6 +136,39 @@ button { .scanner .input-group-btn { width: 20%!important; } +.scanner .input-group-btn .btn-group { + float: right; + width: 100%; +} +.scanner .input-group-btn .btn-group .input-group-btn { + float: right; + width: auto; +} +.scanner .input-group-btn .prmScan { + float: right; + width: calc(100% - 20px)!important; + border-radius: 0!important; + padding-right: 5px; + padding-left: 5px; +} +.scanner .input-group-btn .scanOpt { + float: left; + width: 20px; +} +.scanner .input-group-btn .scanOpt button { + float: left; + width: 100%!important; + padding-right: 0; + padding-left: 0; + border-radius: 3px 0 0 3px!important; +} +.scanner .input-group-btn .scanOpt button .caret { + margin: 8px 0 8px -1px; +} +.scanner .input-group-btn .scanOpt .dropdown-menu { + right: inherit; + left: 0; +} .modalBodyOverflow { max-height: 63vh; diff --git a/assets/js/script.js b/assets/js/script.js index 7e25364..364e860 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -24,6 +24,7 @@ function startScan() { let selectedIPs = getMultipleRandomElements(ips, num); testIPs(selectedIPs, num, ping, beta); document.getElementById('scanBtn').disabled = true; + document.getElementById('newScan').disabled = true; document.getElementById('tableResults').classList.remove("hidden"); document.getElementById('process').classList.remove("hidden"); document.getElementById('download-text').classList.add("hidden"); @@ -115,11 +116,11 @@ async function testIPs(ipList, totalIp, timeout, betaVersion) { } else { document.getElementById('download-text').classList.add("hidden"); - document.getElementById('process').classList.add("hidden"); } document.getElementById('process').classList.add("hidden"); $('#progressBar div').removeClass('progress-bar-striped active').css('width', '100%'); document.getElementById('scanBtn').disabled = false; + document.getElementById('newScan').disabled = false; document.getElementById('ranges').disabled = false; document.getElementById('download-num').disabled = false; document.getElementById('max-ping').disabled = false; @@ -128,6 +129,25 @@ async function testIPs(ipList, totalIp, timeout, betaVersion) { $('input[name="forProvider"]').prop("disabled", false); } +function newScan() { + testNo = 0; + validIPs = []; + testResult = 0; + document.getElementById('result').innerHTML = ""; + document.getElementById('download-text').classList.add("hidden"); + document.getElementById('process').classList.add("hidden"); + $('#progressBar div').removeClass('progress-bar-striped active').css('width', '100%'); + document.getElementById('scanBtn').disabled = false; + document.getElementById('newScan').disabled = false; + document.getElementById('ranges').disabled = false; + document.getElementById('download-num').disabled = false; + document.getElementById('max-ping').disabled = false; + document.getElementById('random').disabled = false; + document.getElementById('beta').disabled = false; + $('input[name="forProvider"]').prop("disabled", false); + startScan(); +} + function cidrToIpArray(cidr) { const parts = cidr.split('/'); const ip = parts[0]; @@ -452,4 +472,5 @@ function setOptions() { $('#ranges').append($('').val((p)).html(p+ ' ('+totalIp+' IP)')); }); document.getElementById('scanBtn').disabled = false; + document.getElementById('newScan').disabled = false; } diff --git a/index.html b/index.html index ddadc67..409808b 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - + IRCF | اسکنر آی‌پی کلودفلر @@ -14,7 +14,7 @@ - + @@ -79,7 +79,17 @@

اینترنت برای همه؛ یا هیچ‌کس!

آی‌پی با حداکثر پینگ
- +
+ +
+ + +
+