Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Nov 20, 2024
1 parent 960b429 commit c33cf0a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
Binary file modified Physiology/2024_PG_TopicsNeuroscience/BodyMind.pptx
Binary file not shown.
27 changes: 19 additions & 8 deletions Physiology/2024_PG_TopicsNeuroscience/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,20 @@ <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_UG_CognitiveNeuroscience/EmbodiedBrain.pptx"
src="https://view.officeapps.live.com/op/view.aspx?src=https://dominiquemakowski.github.io/teaching/Physiology/2024_PG_TopicsNeuroscienced/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_UG_CognitiveNeuroscience/EmbodiedBrain.pptx",
src: "https://view.officeapps.live.com/op/view.aspx?src=https://dominiquemakowski.github.io/teaching/Physiology/2024_PG_TopicsNeuroscienced/BodyMind.pptx",
subtitle: "Lecture",
},
]
Expand All @@ -79,7 +81,11 @@ <h2 id="subtitle">Lecture</h2>
window.addEventListener("load", function () {
updateFrameFromHash()

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

function updateFrameFromHash() {
Expand All @@ -92,8 +98,10 @@ <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 @@ -103,10 +111,13 @@ <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>
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ I also offer workshops to external universities (see [here for details](https://

## Physiology

*11/2024* - University of Sussex (Undergrad Lecture)
*11/2024* - University of Sussex

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

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

Expand Down

0 comments on commit c33cf0a

Please sign in to comment.