-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
136 lines (121 loc) · 5.67 KB
/
index.html
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<html>
<head>
<SCRIPT LANGUAGE="JavaScript" src="script/util.js?version2dot2"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="script/toplevel.js?version2dot2"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="script/codegen.js?version2dot2"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="script/grid.js?version2dot2"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="script/screenandpalettes.js?version2dot2"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="script/editor.js?version2dot2"></SCRIPT>
<link href="interface.css?version2dot2" rel="stylesheet" type="text/css"/>
<!--//********************************************-->
<!--// COCO II SG editor by Simon Jonassen 2014/16-->
<!--// use and modify as you see fit...-->
<!--// just pls remember where it came from-->
<!--//********************************************-->
<!--// Updates By Davy Mitchell 2018-->
<!--//********************************************-->
</head>
<body onload="init()">
<div id="screen"
onmousedown="return false"
ondragstart="return false" draggable="false"
ondragenter="event.dataTransfer.dropEffect='none'; event.stopPropagation(); event.preventDefault();"
ondragover="event.dataTransfer.dropEffect='none';event.stopPropagation(); event.preventDefault();"
ondrop="event.dataTransfer.dropEffect='none';event.stopPropagation(); event.preventDefault();"
class="screen">
</div>
<div id="toolbar">
<div style="padding: 0px;display: inline-block;">
<img id="preview" src="grafix/60.jpg"
align="middle"/></div>
<div style="margin-left: 50px;display: inline-block">
<select id="cls" name="cls" onchange="clearScreen(this.value)">
<option value="0">Clear</option>
<option value="80" style="background-color:black;color:white">CLS 0</option>
<option value="8f" style="background-color:#09ff08;color:white">CLS 1</option>
<option value="9f" style="background-color:#fdff41;color:white">CLS 2</option>
<option value="af" style="background-color:#2110b6;color:white">CLS 3</option>
<option value="bf" style="background-color:#b50421;color:white">CLS 4</option>
<option value="cf" style="background-color:#ffffff;color:black">CLS 5</option>
<option value="df" style="background-color:#09d773;color:white">CLS 6</option>
<option value="ef" style="background-color:#ff1cff;color:white">CLS 7</option>
<option value="ff" style="background-color:#ff4107;color:white">CLS 8</option>
</select>
<button onclick="toggleGrid()">Grid</button>
</div>
</div>
<div id="charpallette">
<DIV id="sgsel" style="display:inline-block;top:20px">
</div>
<DIV id="charsel" style="display:inline-block;top:20px;padding-left: 20px">
</div>
</div>
<div id="toolbarLower">
<input type="button" value="Assembly" onclick="constructFcb()">
<input type="button" value="Basic" onclick="constructData()">
<input type="button" value="Data" onclick="roundTripData()">
<br/>
<button onclick="showById('about')">About</button>
</div>
<div id="rtdata" class="miniwindow">
<textarea cols="160" rows=30 id="csvdata"> </textarea>
<button onclick="importData()">Import</button>
<button onclick="downloadData()">Download</button>
<button onclick="hideById('rtdata')">Close</button>
</div>
<div id="fcbdata" class="miniwindow">
<div style="text-align: right;margin-top: 5px">
<button onclick="downloadAssembly()">Download</button>
<button onclick="hideById('fcbdata')">Close</button>
</div>
<br/>
<textarea cols="160" rows=30 id="fcbs"> </textarea>
<br/>
<br/>
<br/>
</div>
<div id="basicdata" class="miniwindow">
<div style="text-align: right;margin-top: 5px">
<button onclick="downloadBasic()">Download</button>
<button onclick="hideById('basicdata')">Close</button>
</div>
<br/>
<textarea cols="160" rows=30 id="data"> </textarea>
<br/>
<br/>
<br/>
</div>
<div id="about" class="aboutwindow">
<p style="font-size: 16px">
<h2>COCO II SG editor by Simon Jonassen 2014/16</h2>
<h3>Updates By Davy Mitchell 2018</h3>
<b>Please raise Issues and Features on</b> <a style="font-size: large"
href="https://github.com/daftspaniel/sgeditremix">GitHub</a>
</p>
<div style="border:1px solid grey;background-color:lightgoldenrodyellow;max-height:140px;overflow-y:scroll;margin-left: 25px;margin-right: 25px;text-align: left;margin-bottom: 30px">
<b>Version 2.2</b><br/>
<ul>
<li>Safety prompt before CLS.</li>
<li>Selected Character now highlighted in palette.</li>
</ul>
<b>Version 2.1</b><br/>
<ul>
<li>Screen and settings now persisted (locally).</li>
<li>ASM/BASIC now have a button to download files</li>
<li>Keys WASD change the selected block</li>
<li>Gridlines now contrast better especially CLS0</li>
<li>Images should all be crisper</li>
<li>Preview image larger</li>
<li>Massive refactor of the code</li>
<li>About box added</li>
<li>New layout of toolbars for future features</li>
</ul>
</div>
<div style="text-align: center;margin-top: 5px">
<button onclick="hideById('about')">Close</button>
</div>
</div>
</body>
</html>