fb_index.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?php
  2. include_once 'download_lang.php';
  3. $contentJson = json_encode($facebook);
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
  7. <head>
  8. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  9. <title></title>
  10. <style type="text/css">
  11. html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, del, dfn, em, img, ins, q, small, strong, sub, sup, input, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video{margin:0;padding:0;}
  12. ul, ol, li{list-style:none outside none;}
  13. fieldset, img{border:0;}
  14. table{border-collapse:collapse;border-spacing:0;}
  15. body{overflow:auto;background-color:#FFF;font:normal 12px/18px Arial,Verdana,Simsun,Helvetica,sans-serif;}
  16. a:link,a:visited{ color:#cccccc;text-decoration:none;outline:none;}
  17. a:hover{ color:#d9211e;text-decoration:none;}
  18. .clearfix{zoom:1;}
  19. .clearfix:after{content:".";display:block;height:0;line-height:0;clear:both;visibility:hidden;font-size:0;}
  20. .wrap{
  21. position: relative;
  22. margin: 0 auto 20px;
  23. width: 1600px;
  24. height: 1200px;
  25. font-family: Tahoma;
  26. background: url(http://superpoker.vip/img/bg_down.png) no-repeat;
  27. }
  28. a.iosbtn{
  29. position: absolute;
  30. color:red;
  31. top: 710px;
  32. margin-left: 920px;
  33. width: 300px;
  34. height: 95px;
  35. }
  36. a.andriosbtn{
  37. position: absolute;
  38. margin-top: 830px;
  39. margin-left: 920px;
  40. font-size: 38px;
  41. width: 300px;
  42. height: 80px;
  43. }
  44. a.fansbtn{
  45. position: absolute;
  46. margin-top: 865px;
  47. margin-left: 190px;
  48. font-size: 28px;
  49. text-indent:-9999px;
  50. font-weight: bold;
  51. text-decoration: underline;
  52. width: 150px;
  53. height:50px;
  54. }
  55. a.fansbtn:hover{
  56. color: #3b7ef9;
  57. text-decoration: underline;
  58. }
  59. .update{
  60. color: white;
  61. padding-top: 708px;
  62. padding-left: 359px;
  63. }
  64. .update h1{
  65. padding-bottom: 10px;
  66. }
  67. .update li{
  68. padding-bottom: 3px;
  69. }
  70. .update h4{
  71. color: chartreuse;
  72. }
  73. .fanspage h1{
  74. margin-left: -118px;
  75. font-size: 22px;
  76. padding-top: 15px;
  77. text-decoration: underline;
  78. }
  79. </style>
  80. </head>
  81. <body>
  82. <div class="wrap">
  83. <div class="update">
  84. <h1 id="title"></h1>
  85. <h4 id="desc"></h4>
  86. <div>
  87. <ul id="updatedesc">
  88. <!-- --><?php
  89. // $i = 1;
  90. // foreach($conent['updatedesc'] as $info) { ?>
  91. <!-- <li>--><?php //echo $i.'.'.$info;?><!--</li>-->
  92. <!-- --><?php //$i++;} ?>
  93. </ul>
  94. </div>
  95. <div class="fanspage"><h1><a target="_blank" href="https://www.facebook.com/superpoker.th" id="fb"></a></h1></div>
  96. </div>
  97. <a href="https://itunes.apple.com/th/app/ไพ-เท-กซ-สซ-เปอร/id1267293867" target="_blank" class="iosbtn"></a>
  98. <a href="https://play.google.com/store/apps/details?id=com.superant.superpoker" target="_blank" class="andriosbtn"></a>
  99. <a href="https://www.facebook.com/superpoker.th" target="_blank" class="fansbtn"></a>
  100. </div>
  101. <div id="copy" style="height:18px; color:#999999; font-size:15px;font-family: 微软雅黑; text-shadow:0 2px 0 #FFF; text-align:center; margin:0px">Copyright © 2017 SuperAnt Technology Co., Ltd..All Rights Reserved.</div>
  102. <!--如果小于IE 9 引入该js ,否则会报“JSON”未定义 的错误-->
  103. <!--[if lt IE 12]>
  104.    <script type="text/javascript" src="json2.js"></script>
  105. <![endif]-->
  106. <script type="text/javascript">
  107. // 获取终端的相关信息
  108. var lang = getLang();
  109. var langDesc = '<?php echo $contentJson;?>';//语言配置信息
  110. langDesc = JSON.parse( langDesc );
  111. var info = langDesc[lang];
  112. if(info == undefined || info == '' || info == null) {
  113. info = langDesc['en'];
  114. }
  115. //设置页面值
  116. document.getElementById('title').innerHTML = info['title'];
  117. document.getElementById('desc').innerHTML = info['desc'];
  118. // document.getElementById('select-device').innerHTML = info['selectdevice'];
  119. document.getElementById('fb').innerHTML = info['fb'];
  120. //加载list说明
  121. var updatedesc = info['updatedesc'],
  122. ulList = '';
  123. for(var i = 0;i < updatedesc.length;i++){
  124. ulList += '<li>'+(i+1)+updatedesc[i]+'</li>';
  125. }
  126. document.getElementById('updatedesc').innerHTML = ulList;
  127. //获取移动端的语言
  128. function getLang() {
  129. var Terminal = {
  130. // 辨别移动终端的语言:zh-cn、en-us、ko-kr、ja-jp...
  131. language : (navigator.browserLanguage || navigator.language).toLowerCase()
  132. }
  133. // 还可以通过language,区分开多国语言版
  134. switch(Terminal.language){
  135. case 'zh-cn':
  136. lang = "cn";
  137. break;
  138. case 'th':
  139. lang = "th";
  140. break;
  141. case 'zh-tw':
  142. lang = "tw";
  143. break;
  144. default:
  145. lang = "en";
  146. }
  147. return lang;
  148. }
  149. </script>
  150. </body>
  151. </html>