<?php
    include_once 'download_lang.php';
    $contentJson = json_encode($facebook);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
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;}
ul, ol, li{list-style:none outside none;}
fieldset, img{border:0;}
table{border-collapse:collapse;border-spacing:0;}
body{overflow:auto;background-color:#FFF;font:normal 12px/18px Arial,Verdana,Simsun,Helvetica,sans-serif;}
a:link,a:visited{ color:#cccccc;text-decoration:none;outline:none;}
a:hover{ color:#d9211e;text-decoration:none;}
.clearfix{zoom:1;}
.clearfix:after{content:".";display:block;height:0;line-height:0;clear:both;visibility:hidden;font-size:0;}

.wrap{
    position: relative;
    margin: 0 auto 20px;
    width: 1600px;
    height: 1200px;
    font-family: Tahoma;
    background: url(http://superpoker.vip/img/bg_down.png) no-repeat;
}
a.iosbtn{
    position: absolute;
    color:red;
    top: 710px;
    margin-left: 920px;
    width: 300px;
    height: 95px;
}
a.andriosbtn{
    position: absolute;
    margin-top: 830px;
    margin-left: 920px;
    font-size: 38px;
    width: 300px;
    height: 80px;
   
}
a.fansbtn{
    position: absolute;
    margin-top: 865px;
	margin-left: 190px;
    font-size: 28px;
    text-indent:-9999px;
    font-weight: bold;
    text-decoration: underline;
    width: 150px;
    height:50px;
}
a.fansbtn:hover{
    color: #3b7ef9;
    text-decoration: underline;
}
.update{
    color: white;
    padding-top: 708px;
    padding-left: 359px;
}
.update h1{
    padding-bottom: 10px;
}
.update li{
    padding-bottom: 3px;
}
.update h4{
    color: chartreuse;
}
.fanspage h1{
    margin-left: -118px;
    font-size: 22px;
    padding-top: 15px;
    text-decoration: underline;
}
</style>
</head>
<body>
    <div class="wrap">
        <div class="update">
            <h1 id="title"></h1>
            <h4 id="desc"></h4>
            <div>
                <ul id="updatedesc">
<!--                    --><?php
//                    $i = 1;
//                    foreach($conent['updatedesc'] as $info) { ?>
<!--                    <li>--><?php //echo $i.'.'.$info;?><!--</li>-->
<!--                    --><?php //$i++;} ?>
                </ul>
            </div>
            <div class="fanspage"><h1><a target="_blank" href="https://www.facebook.com/superpoker.th" id="fb"></a></h1></div>
        </div>
        <a href="https://itunes.apple.com/th/app/ไพ-เท-กซ-สซ-เปอร/id1267293867" target="_blank" class="iosbtn"></a>
        <a href="https://play.google.com/store/apps/details?id=com.superant.superpoker" target="_blank" class="andriosbtn"></a>
        <a href="https://www.facebook.com/superpoker.th" target="_blank" class="fansbtn"></a>
    </div>
	<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>
    <!--如果小于IE  9 引入该js ,否则会报“JSON”未定义 的错误-->
    <!--[if lt IE 12]>
    　　 <script type="text/javascript" src="json2.js"></script>
    <![endif]-->


    <script type="text/javascript">
        // 获取终端的相关信息
        var lang = getLang();
        var langDesc = '<?php echo $contentJson;?>';//语言配置信息
        langDesc = JSON.parse( langDesc );
        var info = langDesc[lang];
        if(info == undefined || info == '' || info == null) {
            info = langDesc['en'];
        }

        //设置页面值
        document.getElementById('title').innerHTML = info['title'];
        document.getElementById('desc').innerHTML = info['desc'];
//        document.getElementById('select-device').innerHTML = info['selectdevice'];
        document.getElementById('fb').innerHTML = info['fb'];

        //加载list说明
        var updatedesc = info['updatedesc'],
            ulList = '';

        for(var i = 0;i < updatedesc.length;i++){
            ulList += '<li>'+(i+1)+updatedesc[i]+'</li>';
        }

        document.getElementById('updatedesc').innerHTML = ulList;

        //获取移动端的语言
        function getLang() {
            var Terminal = {
                // 辨别移动终端的语言：zh-cn、en-us、ko-kr、ja-jp...
                language : (navigator.browserLanguage || navigator.language).toLowerCase()
            }
            // 还可以通过language，区分开多国语言版
            switch(Terminal.language){
                case 'zh-cn':
                    lang = "cn";
                    break;
                case 'th':
                    lang = "th";
                    break;
                case 'zh-tw':
                    lang = "tw";
                    break;
                default:
                    lang = "en";
            }
            return lang;
        }
    </script>
</body>

</html>
