bubfickes
This commit is contained in:
parent
fca7e5d794
commit
486203559c
3 changed files with 7 additions and 6 deletions
7
index.js
7
index.js
|
@ -60,8 +60,8 @@ function pageUpdate() {
|
||||||
var currentHour = currentTime.getHours()
|
var currentHour = currentTime.getHours()
|
||||||
|
|
||||||
if (currentHour >= 8 && currentHour <= 16 && !(currentTime.getDay() == 6 || currentTime.getDay() == 7)) {
|
if (currentHour >= 8 && currentHour <= 16 && !(currentTime.getDay() == 6 || currentTime.getDay() == 7)) {
|
||||||
addedHTML = `<span style="color: yellow">at school</span>`
|
addedHTML = `<span style="color: yellow">busy</span>`
|
||||||
} else if (currentHour <= 10 && currentHour > 0) {
|
} else if (currentHour <= 9 && currentHour > 0) {
|
||||||
addedHTML = `<span style="color: rgb(200, 150, 255)">eeping</span>`
|
addedHTML = `<span style="color: rgb(200, 150, 255)">eeping</span>`
|
||||||
} else {
|
} else {
|
||||||
addedHTML = `<span style="color: limegreen">active?</span>`
|
addedHTML = `<span style="color: limegreen">active?</span>`
|
||||||
|
@ -182,7 +182,8 @@ function pageUpdate() {
|
||||||
addedHTML = ""
|
addedHTML = ""
|
||||||
|
|
||||||
var socialsHTML = fs.readFileSync(path.join(__dirname, 'static/socials/index.html')).toString()
|
var socialsHTML = fs.readFileSync(path.join(__dirname, 'static/socials/index.html')).toString()
|
||||||
addedHTML += socialsHTML.substr(socialsHTML.indexOf("<h1>"), socialsHTML.indexOf("</body>"))
|
addedHTML += socialsHTML.substring(socialsHTML.indexOf("<h1>"), socialsHTML.indexOf("</body>"))
|
||||||
|
console.log(addedHTML)
|
||||||
|
|
||||||
html = html.replace("{SOCIALS}", addedHTML)
|
html = html.replace("{SOCIALS}", addedHTML)
|
||||||
|
|
||||||
|
|
|
@ -57,5 +57,4 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -55,8 +55,8 @@ a {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
transition: transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
transform: scale(0.95);
|
||||||
transform: scale(0.95)
|
transition: transform 1.25s cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chip:hover {
|
.chip:hover {
|
||||||
|
@ -64,6 +64,7 @@ a {
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
/* font-size: 1.35rem; */
|
/* font-size: 1.35rem; */
|
||||||
border-color: white;
|
border-color: white;
|
||||||
|
transition: transform 0.75s cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.activity {
|
.activity {
|
||||||
|
|
Loading…
Reference in a new issue