Skip to content

Commit

Permalink
Fix ip display crash and add new icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Jun 18, 2022
1 parent 80b94b2 commit d8c779f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 14 deletions.
2 changes: 1 addition & 1 deletion fddrace-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const sanitizeGmail = email => {

app.get('/', (req, res) => {
res.render('index', {
ipAddr: req.header('x-forwarded-for').split(',')[0] || req.socket.remoteAddress,
ipAddr: (req.header('x-forwarded-for') || req.socket.remoteAddress).split(',')[0],
data: req.session.data,
token: process.env.CAPTCHA_TOKEN,
hostname: process.env.HOSTNAME,
Expand Down
Binary file added static/paypal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ html {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.icon-box {
display: flex;
flex-direction: row;
justify-content: space-around;
}

.img-link {
border: 5px solid rgba(0, 0, 0, 0);
}

.img-link:hover {
border: 5px solid rgba(0, 0, 0, 0.186);
}

.message-green {
border: 2px solid rgba(0, 128, 0, 0.75);
border-radius: 4px;
Expand Down
Binary file added static/teecord.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 10 additions & 13 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,16 @@
<%- include('partial/navbar', {data: data}); %>
<div class="wrapper">
<div class="content" style="display: block;padding: 0px 100px 100px 100px;">
<!-- <h1>F-DDrace</h1> -->
<h1>Your ip <span style="color: rgb(130, 130, 130)"><%- ipAddr %></span> is now whitelisted!</h1>
<a href="https://discord.gg/qccRrtb">https://discord.gg/qccRrtb</a>
<br>
<script>
// setTimeout('window.location.reload();', 30000);
setInterval('fetch("https://f.zillyhuhn.com/").then(e => console.log(e));', 3000);
</script>
<form action="https://paypal.me/fokkonaut/" method="post" target="_top">
<input type="hidden" name="hosted_button_id" value="VUE6H3V2JAR3E" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_DE/i/scr/pixel.gif" width="1" height="1" />
</form>
<!-- <h1>F-DDrace</h1> -->
<h1>Your ip <span style="color: rgb(130, 130, 130)"><%- ipAddr %></span> is now whitelisted!</h1>
<div class="icon-box">
<a href="https://discord.gg/qccRrtb"><img src="/teecord.png" class="img-link" alt="discord" width="128px"" /></a>
<form action="https://paypal.me/fokkonaut/" method="post" target="_top">
<input type="hidden" name="hosted_button_id" value="VUE6H3V2JAR3E" />
<input type="image" src="/paypal.png" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" height="128px"" />
<img alt="" border="0" src="https://www.paypal.com/en_DE/i/scr/pixel.gif" width="1" height="1" />
</form>
</div>
</div>
<!--
<iframe width="720px" height="600px" src="<%= captchaBackend %>/?t=<%= token %>&callback=<%= hostname %>" scrolling="no" frameborder="0"></iframe>
Expand Down

0 comments on commit d8c779f

Please sign in to comment.