46 lines
1.9 KiB
HTML
46 lines
1.9 KiB
HTML
{% ELDEF pass JSON pres JSON userinfo JSON openedchat JSON initial_chatUpdResp %}
|
|
<script>
|
|
let pres = {% PUT jsinsert pres %};
|
|
let userinfo = {% PUT jsinsert userinfo %};
|
|
let openedchat = {% PUT jsinsert openedchat %};
|
|
let initial_chatUpdResp = {% PUT jsinsert initial_chatUpdResp %};
|
|
</script>
|
|
{% ENDELDEF %}
|
|
|
|
{% ELDEF main JSON pres JSON userinfo JSON openedchat JSON initial_chatUpdResp %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="icon" type="image/png" href="/assets/img/favicon.png">
|
|
<link rel="stylesheet" href="/assets/css/common.css">
|
|
<link rel="stylesheet" href="/assets/css/chat.css">
|
|
<title>Chat </title>
|
|
</head>
|
|
<body>
|
|
<!-- todo: Write the actual chat script -->
|
|
<!--% PUT chat.pass pres userinfo openedchat initial_chatUpdResp %-->
|
|
<div id="fullscreen-container">
|
|
<div class="panel" id="navigation-info-panel">
|
|
<a href="/list-rooms" id="go-to-chat-list" class="panel-thing">
|
|
<img alt="Go to list of chats" src="/assets/img/list-rooms.svg" width="32px">
|
|
</a>
|
|
<a href="/user/{% WRITE userinfo.nickname %}" id="go-to-my-profile" class="panel-thing">
|
|
<img alt="Go to my profile" src="/assets/img/user.svg" width="32px">
|
|
</a>
|
|
<p class="panel-thing panel-header-txt"> {% WRITE openedchat.name %} ({% WRITE openedchat.nickname %})</p>
|
|
<a href="/chat-members/{% WRITE openedchat.nickname %}" id="go-to-chat-settings" class="panel-thing">
|
|
<img alt="Settings of chat. List of members" src="/assets/img/settings-iron.svg" width="32px">
|
|
</a>
|
|
</div>
|
|
<div id="chat-widget"></div>
|
|
<div class="panel" id="input-panel">
|
|
<div contentEditable id="message-input" class="panel-thing"></div>
|
|
</div>
|
|
<script src="/assets/js/chat.js"></script>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
{% ENDELDEF %}
|