Click to expand tests
This commit is contained in:
18
javascripts/custom.js
Normal file
18
javascripts/custom.js
Normal 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';
|
||||
}
|
||||
Reference in New Issue
Block a user