superpoker_download.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?php
  2. include_once 'download_lang.php';
  3. $contentJson = json_encode($langDesc);
  4. var_dump($contentJson);exit;
  5. ?>
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9. <meta name="viewport" content="width=device-width" />
  10. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  11. <meta name="viewport" content="width=device-width, initial-scale=0.66"/>
  12. <meta name="apple-mobile-web-app-capable" content="yes">
  13. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  14. <meta name="format-detection" content="telephone=no">
  15. <meta name="Keywords" content="" />
  16. <meta name="description" content="" />
  17. <title></title>
  18. <style>
  19. /* CSS Document */
  20. .menu {
  21. margin:0 auto;
  22. border:1pt solid #999999;
  23. border-radius:5px;
  24. -webkit-border-radius: 5px;
  25. -moz-border-radius: 5px;
  26. }
  27. .menu a {
  28. text-decoration:none;
  29. height:100%;
  30. display:block;
  31. border-radius:5px;
  32. -webkit-border-radius: 5px;
  33. -moz-border-radius: 5px; color:#333;
  34. }
  35. .menu a:visited {
  36. text-decoration:none;
  37. color:#000000;
  38. }
  39. .menu a:active {
  40. text-decoration:none;
  41. }
  42. .link-web{
  43. width:210px;
  44. height:40px;
  45. margin:0 auto;
  46. border-radius:4px;
  47. -webkit-border-radius: 4px;
  48. -moz-border-radius: 4px;
  49. /*text-shadow:0 2px 0 #FFF;*/
  50. font-family: "", "";
  51. font-size:18px;
  52. }
  53. .link-web a{
  54. text-decoration:none;
  55. width:210px;
  56. height:40px;
  57. display:block;
  58. border-radius:4px;
  59. -webkit-border-radius: 4px;
  60. -moz-border-radius: 4px;
  61. background-color: #F5F5F5;
  62. border:1px dashed #cccccc;
  63. color:#333;
  64. }
  65. .link-web a:visited{
  66. text-decoration:none;
  67. color:#333;
  68. }
  69. .link-web a:active{
  70. text-decoration:none;
  71. color:#333;
  72. }
  73. .font-arial{
  74. font-family: "微软雅黑", "", Arial, "Arial Black";
  75. }
  76. .font-italic{
  77. font-style:italic;
  78. }
  79. .font-blod{
  80. font-weight:bold;
  81. }
  82. .font-app{
  83. text-align:left;
  84. font-size:25px;
  85. color: #666666;
  86. }
  87. .font-app-display{
  88. text-align:left;
  89. font-size:20px;
  90. color:#999999;
  91. text-shadow:0 2px 0 #FFF;
  92. }
  93. .font02{
  94. font-size:18px; color:#999999;
  95. text-align:left;
  96. }
  97. .dp_copy{
  98. margin-top:10px;
  99. text-align:center;
  100. color:#919090;
  101. font-size:22px;
  102. }
  103. </style>
  104. </head>
  105. <body style="margin:0; padding:0; background:#EFEFEF;text-align:center">
  106. <div id="page-android" style="width:400px; height:800px; margin:0 auto; display:;">
  107. <div style="padding:50px 0 0px 0">
  108. <img src="http://superpoker.vip/img/icon144.jpg" alt="superpoker" />
  109. </div>
  110. <div class="font-arial" id="appname" style="font-size:20px; line-height:34px; height:45px; text-shadow:0 2px 0 #FFF; color:#999999; text-shadow: white 2px 2px; font-weight: bold; letter-spacing:2px;"></div>
  111. <p class="dp_copy" id="description"></p>
  112. <br/>
  113. <div class="font-arial" id="select-device" style=" width:400px; font-size:20px; line-height:30px; height:50px; color:#999999; letter-spacing:2px; text-align:left; margin: 0 auto;"></div>
  114. <br/>
  115. <div style="width:400px; height:100px;">
  116. <a href="https://itunes.apple.com/th/app/ไพ-เท-กซ-สซ-เปอร/id1267293867" target="superpoker">
  117. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100px">
  118. <tr>
  119. <td width="100" align="center" valign="middle" >
  120. <img src="http://superpoker.vip/img/ios.jpg" alt="" border="0" />
  121. </td>
  122. </tr>
  123. </table>
  124. </a>
  125. </div>
  126. <div style="height:60px;"></div>
  127. <div style="width:400px; height:100px;">
  128. <!-- <a href="market://details?id=com.superant.superpoker">-->
  129. <a href="http://superpoker.vip/m/SuperPoker-release-1.3.0_onLine.apk">
  130. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100px">
  131. <tr>
  132. <td width="100" align="center" valign="middle">
  133. <img src="http://superpoker.vip/img/android.jpg" alt="" border="0" />
  134. </td>
  135. </tr>
  136. </table>
  137. </a>
  138. </div>
  139. <br/>
  140. <br/>
  141. <br/>
  142. <br/>
  143. <a id="fans" style="height:20px; font-size:22px;font-family: 微软雅黑; text-shadow:0 2px 0 #FFF; text-align:center; margin:0px" href="https://www.facebook.com/superpoker.th"></a>
  144. <br/>
  145. <br/>
  146. <br/>
  147. <div id="copyright" 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>
  148. </div>
  149. <script type="text/javascript">
  150. // 获取终端的相关信息
  151. var lang = getLang();
  152. var langDesc = '<?php echo $contentJson;?>';//语言配置信息
  153. langDesc = JSON.parse( langDesc );
  154. var info = langDesc[lang];
  155. if(info == undefined || info == '' || info == null) {
  156. info = langDesc['en'];
  157. }
  158. //设置页面值
  159. document.title = info['appname'];//title
  160. document.getElementById('appname').innerHTML = info['appname'];
  161. document.getElementById('description').innerHTML = info['description'];
  162. document.getElementById('select-device').innerHTML = info['selectdevice'];
  163. document.getElementById('fans').innerHTML = info['fans'];
  164. var meta = document.getElementsByTagName('meta');
  165. meta["Keywords"].setAttribute('content',info['keywords']);
  166. meta["description"].setAttribute('content',info['description']);
  167. // Android
  168. var URL = "superant://superpoker-th";
  169. var MARKET = "market://details?id=com.superant.superpoker";
  170. // IOS
  171. var IOS = "superpoker-th://";
  172. var ITUNES = "https://itunes.apple.com/th/app/ไพ-เท-กซ-สซ-เปอร/id1267293867";//appstore
  173. // PC
  174. var PCURL = "https://apps.facebook.com/superpoker_th/";
  175. //获取移动端的语言
  176. function getLang() {
  177. var Terminal = {
  178. // 辨别移动终端的语言:zh-cn、en-us、ko-kr、ja-jp...
  179. language : (navigator.browserLanguage || navigator.language).toLowerCase()
  180. }
  181. // 还可以通过language,区分开多国语言版
  182. switch(Terminal.language){
  183. case 'zh-cn':
  184. lang = "cn";
  185. break;
  186. case 'th':
  187. lang = "th";
  188. break;
  189. case 'zh-tw':
  190. lang = "tw";
  191. break;
  192. default:
  193. lang = "en";
  194. }
  195. return lang;
  196. }
  197. function onLoad() {
  198. if (navigator.userAgent.match(/Android/)) {
  199. // var iframe = document.createElement("iframe");
  200. // iframe.style.visibility = 'hidden';
  201. // iframe.style.border = "none";
  202. // iframe.style.width = "1px";
  203. // iframe.style.height = "1px";
  204. // iframe.src = URL;
  205. // iframe.onload = function () { window.location = MARKET; };
  206. // document.body.appendChild(iframe);
  207. window.location.href = 'http://superpoker.vip/m/SuperPoker-release-1.3.0_onLine.apk';
  208. } else if (navigator.userAgent.match(/(iPhone|iPad|iPod)/i)) {
  209. // IOS
  210. setTimeout(function() {
  211. window.location = ITUNES;
  212. }, 500);
  213. window.location = IOS;
  214. } else {
  215. window.location.href = PCURL;
  216. }
  217. }
  218. onLoad();
  219. </script>
  220. </body>
  221. </html>