Commit 4db87526 authored by EL HASSANE GARGEM's avatar EL HASSANE GARGEM
Browse files

enhancement of intro

parent 468306b1
function exitonboarding() {
$.ajax({type: 'PUT', url:'/api/users/onboarding/',
contentType: "application/json; charset=utf-8",
data:JSON.stringify({
onboarding : "False",
})
}).done($.proxy(function(data){
}, this)).fail(function(data) {
alert(data);
});
}
steps_intro = [
{
element: '#document-transcriptions',
......
......@@ -46,5 +46,10 @@ document_images_intro.setOptions({steps: [
intro: 'Transcribe automatically the selected images.',
position: 'left'
},
{
element : "#cards-container",
intro : 'This shows all the images for your manuscript. You can select one or multiple images for training, segmentation, transcribing, or export. Clicking on the [fas fa-edit] icon allows you to edit the segmentation and text. The [fa-align-left] icon shows you if the page has been segmented (green = yes, black = no, ‘pulsing’ green = segmentation in progress). The blue progress bar shows the amount of text that has been entered.\n',
position : 'top'
}
]});
var document_images_intro = introJs();
document_images_intro.setOptions('doneLabel', 'Next page');
document_images_intro.setOptions({steps: [
{
element: '#nav-doc-tab',
intro: 'Update Document description (Name, Text direction or metadata).<br>',
position: 'bottom'
},
{
element: '#nav-edit-tab',
intro: 'Edit Document Part. Panels to update transcriptions, baselines and masks',
position: 'bottom'
},
{
element: '#nav-models-tab',
intro: 'Handle Transcription and Segmentation models related to this document.',
position: 'bottom'
},
{
element: '#import-selected',
intro: 'Import document part. <br> accepted formats : IIIF, Pagexml, Alto.',
position: 'bottom'
},
{
element: '#document-export',
intro: 'Import document part. <br> accepted formats : Text, Pagexml, Alto.',
position: 'bottom'
},
{
element: '#train-selected',
intro: 'Train a Segmentation or Transcription model',
position: 'bottom'
},
{
element: '#binarize-selected',
intro: 'Binarize the color of selected images.',
position: 'bottom'
},
{
element: '#segment-selected',
intro: 'Segment selected images.',
position: 'bottom'
},
{
element: '#transcribe-selected',
intro: 'Transcribe automatically the selected images.',
position: 'left'
},
]});
......@@ -133,6 +133,8 @@ $(document).ready(function() {
<script src="{% static 'js/lazyload.js' %}"></script>
<script src="{% static 'js/help.js' %}"></script>
<script src="{% static 'js/onboarding/images.js' %}"></script>
<script src="{% static 'js/onboarding/exit.js' %}"></script>
{% endcompress %}
<script type="text/javascript">
......
......@@ -649,6 +649,7 @@
<script type="text/javascript" src="{% static 'vendor/jquery/jquery-ui.min.js' %}"></script>
<script src="{% static 'vendor/introjs/intro.js' %}"></script>
<script src="{% static 'js/onboarding/edit.js' %}"></script>
<script src="{% static 'js/onboarding/exit.js' %}"></script>
<script type="text/javascript" src="{% static 'js/wheelzoom.js' %}"></script>
<script type="text/javascript" src="{% static 'js/baseline.editor.js' %}"></script>
<script type="text/javascript" src="{% static 'js/edit/components/base_panel.js' %}"></script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment