| <title>Plugin demo</title> |
| <link type="text/css" rel="stylesheet" href="/css/kalamar.css" /> |
| <!-- load client javascript library --> |
| <script src="/js/src/plugin/client.js" data-server="http://localhost:3003/"></script> |
| height: unset !important; |
| min-height: unset !important; |
| <body style="background-color: yellow"> |
| p.onMessage = function(msg) { |
| // console.log("State changed to", msg.key, msg.value); |
| 'service' : 'http://glemm/' |
| KorAPlugin.sendMsg(data); |
| <li><a onclick="KorAPlugin.log(333, 'Huhu!')">Send log!</a></li> |
| <li><a onclick="KorAPlugin.resize()">Resize</a></li> |
| <li><a onclick="KorAPlugin.sendMsg({'action':'pipe','service':'Glemm'})">Add Glemm</a></li> |
| <li><a onclick="flood()">Flood!</a></li> |
| <li><a onclick="KorAPlugin.requestMsg({'action':'get', 'key':'KQ'}, function (d) { document.write(JSON.stringify(d.value))})">Get KQ</a></li> |
| <p style="width: 2000px">------------------------------------------------------------------------------------------------------------------------</p> |