add more spacing
[personal-kdebase.git] / workspace / plasma / scriptengines / webkit / tests / test.html
blob1daeecbe3361fdfb36262ec423b4d4b3e23f8e46
1 <html>
2 <head>
3 <script>
4 function runTest()
6 var str = window.applet.name;
7 document.getElementById('sample').innerHTML = str;
8 var engines = window.plasma.knownEngines();
9 document.getElementById('sample').innerHTML = engines;
11 var engine = window.plasma.loadDataEngine("time");
12 var data = engine.query("Local");
13 document.getElementById('small').innerHTML = "Sample Applet";
14 document.getElementById('sample').innerHTML = "Time is " + data.value("Time");
16 </script>
18 <style>
19 body {
20 margin: 0;
21 background: white;
24 .helloText {
25 font: 12px "Lucida Grande";
26 font-weight: bold;
27 color: blue;
28 text-align: center;
29 position: absolute;
30 top: 41px;
31 left: 18px;
32 width: 180px;
34 .smallText {
35 font: 8px "Lucida Grande";
36 color: red;
37 text-align: center;
38 position: absolute;
39 width: 180px;
41 </style>
43 </head>
45 <body onload="runTest();">
46 <div id="sample" class="helloText">Hello, World!</div>
47 <div id="small" class="smallTest">Hello, World!</div>
48 </body>
50 </html>