Skip to content
Snippets Groups Projects
Commit 264d7121 authored by Anthony's avatar Anthony
Browse files

Comment work (popover)

parent f791fcd8
No related branches found
No related tags found
No related merge requests found
...@@ -95,3 +95,22 @@ select.sd-dropdown.inline-dropdown, input.sd-input.inline-input { ...@@ -95,3 +95,22 @@ select.sd-dropdown.inline-dropdown, input.sd-input.inline-input {
padding: 0px 5px; padding: 0px 5px;
background-color: var(--secondary-background-color); background-color: var(--secondary-background-color);
} }
// ***********************************
// Comment on page
// ***********************************
.comment-trigger {
cursor: pointer;
color: var(--macao-primary-color);
text-decoration: underline;
}
.commentaireInfo {
padding: 10px;
border-radius: 10px;
background-color: var(--secondary-background-color);
border: 1px solid var(--macao-primary-color);
color: black;
max-width: 500px;
}
...@@ -6,4 +6,13 @@ $(document).ready(function() { ...@@ -6,4 +6,13 @@ $(document).ready(function() {
// Add Title on top of the page // Add Title on top of the page
$('.book-header').show(); $('.book-header').show();
$('.commentaireInfo').hide();
$('.commentaireInfo').prop('popover', 'true');
$('.commentaireInfoGroup').show();
$('[spanid]').addClass('comment-trigger').on('click', function() {
let spanid = $(this).attr('spanid');
$("[commentaireid=" + spanid + "]").toggle();
});
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment