Compare commits
2 commits
eda0b2f9e8
...
613bd9c4fe
Author | SHA1 | Date | |
---|---|---|---|
613bd9c4fe | |||
ee0710fded |
4 changed files with 36 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
<link rel="icon" href="../../static/site/favicon.png" type="image/x-icon">
|
<link rel="icon" href="../../static/site/favicon.png" type="image/x-icon">
|
||||||
<link rel="stylesheet" href="../../default_style.css">
|
<link rel="stylesheet" href="../../default_style.css">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
|
<script src="/js/goback.js" defer></script>
|
||||||
<title>Friends</title>
|
<title>Friends</title>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -8,10 +8,13 @@
|
||||||
<script src="/libs/marked.min.js"></script>
|
<script src="/libs/marked.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="window">
|
<div class="window">
|
||||||
<div class="nav">
|
<div class="nav">
|
||||||
<button onclick="loadContent('home.md')">Home</button>
|
<button onclick="loadContent('home.md')">Home</button>
|
||||||
<button onclick="loadContent('slowly.md')">Slowly</button>
|
<button onclick="loadContent('slowly.md')">Slowly</button>
|
||||||
|
<button onclick="loadContent('loneliness.md')">Loneliness</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content" id="mainContent">
|
<div class="content" id="mainContent">
|
||||||
|
|
||||||
|
|
5
home/library/logs/markdown/loneliness.md
Normal file
5
home/library/logs/markdown/loneliness.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Loneliness
|
||||||
|
|
||||||
|
Again this feeling of a place that never was, I remember there was a word for that in portuguese, but it escapes my mind all the time.
|
||||||
|
|
||||||
|
I wonder.
|
27
js/goback.js
Normal file
27
js/goback.js
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
// Function to inject HTML and CSS
|
||||||
|
function injectTopLeftImage() {
|
||||||
|
// Create style element
|
||||||
|
const style = document.createElement('style');
|
||||||
|
style.textContent = `
|
||||||
|
.top-left-image {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 9999;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
document.head.appendChild(style);
|
||||||
|
|
||||||
|
// Create HTML element
|
||||||
|
const container = document.createElement('div');
|
||||||
|
container.innerHTML = `
|
||||||
|
<a href="/home">
|
||||||
|
<img src="/static/site/logo.png" alt="Top-Left Image" class="top-left-image">
|
||||||
|
</a>
|
||||||
|
`;
|
||||||
|
document.body.appendChild(container);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ensure the function runs after the page loads
|
||||||
|
window.addEventListener('DOMContentLoaded', injectTopLeftImage);
|
||||||
|
|
Loading…
Add table
Reference in a new issue