Skip to content

Commit

Permalink
Update People Description
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcapstick committed Nov 28, 2023
1 parent 28e5459 commit b0f5e60
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ <h2>
<hr class="featurette-divider">
<div class="featurette" id="teaching_staff">
<h3 class="featurette-heading">Teaching Staff</h3>
<h4>The following people helped make this module possible:</h4>
<h4>The following people from the <a href="https://tmi-lab.github.io/" target="_blank">Translational Machine
Intelligence Lab</a> helped make this module possible:</h4>
<div class="staff-image-container">
<ul class="staff-image-list">

Expand Down
35 changes: 18 additions & 17 deletions js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2109,24 +2109,24 @@ toggleSwitch2.addEventListener("change", (event) => {



/**
* Changes notebook class elements to include link to open in colab.
*/
var anchors = document.getElementsByClassName("notebook-link");

for (var i = 0; i < anchors.length; i++) {
const colab_link = document.createElement("a")
colab_link.href = "https://colab.research.google.com/github/" + anchors[i].href.replace("https://github.com/", "");
colab_link.target = "_blank";
const colab_img = document.createElement("img")
colab_img.src = "https://colab.research.google.com/assets/colab-badge.svg";
colab_img.alt = "Open In Colab";
colab_link.appendChild(colab_img);
anchors[i].parentNode.insertBefore(colab_link, anchors[i].nextSibling);
};



update_notebook_links = function () {
/**
* Changes notebook class elements to include link to open in colab.
*/
var anchors = document.getElementsByClassName("notebook-link");

for (var i = 0; i < anchors.length; i++) {
const colab_link = document.createElement("a")
colab_link.href = "https://colab.research.google.com/github/" + anchors[i].href.replace("https://github.com/", "");
colab_link.target = "_blank";
const colab_img = document.createElement("img")
colab_img.src = "https://colab.research.google.com/assets/colab-badge.svg";
colab_img.alt = "Open In Colab";
colab_link.appendChild(colab_img);
anchors[i].parentNode.insertBefore(colab_link, anchors[i].nextSibling);
};
};

/**
* Closes the navbar on click of an item.
Expand All @@ -2140,4 +2140,5 @@ $('.navbar-collapse a').click(function () {

window.onload = function () {
/* onload code */
update_notebook_links();
};

0 comments on commit b0f5e60

Please sign in to comment.