This commit is contained in:
HearMeWhisper 2022-01-02 15:47:42 -05:00
parent bc7e2bbf9b
commit 1f0b0a08f6
2 changed files with 77 additions and 72 deletions

View File

@ -1,51 +1,53 @@
body { body {
background-color: #6497b1 background-color: #6497b1;
} font-family: "Courier Prime", monospace;
}
#input {
border: 4px black solid; #input {
height: 20%; border: 4px black solid;
background-color: #e5e4e2; height: 5rem;
border-radius: 5px; background-color: #e5e4e2;
overflow: auto; border-radius: 5px;
width: 75vw; overflow: auto;
margin: auto; width: 75vw;
} margin: auto;
}
.submit {
background-color: #03396c; .submit {
border: 2px black solid; background-color: #03396c;
width: 25vw; border: 2px black solid;
height: 100px; /* width: 25vw; */
text-align: center; height: 100px;
cursor: pointer; text-align: center;
height: 10%; cursor: pointer;
color: #ebebed; height: 10%;
border-radius: 10px; color: #ebebed;
display: flex; border-radius: 10px;
justify-content: center; display: flex;
margin-top: 3%; justify-content: center;
margin-bottom: 3%; margin-top: 3%;
} margin-bottom: 3%;
padding: 0.5rem;
#out { }
border: 4px black solid;
width: 75vw; #out {
height: 25%; border: 4px black solid;
margin: auto; width: 75vw;
background-color: #e5e4e2; height: 5rem;
border-radius: 5px; margin: auto;
overflow: auto background-color: #e5e4e2;
} border-radius: 5px;
overflow: auto;
#form { }
text-align: center
} #form {
text-align: center;
#button { }
display: flex;
justify-content: center; #button {
align-items: center; display: flex;
height: 20vh; justify-content: center;
} align-items: center;
/* #button{margin-left:43%} */ height: max(fit-content, 175px);
}
/* #button{margin-left:43%} */

View File

@ -1,43 +1,46 @@
<DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head>
<meta charset="UTF-8"> <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 id="nav_menu">
</div> </div>
<script src="/menu/menu.js"></script> <script src="/menu/menu.js"></script>
<br /><br /><br /> <br /><br /><br />
<form id="form"> <form id="form">
<input type="radio" name="name" id="text_binary" checked="checked">Text to Binary</input> <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> <input type="radio" name="name" id="binary_text">Binary to Text</input>
</form> </form>
<br /> <br />
<div id="input" tabindex="0" contenteditable></div> <div id="input" tabindex="0" contenteditable></div>
<div id="button"> <div id="button">
<div class="submit" id="submit" onclick="out0()" selectable="selectable">Submit</div> <div class="submit" id="submit" onclick="out0()" selectable="selectable">Submit</div>
<span style="width:5px">&nbsp;</span> <span style="width:5px">&nbsp;</span>
<div class="submit" id="clear" onclick="clear1()">Clear Input</div> <div class="submit" id="clear" onclick="clear1()">Clear Input</div>
</div> </div>
<div id="out" onclick="copy()"> <div id="out" onclick="copy()">
<div> <div>
</body>
<br /> <br />
<script type="text/javascript" src="binary.js"> <script type="text/javascript" src="binary.js">
</script> </script>
</body>
</html> </html>