SOCAILS ON MAIN PAGE NOW

This commit is contained in:
Bingus_Violet 2023-11-18 21:36:53 -06:00
parent 0799b1aae6
commit 8d6c9a1da0
3 changed files with 16 additions and 11 deletions

View file

@ -86,8 +86,6 @@ function pageUpdate() {
for (let index = 0; index < lanyardData.activities.length; index++) {
const activity = lanyardData.activities[index];
console.log(activity)
if (!debounce && activity.type != 4) {
addedHTML += `<h2><hr>What I'm up to:</h2><div class="container-fluid row" style="margin: 0; padding: 0; display: flex;">`
debounce = true
@ -116,7 +114,8 @@ function pageUpdate() {
<img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}">
<p>
Listening to <span style="color: limegreen;">${activity.name}</span>
<br> Album: "${activity.details}"
<br> Song: "${activity.details}"
<br> Album: "${activity.assets.large_text}"
<br> Artist: "${activity.state}"
</p>
</div>
@ -166,6 +165,13 @@ function pageUpdate() {
html = html.replace("{LANYARD_FULL}", addedHTML)
addedHTML = ""
var socialsHTML = fs.readFileSync(path.join(__dirname, 'static/socials/index.html')).toString()
addedHTML += socialsHTML.substr(socialsHTML.indexOf("<h1>"), socialsHTML.indexOf("</body>"))
html = html.replace("{SOCIALS}", addedHTML)
fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
console.log("Updated!")

View file

@ -48,11 +48,9 @@
server-side, so enjoy :D <br> P.S. Your really cool, I look up to people like u :> (Atleast, assuming you disabled javascript urself...)</p>
</noscript>
{LANYARD_FULL}
{SOCIALS}
</div>
</body>
</html>

View file

@ -18,20 +18,21 @@
<body>
<a class="chip" href="../">Home</a>
<h1>Socials
<hr>
</h1>
<div class="fadediv row container-fluid">
<h1><hr>Socials</h1>
<p>Here's where you can find me most... if you wanted to do that for some reason?</p>
<div class="fadediv row container-fluid" style="margin: auto;">
<div class="col-sm-6">
<hr>
<h2>Chat Applications:</h2>
<p class="chip"><span style="color: limegreen">Matrix</span>: @bingus_violet:catgirl.cloud</p>
<a href="https://matrix.to/#/@bingus_violet:catgirl.cloud" class="chip"><span style="color: limegreen">Matrix</span>: @bingus_violet:&ZeroWidthSpace;catgirl.cloud</a>
<p class="chip"><span style="color: red;">Revolt</span>: BingusViolet#5573</p>
<p class="chip"><span style="color: rgb(125, 150, 225)">Discord</span>: bingus_violet</p>
</div>
<div class="col-sm-6">
<hr>
<h2>Social media:</h2>
<p class="chip" style="color: rgb(200, 175, 255);">Fedi: <a
href="https://tech.lgbt/@Bingus_Violet">@Bingus_Violet@tech.lgbt</a></p>