load all files via a template
This commit is contained in:
parent
1dccff66bf
commit
72f8d36654
7
extra_modules/navbar.html
Normal file
7
extra_modules/navbar.html
Normal file
@ -0,0 +1,7 @@
|
||||
<ul class="navbar noselect">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/user" id="hide_user">Profile</a></li>
|
||||
<li><a href="/posts" id="hide_posts">Posts</a></li>
|
||||
<li><a href="/dms" id="hide_dms">DMs</a></li>
|
||||
<li class="right"><a href="/settings" id="hide_settings" class="less_padding"><img src="/images/settings_min.png" width=30 height=30></a></li>
|
||||
</ul>
|
@ -6,14 +6,16 @@
|
||||
<style>
|
||||
<%- globalcss %>
|
||||
</style>
|
||||
<link href="/css/posts.css" rel="preload" as="style" onload="this.rel='stylesheet'">
|
||||
<style>
|
||||
<%- loadfile("./css/posts.css") %>
|
||||
</style>
|
||||
<script type="text/javascript"><%- httppostjs %></script>
|
||||
<script type="text/javascript"><%- htmlescapejs %></script>
|
||||
<script type="text/javascript"><%- addnavbar %></script>
|
||||
<script type="text/javascript"><%- markdownjs %></script>
|
||||
<script type="text/javascript"><%- warnmessagejs %></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>
|
||||
@ -33,12 +35,9 @@
|
||||
<br>
|
||||
<button type="button" name="button" id="post-btn" onclick="postMessage()">Post</button>
|
||||
</div>
|
||||
<div class="channelTab" id="channelTab">
|
||||
<!-- <p class="channel">- Channel Name -</p> -->
|
||||
|
||||
</div>
|
||||
<div class="channelTab" id="channelTab"></div>
|
||||
<div class="posts" id="posts"></div>
|
||||
</div>
|
||||
<script type="text/javascript" src="/js/posts.js" async></script>
|
||||
<script><%- loadfile("./js/posts.js") %></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user