mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	remove manual modal
This commit is contained in:
		@@ -159,28 +159,6 @@ nopaque.App = class App {
 | 
			
		||||
      }
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    // Manual modal
 | 
			
		||||
    M.Modal.init(
 | 
			
		||||
      document.querySelector('#manual-modal'),
 | 
			
		||||
      {
 | 
			
		||||
        onOpenStart: (modalElement, modalTriggerElement) => {
 | 
			
		||||
          if ('manualModalChapter' in modalTriggerElement.dataset) {
 | 
			
		||||
            let manualModalTocElement = document.querySelector('#manual-modal-toc');
 | 
			
		||||
            let manualModalToc = M.Tabs.getInstance(manualModalTocElement);
 | 
			
		||||
            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);
 | 
			
		||||
            // }
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    // Terms of use modal
 | 
			
		||||
    M.Modal.init(
 | 
			
		||||
      document.querySelector('#terms-of-use-modal'),
 | 
			
		||||
 
 | 
			
		||||
@@ -8,6 +8,10 @@
 | 
			
		||||
  cursor: pointer !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.fixed {
 | 
			
		||||
  position: fixed;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.show-if-only-child:not(:only-child) {
 | 
			
		||||
  display: none !important;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user