diff --git a/public/js/organization.js b/public/js/organization.js
index 1bac965..099f132 100644
--- a/public/js/organization.js
+++ b/public/js/organization.js
@@ -65,14 +65,14 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
let pageHTML = '
';
pageHTML += '
';
- pageHTML += '
';
- pageHTML += '
';
+ pageHTML += '
';
+ pageHTML += '
';
pageHTML += '
';
- pageHTML += '
';
- pageHTML += '
';
+ pageHTML += '
';
+ pageHTML += '
';
pageHTML += '
';
pageHTML += '
';
- pageHTML += '
Page '+page.pageNumber+' - '+filename+'
';
+ pageHTML += '
Page '+page.pageNumber+' - '+filename+'
';
pageHTML += '
';
pageHTML += '
';
pageHTML += '
';
@@ -80,6 +80,22 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
document.getElementById('container-pages').insertAdjacentHTML('beforeend', pageHTML);
let canvasContainer = document.getElementById('canvas-container-' + pageIndex);
+ canvasContainer.addEventListener('mouseenter', function(e) {
+ this.querySelector('.page-title').classList.remove('d-none');
+ if(this.querySelector('input[type=checkbox].input-select').checked) {
+ return;
+ }
+ this.classList.add('border-secondary', 'bg-secondary');
+ this.classList.remove('border-transparent', 'bg-transparent');
+ });
+ canvasContainer.addEventListener('mouseleave', function(e) {
+ this.querySelector('.page-title').classList.add('d-none');
+ if(this.querySelector('input[type=checkbox].input-select').checked) {
+ return;
+ }
+ this.classList.remove('border-secondary', 'bg-secondary');
+ this.classList.add('border-transparent', 'bg-transparent');
+ });
canvasContainer.addEventListener('dragstart', function(e) {
this.querySelector('.container-resize').classList.add('d-none');
this.querySelector('.canvas-pdf').classList.add('shadow-lg');
@@ -117,7 +133,7 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
let container = this.parentNode;
if(checkbox.checked) {
container.classList.add('border-primary', 'shadow-sm', 'bg-primary');
- container.classList.remove('border-transparent', 'bg-transparent');
+ container.classList.remove('border-transparent', 'bg-transparent', 'border-secondary', 'bg-secondary');
} else {
container.classList.remove('border-primary', 'shadow-sm', 'bg-primary');
container.classList.add('border-transparent', 'bg-transparent');
@@ -197,9 +213,9 @@ var stateCheckbox = function(checkbox) {
let checkboxContainer = checkbox.parentNode.parentNode.parentNode;
if(checkbox.checked) {
- checkboxContainer.style.opacity = '1'
+ checkboxContainer.querySelector('.canvas-pdf').style.opacity = '1'
} else {
- checkboxContainer.style.opacity = '0.2';
+ checkboxContainer.querySelector('.canvas-pdf').style.opacity = '0.15';
}
};
diff --git a/templates/organization.html.php b/templates/organization.html.php
index a966cb3..87ff976 100644
--- a/templates/organization.html.php
+++ b/templates/organization.html.php
@@ -91,6 +91,6 @@
-
+