Added footer everywhere

This commit is contained in:
Akif9748 2022-09-17 00:51:52 +03:00
parent 412a7c1a50
commit b7b7de5efd
15 changed files with 47 additions and 22 deletions

View file

@ -44,6 +44,7 @@ Akf-forum has got an API for AJAX (fetch), other clients etc. And, you can learn
- categories page is need a update.
- preview for send messages in markdown format.
- desp => description
- admin, view ips on user page.
## Major Version History
- V4: Caching

View file

@ -74,6 +74,7 @@
}
</script>
</div>
<%- include("extra/footer") %>
</body>

View file

@ -25,6 +25,8 @@
location.href = "/users/<%= member.id %>"
});
</script>
<%- include("extra/footer") %>
</body>
</html>

View file

@ -11,15 +11,15 @@
<%- include("extra/navbar") %>
<div class="threads">
<% categories.forEach(category=>{ %>
<a href="<%= category.getLink() %>" >
<a href="<%= category.getLink() %>">
<div class="threads-box">
<div class="thread-box-title">
<%= category.name %>
</div>
<div class="box-username"> <%if(user?.admin) {%>
<div class="box-username"> <%if(user?.admin) {%>
<a class="btn-danger" onclick="fetch('/api/categories/<%= category.id %>/',{method:'DELETE'})"><i class="bx bx-trash bx-sm"></i></a>
<% }; %><%= category.desp %>
<% }; %><%= category.desp %>
</div>
</div>
@ -51,5 +51,8 @@
</div>
<% } %>
<%- include("extra/footer") %>
</body>
</body>
</html>

View file

@ -9,7 +9,7 @@
<form>
<h2 class="title" style="align-self: baseline;">Name:</h2>
<input name="name" class="input" required maxlength="25" ></input>
<input name="name" class="input" required maxlength="25"></input>
<h2 class="title" style="align-self: baseline;">Description:</h2>
<textarea rows="4" cols="50" name="desp" maxlength="256" class="input" required></textarea>
<button class="btn-primary" style="width:100%" type="submit">Create Category!</button>
@ -22,7 +22,7 @@
document.addEventListener("submit", async e => {
e.preventDefault();
const data = new FormData(e.target);
const response = await request("/api/categories/", "POST", {
name: data.get("name"),
desp: data.get("desp")
@ -34,5 +34,8 @@
});
</script>
<%- include("extra/footer") %>
</body>
</body>
</html>

View file

@ -10,7 +10,7 @@
<form>
<h2 class="title"style="align-self: baseline;">Title:</h2>
<h2 class="title" style="align-self: baseline;">Title:</h2>
<input name="title" maxlength="128" class="input" required></input>
<h2 class="title" style="align-self: baseline;">Content:</h2>
<textarea rows="4" cols="50" maxlength="1024" name="content" class="input" required></textarea>
@ -47,6 +47,8 @@
});
</script>
<%- include("extra/footer") %>
</body>
</html>

View file

@ -9,6 +9,7 @@
<h1 style="color: var(--main);"><%= type %></h1>
<h2 style="color: var(--second);"><%= error %></h2>
<%- include("extra/footer") %>
</body>

View file

@ -18,6 +18,7 @@
<input type="submit" style="width:100%" class="btn-primary" value="Login">
</form>
<%- include("extra/footer") %>
</body>

View file

@ -28,6 +28,8 @@
<% }); %>
</div>
<%- include("extra/footer") %>
</body>
</html>

View file

@ -18,6 +18,7 @@
<input type="submit" class="btn-primary" style="width:100%;" value="Register">
</form>
<%- include("extra/footer") %>
</body>

View file

@ -18,20 +18,20 @@
<div id="search">
<form action="/search/messages" method="GET">
<input type="text" class="input" name="q" placeholder="Search for messages" />
<input type="text" class="input" name="authorID" placeholder="(Not Required) Author id" />
<input type="submit" value="Search" class="btn-primary" />
<input type="text" class="input" name="authorID" placeholder="(Not Required) Author id" />
<input type="submit" value="Search" class="btn-primary" />
</form>
</div>
<div id="search">
<form action="/search/threads" method="GET">
<input type="text" class="input" name="q" placeholder="Search for threads" />
<input type="text" class="input" name="authorID" placeholder="(Not Required) Author id" />
<input type="submit" value="Search" class="btn-primary" />
<input type="text" class="input" name="q" placeholder="Search for threads" />
<input type="text" class="input" name="authorID" placeholder="(Not Required) Author id" />
<input type="submit" value="Search" class="btn-primary" />
</form>
</div>
<%- include("extra/footer") %>
<%- include("extra/footer") %>
</body>
</html>
</html>

View file

@ -15,7 +15,7 @@
<div style="text-align:center;padding:8px">
<a href="/categories/<%= thread.categoryID %>" class="title" id="title"><%= thread.title %></a>
<a href="/categories/<%= thread.categoryID %>" class="title" id="title"><%= thread.title %></a>
<div class="date">
<%= new Date(thread.time).toLocaleString() %> • Views: <%= thread.views %>
</div>
@ -159,6 +159,7 @@
</div>
</div>
<%- include("extra/footer") %>
</body>

View file

@ -57,5 +57,8 @@
</div>
<% } %>
<%- include("extra/footer") %>
</body>
</body>
</html>

View file

@ -110,7 +110,7 @@ color: var(--anti);
<script>
const converter = new showdown.Converter();
const about = document.getElementById("about")
about.innerHTML=converter.makeHtml(about.innerText);
about.innerHTML = converter.makeHtml(about.innerText);
</script>
<div class="box">
@ -136,7 +136,8 @@ color: var(--anti);
<h2 class="box-value"><%= counts.thread %></h2>
</div>
</div>
<%- include("extra/footer") %>
</body>
<%- include("extra/footer") %>
</html>

View file

@ -8,7 +8,7 @@
<link href='https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="/css/users.css" />
<link rel="stylesheet" href="/css/pages.css" />
<%- include("extra/navbar") %>
<div class="users">
@ -46,5 +46,8 @@
</div>
<% } %>
<%- include("extra/footer") %>
</body>
</body>
</html>