forked from abaevdict/abaev-basex
fixed infinite scroll
This commit is contained in:
parent
cbc0f5662d
commit
04ab9741b4
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ $( document ).ready(function() {
|
||||||
// init Infinite Scroll
|
// init Infinite Scroll
|
||||||
$('main').infiniteScroll({
|
$('main').infiniteScroll({
|
||||||
path: '.pagination__next',
|
path: '.pagination__next',
|
||||||
append: '.abv-entry',
|
append: 'div.abv-lex',
|
||||||
//status: '.scroller-status',
|
//status: '.scroller-status',
|
||||||
//hideNav: '.pagination',
|
//hideNav: '.pagination',
|
||||||
});
|
});
|
||||||
|
|
|
@ -526,7 +526,7 @@ declare %rest:path("{$lang}/dict")
|
||||||
return if (exists($sd) and $sd($sn)('entry') = $doc/@xml:id)
|
return if (exists($sd) and $sd($sn)('entry') = $doc/@xml:id)
|
||||||
then abv-m:make-html($sd($sn)('tei'), $lang)
|
then abv-m:make-html($sd($sn)('tei'), $lang)
|
||||||
else doc(`abaevdict_{$lang}/html/{$doc/@xml:id}.html`)
|
else doc(`abaevdict_{$lang}/html/{$doc/@xml:id}.html`)
|
||||||
return (
|
return <div class="abv-lex">{(
|
||||||
(: Block with icons to the left of entry (floating) :)
|
(: Block with icons to the left of entry (floating) :)
|
||||||
<div class="icons">
|
<div class="icons">
|
||||||
{
|
{
|
||||||
|
@ -542,7 +542,7 @@ declare %rest:path("{$lang}/dict")
|
||||||
then <a class="abv-map" data-abv-entry="{$doc/@xml:id}">
|
then <a class="abv-map" data-abv-entry="{$doc/@xml:id}">
|
||||||
<img src="/static/map.png"></img>
|
<img src="/static/map.png"></img>
|
||||||
</a>}</div>,
|
</a>}</div>,
|
||||||
$html)
|
$html)}</div>
|
||||||
}
|
}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue