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:
2017-07-14 12:27:42 -05:00
parent 1c08032627
commit c2959b3974
9 changed files with 10777 additions and 10507 deletions

View File

@@ -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');
}