181 lines
4.3 KiB
HTML
181 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<title>ASCIIFlow Infinity</title>
|
|
<style>
|
|
|
|
* {
|
|
font-weight: bold;
|
|
font-family: sans-serif;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
body {
|
|
margin: 0px;
|
|
}
|
|
|
|
#draw-tools {
|
|
text-align: center;
|
|
display: inline-block;
|
|
position: fixed;
|
|
width: 100%;
|
|
background-color: #FFF;
|
|
z-index: 100;
|
|
box-shadow:0px 3px 3px #CCC;
|
|
}
|
|
|
|
#file-tools {
|
|
text-align: right;
|
|
display: inline-block;
|
|
position: fixed;
|
|
width: 100%;
|
|
z-index: 100;
|
|
}
|
|
|
|
button {
|
|
display: inline-block;
|
|
margin: 5px;
|
|
width: 30px;
|
|
height: 30px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
outline: 0 !important;
|
|
background-size: 100% !important;
|
|
}
|
|
|
|
/* Mobile overrides */
|
|
@media(max-width:600px) {
|
|
/* Move file tools to the bottom. */
|
|
#file-tools {
|
|
bottom: 0px;
|
|
background-color: #FFF;
|
|
box-shadow:0px -3px 3px #CCC;
|
|
}
|
|
}
|
|
|
|
.dialog {
|
|
position: fixed;
|
|
left: 0px;
|
|
right: 0px;
|
|
top: 0px;
|
|
bottom: 0px;
|
|
margin: auto;
|
|
max-width: 640px;
|
|
max-height: 480px;
|
|
width: 90%;
|
|
height: 70%;
|
|
background: #FFF;
|
|
display: none;
|
|
z-index: 100;
|
|
padding: 5px;
|
|
box-shadow:0px 0px 3px 3px #CCC;
|
|
}
|
|
|
|
.visible {
|
|
display: block !important;
|
|
}
|
|
|
|
#draw-tools > button, #file-tools > button {
|
|
background: transparent;
|
|
border-width: 0px;
|
|
}
|
|
|
|
#draw-tools > button.active {
|
|
/* TODO: Offset background images. */
|
|
}
|
|
|
|
#file-tools > button {
|
|
background: #D8D8D8;
|
|
}
|
|
|
|
.dialog > button {
|
|
margin-top: 6px;
|
|
display: inline-block;
|
|
}
|
|
|
|
#ascii-canvas {
|
|
position: fixed;
|
|
left: 0px;
|
|
top: 0px;
|
|
}
|
|
|
|
|
|
#drive-textarea {
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
resize: none;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
border: 0px;
|
|
font-family: monospace;
|
|
white-space: pre;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="draw-tools">
|
|
<button id="box-button" class="tool active" style="background-image: url('images/box-tool.png');">
|
|
</button>
|
|
<button id="line-button" class="tool" style="background-image: url('images/line-tool.png');">
|
|
</button>
|
|
<button id="freeform-button" class="tool" style="background-image: url('images/freeform-tool.png');">
|
|
</button>
|
|
<button id="erase-button" class="tool" style="background-image: url('images/erase-tool.png');">
|
|
</button>
|
|
<button id="move-button" class="tool" style="background-image: url('images/move-tool.png');">
|
|
</button>
|
|
<button id="text-button" class="tool" style="background-image: url('images/text-tool.png');">
|
|
</button>
|
|
</div>
|
|
|
|
<div id="file-tools">
|
|
<div id="drive-filename" class="edit"></div>
|
|
<button id="export-button" class="tool">Ex</button>
|
|
<button id="import-button" class="tool">Im</button>
|
|
<button id="save-button" class="tool">Sa</button>
|
|
<button id="clear-button" class="tool">Cl</button>
|
|
<button id="undo-button" class="tool">Un</button>
|
|
<button id="redo-button" class="tool">Re</button>
|
|
<button id="options-button" class="tool" style="background-image: url('images/info-button.png');"></button>
|
|
</div>
|
|
|
|
<div id="export-button-dialog" class="dialog">
|
|
<textarea id="export-area"></textarea>
|
|
<button class="close-dialog-button">Close</button>
|
|
</div>
|
|
|
|
<div id="options-button-dialog" class="dialog">
|
|
<div class="tooltip">Draw boxes. You can resize them later with the Resize tool.</div>
|
|
<div class="tooltip">Draw lines. Connect it to another line to change the orientation.</div>
|
|
<div class="tooltip">Press a character on the keyboard, then drag to draw it.</div>
|
|
<div class="tooltip">Drag out an area to erase.</div>
|
|
<div class="tooltip">Resize boxes and lines, just drag a line to change it.</div>
|
|
<div class="tooltip">Press where to start writing, and type the text you want.</div>
|
|
|
|
<button id="use-lines-button">Lines Mode</button>
|
|
<button id="use-ascii-button">ASCII Mode</button>
|
|
</div>
|
|
|
|
<div id="import-button-dialog" class="dialog">
|
|
<textarea id="import-area"></textarea>
|
|
<button class="close-dialog-button">Close</button>
|
|
<button id="import-submit-button">Submit</button>
|
|
</div>
|
|
<canvas id="ascii-canvas"></canvas>
|
|
<script src="https://apis.google.com/js/api.js"></script>
|
|
<script src="https://apis.google.com/js/client.js"></script>
|
|
<script src="jquery-1.9.1.min.js"></script>
|
|
<script src="jquery.jeditable.min.js"></script>
|
|
<script src="js-compiled.js"></script>
|
|
</body>
|
|
</html>
|