Skip to content

Commit

Permalink
fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Nov 22, 2024
1 parent c33cf0a commit 0180e2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
Binary file modified Physiology/2024_PG_TopicsNeuroscience/BodyMind.pptx
Binary file not shown.
27 changes: 8 additions & 19 deletions Physiology/2024_PG_TopicsNeuroscience/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,18 @@ <h2 id="subtitle">Lecture</h2>
</div>
<iframe
id="documentFrame"
src="https://view.officeapps.live.com/op/view.aspx?src=https://dominiquemakowski.github.io/teaching/Physiology/2024_PG_TopicsNeuroscienced/BodyMind.pptx"
src="https://view.officeapps.live.com/op/view.aspx?src=https://dominiquemakowski.github.io/teaching/Physiology/2024_PG_TopicsNeuroscience/BodyMind.pptx"
frameborder="0"
>
</iframe>
<div>
<button class="button" onclick="previousDocument()">
Previous Part
</button>
<button class="button" onclick="previousDocument()">Previous Part</button>
<button class="button" onclick="nextDocument()">Next Part</button>
</div>
<script>
var documents = [
{
src: "https://view.officeapps.live.com/op/view.aspx?src=https://dominiquemakowski.github.io/teaching/Physiology/2024_PG_TopicsNeuroscienced/BodyMind.pptx",
src: "https://view.officeapps.live.com/op/view.aspx?src=https://dominiquemakowski.github.io/teaching/Physiology/2024_PG_TopicsNeuroscience/BodyMind.pptx",
subtitle: "Lecture",
},
]
Expand All @@ -81,11 +79,7 @@ <h2 id="subtitle">Lecture</h2>
window.addEventListener("load", function () {
updateFrameFromHash()

window.addEventListener(
"hashchange",
updateFrameFromHash,
false
)
window.addEventListener("hashchange", updateFrameFromHash, false)
})

function updateFrameFromHash() {
Expand All @@ -98,10 +92,8 @@ <h2 id="subtitle">Lecture</h2>
}

function updateFrame() {
document.getElementById("documentFrame").src =
documents[currentIndex].src
document.getElementById("subtitle").innerText =
documents[currentIndex].subtitle
document.getElementById("documentFrame").src = documents[currentIndex].src
document.getElementById("subtitle").innerText = documents[currentIndex].subtitle
window.location.hash = currentIndex // Update the URL hash
}

Expand All @@ -111,13 +103,10 @@ <h2 id="subtitle">Lecture</h2>
}

function previousDocument() {
currentIndex =
(currentIndex - 1 + documents.length) % documents.length
currentIndex = (currentIndex - 1 + documents.length) % documents.length
updateFrame()
}
</script>
<div id="copyright">
&copy; 2024 Dominique Makowski. All rights reserved.
</div>
<div id="copyright">&copy; 2024 Dominique Makowski. All rights reserved.</div>
</body>
</html>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ I also offer workshops to external universities (see [here for details](https://

*11/2024* - University of Sussex

- [Topics in Neuroscience (Master)](https://dominiquemakowski.github.io/teaching/Physiology/2024_PG_TopicsNeuroscienced)
- [Topics in Neuroscience (Master)](https://dominiquemakowski.github.io/teaching/Physiology/2024_PG_TopicsNeuroscience)
- [Cognitive Neuroscience (Undergrad)](https://dominiquemakowski.github.io/teaching/Physiology/2024_UG_CognitiveNeuroscience)

*04/2024* - University of Basel (Workshop)
Expand Down

0 comments on commit 0180e2b

Please sign in to comment.