<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <link rel="shortcut icon" href="/img/favicon.ico">
    <link rel="stylesheet" href="/css/app.css"/>
    <script src="/js/genie.launch.js"></script>
    <script src="/js/jquery-1.9.1.min.js"></script>

    <meta property="og:url" content="https://join.genie.co.kr/sitemap.xml?5724">
    <meta property="og:image"/>
    <meta property="og:image:secure_url"/>
    <meta property="og:image:width" content="700"/>
    <meta property="og:image:height" content="370"/>
    <meta property="og:title" content=" 컬러를 가진 님의 내음악"/>
    <meta property="og:description" content="AI기반 음악 컬러 추천" />
    <meta property="fb:app_id" content="458810570822272"/>

    <meta name="twitter:card" content="summary_large_image"/>
    <meta name="twitter:url" content="https://join.genie.co.kr/sitemap.xml?5724"/>
    <meta name="twitter:title" content=" 컬러를 가진 님의 내음악"/>
    <meta name="twitter:description" content="AI기반 음악 컬러 추천"/>
    <meta name="twitter:image" />
    <title>지니 : 음악, 그리고 설레임</title>
</head>
<body>
<div id="gc_landing">
    <h1 class="ir">genie</h1>
    <a class="btn_app_start" href="#" onclick="execApp(); return false;">지니 앱 실행하기</a>

    <ul class="btn_app_install">
        <li><a href="#" onclick="gApp.googlePlay(); return false;">Google play</a></li>
        <li><a href="http://onesto.re/0000706724" >One store</a></li>
        <li><a href="#" onclick="gApp.appStore(); return false;">App store</a></li>
    </ul>

    <span class="app_txt">KT 안드로이드 단말 사용자는 올레마켓에서 다운로드</span>
</div>

</body>
</html>

<form id="mvProfile" method="GET" action="https://www.genie.co.kr/myMusic">
    <input type="hidden"    name="bgsq"     id="bgsq"/>
</form>

<script>
    /*<![CDATA[*/
    let retCode = "0";
    let shareType = null;
    let shareId = null;
    let agentType = "WD";
    let gApp;

    $(document).ready(function() {
        gApp = new genieApp();
        if(retCode != "0") {
            switch (retCode) {
                case "-1":
                    alert("데이터가 없습니다.");
                    break;
                case "-2":
                    alert("회원 정보가 없습니다.");
                    break;
                default:
                    break;
            }
            if (agentType == "WD")
                window.location.replace('https://www.genie.co.kr');
            else
                executeApp('19', '', true, 'M');
            return;
        } else
            moveShare();
    });

    function moveShare() {
        switch (shareType) {
            case "profile":
                if (agentType == "WD") {
                    $('#bgsq').val(shareId);
                    $('#mvProfile').submit();
                }else
                    executeApp('125', shareId, true, 'M');
                break;
            default:
                alert("잘못된 접속 경로입니다.");
                break;
        }
    }

    function execApp() {
        executeApp('125', shareId, true, 'M');
    }
    /*]]>*/
</script>