asciiflow2/index.html

284 lines
6.8 KiB
HTML
Raw Normal View History

2014-01-05 00:24:48 +00:00
<!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" />
<meta name="mobile-web-app-capable" content="yes" />
<link rel="shortcut icon" sizes="196x196" href="images/favicon.png">
2014-01-19 12:42:51 +00:00
<title>ASCIIFlow Infinity</title>
<style>
* {
font-weight: bold;
font-family: sans-serif;
font-size: 0.95em;
color: #777;
}
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;
right: 0px;
z-index: 100;
}
#draw-tools > button, #file-tools > button {
vertical-align: top;
display: inline-block;
margin: 5px;
width: 30px;
height: 30px;
text-align: center;
cursor: pointer;
outline: 0 !important;
background-size: 200% 100% !important;
background-color: #FFF;
}
.info-icon {
width: 30px;
height: 30px;
background-size: 100% !important;
background-size: 200% 100% !important;
display: inline-block;
}
.info-description {
vertical-align: middle;
margin-left: 5px;
display: inline-block;
height: 30px;
}
#drive-filename {
display: inline-block;
}
/* 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;
width: 100%;
}
#drive-filename {
display: block;
}
}
2014-01-20 21:36:58 +00:00
.dialog {
2014-01-21 23:43:20 +00:00
position: fixed;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
margin: auto;
max-width: 640px;
max-height: 480px;
width: 90%;
height: 70%;
background: #FFF;
2014-01-19 23:21:53 +00:00
display: none;
z-index: 100;
padding: 5px;
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;
}
#draw-tools > button, #file-tools > button {
border-width: 0px;
2014-01-19 13:28:36 +00:00
}
button.active, .info-icon {
background-position: right;
}
.dialog > button {
margin-top: 6px;
display: inline-block;
2014-01-21 23:31:58 +00:00
}
.close-dialog-button, #import-submit-button, #text-tool-close {
position: absolute;
right: 0px;
bottom: 0px;
margin: 5px;
}
#import-submit-button {
margin-right: 70px;
}
#ascii-canvas {
2014-01-19 23:21:53 +00:00
position: fixed;
left: 0px;
top: 0px;
2014-01-19 23:21:53 +00:00
}
textarea {
width: 100%;
height: 100%;
2014-01-21 23:31:58 +00:00
overflow: hidden;
resize: none;
margin: 0px;
padding: 0px;
border: 0px;
2014-01-21 23:31:58 +00:00
font-family: monospace;
white-space: pre;
}
#logo-interstitial {
text-align: center;
vertical-align: middle;
background-color: #FFF;
z-index: 200;
position: fixed;
width: 100%;
height: 100%;
transition: opacity 1.5s ease-in-out;
background-size: 100%;
pointer-events: none;
}
#logo-interstitial > img {
display: inline;
max-width: 100%;
max-height: 100%;
}
#text-tool-widget {
display: none;
z-index: 100;
position: fixed;
top: 60px;
left: 0px;
right: 0px;
width: 300px;
height: 80px;
margin: auto;
text-align: center;
box-shadow: 0px 0px 3px 3px #CCC;
}
2014-03-23 19:33:17 +00:00
#drive-save-state {
display: inline-block;
font-size: 15px;
margin-top: 10px;
margin-right: 5px;
}
.fade-out {
opacity: 0;
}
.box-image { background-image: url('images/box-icon.png'); }
.line-image { background-image: url('images/line-icon.png'); }
.freeform-image { background-image: url('images/freeform-icon.png'); }
.erase-image { background-image: url('images/erase-icon.png'); }
.move-image { background-image: url('images/move-icon.png'); }
.text-image { background-image: url('images/text-icon.png'); }
.info-image { background-image: url('images/info-icon.png'); }
.drive-image { background-image: url('images/drive-icon.png'); }
</style>
2014-01-05 00:24:48 +00:00
</head>
<body>
<div id="logo-interstitial">
<img src="images/logo-full.png"></img>
</div>
<div id="draw-tools">
<button id="box-button" class="tool active box-image"></button>
<button id="line-button" class="tool line-image"></button>
<button id="freeform-button" class="tool freeform-image"></button>
<button id="erase-button" class="tool erase-image"></button>
<button id="move-button" class="tool move-image"></button>
<button id="text-button" class="tool text-image"></button>
</div>
<div id="file-tools">
<div id="drive-save-state">Unsaved</div>
<button id="drive-button" class="tool drive-image"></button>
<button id="export-button" class="tool">Ex</button>
<button id="import-button" class="tool">Im</button>
<button id="undo-button" class="tool">Un</button>
<button id="redo-button" class="tool">Re</button>
<button id="options-button" class="tool info-image"></button>
</div>
<div id="export-button-dialog" class="dialog">
<textarea readonly id="export-area"></textarea>
<button class="close-dialog-button">Close</button>
</div>
<div id="options-button-dialog" class="dialog">
<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>
<p> To move around the screen, hold CTRL on desktop and drag. On mobile, drag quickly to move and press and hold to start drawing.</p>
<button id="use-lines-button">Lines Mode</button>
<button id="use-ascii-button">ASCII Mode</button><br>
<button class="close-dialog-button">Close</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>
<!-- These dialogs are handled seperately. -->
<div id="text-tool-widget">
<textarea id="text-tool-input"></textarea>
<button id="text-tool-close">Close</button>
</div>
<div id="drive-dialog" class="dialog">
<div id="drive-filename">Untitled ASCII Diagram</div>
<button class="close-dialog-button">Close</button>
</div>
<textarea id="freeform-tool-input"></textarea>
<canvas id="ascii-canvas"></canvas>
<script src="jquery-1.9.1.min.js"></script>
2014-01-05 00:24:48 +00:00
<script src="js-compiled.js"></script>
<script src="https://apis.google.com/js/client.js?onload=window.gapiCallback"></script>
<script>
window.setTimeout(function() { $('#logo-interstitial').addClass('fade-out'); }, 1000);
2014-03-22 22:30:08 +00:00
window.setTimeout(function() { $('#logo-interstitial').hide(); }, 3000);
</script>
2014-01-05 00:24:48 +00:00
</body>
</html>