all repos — retro-website @ 1d3e0eb120a9d0c42f73c19730e3d88578198a36

make pages linkable
Marco Andronaco andronacomarco@gmail.com
Mon, 19 Sep 2022 10:21:46 +0200
commit

1d3e0eb120a9d0c42f73c19730e3d88578198a36

parent

61cc5d2de459a7d897b77efb1be216aeba59f601

3 files changed, 5 insertions(+), 4 deletions(-)

jump to
M index.htmlindex.html

@@ -7,6 +7,7 @@ <meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>BiRabittoh's cool website</title> <link rel="stylesheet" href="res/style.css"> <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2280%22>🥭</text></svg>"> + <script src="https://melonking.net/scripts/frame-link.js"></script> </head> <body style='background-image: url("res/img/background.jpg"); height: 100%;'>

@@ -60,8 +61,8 @@ <img src="res/gif/kirby.gif">

</div> </a> </div> - <!--<iframe id="content-iframe" name="content" src="pages/about.html" onload="this.height = (this.contentWindow.document.body.scrollHeight + 43) + 'px';"></iframe>--> - <iframe id="content-iframe" name="content" src="pages/about.html"></iframe> + <!--<iframe id="mainframe" name="content" src="pages/about.html" onload="this.height = (this.contentWindow.document.body.scrollHeight + 43) + 'px';"></iframe>--> + <iframe id="mainframe" name="content" src="pages/about.html"></iframe> </div> <div id="music-player" onmouseenter="showTitle()" onmouseleave="hideTitle()" style="bottom: -100%"> <div id="music-player-base" onclick="playPause()">
M res/script.jsres/script.js

@@ -1,4 +1,4 @@

-const iframe = document.getElementById("content-iframe"); +const iframe = document.getElementById("mainframe"); const music = document.getElementById("music"); const source = document.getElementById("music-source"); const music_base = document.getElementById("music-player-base");
M res/style.cssres/style.css

@@ -21,7 +21,7 @@ color: white;

cursor: url("cur/cursor2x.cur"), auto; } -#content-iframe { +#mainframe { height: inherit; width: 100%; border: 0px;