-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
97 lines (83 loc) · 3.9 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
<!doctype html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="extension.css" />
<script type="application/javascript" src="scripts/extension.js"></script>
</head>
<body onload="window.setupExtension();">
<div id="extensionControls" class="halo">
<button id="Examples_PanelButton" onclick="EXTENSION.switchTab('Examples');">Library</button>
<button id="Data_PanelButton" onclick="EXTENSION.switchTab('Data');">Data</button>
<button id="Code_PanelButton" onclick="EXTENSION.switchTab('Code');">Code</button>
<span id="DomButtons" style="float:right">
<button id="exportHtmlButton" onclick="DOM.exportHTML();">Export DOM as HTML</button>
<button id="importHtmlButton" onclick="DOM.importHTML();">Import HTML as DOM</button>
<button id="refreshButton" onclick="ILLUSTRATOR.refresh();">To D3</button>
<button id="runButton" onclick="CODE.runJS();">Run Script</button>
<button id="applyButton" onclick="ILLUSTRATOR.apply();">To Illustrator</button>
</span>
<span id="CombinedButtons" style="float:right">
<!--button id="combinedExportHtmlButton" onclick="DOM.combinedExportHTML();">Export as HTML</button-->
<!--button id="combinedImportHtmlButton" onclick="DOM.combinedImportHTML();">Import HTML</button-->
<button id="combinedApplyButton" onclick="EXTENSION.combinedApply();">To Illustrator</button>
</span>
</div>
<div id="views">
<div id="examplesView">
<div id="examplesControls" class="halo controls">
<div id="examplesButtons">
<button id="examplesLoadButton" onclick="EXAMPLES.loadBlock()">Import</button>
 
<button id="examplesBackButton" onclick="EXAMPLES.back();"><</button>
<button id="examplesForwardButton" onclick="EXAMPLES.forward();">></button>
</div>
<input id="examplesUrl" onchange="EXAMPLES.changeUrl();" type="text" />
</div>
<iframe id="examplesBrowser"></iframe>
</div>
<div id="dataEditor">
<textarea id="dataTextEditor" wrap="off" onkeyup="DATA.edit();"></textarea>
<div id="dataEditorControls" class="halo">
<select id="currentDataFile" onchange="DATA.switchFile();"></select>
Interpret as:
<select id="dataTypeSelect" onchange="DATA.changeType();">
<option value="text/csv">CSV</option>
<option value="text/tab-separated-values">TSV</option>
<option value="text/json">JSON</option>
<option value="text/js">Javascript</option>
</select>
</div>
</div>
<div id="dataPreview"></div>
<div id="domPreview">
<div id="domPreviewContent"></div>
<div id="zoomButtons" class="halo">
<span>100%</span>
<button onclick="DOM.zoomOut();">-</button>
<button onclick="DOM.zoomIn();">+</button>
</div>
</div>
<div id="selectionQueryTools"></div>
<div id="influenceTools"></div>
<div id="jsEditor">
<textarea id="jsTextEditor" wrap="off"></textarea>
<div id="jsEditorControls" class="halo controls">
Javascript
<button onclick="ejQuery('#jsFileInput').click();">Load Script...</button>
<input id="jsFileInput" type="file" onchange="CODE.loadJSFile();" style="visibility:hidden" />
<input type="checkbox" onchange="EXTENSION.toggleDom();" />Show Mirror DOM
</div>
</div>
<div id="cssEditor">
<textarea id="cssTextEditor" wrap="off" onkeyup="CODE.editCSS();"></textarea>
<div id="cssEditorControls" class="halo controls">
CSS
<button onclick="ejQuery('#cssFileInput').click();">Load Stylesheet...</button>
<input id="cssFileInput" type="file" onchange="CODE.loadCSSFile();" style="visibility:hidden" />
</div>
</div>
</div>
<div id="messageOverlay" class="halo" onclick="EXTENSION.clearMessages()">
</div>
</body>
</html>