-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched from JS to TS and fixed embed title.
- Loading branch information
Showing
4 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* When the user clicks on the button, | ||
toggle between hiding and showing the dropdown content */ | ||
function newsDropdown() { | ||
document.getElementById("news").classList.toggle("show"); | ||
} | ||
|
||
// Close the dropdown menu if the user clicks outside of it | ||
window.onclick = function(event) { | ||
if (!event.target.matches('dropdownbtn')) { | ||
var dropdowns = document.getElementById("news-content"); | ||
var i; | ||
for (i = 0; i < dropdowns.length; i++) { | ||
var openDropdown = dropdowns[i]; | ||
if (openDropdown.classList.contains('show')) { | ||
openDropdown.classList.remove('show'); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
<!--webamp--> | ||
<script src="https://unpkg.com/[email protected]/built/webamp.bundle.min.js"></script> | ||
<!--Discord Share Link Embed--> | ||
<meta content="Embed Title" property="og:title" /> | ||
<meta content="Home | scottnewman.xyz" property="og:title" /> | ||
<meta content="website used for funny" property="og:description" /> | ||
<meta content="https://www.scottnewman.xyz" property="og:url" /> | ||
<meta content="https://avatars.githubusercontent.com/u/87974560?v=4" property="og:image" /> | ||
|