mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Try to implement anchor tags
This commit is contained in:
parent
a7cbce1eda
commit
f02d1619e2
@ -168,6 +168,14 @@ nopaque.App = class App {
|
|||||||
let manualModalTocElement = document.querySelector('#manual-modal-toc');
|
let manualModalTocElement = document.querySelector('#manual-modal-toc');
|
||||||
let manualModalToc = M.Tabs.getInstance(manualModalTocElement);
|
let manualModalToc = M.Tabs.getInstance(manualModalTocElement);
|
||||||
manualModalToc.select(modalTriggerElement.dataset.manualModalChapter);
|
manualModalToc.select(modalTriggerElement.dataset.manualModalChapter);
|
||||||
|
// TODO: Make this work.
|
||||||
|
// if ('manualModalChapterAnchor' in modalTriggerElement.dataset) {
|
||||||
|
// let manualModalChapterAnchor = document.querySelector(`#${modalTriggerElement.dataset.manualModalChapterAnchor}`);
|
||||||
|
// let xCoord = manualModalChapterAnchor.getBoundingClientRect().left;
|
||||||
|
// let yCoord = manualModalChapterAnchor.getBoundingClientRect().top;
|
||||||
|
// let modalContentElement = modalElement.querySelector('.modal-content');
|
||||||
|
// modalContentElement.scroll(xCoord, yCoord);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
<a class="btn-small waves-effect waves-light tooltipped modal-trigger" href="#corpus-analysis-concordance-positional-attr-modal" data-position="bottom" data-tooltip="Search for any token, for example a word, a lemma or a part-of-speech tag">Add new token to your query</a>
|
<a class="btn-small waves-effect waves-light tooltipped modal-trigger" href="#corpus-analysis-concordance-positional-attr-modal" data-position="bottom" data-tooltip="Search for any token, for example a word, a lemma or a part-of-speech tag">Add new token to your query</a>
|
||||||
<a class="btn-small waves-effect waves-light tooltipped modal-trigger" href="#corpus-analysis-concordance-structural-attr-modal" data-position="bottom" data-tooltip="Structure your query with structural attributes, for example sentences, entities or annotate the text">Add structural attributes to your query</a>
|
<a class="btn-small waves-effect waves-light tooltipped modal-trigger" href="#corpus-analysis-concordance-structural-attr-modal" data-position="bottom" data-tooltip="Structure your query with structural attributes, for example sentences, entities or annotate the text">Add structural attributes to your query</a>
|
||||||
<a class="btn-small waves-effect waves-light tooltipped dropdown-trigger disabled" data-target="corpus-analysis-concordance-token-incidence-modifiers-dropdown" data-toggle-area="token-incidence-modifiers" data-position="top" data-tooltip="Incidence Modifiers are special characters or patterns, <br>which determine how often a character represented previously should occur.">incidence modifiers</a>
|
<a class="btn-small waves-effect waves-light tooltipped dropdown-trigger disabled" data-target="corpus-analysis-concordance-token-incidence-modifiers-dropdown" data-toggle-area="token-incidence-modifiers" data-position="top" data-tooltip="Incidence Modifiers are special characters or patterns, <br>which determine how often a character represented previously should occur.">incidence modifiers</a>
|
||||||
|
<a class="modal-trigger" data-manual-modal-chapter="manual-modal-query-builder" href="#manual-modal"><i class="material-icons left" style="color:black">help_outline</i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -66,7 +67,7 @@
|
|||||||
<div id="corpus-analysis-concordance-structural-attr-modal" class="modal">
|
<div id="corpus-analysis-concordance-structural-attr-modal" class="modal">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="attr-modal-header">
|
<div class="attr-modal-header">
|
||||||
<h5>Which structural attribute do you want to add to your query?<a class="modal-trigger" data-manual-modal-chapter="manual-modal-query-builder" href="#manual-modal"><i class="material-icons left" id="corpus-analysis-concordance-add-structural-attribute-tutorial-info-icon">help_outline</i></a></h5>
|
<h5>Which structural attribute do you want to add to your query?<a class="modal-trigger" data-manual-modal-chapter="manual-modal-query-builder" data-manual-modal-chapter-anchor="add-structural-attribute-tutorial" href="#manual-modal"><i class="material-icons left" id="corpus-analysis-concordance-add-structural-attribute-tutorial-info-icon">help_outline</i></a></h5>
|
||||||
</div>
|
</div>
|
||||||
<p></p>
|
<p></p>
|
||||||
<br>
|
<br>
|
||||||
@ -127,7 +128,7 @@
|
|||||||
<div class="row attr-modal-header">
|
<div class="row attr-modal-header">
|
||||||
<p></p>
|
<p></p>
|
||||||
<div class="col s12">
|
<div class="col s12">
|
||||||
<h5>Which kind of token are you looking for? <a class="modal-trigger" data-manual-modal-chapter="manual-modal-query-builder" href="#manual-modal"><i class="material-icons left" id="corpus-analysis-concordance-token-tutorial-info-icon">help_outline</i></a></h5>
|
<h5>Which kind of token are you looking for? <a class="modal-trigger" data-manual-modal-chapter="manual-modal-query-builder" data-manual-modal-chapter-anchor="add-new-token-tutorial" href="#manual-modal"><i class="material-icons left" id="corpus-analysis-concordance-token-tutorial-info-icon">help_outline</i></a></h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-field col s3" style="margin-left:42px;">
|
<div class="input-field col s3" style="margin-left:42px;">
|
||||||
<select id="corpus-analysis-concordance-positional-attr-selection">
|
<select id="corpus-analysis-concordance-positional-attr-selection">
|
||||||
@ -336,7 +337,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="corpus-analysis-concordance-token-edit-options" data-toggle-area="input-field-options">
|
<div id="corpus-analysis-concordance-token-edit-options" data-toggle-area="input-field-options">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h6>Options to edit your token: <a class="modal-trigger" data-manual-modal-chapter="manual-modal-query-builder" href="#manual-modal"><i class="material-icons left" id="corpus-analysis-concordance-edit-options-tutorial-info-icon">help_outline</i></a></h6>
|
<h6>Options to edit your token: <a class="modal-trigger" data-manual-modal-chapter="manual-modal-query-builder" href="#manual-modal" data-manual-modal-chapter-anchor="edit-options-tutorial"><i class="material-icons left" id="corpus-analysis-concordance-edit-options-tutorial-info-icon">help_outline</i></a></h6>
|
||||||
</div>
|
</div>
|
||||||
<p></p>
|
<p></p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -409,9 +410,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{# {% macro scripts(id_prefix) %}
|
|
||||||
<script>
|
|
||||||
const concordanceQueryBuilder = new ConcordanceQueryBuilder();
|
|
||||||
</script>
|
|
||||||
{% endmacro %} #}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user