2021-05-28 13:51:23 +00:00
|
|
|
{% extends "base.html.j2" %}
|
2021-05-27 11:05:46 +00:00
|
|
|
{% import "materialize/wtf.html.j2" as wtf %}
|
2023-04-27 13:11:18 +00:00
|
|
|
{% import 'corpora/_analysis/concordance.html.j2' as concordance_extension %}
|
|
|
|
{% import 'corpora/_analysis/reader.html.j2' as reader_extension %}
|
2023-07-17 10:35:53 +00:00
|
|
|
{% import 'corpora/_analysis/static_visualization.html.j2' as static_visualization_extension %}
|
2023-04-21 13:00:54 +00:00
|
|
|
|
2023-07-11 13:52:44 +00:00
|
|
|
{% set extensions = [concordance_extension, reader_extension, static_visualization_extension] %}
|
2022-02-15 08:25:34 +00:00
|
|
|
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis" id="corpus-analysis-app-container"{% endblock main_attribs %}
|
2020-06-19 10:30:05 +00:00
|
|
|
|
2023-04-21 13:00:54 +00:00
|
|
|
|
|
|
|
|
2020-03-28 18:29:19 +00:00
|
|
|
{% block page_content %}
|
2021-11-16 14:23:57 +00:00
|
|
|
<ul class="row tabs no-autoinit" id="corpus-analysis-app-extension-tabs">
|
2023-07-13 10:42:47 +00:00
|
|
|
<li class="tab col s3"><a class="active" href="#corpus-analysis-app-home-container"><i class="nopaque-icons service-icons left" data-service="corpus-analysis"></i>Corpus analysis</a></li>
|
|
|
|
{% for extension in extensions if extension.name != 'Static Visualization' %}
|
2023-04-21 13:00:54 +00:00
|
|
|
<li class="tab col s3"><a href="#{{ extension.id_prefix }}-container">{{ extension.tab_content }}</a></li>
|
|
|
|
{% endfor %}
|
2021-11-16 14:23:57 +00:00
|
|
|
</ul>
|
|
|
|
|
2023-07-13 10:42:47 +00:00
|
|
|
<div id="corpus-analysis-app-home-container">
|
|
|
|
<h1>{{ title }}</h1>
|
2021-11-16 14:23:57 +00:00
|
|
|
|
2023-07-13 10:42:47 +00:00
|
|
|
<div class="row" id="corpus-analysis-app-extension-cards">
|
|
|
|
{% for extension in extensions if extension.name != 'Static Visualization' %}
|
2023-06-14 11:57:58 +00:00
|
|
|
<div class="col s3">
|
|
|
|
<div class="card extension-selector hoverable" data-target="{{ extension.id_prefix }}-container">
|
|
|
|
<div class="card-content">
|
|
|
|
<span class="card-title">{{ extension.name }}</span>
|
|
|
|
<p>{{ extension.description }}</p>
|
|
|
|
</div>
|
2020-03-28 18:29:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-14 11:57:58 +00:00
|
|
|
{% endfor %}
|
2023-06-13 13:41:34 +00:00
|
|
|
</div>
|
2023-07-17 10:35:53 +00:00
|
|
|
|
|
|
|
{{ static_visualization_extension.container_content }}
|
2023-06-13 13:41:34 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2023-07-17 10:35:53 +00:00
|
|
|
{% for extension in extensions if extension.name != 'Static Visualization' %}
|
2023-04-21 13:00:54 +00:00
|
|
|
<div id="{{ extension.id_prefix }}-container">
|
|
|
|
{{ extension.container_content }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-10-29 13:45:55 +00:00
|
|
|
{% endblock page_content %}
|
2020-04-02 12:22:03 +00:00
|
|
|
|
2021-11-16 14:23:57 +00:00
|
|
|
{% block modals %}
|
2020-10-29 13:45:55 +00:00
|
|
|
{{ super() }}
|
2021-11-16 14:23:57 +00:00
|
|
|
<div class="modal no-autoinit" id="corpus-analysis-app-init-modal">
|
|
|
|
<div class="modal-content">
|
2023-07-18 15:18:04 +00:00
|
|
|
<h4>We are preparing your analysis session</h4>
|
2023-04-18 09:32:04 +00:00
|
|
|
<p>
|
2023-07-18 15:18:04 +00:00
|
|
|
Our server works as hard as it can to prepare your analysis session. Please be patient and give it some time.<br>
|
2023-04-18 09:32:04 +00:00
|
|
|
If initialization takes longer than usual or an error occurs, <a onclick="window.location.reload()" href="#">reload the page</a>.
|
2021-11-16 14:23:57 +00:00
|
|
|
</p>
|
2023-04-18 09:32:04 +00:00
|
|
|
<div class="progress">
|
2021-11-16 14:23:57 +00:00
|
|
|
<div class="indeterminate"></div>
|
|
|
|
</div>
|
2023-07-17 08:40:34 +00:00
|
|
|
<p class="status-text"></p>
|
2023-04-18 09:32:04 +00:00
|
|
|
<p class="errors error-color-text hide"></p>
|
2022-05-17 13:31:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-20 13:52:25 +00:00
|
|
|
|
2023-04-21 13:00:54 +00:00
|
|
|
{% for extension in extensions %}
|
|
|
|
{{ extension.modals }}
|
|
|
|
{% endfor %}
|
2023-03-06 11:27:24 +00:00
|
|
|
|
2021-11-16 14:23:57 +00:00
|
|
|
{% endblock modals %}
|
2020-08-21 14:33:47 +00:00
|
|
|
|
2021-11-16 14:23:57 +00:00
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
|
|
|
<script>
|
2023-04-21 13:00:54 +00:00
|
|
|
const corpusAnalysisApp = new CorpusAnalysisApp({{ corpus.hashid|tojson }});
|
|
|
|
</script>
|
2021-12-09 14:39:45 +00:00
|
|
|
|
2023-04-21 13:00:54 +00:00
|
|
|
{% for extension in extensions %}
|
|
|
|
{{ extension.scripts }}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
<script>
|
|
|
|
corpusAnalysisApp.init();
|
2020-03-28 18:29:19 +00:00
|
|
|
</script>
|
2021-11-16 14:23:57 +00:00
|
|
|
{% endblock scripts %}
|