<!doctype html>
<html lang="en">

<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport"
    content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1, user-scalable=0">
  <title>LiveTaskyell</title>
  <link rel="stylesheet" href="./css/notosansjp.css">
  <link href="./fontawesome/css/all.css" rel="stylesheet">
  <link rel="stylesheet" href="./css/bootstrap.min.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/chat.css">
  <link rel="stylesheet" href="./css/footer.css">
  <link rel="stylesheet" href="./css/loading.css">
  <link rel="stylesheet" href="./css/font-awesome.css">
</head>

<body>
  <!-- ナビメニュー -->
  <nav>
    <div class="row h-100 align-items-center">
      <div class="col-4 pr-0">
        <div class="nav-item">
          <div class="nav_prev">
            <a href="#" class="home_btn"><span>ホーム</span></a>
          </div>
        </div>
      </div>
      <div class="col-4 p-0">
        <div class="nav-item p-0">
          <h1 class="nav-ttl" id="chatTitle">チャット</h1>
        </div>
      </div>
      <div class="col-4 pl-0">
        <div class="nav-item text-right craeteRoomButton">
          <a href="chat_make_room.html">
            <img src="icon/icon_make_room.png" alt="ルーム開設">
          </a>
        </div>
      </div><!-- .col -->
    </div><!-- .row -->
  </nav><!-- nav -->

  <!-- コンテンツ -->
  <main id="chat">
    <!-- ユーザー検索 -->
    <div class="search_form">
        <input type="search" name="search" placeholder="ルーム検索">
        <span class="src_icon"></span>
        <a href="#" class="cancel none">キャンセル</a>
    </div>
    <!-- タブ -->
    <div class="content tabs">
      <input id="tabGroup" type="radio" name="tab_item" checked>
      <label class="tab_item" for="tabGroup">グループ</label>
      <input id="tabDM" type="radio" name="tab_item">
      <label class="tab_item" for="tabDM">DM</label>
      <div class="tab_content" id="tab1_content">
        <div class="chat_list" id="groupChatList">
        </div>
      </div>
      <div class="tab_content" id="tab2_content">
        <div class="chat_list" id="dmChatList">
        </div>
      </div>
    </div>
    <!-- オーバーレイ -->
    <div class="chat_list">
      <ul class="overlay_src_msg">
      </ul>
    </div>
  </main>
  <!-- フッター -->
  <footer>
    <div class="footer-wrap">
      <div class="d-flex justify-content-around h-100">
        <div class="footer_item">
          <a href="contact.html">
            <img src="icon/icon_contact_gray.png" alt="コンタクト">
            <p>コンタクト</p>
          </a>
        </div>
        <div class="footer_item">
          <a href="chat.html">
            <img src="icon/icon_chat.png" alt="チャット">
            <p class="active">チャット</p>
          </a>
        </div>
        <div class="footer_item">
          <a href="archive.html">
            <img src="icon/icon_archive_gray.png" alt="アーカイブ">
            <p>アーカイブ</p>
          </a>
        </div>
      </div>
    </div>
  </footer>
<div id="loadingArea"></div>
<script src="./js/libs/jquery-3.3.1.min.js"></script>
<script src="./js/libs/moment.js"></script>
<script src="./js/libs/locale/ko.js" charset="UTF-8"></script>
<script src="./js/libs/locale/ja.js" charset="UTF-8"></script>
<script src="./js/libs/mustache.min.js"></script>
<script src="./js/libs/bootstrap.min.js"></script>
<script src="./js/libs/jquery.mark.min.js"></script>
<script src="./js/common.js"></script>
<script src="./js/language.js"></script>
<script src="./js/language_ko.js" charset="UTF-8"></script>
<script src="./js/language_ja.js" charset="UTF-8"></script>
<script src="./js/language_en.js" charset="UTF-8"></script>
<script src="./js/constant.js"></script>
<script src="./js/chat.js"></script>
<script src="./js/chat-ui.js"></script>
<script src="./js/chat-util.js"></script>
<script src="./js/chat-db.js"></script>
<script>
    String.prototype.replaceAll = function(org, dest) {
      return this.split(org).join(dest);
    }
    let CHAT_SERVER_URL = '';
    let CMS_SERVER_URL = '';
    let ASSET_PATH = './';
    let PLATFORM = '';
    let IS_MOBILE = true;
    let IS_ONLINE = false;
    $("#loadingArea").load("./loading.html");
    if (typeof(android) != "undefined") {
      android.getLoginParameter();
      android.getGlobalParameter();
      android.saveSelectedUserList("");
    } else {
      webkit.messageHandlers.loginInfoRequestMessageHandlerId.postMessage({});
      webkit.messageHandlers.getGlobalParameter.postMessage({});
    }
    function getGlobalParam(chatServerUrl, cmsServerUrl, platform, isMobile, isOnline) {
      CHAT_SERVER_URL = chatServerUrl;
      CMS_SERVER_URL = cmsServerUrl;
      PLATFORM = platform;
      IS_MOBILE = isMobile;
      IS_ONLINE = isOnline;
      console.log("onChat");
      CHAT_UI.refreshRoomList(chatRoomType.GROUP);
      CHAT_UI.dismissLoadingIndicator();
    };
</script>
</body>

</html>