Skip to content

Commit 99349fa

Browse files
author
jordanmccullough
committed
Fix bug on JS slide wrapping jQuery
`wrapAll` applied malformed double nested div.
1 parent dbbb83f commit 99349fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_javascript/curriculum.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $(function(){
2121
url: "https://api.github.com/users/"+username,
2222
success: function(data, textStatus, jqXHR){
2323
$("#teacher-name").html(data.name);
24-
24+
2525
$("<span/>",
2626
{
2727
text: data.login
@@ -130,7 +130,7 @@ $(function(){
130130
even = $("hr:even");
131131

132132
even.each(function(index){
133-
$(this).nextUntil("hr").wrapAll("<div class='slide'><div class='alignment'></div>");
133+
$(this).nextUntil("hr").wrapAll("<div class='slide'><div class='alignment'></div></div>");
134134
});
135135

136136
$(".slide").css("height", h + "px");

0 commit comments

Comments
 (0)