File tree 1 file changed +26
-30
lines changed
1 file changed +26
-30
lines changed Original file line number Diff line number Diff line change 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 >
28
25
< h1 > Web Worker Demo</ h1 >
29
26
< p > Works in Chrome, Safari, and Firefox. Web worker portion works in Opera.</ p >
30
27
< 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>
33
30
< h2 > Messages from Worker:</ h2 >
34
31
< div id ="status "> </ div >
35
32
< 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 >
You can’t perform that action at this time.
0 commit comments