SOCAILS ON MAIN PAGE NOW
This commit is contained in:
parent
0799b1aae6
commit
8d6c9a1da0
3 changed files with 16 additions and 11 deletions
12
index.js
12
index.js
|
@ -86,8 +86,6 @@ function pageUpdate() {
|
||||||
for (let index = 0; index < lanyardData.activities.length; index++) {
|
for (let index = 0; index < lanyardData.activities.length; index++) {
|
||||||
const activity = lanyardData.activities[index];
|
const activity = lanyardData.activities[index];
|
||||||
|
|
||||||
console.log(activity)
|
|
||||||
|
|
||||||
if (!debounce && activity.type != 4) {
|
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;">`
|
addedHTML += `<h2><hr>What I'm up to:</h2><div class="container-fluid row" style="margin: 0; padding: 0; display: flex;">`
|
||||||
debounce = true
|
debounce = true
|
||||||
|
@ -116,7 +114,8 @@ function pageUpdate() {
|
||||||
<img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}">
|
<img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}">
|
||||||
<p>
|
<p>
|
||||||
Listening to <span style="color: limegreen;">${activity.name}</span>
|
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}"
|
<br> Artist: "${activity.state}"
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -166,6 +165,13 @@ function pageUpdate() {
|
||||||
|
|
||||||
html = html.replace("{LANYARD_FULL}", addedHTML)
|
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)
|
fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
|
||||||
|
|
||||||
console.log("Updated!")
|
console.log("Updated!")
|
||||||
|
|
|
@ -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>
|
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>
|
</noscript>
|
||||||
{LANYARD_FULL}
|
{LANYARD_FULL}
|
||||||
|
{SOCIALS}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,20 +18,21 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<a class="chip" href="../">Home</a>
|
<a class="chip" href="../">Home</a>
|
||||||
<h1>Socials
|
<h1><hr>Socials</h1>
|
||||||
<hr>
|
<p>Here's where you can find me most... if you wanted to do that for some reason?</p>
|
||||||
</h1>
|
<div class="fadediv row container-fluid" style="margin: auto;">
|
||||||
<div class="fadediv row container-fluid">
|
|
||||||
|
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
|
<hr>
|
||||||
<h2>Chat Applications:</h2>
|
<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:​catgirl.cloud</a>
|
||||||
<p class="chip"><span style="color: red;">Revolt</span>: BingusViolet#5573</p>
|
<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>
|
<p class="chip"><span style="color: rgb(125, 150, 225)">Discord</span>: bingus_violet</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
|
<hr>
|
||||||
<h2>Social media:</h2>
|
<h2>Social media:</h2>
|
||||||
<p class="chip" style="color: rgb(200, 175, 255);">Fedi: <a
|
<p class="chip" style="color: rgb(200, 175, 255);">Fedi: <a
|
||||||
href="https://tech.lgbt/@Bingus_Violet">@Bingus_Violet@tech.lgbt</a></p>
|
href="https://tech.lgbt/@Bingus_Violet">@Bingus_Violet@tech.lgbt</a></p>
|
||||||
|
|
Loading…
Reference in a new issue