index.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  6. <title>{{.Title}}</title>
  7. <meta name="keywords" content="{{.Keywords}}" />
  8. <meta name="description" content="{{.Desc}}" />
  9. <style>
  10. *{
  11. margin: 0;padding: 0;
  12. }
  13. .header{
  14. height: 80px;
  15. background-color: #fff;
  16. color: #fff;
  17. top: 0;
  18. left: 0;
  19. width: 100%;
  20. line-height: 80px;
  21. z-index: 100;
  22. position: relative;
  23. }
  24. .container{
  25. width: 1140px;
  26. padding: 0;
  27. margin: 0 auto;
  28. }
  29. .header .container{
  30. height: 100%;
  31. box-sizing: border-box;
  32. border-bottom: 1px solid #dcdfe6;
  33. }
  34. .header h1{
  35. margin: 0;
  36. float: left;
  37. font-size: 32px;
  38. font-weight: 400;
  39. }
  40. .header a{
  41. color: #519eff;
  42. font-family: "Microsoft JhengHei";
  43. text-decoration: none;
  44. }
  45. .header h1 a{
  46. font-size: 30px;
  47. font-weight: bold;
  48. }
  49. .header .navBtn{
  50. float: right;
  51. margin-left: 20px;
  52. }
  53. .banner{
  54. padding-top: 20px;
  55. text-align: center;
  56. }
  57. .banner h1{
  58. font-size: 34px;
  59. margin: 0;
  60. line-height: 48px;
  61. color: #555;
  62. font-weight: 500;
  63. font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
  64. }
  65. .banner p{
  66. font-size: 18px;
  67. line-height: 28px;
  68. color: #888;
  69. margin: 10px 0 5px;
  70. }
  71. .jumbotron{
  72. width: 587px;
  73. height: 560px;
  74. margin: 30px auto;
  75. }
  76. .footer {
  77. clear: both;
  78. background-color: #f7fbfd;
  79. width: 100%;
  80. padding: 40px 150px;
  81. box-sizing: border-box;
  82. }
  83. .copyright{
  84. color: #6c757d;
  85. text-align: center;
  86. margin: 60px 0;
  87. }
  88. .mainTechLeft{
  89. width: 300px;
  90. float: left;
  91. }
  92. .mainTechLeft h1{
  93. font-size: 34px;
  94. margin: 0;
  95. line-height: 48px;
  96. color: #555;
  97. font-weight: 500;
  98. font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
  99. }
  100. .mainTechLeft p{
  101. font-size: 18px;
  102. line-height: 28px;
  103. color: #888;
  104. margin: 10px 0 5px;
  105. }
  106. .floatRight{
  107. width: 700px;
  108. border: 1px solid #e1e1e1;
  109. padding: 4px;
  110. margin-top: 35px;
  111. display: block;
  112. float: right;
  113. }
  114. </style>
  115. </head>
  116. <body>
  117. <!--content-->
  118. <header class="header">
  119. <div class="container">
  120. <h1><a href="/">flytalk</a></h1>
  121. <a class="navBtn" href="/index_en">English (United States)</a>
  122. <a class="navBtn" href="/index_cn">中文版 (简体)</a>
  123. <a class="navBtn" href="https://github.com/taoshihan1991/go-fly" target="_blank">Github</a>
  124. <a class="navBtn" href="/login">{{ .AgentsEntry }}</a>
  125. <a class="navBtn" href="/docs/index.html" target="_blank">{{ .DocEntry }}</a>
  126. </div>
  127. </header>
  128. <div class="banner">
  129. <h1>{{ .ProjectTitle }}</h1>
  130. <p>{{ .ProjectDesc }}</p>
  131. </div>
  132. <div class="jumbotron">
  133. <img src="/static/images/intro1.jpg"/>
  134. </div>
  135. <div class="container">
  136. <img src="/static/images/admin.png"/>
  137. </div>
  138. <footer class="footer">
  139. <div class="container">
  140. </div>
  141. <div class="copyright">
  142. {{ .Copyright }}
  143. </div>
  144. </footer>
  145. <!--对接客服代码-->
  146. <script>
  147. var GOFLY_URL="";
  148. var GOFLY_KEFU_ID="kefu2";
  149. var GOFLY_BTN_TEXT="{{.OnlineChat}}";
  150. </script>
  151. <script src="/static/js/gofly-front.js"></script>
  152. <!--//对接客服代码-->
  153. <!--自动弹代码-->
  154. <style>
  155. /*自动弹出*/
  156. .autoInvite{
  157. width: 400px;
  158. height: 162px;
  159. position: fixed;
  160. top:50%;
  161. left: 50%;
  162. margin-top: -81px;
  163. margin-left: -200px;
  164. background: url("/static/images/inviteColorBack1.png");
  165. display: none;
  166. }
  167. .autoInvite .autoInviteNotice{
  168. margin-top: 4px;
  169. }
  170. .autoInvite .autoInviteContent{
  171. width: 220px;
  172. height: 90px;
  173. position: absolute;
  174. top:55px;
  175. right: 20px;
  176. font-size: 13pt;
  177. color: #fff;
  178. word-break: break-all;
  179. line-height: 25px;
  180. }
  181. .autoInvite .autoInviteBtns a{
  182. display: inline-block;
  183. width: 80px;
  184. height: 32px;
  185. line-height: 32px;
  186. color: #fff;
  187. text-align: center;
  188. border: 1px solid #fff;
  189. border-radius: 5px;
  190. cursor: pointer;
  191. font-size: 13px;
  192. margin-right: 8px;
  193. text-decoration: none;
  194. }
  195. .autoInvite .autoInviteBtns a.nowAsk{
  196. color: #0085DA;
  197. background-color: #fff;
  198. }
  199. </style>
  200. <div class="autoInvite">
  201. <div class="autoInviteContent">
  202. <div class="autoInviteNotice">{{.Notice}}</div>
  203. <div class="autoInviteBtns">
  204. <a href="javascript:void(0)" id="noAsk">{{.LaterAsk}}</a>
  205. <a href="javascript:void(0)" class="nowAsk">{{.NowAsk}}</a>
  206. </div>
  207. </div>
  208. </div>
  209. <script>
  210. var invite=false;
  211. setTimeout(function(){
  212. if (invite) return;
  213. $(".autoInvite").show();
  214. invite=true;
  215. $("#noAsk").click(function(){
  216. $(".autoInvite").hide();
  217. invite=true;
  218. });
  219. $(".nowAsk").click(function(){
  220. $(".autoInvite").hide();
  221. showKefu();
  222. invite=true;
  223. });
  224. },8000);
  225. </script>
  226. <!--自动弹代码-->
  227. </body>
  228. </html>