Commit a6b3cc1f authored by svilayphiou's avatar svilayphiou

undo + find_headings on h2 instead of h1

parent 427ed0f4
......@@ -20,7 +20,7 @@ $(document).ready(function() {
// DIV WRAPPER AROUND EACH H2
$("#content h2").each(function(){
h2 = $(this).attr('id');
$(this).nextUntil('h2').andSelf().wrapAll('<div class="slide ' + h2 + '" title="' + h2 + '"></div>');
$(this).nextUntil('h2').andSelf().wrapAll('<div class="slide ' + h2 + '"></div>');
});
// OFFSET ANCHOR BECAUSE OF FIXED MENU
......
......@@ -596,7 +596,7 @@ var w3c_slidy = {
if (!node || node.nodeType != 1)
return null;
if (node.nodeName == "H1" || node.nodeName == "h1")
if (node.nodeName == "H2" || node.nodeName == "h2")
return node;
var child = node.firstChild;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment