IPost/views/dms.html
2022-08-25 00:46:10 +02:00

50 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>DMs</title>
<style>
<%- globalcss %>
</style>
<style>
<%- loadfile("./css/posts.css") %>
</style>
<script type="text/javascript"><%- httppostjs %></script>
<script type="text/javascript"><%- htmlescapejs %></script>
<script type="text/javascript"><%- markdownjs %></script>
<script type="text/javascript"><%- warnmessagejs %></script>
<script><%- loadfile("./js/extend_key.js") %></script>
<script type="text/javascript" src="/api/dms/encrypt.js"></script>
<script type="text/javascript">let user = <%- JSON.stringify(user) %></script>
</head>
<body>
<%- navbar %>
<div id="loading" class="status">
<h1>Loading...</h1>
Please allow us up to 5 seconds to load in your requested content. <br>
If this takes longer than usual, please refresh the page or contact support. <br>
</div>
<div id="noaccount" style="display:none;" class="status">
<h1>Error</h1>
<h2>You have to be logged in to view this content</h2>
To log in, please visit <a href="/login">The login page</a> <br>
If you are new to here, please visit <a href="/register">The register page</a> <br>
</div>
<div id="scriptonly" style="display:none;">
<div class="self">
Username: <span class="Username" id="username-self"></span> <br>
<span id="reply" style="display:none;" class="noselect">Replying to: <b id="reply_username"></b>&nbsp;&nbsp;&nbsp;<small id="reply_text"></small> <button onclick="unreply()" style="color:red">X</button></span> <br>
<textarea name="name" id="post-text" rows="8" cols="80"></textarea>
<br>
<button type="button" name="button" id="post-btn" onclick="postMessage()">Post</button>
</div>
<div class="channelTab">
<input type="text" name="Username_input" id="Username_input" placeholder="Username" class="channel" style="font-size: 16px;" onkeypress="clickPress(event)"> <br>
<div id="channelTab"></div>
</div>
<div class="posts" id="posts"></div>
</div>
<script><%- loadfile("./js/dms.js") %></script>
</body>
</html>