diff --git a/dmc.css b/dmc.css index 38d34c3..9dbe977 100644 --- a/dmc.css +++ b/dmc.css @@ -142,3 +142,12 @@ td { .hour { font-weight: bold; } + +.linkicon { + color: #516f90; +} + +.linkicon:hover { + cursor: pointer; + +} diff --git a/dmc.js b/dmc.js index a9b8fd1..a55e8cd 100644 --- a/dmc.js +++ b/dmc.js @@ -57,22 +57,26 @@ function activateTab(tabname, navtab, from) { } function activateWorkshop(wid, wcontent) { - console.log(wid); - //var workshopDesc = document.getElementsByClassName('workshop-description'); - //for (var i = 0; i < workshopDesc.length; i++) { - // if (workshopDesc[i].classList.contains('hidden')) { - // - // } else { - // workshopDesc[i].classList.add('hidden'); - // } - //} - var wdescription = document.getElementById(wcontent); - if (wdescription.classList.contains('hidden')) { - wdescription.classList.remove('hidden'); - } else { - wdescription.classList.add('hidden'); + var workshopDesc = document.getElementsByClassName('abstract'); + for (var i = 0; i < workshopDesc.length; i++) { + if (workshopDesc[i].classList.contains('hidden')) { + if (workshopDesc[i].id == wcontent) { + workshopDesc[i].classList.remove('hidden'); + } + } else { + workshopDesc[i].classList.add('hidden'); + } } + //var wdescription = document.getElementById(wcontent); + //if (wdescription.classList.contains('hidden')) { + // console.log("open"); + // wdescription.classList.remove('hidden'); + //} else { + // console.log("close"); + // wdescription.classList.add('hidden'); + //} + } function createAbstractList(list) { @@ -229,12 +233,18 @@ function createWorkshopList(list) { abstract.appendChild(abstractP); } - - - - item.appendChild(workshopHead); item.appendChild(abstract); container.appendChild(item); } } + +function goToDescription(tab, navtab, item, desc) { + activateTab(tab, navtab) + if (tab == "abstracts") { + toggleAbstract(desc); + } else if (tab == "workshops") { + activateWorkshop(item, desc); + } + +} diff --git a/index.html b/index.html index 1f17f36..7f83de5 100644 --- a/index.html +++ b/index.html @@ -88,7 +88,7 @@

Wednesday, October 23, 2024

14:30 - Workshop: Introduction to Humdrum with Verovio Humdrum Viewer
+ Workshop: Introduction to Humdrum with Verovio Humdrum Viewer
Craig Stuart Sapp, Jacek Iwaszko @@ -98,7 +98,7 @@

Wednesday, October 23, 2024

16:30 - Workshop: Google spreadsheets for online metadata access
+ Workshop: Google spreadsheets for online metadata access
Benjamin Ory, Craig Stuart Sapp, Jacek Iwaszko @@ -151,7 +151,7 @@

Thursday, October 24, 2024

14:30 - Workshop: Creating websites for digital musicology projects
+ Workshop: Creating websites for digital musicology projects
Craig Stuart Sapp, Benjamin Ory @@ -161,7 +161,7 @@

Thursday, October 24, 2024

16:30 - Workshop: Mapping project
+ Workshop: Mapping project
Benjamin Ory, Craig Stuart Sapp @@ -222,7 +222,7 @@

Friday, October 25, 2024

14:30 - Workshop: Advanced Humdrum: Using terminal tools
+ Workshop: Advanced Humdrum: Using terminal tools
Jacek Iwaszko, Craig Stuart Sapp