2014-01-05 00:24:48 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2014-01-11 21:02:14 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
2014-02-19 23:11:51 +00:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
2014-01-19 12:42:51 +00:00
|
|
|
<title>ASCIIFlow Infinity</title>
|
2014-01-12 19:08:29 +00:00
|
|
|
<style>
|
2014-02-24 23:47:36 +00:00
|
|
|
|
|
|
|
* {
|
|
|
|
font-weight: bold;
|
2014-03-03 23:10:15 +00:00
|
|
|
font-family: sans-serif;
|
2014-02-24 23:47:36 +00:00
|
|
|
font-size: 0.95em;
|
2014-03-22 17:36:52 +00:00
|
|
|
color: #777;
|
2014-02-24 23:47:36 +00:00
|
|
|
}
|
|
|
|
|
2014-03-22 17:05:35 +00:00
|
|
|
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;
|
2014-02-24 23:47:36 +00:00
|
|
|
display: inline-block;
|
2014-03-22 17:05:35 +00:00
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
2014-01-12 19:08:29 +00:00
|
|
|
z-index: 100;
|
|
|
|
}
|
|
|
|
|
2014-03-22 17:05:35 +00:00
|
|
|
button {
|
2014-03-22 17:36:52 +00:00
|
|
|
vertical-align: top;
|
2014-03-22 17:05:35 +00:00
|
|
|
display: inline-block;
|
|
|
|
margin: 5px;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
outline: 0 !important;
|
|
|
|
background-size: 100% !important;
|
|
|
|
}
|
|
|
|
|
2014-03-22 17:36:52 +00:00
|
|
|
.info-icon {
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
background-size: 100% !important;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.info-description {
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-left: 5px;
|
|
|
|
display: inline-block;
|
|
|
|
height: 30px;
|
|
|
|
}
|
|
|
|
|
2014-03-22 17:05:35 +00:00
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-20 21:36:58 +00:00
|
|
|
.dialog {
|
2014-01-21 23:43:20 +00:00
|
|
|
position: fixed;
|
2014-02-24 23:47:36 +00:00
|
|
|
left: 0px;
|
|
|
|
right: 0px;
|
|
|
|
top: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
margin: auto;
|
2014-02-19 23:11:51 +00:00
|
|
|
max-width: 640px;
|
|
|
|
max-height: 480px;
|
2014-03-22 17:05:35 +00:00
|
|
|
width: 90%;
|
|
|
|
height: 70%;
|
|
|
|
background: #FFF;
|
2014-01-19 23:21:53 +00:00
|
|
|
display: none;
|
2014-02-24 23:47:36 +00:00
|
|
|
z-index: 100;
|
|
|
|
padding: 5px;
|
2014-03-22 17:05:35 +00:00
|
|
|
box-shadow:0px 0px 3px 3px #CCC;
|
2014-01-19 13:28:36 +00:00
|
|
|
}
|
|
|
|
|
2014-01-20 21:36:58 +00:00
|
|
|
.visible {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
|
2014-03-22 17:05:35 +00:00
|
|
|
#draw-tools > button, #file-tools > button {
|
|
|
|
border-width: 0px;
|
2014-01-19 13:28:36 +00:00
|
|
|
}
|
|
|
|
|
2014-02-24 23:47:36 +00:00
|
|
|
#draw-tools > button.active {
|
2014-03-22 17:05:35 +00:00
|
|
|
/* TODO: Offset background images. */
|
2014-02-24 23:47:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.dialog > button {
|
|
|
|
margin-top: 6px;
|
|
|
|
display: inline-block;
|
2014-01-21 23:31:58 +00:00
|
|
|
}
|
|
|
|
|
2014-01-12 19:08:29 +00:00
|
|
|
#ascii-canvas {
|
2014-01-19 23:21:53 +00:00
|
|
|
position: fixed;
|
2014-01-12 19:08:29 +00:00
|
|
|
left: 0px;
|
|
|
|
top: 0px;
|
2014-01-19 23:21:53 +00:00
|
|
|
}
|
|
|
|
|
2014-01-20 23:58:33 +00:00
|
|
|
|
2014-03-22 17:36:52 +00:00
|
|
|
#drive-filename {
|
|
|
|
display: inline-block;
|
2014-01-20 23:58:33 +00:00
|
|
|
}
|
|
|
|
|
2014-01-22 22:57:33 +00:00
|
|
|
textarea {
|
2014-02-19 23:11:51 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2014-01-21 23:31:58 +00:00
|
|
|
overflow: hidden;
|
|
|
|
resize: none;
|
2014-02-19 23:11:51 +00:00
|
|
|
margin: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
border: 0px;
|
2014-01-21 23:31:58 +00:00
|
|
|
font-family: monospace;
|
|
|
|
white-space: pre;
|
|
|
|
}
|
|
|
|
|
2014-03-22 17:36:52 +00:00
|
|
|
.box-image { background-image: url('images/box-tool.png'); }
|
|
|
|
.line-image { background-image: url('images/line-tool.png'); }
|
|
|
|
.freeform-image { background-image: url('images/freeform-tool.png'); }
|
|
|
|
.erase-image { background-image: url('images/erase-tool.png'); }
|
|
|
|
.move-image { background-image: url('images/move-tool.png'); }
|
|
|
|
.text-image { background-image: url('images/text-tool.png'); }
|
|
|
|
.info-image { background-image: url('images/info-button.png'); }
|
|
|
|
|
2014-01-12 19:08:29 +00:00
|
|
|
</style>
|
2014-01-05 00:24:48 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2014-02-24 23:47:36 +00:00
|
|
|
|
|
|
|
<div id="draw-tools">
|
2014-03-22 17:36:52 +00:00
|
|
|
<button id="box-button" class="tool active box-image">
|
2014-03-10 22:08:38 +00:00
|
|
|
</button>
|
2014-03-22 17:36:52 +00:00
|
|
|
<button id="line-button" class="tool line-image">
|
2014-03-10 22:08:38 +00:00
|
|
|
</button>
|
2014-03-22 17:36:52 +00:00
|
|
|
<button id="freeform-button" class="tool freeform-image">
|
2014-03-10 22:08:38 +00:00
|
|
|
</button>
|
2014-03-22 17:36:52 +00:00
|
|
|
<button id="erase-button" class="tool erase-image">
|
2014-03-10 22:08:38 +00:00
|
|
|
</button>
|
2014-03-22 17:36:52 +00:00
|
|
|
<button id="move-button" class="tool move-image">
|
2014-03-10 22:08:38 +00:00
|
|
|
</button>
|
2014-03-22 17:36:52 +00:00
|
|
|
<button id="text-button" class="tool text-image">
|
2014-03-10 22:08:38 +00:00
|
|
|
</button>
|
2014-02-24 23:47:36 +00:00
|
|
|
</div>
|
2014-03-22 17:05:35 +00:00
|
|
|
|
2014-02-24 23:47:36 +00:00
|
|
|
<div id="file-tools">
|
2014-03-22 17:36:52 +00:00
|
|
|
<div id="drive-filename" class="edit">Untitled ASCII Diagram</div>
|
2014-03-22 17:05:35 +00:00
|
|
|
<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>
|
2014-03-22 17:36:52 +00:00
|
|
|
<button id="options-button" class="tool info-image"></button>
|
2014-03-03 23:10:15 +00:00
|
|
|
</div>
|
2014-02-24 23:47:36 +00:00
|
|
|
|
|
|
|
<div id="export-button-dialog" class="dialog">
|
|
|
|
<textarea id="export-area"></textarea>
|
|
|
|
<button class="close-dialog-button">Close</button>
|
|
|
|
</div>
|
2014-03-10 22:54:02 +00:00
|
|
|
|
|
|
|
<div id="options-button-dialog" class="dialog">
|
2014-03-22 17:36:52 +00:00
|
|
|
<div class="info-icon box-image"></div><div class="info-description">Draw boxes. You can resize them later with the Resize tool.</div><br>
|
|
|
|
<div class="info-icon line-image"></div><div class="info-description">Draw lines. Connect it to another line to change the orientation.</div><br>
|
|
|
|
<div class="info-icon text-image"></div><div class="info-description">Press a character on the keyboard, then drag to draw it.</div><br>
|
|
|
|
<div class="info-icon erase-image"></div><div class="info-description">Drag out an area to erase.</div><br>
|
|
|
|
<div class="info-icon move-image"></div><div class="info-description">Resize boxes and lines, just drag a line to change it.</div><br>
|
|
|
|
<div class="info-icon text-image"></div><div class="info-description">Press where to start writing, and type the text you want.</div><br>
|
2014-03-22 17:05:35 +00:00
|
|
|
|
2014-03-10 22:54:02 +00:00
|
|
|
<button id="use-lines-button">Lines Mode</button>
|
|
|
|
<button id="use-ascii-button">ASCII Mode</button>
|
2014-03-22 17:36:52 +00:00
|
|
|
<button class="close-dialog-button">Close</button>
|
2014-03-10 22:54:02 +00:00
|
|
|
</div>
|
|
|
|
|
2014-02-24 23:47:36 +00:00
|
|
|
<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>
|
2014-01-12 19:08:29 +00:00
|
|
|
<canvas id="ascii-canvas"></canvas>
|
2014-03-03 23:10:15 +00:00
|
|
|
<script src="https://apis.google.com/js/api.js"></script>
|
2014-03-02 22:20:20 +00:00
|
|
|
<script src="https://apis.google.com/js/client.js"></script>
|
2014-01-07 22:49:54 +00:00
|
|
|
<script src="jquery-1.9.1.min.js"></script>
|
2014-03-03 23:10:15 +00:00
|
|
|
<script src="jquery.jeditable.min.js"></script>
|
2014-01-05 00:24:48 +00:00
|
|
|
<script src="js-compiled.js"></script>
|
|
|
|
</body>
|
2014-01-07 22:49:54 +00:00
|
|
|
</html>
|