index.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="title" content="百度脑图(KityMinder)">
  6. <meta name="keyword" content="kityminder,脑图,思维导图,kity,svg,minder,百度,fex,前端,在线">
  7. <meta name="description" content="百度脑图,便捷的脑图编辑工具。让您在线上直接创建、保存并分享你的思路。">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  9. <script src="lib/jquery-2.1.0.min.js" charset="utf-8"></script>
  10. <script src="lib/ZeroClipboard.min.js" charset="utf-8"></script>
  11. <script type="text/javascript">
  12. ZeroClipboard.setDefaults( { moviePath: 'lib/ZeroClipboard.swf' } );
  13. </script>
  14. <script src="kity/dist/kity.js" charset="utf-8"></script>
  15. <script src="import.js" charset="utf-8"></script>
  16. <script src="kityminder.config.js" charset="utf-8"></script>
  17. <script src="lang/zh-cn/zh-cn.js" charset="utf-8"></script>
  18. <script src="lib/zip.js" charset="utf-8"></script>
  19. <script>
  20. zip.inflateJSPath = 'lib/inflate.js';
  21. </script>
  22. <script src="lib/jquery.xml2json.js" charset="utf-8"></script>
  23. <script src="lib/baidu-frontia-js-full-1.0.0.js" charset="utf-8"></script>
  24. <script src="social/draftmanager.js" charset="utf-8"></script>
  25. <script src="social/social.js" charset="utf-8"></script>
  26. <link href="social/social.css" rel="stylesheet">
  27. <link href="themes/default/css/import.css" type="text/css" rel="stylesheet" />
  28. <link href="favicon.ico" type="image/x-icon" rel="shortcut icon">
  29. <link href="favicon.ico" type="image/x-icon" rel="apple-touch-icon-precomposed">
  30. <script>
  31. jQuery( function ( $ ) {
  32. document.getElementById( "testxmind" ).onclick = function () {
  33. var data = km.exportData( "json" ),
  34. form = document.forms[ 'test' ];
  35. form.elements[ 'data' ].value = data;
  36. form.elements[ 'type' ].value = 'xmind';
  37. form.elements[ 'filename' ].value = km.getMinderTitle();
  38. form.submit();
  39. };
  40. document.getElementById( "testfreemind" ).onclick = function () {
  41. var data = km.exportData( "json" ),
  42. form = document.forms[ 'test' ];
  43. form.elements[ 'data' ].value = data;
  44. form.elements[ 'type' ].value = 'freemind';
  45. form.elements[ 'filename' ].value = km.getMinderTitle();
  46. form.submit();
  47. };
  48. } );
  49. </script>
  50. </head>
  51. <body>
  52. <div id="content-wrapper">
  53. <div id="panel"></div>
  54. <button id="testxmind" style="position: fixed; top: 0; left: 400px; z-index: 9999999;">导出xmind</button>
  55. <button id="testfreemind" style="position: fixed; top: 0; left: 500px; z-index: 9999999;">导出freemind</button>
  56. <div id="kityminder" onselectstart="return false"></div>
  57. <div id="share-dialog">
  58. <h3>URL分享:</h3>
  59. <p>
  60. <input id="share-url" type="url" value="http://naotu.baidu.com/?shareId=kcev3dd" />
  61. <button id="copy-share-url" data-clipboard-target="share-url" type="button">复制</button>
  62. </p>
  63. <h3>社交分享:</h3>
  64. <p id="share-platform" class="bdsharebuttonbox">
  65. <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
  66. <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
  67. <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
  68. <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
  69. <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
  70. </p>
  71. </div>
  72. <div id="about">
  73. <svg id="km-cat" viewBox="0 0 1200 1200" width="32px" height="32px">
  74. <g id="cat-face">
  75. <path d="M1066.769,368.482L1119.5,80L830,131.611C760.552,97.29,682.35,77.999,599.641,77.999
  76. c-82.424,0-160.371,19.161-229.641,53.26L81,81l50.769,289l0,0c-33.792,69.019-52.77,146.612-52.77,228.641
  77. c0,287.542,233.099,520.642,520.642,520.642s520.642-233.099,520.642-520.642C1120.282,516.011,1101.028,437.88,1066.769,368.482z"
  78. />
  79. </g>
  80. <g id="cat-eye">
  81. <path style="fill:#FFFFFF;" d="M920.255,371C794.746,371,693,472.746,693,598.255s101.746,227.255,227.255,227.255
  82. s227.255-101.746,227.255-227.255S1045.765,371,920.255,371z M920,746c-80.081,0-145-64.919-145-145s64.919-145,145-145
  83. s145,64.919,145,145S1000.081,746,920,746z"/>
  84. <path style="fill:#FFFFFF;" d="M276.255,371C150.746,371,49,472.746,49,598.255s101.746,227.255,227.255,227.255
  85. s227.255-101.746,227.255-227.255S401.765,371,276.255,371z M276,745c-80.081,0-145-64.919-145-145s64.919-145,145-145
  86. s145,64.919,145,145S356.081,745,276,745z"/>
  87. </g>
  88. </svg>
  89. KityMinder
  90. <a id="km-version"
  91. href="https://github.com/fex-team/kityminder/blob/dev/CHANGELOG.md"
  92. target="blank"
  93. tabindex="-1">
  94. </a>
  95. under
  96. <a href="https://raw.githubusercontent.com/fex-team/kityminder/dev/LICENSE"
  97. target="_blank"
  98. tabindex="-1">BSD License
  99. </a>.
  100. Powered by f-cube,
  101. <a href="http://fex.baidu.com"
  102. target="_blank"
  103. tabindex="-1">FEX
  104. </a> |
  105. <a href="https://github.com/fex-team/kityminder.git"
  106. target="_blank"
  107. tabindex="-1">Source
  108. </a>
  109. <a href="https://github.com/fex-team/kityminder/issues/new"
  110. target="_blank"
  111. tabindex="-1">Bug
  112. </a> |
  113. <a href="mailto:kity@baidu.com"
  114. target="_blank"
  115. tabindex="-1">Contact Us
  116. </a>
  117. </div>
  118. <div style="display: none;">
  119. <form name="test" target="_blank" action="export.php" method="POST"><input type="hidden" name="type"><input type="hidden" name="data"><input type="hidden" name="filename"></form>
  120. </div>
  121. </div>
  122. </body>
  123. <!--脑图启动代码-->
  124. <script>
  125. // create km instance
  126. km = KM.getKityMinder('kityminder');
  127. // New Version Notify
  128. $(function() {
  129. var lastVersion = localStorage.lastKMVersion;
  130. $('#km-version').text( 'v' + KM.version );
  131. if (lastVersion != KM.version) {
  132. $( '#km-version' ).addClass( 'new-version' );
  133. localStorage.lastKMVersion = KM.version;
  134. }
  135. });
  136. km.on('unziperror', function(ev) {
  137. alert('文件解析错误,文件可能已损坏!');
  138. });
  139. km.on('parseerror', function(ev) {
  140. alert('文件解析错误,文件可能已损坏!');
  141. });
  142. km.on('unknownprotocal', function(ev) {
  143. alert('不支持的文件格式!');
  144. });
  145. document.body.ontouchmove = function(e) {
  146. //e.preventDefault();
  147. }
  148. </script>
  149. <!--社会分享代码-->
  150. <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdMini":"2","bdMiniList":[],"bdPic":"","bdStyle":"1","bdSize":"32"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
  151. </script>
  152. <!--Baidu Tongji Code-->
  153. <script type="text/javascript">
  154. if (document.domain == 'naotu.baidu.com') {
  155. var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
  156. document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0703917f224067c887f3664479a03887' type='text/javascript'%3E%3C/script%3E"));
  157. }
  158. </script>
  159. </html>