-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (110 loc) · 4.21 KB
/
index.html
File metadata and controls
114 lines (110 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Three Hundred Prototypes :: Engine: Comic Engine</title>
<script type='text/javascript' src='js/common/image.js' charset='utf-8'></script>
<script type='text/javascript' src='js/common/sprite.js' charset='utf-8'></script>
<script type='text/javascript' src='js/common/sprout.js' charset='utf-8'></script>
<script type='text/javascript' src='js/common/sproutTemplate.js' charset='utf-8'></script>
<script type='text/javascript' src='js/comic/actor.js' charset='utf-8'></script>
<script type='text/javascript' src='js/comic/backdrop.js' charset='utf-8'></script>
<script type='text/javascript' src='js/comic/scene.js' charset='utf-8'></script>
<script type='text/javascript' src='js/comic/panel.js' charset='utf-8'></script>
<script type='text/javascript' src='js/comic/comic.js' charset='utf-8'></script>
<script type='text/javascript' src='js/comic/wordbubble.js' charset='utf-8'></script>
<script type='text/javascript' src='js/comic/data_init.js' charset='utf-8'></script>
<script type='text/javascript' src='js/data/data_test.js' charset='utf-8'></script>
<script type='text/javascript' src='js/main.js' charset='utf-8'></script>
<script>
function defaultBehavior() {
console.log('"js/custom.js" not found: default behavior applied');
return true;
}
</script>
<script type='text/javascript' src='js/data/custom.js' onerror="defaultBehavior()"></script>
<style>
body, textarea {
color: white;
background-color: #4F4F4F;
}
a {
color: lightblue;
text-decoration: none;
}
a:visited {
color: lightslategrey;
}
a:hover {
text-decoration: underline;
}
.container {
width: 100%;
margin-bottom: 1em;
display: table-row;
}
.container > canvas {
display: table-cell;
}
.container > div {
display: table-cell;
vertical-align: top;
position: relative;
}
.container:after {
clear: both;
}
textarea {
width: 100%;
height: 425px; -moz-tab-size:4; tab-size:4;
margin: 0;
font-family: "DejaVu Sans Mono", consolas, monospace;
font-size: 12px;
resize:vertical;
}
.doc {
margin: 0 auto;
padding-left: 1em;
}
.doc h2 {
margin-left: -1em;
}
.doc div {
padding-left: 1em;
}
code {
background-color: Gainsboro;
border: 1px solid Silver;
border-radius: 2px;
padding: 2px;
}
div > code {
display: block;
}
.doc div {
border-left: 1px solid Gainsboro;
}
pre {
margin: 0;
}
</style>
</head>
<body onload='load();'>
<div class="container">
<canvas id="TheCanvas" width="640"></canvas>
<div>
<textarea id="sceneTextArea"></textarea>
<br>
<button onclick="loadSceneJSON()">Load Comic JSON</button>
<ul>
<li>Source : on <a href="https://github.com/yosko/ecomic">github.com</a> (original version: <a href="http://www.squidi.net/threep/eComic/index.php">squidi.net</a>)</li>
<li>Type '1' - '6' to show the designated comic (if there are that many). Default testscene.js only includes 2 sample comics.</li>
<li>Type 'X' to take a screenshot and turn the canvas into an image, opened in another tab/window.</li>
<li>Type 'Q' to turn off backgrounds.</li>
<li>Type 'W' to turn off drop shadows.</li>
<li>Feel free to modify the JSON file loaded into the text area. Press the button "load Comic JSON" to reload it and rebuild all the comics.</li>
</ul>
</div>
</div>
</body>
</html>