﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>新葡京</title>
<link rel="stylesheet" href="css/index.css" />
<link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css" />
<script src="js/jquery.js"></script>
<style>
.section {text-align: center;font: 50px "Microsoft Yahei";color: #fff;}
.section2 p {position: relative;left: -120%;}
.section3 p {position: relative;bottom: -120%;}
.section4 p {display: none;}
</style>
<script type="text/javascript"> 
host = window.location.host; 
if (host=="gg76166.com") 
{ 
window.location.href='http://gg76166.com:9000/'; 
} 
</script>
<script type="text/javascript"> 
host = window.location.host; 
if (host=="www.gg76166.com") 
{ 
window.location.href='http://gg76166.com:9000/'; 
} 
</script></head>
<body>
<div id="dowebok">
  <div class="section section1">
    <div class="content">
      <div class="bj1"></div>
      <div class="phone"></div>
      <!--div class="person-box"><div class="person"></div></div-->
      <div class="title"><img src="images/title.png" width="100%" /></div>
      <div class="erwima">
        <div class="erweima_and"></div>
        <!--div class="erweima_ios">iOS版</div-->
      </div>
      <div class="download">
        <!--div class="ios" onclick=" is_and_or_ios()"></div>
        <div class="android" onclick=" is_and_or_ios()"></div-->
        <a href="https://76166123.com" class="gw"></a>
      </div>
    </div>
  </div>
</div>
</body>
</html>
<script src="js/jquery.fullPage.min.js"></script>
<script src="./bootstrap/js/bootstrap.js"></script>
<script>
  $(function() {
    
    var ua = navigator.userAgent.toLowerCase();
    var isWeixin = ua.indexOf('micromessenger') != -1;

    if (!IsPC()) {
         window.location.href = "wap/index.html"
    }

    function IsPC() {
        var userAgentInfo = navigator.userAgent;
        var Agents = ['Android', 'iPhone',
            'SymbianOS', 'Windows Phone',
            'iPad', 'iPod'
        ];
        var flag = true;
        for (var i = 0; i < Agents.length; i++) {
            if (userAgentInfo.indexOf(Agents[i]) != -1) {
                flag = false;
                break;
            }
        }
        return flag;
    }

    function is_and_or_ios() {
      var u = navigator.userAgent,
        app = navigator.appVersion;
      var isAndroid = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1; //g
      var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
      // 判断安卓
      if (isAndroid) {
        // $(".section1 .erwima").css("background","./images/1/")
        window.location.href="https://a76166.com/downLoad/downLoad.html?userAgent=pc&v=1562887931874";
      }
      // 判断ios
      if (isIOS) {
        window.location.href="https://a76166.com/downLoad/downLoad.html?userAgent=pc&v=1562887931874"
      }
      // 判断电脑
      if (IsPC) {
        window.location.href="https://a76166.com/downLoad/downLoad.html?userAgent=pc&v=1562887931874"
      }

      function IsPC() {
        var userAgentInfo = navigator.userAgent;
        var Agents = [
          "Android",
          "iPhone",
          "SymbianOS",
          "Windows Phone",
          "iPad",
          "iPod"
        ];
        var flag = true;
        for (var i = 0; i < Agents.length; i++) {
          if (userAgentInfo.indexOf(Agents[i]) != -1) {
            flag = false;
            break;
          }
        }
        return flag;
      }
    }
    $("#dowebok").fullpage({
      sectionsColor: ["", "", "#7BAABE", "#f90"],
      loopBottom: true,
      afterLoad: function(anchorLink, index) {
        switch (index) {
          case 1:
            $(".phone")
              .delay(1)
              .animate({
                top: "22.11%"
              });
            $(".content .title")
              .delay(1)
              .animate(
                {
                  opacity: 1
                },
                1000
              );
            $(".erwima")
              .delay(1)
              .animate(
                {
                  opacity: 1
                },
                1000
              );
            $(".download")
              .delay(1)
              .animate(
                {
                  opacity: 1
                },
                1000
              );
            setTimeout(function() {
              $(".content").addClass("begin");
            }, 1000);
            break;

          case 2:
            $("#video-bj").carousel({
              interval: 3000
            });
            break;
          case 3:
            // 人物上下
            setTimeout(function() {
              $(".section3").addClass("begin");
            });
            break;
        }
      },
      onLeave: function(index, direction) {
        switch (index) {
          case 1:
            $(".phone").animate({
              top: "-72%"
            });
            $(".content .title").animate({
              opacity: 0
            });
            $(".erwima").animate({
              opacity: 0
            });
            $(".download").animate({
              opacity: 0
            });
            setTimeout(function() {
              $(".content").removeClass("begin");
            }, 1000);
            break;

          case 2:
            $("#video-bj").carousel({
              interval: 3000
            });
            break;
          case 3:
            // 人物上下
            setTimeout(function() {
              $(".section3").addClass("begin");
            }, 1000);
            break;
        }
      }
    });
  });

  $("#video-bj").carousel({
    interval: 3000
  });
</script><div style="display:none">
<script type="text/javascript" src="//js.users.51.la/20371667.js"></script></div>