add some comments
[makneto-zunavac1.git] / src / ui-mobile / whiteboard / main.html
bloba1f97da348a159ed530f244b3c4af37e8fa63478
1 <!DOCTYPE html>
2 <html lang="cs">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5 <title>SVG Whiteboard</title>
7 <style type="text/css">
8 body{
9 margin:0px;
10 padding:0px;
11 text-align: center;
12 background-color: #000000;
13 overflow: hidden;
14 height: 100%;
15 width: 100%;
16 position: fixed;
17 color: #ffffff;
19 #workArea{
20 overflow: hidden;
21 width: 100%;
22 height: 100%;
24 </style>
26 <script src="qrc:/whiteboard/js/libs/json_parse.js" type="application/javascript"></script>
27 <script src="qrc:/whiteboard/js/libs/jquery-1.4.2.min.js" type="application/javascript"></script>
28 <script src="qrc:/whiteboard/js/libs/jquery.dataSelector.js" type="application/javascript"></script>
29 <script src="qrc:/whiteboard/js/libs/base64.js" type="application/javascript"></script>
30 <script src="qrc:/whiteboard/js/utils.js" type="application/javascript"></script>
31 <script src="qrc:/whiteboard/js/svgcanvas.js" type="application/javascript"></script>
32 <script src="qrc:/whiteboard/js/whiteboard.js" type="application/javascript"></script>
33 <script src="qrc:/whiteboard/js/thumbnail.js" type="application/javascript"></script>
34 <script src="qrc:/whiteboard/js/maknetowb.js" type="application/javascript"></script>
37 <script type="text/javascript">
38 $(document).ready(function () {
39 $(document)[0].oncontextmenu = function() {return false;}
40 MaknetoWhiteboard.instance = new MaknetoWhiteboard( $('#workArea') );
41 connector.init();
42 });
44 // we check document for multiple id - for debug
45 window.addEventListener("DOMContentLoaded", function() {
46 // Warning Duplicate IDs
47 $('[id]').each(function(){
48 var ids = $('[id='+this.id+']');
49 if(ids.length>1 && ids[0]==this)
50 console.warn('Multiple IDs #'+this.id);
51 });
52 }, false);
54 </script>
56 </head>
57 <body>
59 <div id="workArea"></div>
61 </body>
62 </html>