Hervorhebung der gesuchten Begriffe in der Volltextsuche eingebaut

This commit is contained in:
2019-12-24 13:37:28 +01:00
parent 70ae601fb2
commit db17ac42be
2 changed files with 47 additions and 5 deletions

View File

@ -94,7 +94,10 @@
list-style-type: square;
}
mark {
background-color: lightblue;
color: black;
}
</style>
</head>
<body>
@ -261,7 +264,9 @@
content.forEach(function (item, index) {
console.log(item.id);
var page = item.id.replace(/.md/, '');
$("#outputdiv").append("<a href='/"+page+"'>/"+page+"</a><br>");
$("#outputdiv").append((index+1)+". Seite: <a href='/"+page+"'>/"+page+"</a><br>");
$("#outputdiv").append(item.fragments.Text+"<hr>");
});
}
});