Skip to content

Commit

Permalink
footer dissmisal button
Browse files Browse the repository at this point in the history
  • Loading branch information
Varrience authored Dec 7, 2024
1 parent 2841a82 commit 26d8704
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions Assets/scripts/footer.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
const footer = document.createElement('footer');
footer.className = "footer";
footer.innerHTML = `
<div class="social-buttons">
<a href="https://discord.gg/S8XTzKEz5f" target="_blank" class="social-btn discord-btn">
<i class="fab fa-discord"></i> Discord
</a>
<a href="https://github.com/watermelonkatanadevs" target="_blank" class="social-btn github-btn">
<i class="fab fa-github"></i> GitHub
</a>
<a href="https://www.linkedin.com/company/watermelonkatana/" target="_blank" class="social-btn linkedin-btn">
<i class="fab fa-linkedin"></i> LinkedIn
</a>
<a href="https://twitter.com/watermelonktn" target="_blank" class="social-btn twitter-btn">
<i class="fab fa-twitter"></i> Twitter
</a>
</div>
<div class="footer-info">
<p>Email: <a href="mailto:admin@watermelonkatana.com">admin@watermelonkatana.com</a></p>
<p>&copy; 2024 WatermelonKatana. All rights reserved.</p>
<p>Stay updated with our <a href="/news">latest news</a>!</p>
</div>
`;

const footer = document.createElement('footer');
footer.className = "footer";
footer.innerHTML = `
<div class="social-buttons">
<button id="dismiss-footer" style="position: absolute; top: 0px; left: 0px; background-image: none"
onclick="document.body.removeChild(document.querySelector('.footer'))">
X
</button>
<a href="https://discord.gg/S8XTzKEz5f" target="_blank" class="social-btn discord-btn">
<i class="fab fa-discord"></i> Discord
</a>
<a href="https://github.com/watermelonkatanadevs" target="_blank" class="social-btn github-btn">
<i class="fab fa-github"></i> GitHub
</a>
<a href="https://www.linkedin.com/company/watermelonkatana/" target="_blank" class="social-btn linkedin-btn">
<i class="fab fa-linkedin"></i> LinkedIn
</a>
<a href="https://twitter.com/WatermelonKatana" target="_blank" class="social-btn twitter-btn">
<i class="fab fa-twitter"></i> Twitter
</a>
</div>
<div class="footer-info">
<p>Email: <a href="mailto:admin@watermelonkatana.com">admin@watermelonkatana.com</a></p>
<p>&copy; 2024 WatermelonKatana. All rights reserved.</p>
<p>Stay updated with our <a href="/news">latest news</a>!</p>
</div>
`;

document.body.appendChild(footer);

0 comments on commit 26d8704

Please sign in to comment.