<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>TrackingIO</title>
    <meta name="keywords" content="{{ '热云数据' | translate}} TrackingIO" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" name="viewport">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <!-- build:js scripts/change.js -->
    <script src="js/app/page.js"></script>
    <!-- endbuild -->
    <!-- build:js scripts/demo.js -->
   <script src="js/common/jquery.min.js"></script>
   <script src="js/common/jquery.cookie.min.js"></script>
   <!-- endbuild -->

   <script type="text/javascript">
     var host = location.host;
     var type = 0;
     if(host=='hyxd.trackingio.com'){
         type = 2
     }
     $.get("/api/demo/"+type,function(data) {
        data = JSON.parse(data);
        var account = data.content.account,token = data.content.token;
        
        $.cookie("ryioUid",account.id);
        $.cookie("ryioUname",account.email);
        $.cookie("clickUname",account.email);
        // $.cookie("ryioUauth",account.authStr);
        window.localStorage.setItem("ryioUauth",account.authStr);
        $.cookie("ryioToken",token);
        $.cookie("ryioPastDate",account.pastDate);

        // var isSuper = account.isSuperUser == true && account.isChannelPerson!=true;
        var isSuper = true;
        $.cookie("ryioIsSuper",isSuper);
        window.location.href="index.html";
     });
    </script>
  </head>
 <body>
 </body>
</html>