Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate include for all slide panels in decks #287

Merged
merged 11 commits into from
Dec 29, 2014
Prev Previous commit
Next Next commit
Deprecate need for Markdown include for slide
Replace any Markdown and `{% include %}` with jQuery `wrapAll` and use
of HRs and delineation.
  • Loading branch information
jordanmccullough committed Dec 29, 2014
commit 62afd73e39bba8cced40cddd1211d1e490b81bbb
18 changes: 15 additions & 3 deletions _javascript/curriculum.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,21 @@ $(function(){
});

function updateSlideSize(){
var w = window.innerWidth;
var h = window.innerHeight;
$(".slide").css("height", h);
var h = window.innerHeight,
odd = $("hr:odd")
even = $("hr:even");

odd.each(function(index){
// $(this).append("close");

});

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

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

}

//Time toggle keybinding
Expand Down