mirror of https://github.com/lgc-4/DataTools3.git
initial commit
This commit is contained in:
commit
90ed3dd1e5
|
@ -0,0 +1,70 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>DataTools</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
|
<script src="Box.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<canvas id="canvas"></canvas>
|
||||||
|
<div id="menu">
|
||||||
|
<div id="menuBar">
|
||||||
|
<span class="menuBarItem">File</span>
|
||||||
|
<span class="menuBarItem">Presets</span>
|
||||||
|
<span class="menuBarItem">Elements</span>
|
||||||
|
</div>
|
||||||
|
<div id="menuContent">
|
||||||
|
<div id="menuContentFile" class="menuContentBox">
|
||||||
|
<button class="bigIconButton" onclick="saveConfiguration()">
|
||||||
|
<div class="bigIcon" id="saveIcon"></div>
|
||||||
|
<span>Save</span>
|
||||||
|
</button>
|
||||||
|
<button class="bigIconButton" onclick="saveConfigurationLocal()">
|
||||||
|
<div class="bigIcon" id="downloadIcon"></div>
|
||||||
|
<span>Save Local</span>
|
||||||
|
</button>
|
||||||
|
<button class="bigIconButton" onclick="loadConfiguration()">
|
||||||
|
<div class="bigIcon" id="openIcon"></div>
|
||||||
|
<span>Open</span>
|
||||||
|
</button>
|
||||||
|
<button class="bigIconButton" onclick="loadConfigurationLocal()">
|
||||||
|
<div class="bigIcon" id="uploadIcon"></div>
|
||||||
|
<span>Open Local</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="menuContentPresets" class="menuContentBox">
|
||||||
|
<button onclick="loadConfigurationObject(presets.base64)">Base64 Converter</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="menuContentElements" class="menuContentBox">
|
||||||
|
<div id="elementsWrapper">
|
||||||
|
<div class="elementsGroup">
|
||||||
|
<span>Inputs</span>
|
||||||
|
<button onclick="addElement('TextBox')">Text Box</button>
|
||||||
|
<button onclick="addElement('RandomNumberGenerator')">Random Number Generator</button>
|
||||||
|
</div>
|
||||||
|
<div class="elementsGroup">
|
||||||
|
<span>Converters</span>
|
||||||
|
<button onclick="addElement('Base64Converter')">Base64</button>
|
||||||
|
<button onclick="addElement('URLConverter')">URL</button>
|
||||||
|
</div>
|
||||||
|
<div class="elementsGroup">
|
||||||
|
<span>Hashers</span>
|
||||||
|
<button onclick="addElement('MD5Hasher')">MD5</button>
|
||||||
|
<button onclick="addElement('SHA256Hasher')">SHA256</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="playground"></div>
|
||||||
|
<div id="loadWrapper">
|
||||||
|
<div id="loadDialogue">
|
||||||
|
<div id="loadList">
|
||||||
|
</div>
|
||||||
|
<button id="closeLoad">Cancel</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,126 @@
|
||||||
|
#menu {
|
||||||
|
z-index: 100;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #2227;
|
||||||
|
backdrop-filter: blur(4px);
|
||||||
|
box-shadow: 0px 0px 20px 0px black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menuBar {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuBarItem {
|
||||||
|
display: inline-block;
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
padding-top: 5px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuBarItem:hover:not(.selected) {
|
||||||
|
background-color: rgba(255,255,255,0.1);
|
||||||
|
box-shadow: inset 0px 0px 10px -5px rgba(255,255,255,0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuBarItem.selected {
|
||||||
|
filter: brightness(1.2);
|
||||||
|
box-shadow: inset 0px 0px 5px 0px black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuContentBox {
|
||||||
|
display: none;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#elementsWrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.elementsGroup {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.elementsGroup span {
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bigIconButton {
|
||||||
|
display: inline-flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
padding: 10px;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bigIcon {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
background-size: contain;
|
||||||
|
background-position: 50% 50%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
#saveIcon {
|
||||||
|
background-image: url("./img/save-icon.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#downloadIcon {
|
||||||
|
background-image: url("./img/download-icon.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#openIcon {
|
||||||
|
background-image: url("./img/open-icon.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#uploadIcon {
|
||||||
|
background-image: url("./img/download-icon.svg");
|
||||||
|
rotate: 180deg;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loadWrapper {
|
||||||
|
position: fixed;
|
||||||
|
top: 0px;
|
||||||
|
bottom: 0px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: rgba(0,0,0,0.5);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
z-index: 200;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loadDialogue {
|
||||||
|
background-color: #222;
|
||||||
|
min-width: 300px;
|
||||||
|
min-height: 300px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loadList {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
justify-content: flex-start;
|
||||||
|
max-height: 700px;
|
||||||
|
overflow-y: auto;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
|
@ -0,0 +1,93 @@
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
|
||||||
|
@import url("./menu.css");
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: "Montserrat", sans-serif;
|
||||||
|
font-weight: 500;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
color: #eee;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body, html {
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
#canvas {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
background-color: #111;
|
||||||
|
background-image: repeating-linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%, #222), repeating-linear-gradient(45deg, #222 25%, #111 25%, #111 75%, #222 75%, #222);
|
||||||
|
background-position: 0 0, 40px 40px;
|
||||||
|
background-size: 80px 80px;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#playground {
|
||||||
|
z-index: 1;
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
left: 0px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.box {
|
||||||
|
position: absolute;
|
||||||
|
display: inline-flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 20px;
|
||||||
|
padding: 10px;
|
||||||
|
border: solid 1px #111;
|
||||||
|
border-top: solid 20px #111;
|
||||||
|
box-shadow: 0px 0px 20px 0px black;
|
||||||
|
|
||||||
|
background-color: #2227;
|
||||||
|
backdrop-filter: blur(4px);
|
||||||
|
|
||||||
|
top: 200px;
|
||||||
|
left: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box.dragging {
|
||||||
|
box-shadow: 0px 0px 20px 0px rgba(255,255,255,0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxTitle {
|
||||||
|
font-size: 1.3em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
input, textarea, select, button {
|
||||||
|
background-color: #25252577;
|
||||||
|
padding: 5px;
|
||||||
|
border: 1px solid #111;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover, select:hover {
|
||||||
|
filter: brightness(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
button:active {
|
||||||
|
filter: brightness(1.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 300px;
|
||||||
|
height: 150px;
|
||||||
|
font-family: Monospace;
|
||||||
|
min-width: 200px;
|
||||||
|
}
|
Loading…
Reference in New Issue