Several Changes
Added Team Self-Management pages (Site must not be 'voting' mode) Process screenshots on upload, create thumbnail Change inline screenshots to thumbnails (screenshots can get big)
This commit is contained in:
@@ -104,15 +104,16 @@ function embiggenScreenshot(img) {
|
||||
return;
|
||||
}
|
||||
var container = document.getElementById('embiggenedScreenShot');
|
||||
var clone = ss.cloneNode(true);
|
||||
clone.classList.remove('thumbnail');
|
||||
while(container.hasChildNodes()) {
|
||||
container.removeChild(container.firstChild);
|
||||
}
|
||||
var clickToCloseMsg = document.createElement('div');
|
||||
clickToCloseMsg.innerText = "Click Image to Close";
|
||||
var oImg = document.createElement("img");
|
||||
oImg.setAttribute('src', '/image/'+ss.dataset.teamid+'/'+ss.dataset.ssid);
|
||||
oImg.setAttribute('alt', ss.getAttribute('alt'));
|
||||
container.appendChild(clickToCloseMsg);
|
||||
container.appendChild(clone);
|
||||
container.appendChild(oImg);
|
||||
container.classList.remove('hidden');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user