diff --git a/assets/index.js b/assets/index.js index d5f8cca..9e16ef0 100644 --- a/assets/index.js +++ b/assets/index.js @@ -1,23 +1,4 @@ -/* 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'); - } - } - } - } - +// Webamp attempts. /* webamp.setTracksToPlay([ {url: 'https://www.youtube.com/watch?v=e0T0rI-GiR4&list=PL7IgabZ8nkx39Pl2SEMXTGfMnF8PwIYQo&index=17'}, diff --git a/assets/index.ts b/assets/index.ts new file mode 100644 index 0000000..2aae896 --- /dev/null +++ b/assets/index.ts @@ -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'); + } + } + } + } \ No newline at end of file diff --git a/index.html b/index.html index 807fa8a..35f5f86 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ - + diff --git a/test.rb b/test.rb new file mode 100644 index 0000000..e69de29