Last change
on this file since 27390 was
27390,
checked in by felix winkelmann, 9 years ago
|
spock 0.9: now with less throwing up
|
File size:
686 bytes
|
Line | |
---|
1 | <!-- drag.html - simple example for SPOCK --> |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <script src="spock-runtime-debug.js"></script> |
---|
6 | <script src="drag.js"></script> |
---|
7 | <style type="text/css"> |
---|
8 | body { |
---|
9 | font-family: Arial, Helvetica; |
---|
10 | font-size: x-large; |
---|
11 | } |
---|
12 | |
---|
13 | #info { |
---|
14 | position: absolute; |
---|
15 | right-margin: auto; |
---|
16 | left: 0px; |
---|
17 | top-margin: auto; |
---|
18 | bottom: 0px; |
---|
19 | } |
---|
20 | |
---|
21 | #box { |
---|
22 | width: 200px; |
---|
23 | height: 200px; |
---|
24 | background-color: red; |
---|
25 | position: absolute; |
---|
26 | left: 50%; |
---|
27 | top: 50%; |
---|
28 | } |
---|
29 | </style> |
---|
30 | </head> |
---|
31 | <body> |
---|
32 | <div id="info">xxx</div> |
---|
33 | <div id="box">Drag me.</div> |
---|
34 | </body> |
---|
35 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.