Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninvf committed Sep 2, 2023
1 parent 096f508 commit 1318d00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<body>
<div class="d-flex align-items-center vw-100 main flex-column">
<h1 id="title">GANGNAMSTYLE.DEV</h1>
<script src="js/changeTitle.js"></script>

<div class="middle">
<div class="main-section">
<div class="module">
Expand Down Expand Up @@ -144,7 +146,6 @@ <h2>idk what to put here</h2>
</div>
</div>
<script src="js/lastfm.js"></script>
<script src="js/index.js"></script>
</body>

</html>
5 changes: 5 additions & 0 deletions js/changeTitle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var title = document.getElementById("title");

// Change the title of the page according to window.location.href
title.innerText = window.location.hostname.toUpperCase();
document.title = window.location.hostname;
11 changes: 0 additions & 11 deletions js/index.js

This file was deleted.

0 comments on commit 1318d00

Please sign in to comment.