This repository has been archived on 2024-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
svrjs-website/themes/svrjswebsite/layout/_partial/banner.ejs

15 lines
900 B
Text

<% var nowDate = new Date(); %>
<% if (nowDate.getDate() == 2 && nowDate.getMonth() == 3) { %>
<div class="header-banner" style="background-color: #ff0000; color: #ffffff">
Today, SVR.JS goes <b>#RedInstead</b><br/>
<a href="https://autisticadvocacy.org/donate/">Support the Autistic Self Advocacy Network</a>
</div>
<% } else if ((nowDate.getDate() == 2 && nowDate.getMonth() == 4) || (nowDate.getDate() == 3 && nowDate.getMonth() == 4) || (nowDate.getDate() == 11 && nowDate.getMonth() == 10)) { %>
<div class="header-banner" style="background-color: #ff0000; color: #ffffff">
SVR.JS is a web server proudly <b>made in Poland</b>!
</div>
<% } %>
<div class="header-banner">
SVR.JS 4.0.0 is now on beta! The latest beta version is SVR.JS 4.0.0-beta3.<br/>
<a href="https://blog.svrjs.org/2024/08/30/SVR-JS-4-0-0-beta3-has-been-released/">Read more and get started</a>
</div>