-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
executable file
·264 lines (242 loc) · 11.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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Spark - an awesome application engine</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800,900" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/railscasts.min.css">
<link rel="stylesheet" href="docs/stylesheets/spark-global.css">
<link rel="stylesheet" href="docs/stylesheets/spark-landing.css">
<link rel="author" href="humans.txt">
</head>
<script>
// Works in Safari / IE / Firefox / Chrome
function copyToClipboard(textToCopy)
{
var textArea;
function createTextArea(text) {
textArea = document.createElement('textArea');
textArea.readOnly = true;
textArea.contentEditable = true;
textArea.value = text;
document.body.appendChild(textArea);
}
function selectText() {
textArea.select();
}
function copyTo() {
document.execCommand('copy');
document.body.removeChild(textArea);
}
createTextArea(textToCopy);
selectText();
copyTo();
}
function copySparkLink()
{
var copyText = document.getElementById("SparkAppLink").href
copyToClipboard(copyText);
}
</script>
<body>
<nav>
<div class="logo" onclick="location.href='http://www.sparkui.org';" style="cursor: pointer;"></div>
<ul class="menu">
<div class="menu__item toggle"><span></span></div>
<li class="menu__item"><a href="docs/doc.html" class="link link--dark"><i class="fa fa-book"></i> Documentation</a></li>
<li class="menu__item"><a href="https://github.com/pxscene/Spark" class="link link--dark"><i class="fa fa-github"></i> GitHub</a></li>
</ul>
</nav>
<div class="hero">
<div class="image__item"><img src="docs/images/Spark_logo.svg" style="width: 100px;" ></div>
<h1 class="hero__title">Spark</h1>
<p class="hero__description">Take your embedded apps to the next level!</p>
<p>
<div class="callout">
<a href="docs/getting_started.html" class="button--primary">Get Spark!</a>
</div>
</p>
</div>
<!--<div>
<h3>Scene graph API exposed to a Javascript engine</h3>
</div>-->
<div class="demo__terminal2" style="padding-top: 0px; padding-bottom: 40px;" >
<center><h1 class="hero__title"> Spark v2.0+ now supports Lightning !! </h1></center>
<div class="video" style="padding-top: 0px; display: grid; grid-template-columns: auto 4% auto; justify-items: center;align-items: center;">
<!-- <div id='myApp' style="grid-column: 2"> -->
<div id='myApp' style="grid-column: 2; ">
<div class="tooltip" >
<div class="holder" style="width: 400px; height: 225px; position:relative; top: 0; left: 0;">
<iframe class="frame" src="web-spark/index.html" scrolling="no"
alt="This is an actual Lightning app running int the browser, but could run on Spark anywhere !"></iframe>
<img src="docs/images/Spark21_BannerBig.png" width="150" style="position: absolute; top: -7px; left: 257px; " />
</div><!-- holder -->
<br>
<center>Try this <a id="SparkAppLink" href="web-spark/js/init.spark"> <span style="color:blue">link</span> </a> in <b>Spark.app</b> <button id='copySparkLinkButton' onclick="copySparkLink()">Copy Link</button> </center>
<div class="right">
<h3>Lightning App!</h3>
<p>This is an actual <b>Lightning</b> app running in the browser, but could run on <b>Spark</b> anywhere !</p>
<i></i>
</div><!-- right -->
</div> <!-- tooltip -->
</div> <!-- myApp -->
</div>
</div>
<br><br><br><br>
<div class="demo__terminal">
<center><h1 class="hero__title"> Spark also supports Shaders !! </h1></center>
<div class="video" style="padding-top: 0px; display: grid; grid-template-columns: auto 4% auto; justify-items: center;align-items: center;">
<div style="grid-column: 1"><a href="http://www.sparkui.org/docs/apis/shader_page.html"> <img src="docs/images/SparkSmoke.gif" width="400px"></a> </div>
<div style="grid-column: 2"> <!--spacer--> </div>
<div style="grid-column: 3"><img src="docs/images/Spark_browser2.gif" width="400px"></div>
</div>
</div>
</div>
<div class="wrapper">
<div class="feature">
<div class="feature__item">
<h3 class="section__title">Rich Animation</h3>
<p>Native animations supporting non-linear tweening. </p>
</div>
<div class="feature__item">
<h3 class="section__title">JavaScript Bindings</h3>
<p>JavaScript bindings allow applications written in JavaScript to take advantage of native performance.</p>
</div>
<div class="feature__item">
<h3 class="section__title">Used by Firebolt in the RDK</h3>
<p><a href="docs/firebolt/index.html"><strong><i>Firebolt</i></strong></a> is an application platform for devices powered by the <a href="http://rdkcentral.com/"><strong><i>Reference Design Kit (RDK)</i></strong></a>.</p>
</div>
<div class="feature__item">
<h3 class="section__title">Open Source</h3>
<p>Spark is an open source project, so if you don't like something - submit a Pull Request! </p>
</div>
<div class="feature__item">
<h3 class="section__title">Service Bubbling</h3>
<p>Provide service availability through the heirarchy of your applications</p>
</div>
<div class="feature__item">
<h3 class="section__title">Atomic Building Blocks</h3>
<p>Small set of atomic building blocks allows for composition. Use a framework, build your own, or use the Spark API directly.</p>
</div>
</div>
<div class="keybinding">
<ul class="keybinding__detail">
<h3 class="keybinding__title">Spark Browser Shortcuts</h3>
<li> Show Help page with all Shortcuts <span class="keybinding__label">Ctrl+Alt+K</span></li>
<li> Show About page for Spark <span class="keybinding__label">Ctrl+Alt+A</span></li>
<li> Toggle Fullscreen - hide address bar <span class="keybinding__label">Ctrl+Alt+F</span></li>
<li> Sets focus on URL edit box - and selects ALL <span class="keybinding__label">Ctrl+Alt+Shift+L</span></li>
<li> Reload URL <span class="keybinding__label">Ctrl+Alt+R</span></li>
<li> Load browser.js <span class="keybinding__label">Ctrl+Alt+Shift+H</span></li>
</ul>
<ul class="keybinding__detail">
<h3 class="keybinding__title">Spark General Shortcuts</h3>
<li><span class="keybinding__label">Ctrl+Alt+Y</span> Toggle FPS</li>
<li><span class="keybinding__label">Ctrl+Alt+O</span> Toggle object outlines</li>
<li><span class="keybinding__label">Ctrl+Alt+Shift+D</span> Log debug info and object count</li>
<li><span class="keybinding__label">Ctrl+Alt+D</span> Show dirty rect outlines</li>
<li><span class="keybinding__label">Ctrl+Alt+S</span> Take a screenshot</li>
<li><span class="keybinding__label">Ctrl+Alt+Shift+R</span> Reload scene</li>
</ul>
</div>
<div class="callout">
<p>Read the documentation for API and functionality information.</p>
<a href="docs/doc.html" class="button--primary">Documentation</a>
</div>
</div>
<div class="changelog">
<div class="wrapper">
<h3 class="section__title">Release Highlights</h3>
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">v1.9.0.1</h4>
<small class="changelog__date">02Aug2019</small>
</div>
<div class="changelog__detail">
<ul>
<li>GIF support for Mac (fixed)</li>
</ul>
</div>
</div>
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">v1.9.0.0</h4>
<small class="changelog__date">24Jun2019</small>
</div>
<div class="changelog__detail">
<ul>
<li>Introduction of Home and Favorites customization.</li>
<li>GIF support for Mac</li>
<li>Fall back to node 6 for stability.</li>
<li>GIF support for pxBenchmark</li>
</ul>
</div>
</div>
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">v1.8.0.3</h4>
<small class="changelog__date">19Jun2019</small>
</div>
<div class="changelog__detail">
<ul>
<li>GIF support for Mac</li>
<li>Fall back to node 6 for stability.</li>
</ul>
</div>
</div>
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">v1.8.0.1</h4>
<small class="changelog__date">13Jun2019</small>
</div>
<div class="changelog__detail">
<ul>
<li>Support for local storage in Spark applications<ul>
<li>Spark local storage is modeled after Web Storage's localStorage. </li>
<li>The ability to use localStorage is managed by application permissions.</li>
<li>See TBD for more details</li>
</ul>
</li>
<li>Node 8 support (off by default)</li>
</ul>
</div>
</div>
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">v1.7.0.1</h4>
<small class="changelog__date">22May2019</small>
</div>
<div class="changelog__detail">
<ul>
<li>GIF Support - <em>for Linux builds only</em>. <ul>Use imageA and imageAResource to use GIFs in a Spark application.</ul></li>
<li>Bug fix: ImageAResource width and height were replacing any authored width and height for imageA objects using the resource.
<ul>This would result in an inability to stretch an imageA to a desired width and height other than the resource's actual width and height. Check
<code>(scene.capabilities.graphics.imageAResource >= 2)</code> to detect if this fix is available.</ul></li>
</ul>
</div>
</div>
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">v1.7.1.1</h4>
<small class="changelog__date">07Jun2019</small>
</div>
<div class="changelog__detail">
<ul>
<li>GIF Support for Mac desktop builds. Use imageA and imageAResource to use GIFs in a Spark application. Check for <code>(scene.capabilities.graphics.gif >= 1)</code> in a Spark application to confirm GIF support is available.</li>
</ul>
</div>
</div>
<div class="changelog__callout">
<a href="docs/releaseNotes/notes.html" class="button--secondary">Checkout Full Release Notes</a>
</div>
</div>
</div>
<footer class="footer">Spark is an open source project in <a href="https://github.com/pxscene/pxCore" target="_blank" class="link link--light">GitHub</a>.</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="docs/scripts/sparkScript.js"></script>
</body>
</html>