Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2297:b0b4d264d9a8
Fix for #28. z-index properly managed and elements fixed
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 27 Apr 2016 09:59:01 +0100 |
parents | 5a2aaa964f6d |
children | a73495c6d604 |
comparison
equal
deleted
inserted
replaced
2296:9cf65a9360d2 | 2297:b0b4d264d9a8 |
---|---|
585 | 585 |
586 this.buttonPrevious = document.getElementById('popup-previous'); | 586 this.buttonPrevious = document.getElementById('popup-previous'); |
587 this.buttonPrevious.onclick = function(){popup.previousClick();}; | 587 this.buttonPrevious.onclick = function(){popup.previousClick();}; |
588 | 588 |
589 this.hidePopup(); | 589 this.hidePopup(); |
590 | |
591 this.popup.style.zIndex = -1; | |
592 this.popup.style.visibility = 'hidden'; | 590 this.popup.style.visibility = 'hidden'; |
593 }; | 591 }; |
594 | 592 |
595 this.showPopup = function(){ | 593 this.showPopup = function(){ |
596 if (this.popup == null) { | 594 if (this.popup == null) { |
597 this.createPopup(); | 595 this.createPopup(); |
598 } | 596 } |
599 this.popup.style.zIndex = 3; | |
600 this.popup.style.visibility = 'visible'; | 597 this.popup.style.visibility = 'visible'; |
601 var blank = document.getElementsByClassName('testHalt')[0]; | 598 var blank = document.getElementsByClassName('testHalt')[0]; |
602 blank.style.zIndex = 2; | |
603 blank.style.visibility = 'visible'; | 599 blank.style.visibility = 'visible'; |
604 this.popupResponse.style.left="0%"; | 600 this.popupResponse.style.left="0%"; |
605 }; | 601 }; |
606 | 602 |
607 this.hidePopup = function(){ | 603 this.hidePopup = function(){ |
608 if (this.popup) { | 604 if (this.popup) { |
609 this.popup.style.zIndex = -1; | |
610 this.popup.style.visibility = 'hidden'; | 605 this.popup.style.visibility = 'hidden'; |
611 var blank = document.getElementsByClassName('testHalt')[0]; | 606 var blank = document.getElementsByClassName('testHalt')[0]; |
612 blank.style.zIndex = -2; | |
613 blank.style.visibility = 'hidden'; | 607 blank.style.visibility = 'hidden'; |
614 this.buttonPrevious.style.visibility = 'inherit'; | 608 this.buttonPrevious.style.visibility = 'inherit'; |
615 } | 609 } |
616 }; | 610 }; |
617 | 611 |