Click to expand tests

This commit is contained in:
Arona Jones
2014-11-14 14:11:07 +00:00
parent e03607e3b2
commit 7b4d1a6cad
3 changed files with 42 additions and 4 deletions

18
javascripts/custom.js Normal file
View File

@@ -0,0 +1,18 @@
function showImage(imgName) {
document.getElementById('largeImg').src = imgName;
showLargeImagePanel();
unselectAll();
}
function showLargeImagePanel() {
document.getElementById('largeImgPanel').style.visibility = 'visible';
}
function unselectAll() {
if (document.selection) document.selection.empty();
if (window.getSelection) window.getSelection().removeAllRanges();
}
function hideMe(obj) {
obj.style.visibility = 'hidden';
}