Skip to content

Commit a027a38

Browse files
committed
tweaked markup to work as an include
1 parent b74ad4d commit a027a38

File tree

1 file changed

+26
-30
lines changed

1 file changed

+26
-30
lines changed

demos/worker.html

+26-30
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
1-
<html>
2-
<head>
3-
<title>Worker</title>
4-
<style>
5-
body {
6-
font-family: sans-serif;
7-
}
8-
9-
#status {
10-
height: 200px;
11-
max-height: 200px;
12-
border: thin solid black;
13-
overflow-y: scroll;
14-
}
15-
16-
#square {
17-
position: absolute;
18-
left: 0px;
19-
top: 0px;
20-
width: 75px;
21-
height: 75px;
22-
background-color: rgba(0, 0, 220, 0.3);
23-
z-index: -1;
24-
}
25-
</style>
26-
</head>
27-
<body>
1+
<title>Web Worker</title>
2+
<style>
3+
body {
4+
font-family: sans-serif;
5+
}
6+
7+
#status {
8+
height: 200px;
9+
max-height: 200px;
10+
border: thin solid black;
11+
overflow-y: scroll;
12+
}
13+
14+
#square {
15+
position: absolute;
16+
left: 0px;
17+
top: 0px;
18+
width: 75px;
19+
height: 75px;
20+
background-color: rgba(0, 0, 220, 0.3);
21+
z-index: -1;
22+
}
23+
</style>
24+
<article>
2825
<h1>Web Worker Demo</h1>
2926
<p>Works in Chrome, Safari, and Firefox. Web worker portion works in Opera.</p>
3027
<p>Use arrow keys to change the direction of the animated square. The square is animated with <em>requestAnimationFrame</em>.</p>
@@ -33,6 +30,5 @@ <h1>Web Worker Demo</h1>
3330
<h2>Messages from Worker:</h2>
3431
<div id="status"></div>
3532
<div id="square"></div>
36-
<script src="../js/worker-main.js"></script>
37-
</body>
38-
</html>
33+
<script src="/js/worker-main.js"></script>
34+
</article>

0 commit comments

Comments
 (0)