Skip to content

Commit e41a3d9

Browse files
author
jordanmccullough
committed
Simplify GH-API injected teacher name
1 parent 72078b8 commit e41a3d9

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

_javascript/curriculum.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@ $(function(){
2020
{
2121
url: "https://api.github.com/users/"+username,
2222
success: function(data, textStatus, jqXHR){
23-
24-
$("<span/>",
25-
{
26-
class: "teacher-name",
27-
text: data.name
28-
}).appendTo("#teacher-name");
29-
23+
$("#teacher-name").html(data.name);
24+
3025
$("<span/>",
3126
{
3227
text: data.login

_layouts/curriculum.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ <h4 class="modal-title" id="timerModalLabel">Help / Shortcuts</h4>
7070
<div class="alignment">
7171
<div id="teacher-avatar" class=""></div>
7272
<div class="" id="teacher-info">
73-
<div id="teacher-name"></div>
73+
74+
<h3 id="teacher-name"></h3>
7475

7576
<span id="teacher-username">
7677
<span class="octicon octicon-octoface"></span>

0 commit comments

Comments
 (0)