index.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. <title>百度脑图 - 便捷的思维编辑工具</title>
  10. <script src="kityminder.index.min.js?_=1431681867821"></script>
  11. <script>
  12. $(function() {
  13. var pattern = /(?:shareId|share_id)=(\w+)([&#]|$)/;
  14. var match = pattern.exec(window.location) || pattern.exec(document.referrer);
  15. if (match) {
  16. window.location.href = 'viewshare.html?shareId=' + match[1];
  17. return;
  18. }
  19. /* 初始化网盘使用的 APP 身份 */
  20. fio.user.init({
  21. apiKey: 'wiE55BGOG8BkGnpPs6UNtPbb'
  22. });
  23. var $a = $('p.login a').hide();
  24. function loadingAnimate(on) {
  25. if (on) {
  26. $('hr').addClass('loading');
  27. loadingAnimate.timer = setTimeout(function() {
  28. $('hr').addClass('animated');
  29. }, 660);
  30. } else {
  31. clearTimeout(loadingAnimate.timer);
  32. $('hr').removeClass('loading animated');
  33. }
  34. }
  35. loadingAnimate(true);
  36. fio.user.check().then(function(user) {
  37. if (user) {
  38. window.location.href = 'edit.html';
  39. }
  40. else {
  41. $a.fadeIn(800);
  42. loadingAnimate(false);
  43. }
  44. });
  45. $('p.login a').click(function() {
  46. var urlparts = window.location.href.split('/');
  47. urlparts.pop();
  48. urlparts = urlparts.join('/');
  49. fio.user.login({
  50. redirectUrl: urlparts + '/edit.html',
  51. remember: 7 * 24 * 60 * 60
  52. });
  53. loadingAnimate(true);
  54. });
  55. function preload(url) {
  56. return new Promise(function(resolve, reject) {
  57. var img = new Image();
  58. img.onload = resolve;
  59. img.onerror = reject;
  60. img.src = url;
  61. });
  62. }
  63. preload('ui/theme/default/images/indexbackground.jpg').then(function() {
  64. $('div.background').addClass('loaded');
  65. });
  66. });
  67. </script>
  68. <link href="favicon.ico" type="image/x-icon" rel="shortcut icon">
  69. <link href="favicon.ico" type="image/x-icon" rel="apple-touch-icon-precomposed">
  70. <style>
  71. body, html {
  72. margin: 0;
  73. padding: 0;
  74. overflow: hidden;
  75. height: 100%;
  76. font-size: 0;
  77. line-height: 0;
  78. z-index: -2;
  79. }
  80. body {
  81. background: #99806B;
  82. overflow: auto;
  83. }
  84. ::-webkit-selection {
  85. background: #FFEFEF;
  86. color: #4A4F5D;
  87. }
  88. ::-moz-selection {
  89. background: #FFEFEF;
  90. color: #4A4F5D;
  91. }
  92. ::-ms-selection {
  93. background: #FFEFEF;
  94. color: #4A4F5D;
  95. }
  96. ::selection {
  97. background: #FFEFEF;
  98. color: #4A4F5D;
  99. }
  100. div.background {
  101. opacity: 0;
  102. display: block;
  103. background: url(ui/theme/default/images/indexbackground.jpg) no-repeat;
  104. background-size: cover;
  105. position: absolute;
  106. z-index: -1;
  107. left: -10px;
  108. top: -10px;
  109. right: -10px;
  110. bottom: -10px;
  111. -webkit-filter: blur(5px);
  112. -moz-filter: blur(5px);
  113. -mz-filter: blur(5px);
  114. -o-filter: blur(5px);
  115. filter: url(ui/theme/default/images/blur.svg#blur);
  116. filter: blur(5px);
  117. -webkit-transition: opacity 1.5s ease;
  118. transition: opacity 1.5s ease;
  119. }
  120. div.background.loaded {
  121. opacity: 1;
  122. }
  123. h1:before {
  124. content: ' ';
  125. display: block;
  126. position: absolute;
  127. top: 0;
  128. bottom: 0;
  129. left: 0;
  130. right: 0;
  131. background: rgba(0, 0, 0, .5);
  132. z-index: -1;
  133. }
  134. h1, p {
  135. font-weight: 100;
  136. font-family: Arial, "Microsoft Yahei", "Heiti SC", sans-serif;
  137. text-align: center;
  138. -webkit-font-smoothing: antialiased;
  139. -moz-osx-font-smoothing: grayscale;
  140. }
  141. h1 {
  142. margin: 0;
  143. margin-top: 100px;
  144. color: white;
  145. font-size: 50px;
  146. line-height: 1.4em;
  147. }
  148. h1 span {
  149. font-size: 0.6em;
  150. }
  151. p span {
  152. font-size: 12px;
  153. display: block;
  154. margin-top: 30px;
  155. color: rgba(255, 255, 255, .7);
  156. text-shadow: 0 0 1px rgba(0, 0, 0, .5);
  157. }
  158. hr {
  159. height: 0;
  160. border: none;
  161. border-bottom: 1px solid #F98183;
  162. width: 110px;
  163. margin: 40px auto;
  164. -webkit-transition: -webkit-transform 0.66s ease;
  165. transition: transform 0.66s ease;
  166. -webkit-backface-visibility: hidden;
  167. }
  168. hr.loading {
  169. -webkit-transform: translate3d(100px, 0, 0);
  170. transform: translate3d(100px, 0, 0);
  171. }
  172. hr.animated {
  173. -webkit-animation: slide 1.33s ease-in-out infinite alternate;
  174. animation: slide 1.33s ease-in-out infinite alternate;
  175. }
  176. @-webkit-keyframes slide {
  177. 0% {
  178. -webkit-transform: translate3d(100px, 0, 0);
  179. transform: translate3d(100px, 0, 0);
  180. }
  181. 100% {
  182. -webkit-transform: translate3d(-100px, 0, 0);
  183. transform: translate3d(-100px, 0, 0);
  184. }
  185. }
  186. @keyframes slide {
  187. 0% {
  188. -webkit-transform: translate3d(100px, 0, 0);
  189. transform: translate3d(100px, 0, 0);
  190. }
  191. 100% {
  192. -webkit-transform: translate3d(-100px, 0, 0);
  193. transform: translate3d(-100px, 0, 0);
  194. }
  195. }
  196. p.description {
  197. color: #CCC;
  198. font-size: 20px;
  199. line-height: 1.8em;
  200. }
  201. p.login a {
  202. display: inline-block;
  203. width: 200px;
  204. height: 60px;
  205. background: #F98183;
  206. font-size: 24px;
  207. line-height: 60px;
  208. text-align: center;
  209. border-radius: 30px;
  210. color: white;
  211. text-shadow: 0 1px 0 #F8474F;
  212. cursor: pointer;
  213. position: relative;
  214. overflow: hidden;
  215. margin-top: 50px;
  216. -webkit-user-select: none;
  217. -moz-user-select: none;
  218. -mz-user-select: none;
  219. user-select: none;
  220. }
  221. p.login a:active {
  222. background: #FF6161;
  223. -webkit-transform: scale(0.95);
  224. transform: scale(0.95);
  225. }
  226. p.login a:before {
  227. content: ' ';
  228. display: block;
  229. background: rgba(255, 255, 255, .2);
  230. position: absolute;
  231. left: 0;
  232. top: 0;
  233. right: 0;
  234. bottom: 0;
  235. border-radius: 30px;
  236. transform: scale(0, 1);
  237. -webkit-transform: scale(0, 1);
  238. transition: transform 0.3s ease;
  239. -webkit-transition: -webkit-transform 0.3s ease;
  240. }
  241. p.login a:hover:before {
  242. transform: scale(1, 1);
  243. -webkit-transform: scale(1, 1);
  244. }
  245. </style>
  246. </head>
  247. <body>
  248. <div class="background"></div>
  249. <h1>百度脑图 <br/> <span>控制创意,如此简单</span></h1>
  250. <hr />
  251. <p class="description">
  252. 免安装 云存储 易分享<br/>
  253. 舒适的体验 丰富的功能<br/>
  254. </p>
  255. <p class="login">
  256. <a>马上开启</a>
  257. <span>使用百度账号登录</span>
  258. </p>
  259. </body>
  260. <!--Baidu Tongji Code-->
  261. <script type="text/javascript">
  262. if (document.domain == 'naotu.baidu.com') {
  263. var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
  264. document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0703917f224067c887f3664479a03887' type='text/javascript'%3E%3C/script%3E"));
  265. }
  266. </script>
  267. </html>