From 613bd9c4fe4bb261ec65558132b5e07bcf255cb3 Mon Sep 17 00:00:00 2001 From: waifu Date: Mon, 3 Jun 2024 20:47:33 -0300 Subject: [PATCH] go back --- home/friends/index.html | 1 + js/goback.js | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 js/goback.js diff --git a/home/friends/index.html b/home/friends/index.html index c175f9a..ebd2902 100644 --- a/home/friends/index.html +++ b/home/friends/index.html @@ -6,6 +6,7 @@ + Friends diff --git a/js/goback.js b/js/goback.js new file mode 100644 index 0000000..ef1d6ca --- /dev/null +++ b/js/goback.js @@ -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 = ` + + Top-Left Image + + `; + document.body.appendChild(container); + } + + // Ensure the function runs after the page loads + window.addEventListener('DOMContentLoaded', injectTopLeftImage); + \ No newline at end of file