mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-29 22:20:41 +03:00
29 lines
No EOL
1,000 B
Text
29 lines
No EOL
1,000 B
Text
<div class="footer">
|
|
<% if (user){ %>
|
|
<a onclick="invert()" class="btn-primary" style="color:white;"><%=(user.theme.color === "default" ? "black" : "default" ) + " theme!" %></a>
|
|
<script>
|
|
async function invert() {
|
|
return alert("disabled!")
|
|
await fetch('/api/users/<%= user.id %>', {
|
|
method: 'PATCH',
|
|
body: JSON.stringify({
|
|
theme: {color:"<%= user.theme.color === `default` ? `black` : `default` %>"}
|
|
}),
|
|
headers: {
|
|
"Content-Type": "application/json"
|
|
}
|
|
});
|
|
location.reload()
|
|
}
|
|
</script>
|
|
<% } %>
|
|
|
|
<a href="https://github.com/Akif9748/akf-forum" style="color: white;"> This website is powered by
|
|
<span style="color: #ffbf00;">akf-forum</span> </a>
|
|
<div>
|
|
<span style="color:white">Coders</span> <br>
|
|
<div style="text-align:center;">
|
|
<a href="https://github.com/Akif9748/" style="color: #ffbf00;">Akif</a><br><a href="#" style="color:#ffbf00;">Tokmak</a>
|
|
</div>
|
|
</div>
|
|
</div> |