benary
This commit is contained in:
parent
bc7e2bbf9b
commit
1f0b0a08f6
@ -1,51 +1,53 @@
|
||||
body {
|
||||
background-color: #6497b1
|
||||
}
|
||||
|
||||
#input {
|
||||
border: 4px black solid;
|
||||
height: 20%;
|
||||
background-color: #e5e4e2;
|
||||
border-radius: 5px;
|
||||
overflow: auto;
|
||||
width: 75vw;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.submit {
|
||||
background-color: #03396c;
|
||||
border: 2px black solid;
|
||||
width: 25vw;
|
||||
height: 100px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
height: 10%;
|
||||
color: #ebebed;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 3%;
|
||||
margin-bottom: 3%;
|
||||
}
|
||||
|
||||
#out {
|
||||
border: 4px black solid;
|
||||
width: 75vw;
|
||||
height: 25%;
|
||||
margin: auto;
|
||||
background-color: #e5e4e2;
|
||||
border-radius: 5px;
|
||||
overflow: auto
|
||||
}
|
||||
|
||||
#form {
|
||||
text-align: center
|
||||
}
|
||||
|
||||
#button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 20vh;
|
||||
}
|
||||
/* #button{margin-left:43%} */
|
||||
body {
|
||||
background-color: #6497b1;
|
||||
font-family: "Courier Prime", monospace;
|
||||
}
|
||||
|
||||
#input {
|
||||
border: 4px black solid;
|
||||
height: 5rem;
|
||||
background-color: #e5e4e2;
|
||||
border-radius: 5px;
|
||||
overflow: auto;
|
||||
width: 75vw;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.submit {
|
||||
background-color: #03396c;
|
||||
border: 2px black solid;
|
||||
/* width: 25vw; */
|
||||
height: 100px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
height: 10%;
|
||||
color: #ebebed;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 3%;
|
||||
margin-bottom: 3%;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
#out {
|
||||
border: 4px black solid;
|
||||
width: 75vw;
|
||||
height: 5rem;
|
||||
margin: auto;
|
||||
background-color: #e5e4e2;
|
||||
border-radius: 5px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#form {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: max(fit-content, 175px);
|
||||
}
|
||||
/* #button{margin-left:43%} */
|
||||
|
||||
@ -1,43 +1,46 @@
|
||||
<DOCTYPE html>
|
||||
<html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap" rel="stylesheet">
|
||||
<title>Binary</title>
|
||||
<link rel="stylesheet" type="text/css" href="/menu/menu.css" />
|
||||
<link rel="icon" type="image/ico" href="../binary.ico">
|
||||
<link rel="stylesheet" type="text/css" href="binary.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<head>
|
||||
<title>Binary</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" type="text/css" href="/menu/menu.css" />
|
||||
<link rel="icon" type="image/ico" href="../binary.ico">
|
||||
<link rel="stylesheet" type="text/css" href="binary.css" />
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
<div id="nav_menu">
|
||||
</div>
|
||||
<script src="/menu/menu.js"></script>
|
||||
<br /><br /><br />
|
||||
|
||||
|
||||
<form id="form">
|
||||
<input type="radio" name="name" id="text_binary" checked="checked">Text to Binary</input>
|
||||
<input type="radio" name="name" id="binary_text">Binary to Text</input>
|
||||
</form>
|
||||
<br />
|
||||
|
||||
|
||||
<div id="input" tabindex="0" contenteditable></div>
|
||||
|
||||
|
||||
<div id="button">
|
||||
<div class="submit" id="submit" onclick="out0()" selectable="selectable">Submit</div>
|
||||
<span style="width:5px"> </span>
|
||||
<div class="submit" id="clear" onclick="clear1()">Clear Input</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="out" onclick="copy()">
|
||||
<div>
|
||||
</body>
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
<script type="text/javascript" src="binary.js">
|
||||
</script>
|
||||
|
||||
</html>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user