From 7af9d162ab82c6e6eb38a1e3cd1b06afd884d93a Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Tue, 6 Nov 2018 19:04:18 -0500 Subject: Made multiple changes, fixing typos and a major bug with showing divisons. --- src/components/mao-account.js | 2 +- src/components/mao-admin.js | 3 +-- src/components/mao-forums.js | 3 --- src/components/mao-tutoring.js | 2 +- src/components/registry-element.js | 24 +++++++++++++----------- 5 files changed, 16 insertions(+), 18 deletions(-) (limited to 'src/components') diff --git a/src/components/mao-account.js b/src/components/mao-account.js index 3b47f66..75a54f1 100644 --- a/src/components/mao-account.js +++ b/src/components/mao-account.js @@ -190,7 +190,7 @@ class MaoAccount extends connect(store)(PageViewElement) { for(var i = 0; i < comps.length; i++) { var competitionElement = document.createElement('p'); - competitionElement.innerHTML = comps[i]; + competitionElement.innerHTML = comps[i].replace('_', ' '); competitionElement.class = "center"; mainDiv.appendChild( competitionElement); } diff --git a/src/components/mao-admin.js b/src/components/mao-admin.js index 0873e75..70b84be 100644 --- a/src/components/mao-admin.js +++ b/src/components/mao-admin.js @@ -212,11 +212,10 @@ class MaoAdmin extends connect(store)(PageViewElement) { var registryGrid = this.shadowRoot.getElementById('registry-grid'); registryGrid.innerHTML = ""; - for(var i = 0; i
-

Need Help Findiding A Tutor?

+

Need Help Finding A Tutor?

Please meet with your friends to create tutring sessions.

Also, you can try the forum page.

Otherwise, contact our tutoring coordinator Mike Binkowski.

diff --git a/src/components/registry-element.js b/src/components/registry-element.js index c54bd43..cbca5bf 100644 --- a/src/components/registry-element.js +++ b/src/components/registry-element.js @@ -103,14 +103,16 @@ class RegistryElement extends LitElement { super(); this.name = ""; - this.emails = []; this.divisons = []; this.infoTabOpen = false; } + _firstRendered() { + this.fillNames(); + } + toggleTabOpen() { - this.sortNames(); this.infoTabOpen = true; } @@ -118,7 +120,7 @@ class RegistryElement extends LitElement { this.infoTabOpen = false; } - sortNames() { + fillNames() { var thetas = this.shadowRoot.getElementById('name-list-theta'); var alphas = this.shadowRoot.getElementById('name-list-alpha'); var mus = this.shadowRoot.getElementById('name-list-mu'); @@ -131,21 +133,21 @@ class RegistryElement extends LitElement { stats .innerHTML = ""; other .innerHTML = ""; - for(var i=0; i { + var listElement = document .createElement('li'); + listElement.innerHTML = d[0]; + if (d[1].includes('Mu')) { mus .appendChild(listElement); - } else if (this.divisons[i].includes('Alpha')) { + } else if (d[1].includes('Alpha')) { alphas .appendChild(listElement) - } else if (this.divisons[i].includes('Theta')) { + } else if (d[1].includes('Theta')) { thetas .appendChild(listElement) - } else if (this.divisons[i].includes('Stats')) { + } else if (d[1].includes('Stats')) { stats .appendChild(listElement) } else { other .appendChild(listElement); } - } + }); } -- cgit v1.2.3-70-g09d2