Skip to content

Commit

Permalink
Merge pull request #65 from VictorKubrak/issue-19
Browse files Browse the repository at this point in the history
Fixed #19: Login page had excessive elements
  • Loading branch information
yevseytsev committed Nov 16, 2018
2 parents 1ad16b0 + a37f073 commit fc8d092
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/homepage-guest.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,19 @@ if (window.location.href == "https://my.senecacollege.ca/webapps/portal/execute/
document.getElementById("module:_4036_1").innerHTML = tot;
}


// Removing "Did You Know?" Section by getting the element ID
var element = document.getElementById("module:_4399_1");
element.style.display = "none";

// Removing "Seneca Spotlight" Section by getting the element ID
element = document.getElementById("module:_3075_1");
element.style.display = "none";

// Removing "Seneca News" Section by getting the element ID
element = document.getElementById("module:_3074_1");
element.style.display = "none";

// add event listner to the button that executes the function
document.getElementById('txt-large').addEventListener('click', () => {
resizeText(2);
Expand All @@ -286,3 +299,4 @@ document.getElementById('txt-style').addEventListener('click', () => {
changeTextStyle();
});


0 comments on commit fc8d092

Please sign in to comment.