mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-01 22:56:12 +02:00
Updated Readme from master
This commit is contained in:
parent
b4207526ab
commit
3d4383f3f6
8 changed files with 175 additions and 2 deletions
|
@ -28,7 +28,7 @@ $(document).ready(function() {
|
|||
var block = $("<div class='block'></div>")
|
||||
var title = $(this).clone()
|
||||
title.attr("id", slugify(title))
|
||||
var content = $(this).nextUntil('h2')
|
||||
var content = $(this).nextUntil('h2, h1')
|
||||
// if (content.length == 0) {
|
||||
// content = $(this).nextUntil()
|
||||
// }
|
||||
|
@ -39,6 +39,7 @@ $(document).ready(function() {
|
|||
var navitem = $("<li class='nav-header'><a href='#"+slugify(title)+"'>"+title.text()+"</a></li>");
|
||||
$(".nav").append(navitem)
|
||||
block.find('h3').each(function() {
|
||||
console.log($(this))
|
||||
$(this).attr('id', slugify(this));
|
||||
var navitem = $("<li><a href='#"+slugify(this)+"'>"+$(this).text().replace(/:+$/g,'')+"</a></li>");
|
||||
$(".nav").append(navitem)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue