Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new style 'CyberSpecter' #227

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
193 changes: 123 additions & 70 deletions webapp/webapp.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,120 +8,167 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<style>
html {
overflow-y: scroll;
overflow-y: scroll;
background: #1a1a1a;
}

body {
font-family: -apple-system,Segoe UI,Ubuntu,Helvetica,Arial;
background-color: #fafbfc;
color: #353739;
margin: 0;
font-family: ' Courier New', Courier, monospace;
background-color: #1a1a1a;
color: #66d9ef;
margin: 0;
}

div#container {
position: relative;
width: 70%;
margin: 2em auto 0 auto;
}
position: relative;
width: 70%;
margin: 15vh auto 0 auto;
background-color: #333;
padding: 1em;
border: 1px solid #444;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

table {
border-collapse: collapse;
width: 100%;
margin: 3em 0;
table-layout: fixed;
border-collapse: collapse;
width: 100%;
margin: 3em 0;
table-layout: fixed;
border: 1px solid #444;
}

tr {
border-bottom: 1px solid #ddd;
border-bottom: 1px solid #444;
}

th {
padding: 5px 0;
text-align: left;
font-weight: 600;
padding: 5px 0;
text-align: left;
font-weight: 600;
background-color: #444;
color: #66d9ef;
}

td {
padding: 5px 0;
vertical-align: top;
word-wrap: break-word;
padding: 5px 0;
vertical-align: top;
word-wrap: break-word;
border-bottom: 1px solid #444;
}

header {
text-align: center;
text-align: center;
background-color: #333;
padding: 1em;
border-bottom: 1px solid #444;
}

header h1 {
margin: 0;
margin: 0;
color: #66d9ef;
font-size: 2em;
}

header p {
color: #ef006f;
font: bold 150% Tahoma,Verdana;
margin: 0;
width: 75%;
float: right;
color: #ef006f;
font: bold 150% Tahoma, Verdana;
margin: 0;
width: 75%;
float: right;
}

div#searchbox {
display: flex;
margin: 4em auto 0 auto;
display: flex;
margin: 4em auto 0 auto;
background-color: #333;
padding: 1em;
border: 1px solid #444;
border-radius: 10px;
}

input#url {
font-size: 1.1em;
height: 2.8em;
border: 1px solid #ccc;
border-radius: 5px 0 0 5px;
padding-left: .75em;
width: 80%;
outline: none;
font-size: 1.1em;
height: 2.8em;
border: 1px solid #444;
border-radius: 5px 0 0 5px;
padding-left: 0.75em;
width: 80%;
outline: none;
background-color: #333;
color: #66d9ef;
}

button#scan {
color: white;
background-color: #3490dc;
border: 0;
border-radius: 0 5px 5px 0;
height: 2.8em;
font-size: 1.1em;
font-weight: 600;
flex-grow: 1;
outline: none;
color: #66d9ef;
background-color: #444;
border: 0;
border-radius: 0 5px 5px 0;
height: 2.8em;
font-size: 1.1em;
font-weight: 600;
flex-grow: 1;
outline: none;
cursor: pointer;
}

button#scan:hover {
background-color: #2779bd;
background-color: #555;
}

sup {
color: #777;
color: #777;
}

progress {
-webkit-appearance: none;
-moz-appearance: none;
height: 5px;
width: 100%;
background-color: transparent;
border: 0;
margin: 5px 0;
-webkit-appearance: none;
-moz-appearance: none;
height: 5px;
width: 100%;
background-color: transparent;
border: 0;
margin: 5px 0;
}

progress::-webkit-progress-bar {
background-color: transparent;
background-color: transparent;
}

progress::-webkit-progress-value {
background-color: #3490dc;
background-color: #66d9ef;
}

progress::-moz-progress-bar {
background-color: #3490dc;
background-color: #66d9ef;
}

span#status {
float: right;
font-size: 80%;
float: right;
font-size: 80%;
color: #ef006f;
}

a {
color: inherit;
text-decoration: underline;
text-decoration-skip: ink;
color: inherit;
text-decoration: underline;
text-decoration-skip: ink;
}

a:hover {
text-decoration: none;
text-decoration: none;
}

a#link {
color: inherit;
text-decoration: none;
color: inherit;
text-decoration: none;
}

span#source {
position: fixed;
right: 1em;
bottom: 1em;
background-color: #fafbfc;
position: fixed;
right: 1em;
bottom: 1em;
background-color: #333;
padding: 0
}
@media (max-width: 800px) {
body, table, span {
Expand Down Expand Up @@ -151,11 +198,16 @@ <h1><img id="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAABGCA
<progress id="progress" value="0"></progress>
<span id="status"></span>
</div>
<table id="data"></table>
<table onchange="adjust()" id="data"></table>
</div>
<span id="source">[<a href="https://github.com/elceef/dnstwist">source code</a>]</span>
</body>
<script>

function adjust() {
document.getElementById("container").style.marginTop = "2em";
}

window.onload = function() {
if (window.location.hash) {
$('#sid').val(window.location.hash.substring(1));
Expand Down Expand Up @@ -265,6 +317,7 @@ <h1><img id="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAABGCA

$('#scan').click(function() {
actionScan();
adjust();
});

$('#url').on('keypress',function(e) {
Expand Down